/* ==========================================================================
   Ezan Vakti — Gece Laciverti & Altın
   Tipografi: Cormorant Garamond (display) · Manrope (arayüz) · Amiri (Arapça)
   ========================================================================== */

/* ---------- 1. Tokenlar --------------------------------------------------- */
:root {
  --f-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --f-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-ar: 'Amiri', 'Geeza Pro', 'Times New Roman', serif;

  --r-xs: 10px; --r-sm: 14px; --r-md: 20px; --r-lg: 26px; --r-xl: 34px;
  --shell: 500px;
  --tabh: 68px;
  --ease: cubic-bezier(.22, .9, .27, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --gold-1: #E9CA81;
  --gold-2: #F8E7BC;
  --gold-3: #B8893A;
  --gold-soft: rgba(233, 202, 129, .13);
  --gold-line: rgba(233, 202, 129, .20);
  --green: #56C08F;
  --red: #E2725B;
}

html[data-theme='dark'] {
  --bg-0: #060B18;
  --bg-1: #0A1226;
  --bg-2: #101B36;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .085);
  --surface-3: rgba(255, 255, 255, .13);
  --line: rgba(233, 202, 129, .13);
  --line-soft: rgba(255, 255, 255, .07);
  --text: #F0E9DB;
  --text-dim: rgba(240, 233, 219, .60);
  --text-mute: rgba(240, 233, 219, .38);
  --shadow-card: 0 18px 46px -22px rgba(0, 0, 0, .95);
  --glow: 0 0 60px -12px rgba(233, 202, 129, .30);
  --pattern-op: .05;
  --grain-op: .035;
  --star-op: 1;
  color-scheme: dark;
}

html[data-theme='light'] {
  --bg-0: #F6F1E4;
  --bg-1: #FCF8F0;
  --bg-2: #FFFDF8;
  --surface: rgba(255, 255, 255, .78);
  --surface-2: rgba(23, 38, 66, .055);
  --surface-3: rgba(23, 38, 66, .10);
  --line: rgba(150, 112, 40, .20);
  --line-soft: rgba(23, 38, 66, .09);
  --text: #16233D;
  --text-dim: rgba(22, 35, 61, .64);
  --text-mute: rgba(22, 35, 61, .42);
  --gold-1: #9A7326;
  --gold-2: #B98F35;
  --gold-3: #6E5015;
  --gold-soft: rgba(154, 115, 38, .10);
  --gold-line: rgba(154, 115, 38, .22);
  --green: #2E9A6C;
  --shadow-card: 0 14px 40px -24px rgba(30, 45, 80, .55);
  --glow: 0 0 50px -14px rgba(154, 115, 38, .28);
  --pattern-op: .045;
  --grain-op: .02;
  --star-op: 0;
  color-scheme: light;
}

/* ---------- 2. Temel ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  font-size: calc(16px * var(--fs, 1));
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-0);
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  font-feature-settings: 'ss01', 'cv01';
}

[hidden] { display: none !important; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.01em; }
a { color: var(--gold-1); }

::selection { background: var(--gold-1); color: var(--bg-0); }

.ic { width: 22px; height: 22px; flex: none; }
.ic--sm { width: 17px; height: 17px; }
.ic--lg { width: 34px; height: 34px; }

/* ---------- 3. Atmosfer --------------------------------------------------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.ambient::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--bg-2) 0%, var(--bg-1) 42%, var(--bg-0) 78%);
}

.ambient__glow {
  position: absolute; border-radius: 50%; filter: blur(70px);
  z-index: 1; opacity: .55; mix-blend-mode: screen;
}
html[data-theme='light'] .ambient__glow { mix-blend-mode: multiply; opacity: .22; }
.ambient__glow--a {
  width: 66vw; height: 66vw; max-width: 460px; max-height: 460px;
  top: -14vh; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(233, 202, 129, .38), transparent 68%);
  animation: drift 22s var(--ease) infinite alternate;
}
.ambient__glow--b {
  width: 78vw; height: 78vw; max-width: 520px; max-height: 520px;
  bottom: -22vh; right: -22vw;
  background: radial-gradient(circle, rgba(64, 122, 190, .30), transparent 70%);
  animation: drift 28s var(--ease) infinite alternate-reverse;
}
@keyframes drift { to { transform: translate(-50%, 26px) scale(1.12); } }

.ambient__pattern {
  position: absolute; inset: -10%; z-index: 2; opacity: var(--pattern-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23E9CA81' stroke-width='1'%3E%3Cpath d='M60 6 74 26 98 22 94 46 114 60 94 74 98 98 74 94 60 114 46 94 22 98 26 74 6 60 26 46 22 22 46 26z'/%3E%3Cpath d='M0 0 20 14 0 28M120 0 100 14 120 28M0 92 20 106 0 120M120 92 100 106 120 120'/%3E%3Ccircle cx='60' cy='60' r='22'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 128px 128px;
}

.ambient__grain {
  position: absolute; inset: 0; z-index: 3; opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ambient__stars { position: absolute; inset: 0; z-index: 2; opacity: var(--star-op); transition: opacity .4s; }
.ambient__stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: var(--gold-2); box-shadow: 0 0 6px rgba(233, 202, 129, .8);
  animation: twinkle var(--dur, 4s) ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .12; transform: scale(.7); } to { opacity: .85; transform: scale(1); } }

/* ---------- 4. Açılış ----------------------------------------------------- */
.splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: radial-gradient(120% 90% at 50% 20%, var(--bg-2), var(--bg-0) 70%);
  transition: opacity .55s var(--ease), visibility .55s;
}
.splash.is-hidden { opacity: 0; visibility: hidden; }
.splash__mark { color: var(--gold-1); filter: drop-shadow(0 0 26px rgba(233, 202, 129, .45)); animation: markIn 1s var(--ease-out) both; }
.splash__title {
  font-family: var(--f-display); font-size: 2.5rem; font-weight: 600;
  letter-spacing: .10em; color: var(--gold-2);
  animation: fadeUp .8s .18s var(--ease-out) both;
}
.splash__sub {
  font-family: var(--f-ar); font-size: 1.05rem; color: var(--text-dim);
  animation: fadeUp .8s .3s var(--ease-out) both;
}
@keyframes markIn { from { opacity: 0; transform: scale(.7) translateY(14px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* ---------- 5. Kabuk ------------------------------------------------------ */
.app {
  position: relative; z-index: 1;
  max-width: var(--shell); margin-inline: auto;
  min-height: 100dvh; display: flex; flex-direction: column;
  padding: 0 clamp(14px, 4vw, 20px);
  padding-top: max(14px, env(safe-area-inset-top));
}

.main {
  flex: 1;
  padding-bottom: calc(var(--tabh) + 34px + env(safe-area-inset-bottom));
}

.view { display: none; animation: viewIn .42s var(--ease-out) both; }
.view.is-active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px) scale(.99); } }

/* ---------- 6. Üst çubuk -------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0 12px;
  margin-inline: calc(clamp(14px, 4vw, 20px) * -1);
  padding-inline: clamp(14px, 4vw, 20px);
}
/* İçeriği bulanıklaştıran, alta doğru sönümlenen katman */
.topbar::before {
  content: ''; position: absolute; inset: -20px 0 0;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(#000 72%, transparent);
  mask-image: linear-gradient(#000 72%, transparent);
  pointer-events: none;
}
.topbar > * { position: relative; }
.loc {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 13px 8px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .25s var(--ease), background .25s;
  min-width: 0; flex: 1;
}
.loc:active { transform: scale(.97); }
.loc > .ic { color: var(--gold-1); }
.loc__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; min-width: 0; }
.loc__text strong { font-size: .95rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.loc__text small { font-size: .68rem; color: var(--text-mute); letter-spacing: .04em; text-transform: uppercase; }
.loc__chev { color: var(--text-mute); margin-left: auto; }

.topbar__actions { display: flex; gap: 8px; }
.iconbtn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 14px; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--line-soft);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: color .2s, transform .2s var(--ease), border-color .2s;
}
.iconbtn:hover { color: var(--gold-1); border-color: var(--gold-line); }
.iconbtn:active { transform: scale(.9); }
.iconbtn--tiny { width: 30px; height: 30px; border-radius: 10px; }

/* ---------- 7. Tarih ------------------------------------------------------ */
.datebar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .82rem; color: var(--text-dim); letter-spacing: .02em;
  padding-bottom: 6px;
}
.datebar .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold-1); opacity: .7; }
.datebar .hijri { color: var(--gold-1); font-weight: 600; }

/* ---------- 8. Geri sayım ------------------------------------------------- */
.hero { display: grid; justify-items: center; padding: 8px 0 22px; }
.hero__ring { position: relative; width: min(76vw, 300px); aspect-ratio: 1; display: grid; place-items: center; }

.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring__track { fill: none; stroke: var(--surface-2); stroke-width: 5; }
.ring__prog {
  fill: none; stroke: url(#ringGrad); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 666; stroke-dashoffset: 666;
  filter: drop-shadow(0 0 10px rgba(233, 202, 129, .55));
  transition: stroke-dashoffset .9s var(--ease-out);
}

.hero__ring::before {
  content: ''; position: absolute; inset: 12%;
  border-radius: 50%; background: var(--surface);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.hero__ring::after {
  content: ''; position: absolute; inset: 12%; border-radius: 50%;
  background: conic-gradient(from 200deg, transparent 0 62%, var(--gold-soft) 78%, transparent 92%);
  animation: sweep 9s linear infinite; opacity: .8;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.hero__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 1px; text-align: center; }
.hero__label { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-mute); }
.hero__prayer {
  font-family: var(--f-display); font-size: 2.1rem; font-weight: 600;
  letter-spacing: .01em; color: var(--gold-2); line-height: 1.1; margin-top: 3px;
}
.hero__arabic { font-family: var(--f-ar); font-size: .92rem; color: var(--text-mute); margin-top: -2px; }
.hero__count {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(2.5rem, 12.5vw, 3.4rem); line-height: 1.05;
  letter-spacing: .015em; font-variant-numeric: tabular-nums;
  color: var(--text); margin-top: 6px;
}
.hero__at { font-size: .76rem; color: var(--text-dim); letter-spacing: .05em; }

.hero__now {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  color: var(--gold-1); font-size: .78rem; font-weight: 600; letter-spacing: .02em;
}

/* ---------- 9. Kartlar ---------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 18px 16px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
  animation: cardIn .6s var(--ease-out) both;
}
.view.is-active .card:nth-of-type(1) { animation-delay: .05s; }
.view.is-active .card:nth-of-type(2) { animation-delay: .13s; }
.view.is-active .card:nth-of-type(3) { animation-delay: .21s; }
.view.is-active .card:nth-of-type(4) { animation-delay: .29s; }
.view.is-active .card:nth-of-type(5) { animation-delay: .35s; }
.view.is-active .card:nth-of-type(6) { animation-delay: .4s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }

.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 14px;
}
.card__head h2 {
  font-family: var(--f-display); font-size: 1.22rem; font-weight: 600;
  letter-spacing: .015em; color: var(--text);
}
.badge {
  font-size: .64rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-1); border: 1px solid var(--gold-line);
}
.badge--live { background: rgba(86, 192, 143, .12); color: var(--green); border-color: rgba(86, 192, 143, .3); }

/* ---------- 10. Vakit listesi --------------------------------------------- */
.times { list-style: none; padding: 0; display: grid; gap: 3px; }
.time {
  position: relative; display: grid;
  grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 11px;
  padding: 11px 10px; border-radius: var(--r-sm);
  transition: background .3s var(--ease);
}
.time + .time::before {
  content: ''; position: absolute; top: 0; left: 55px; right: 10px;
  height: 1px; background: var(--line-soft);
}
.time__glyph {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 11px; background: var(--surface-2); color: var(--text-dim);
  transition: all .3s var(--ease);
}
.time__glyph svg { width: 19px; height: 19px; }
.time__name { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.time__name b { font-size: .97rem; font-weight: 600; letter-spacing: -.005em; }
.time__name small { font-family: var(--f-ar); font-size: .78rem; color: var(--text-mute); }
.time__clock {
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 500;
  font-variant-numeric: tabular-nums; letter-spacing: .01em; color: var(--text);
}
.time__actions { display: flex; gap: 5px; }
.time__btn {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 10px; color: var(--text-mute);
  border: 1px solid transparent; transition: all .22s var(--ease);
}
.time__btn:active { transform: scale(.88); }
.time__btn[data-mode='ezan'] { color: var(--gold-1); background: var(--gold-soft); }
.time__btn[data-mode='bildirim'] { color: var(--text-dim); background: var(--surface-2); }
.time__btn[data-mode='titresim'] { color: var(--text-dim); background: var(--surface-2); }
.time__btn.is-done { color: var(--green); background: rgba(86, 192, 143, .14); border-color: rgba(86, 192, 143, .28); }

.time.is-active {
  background: linear-gradient(100deg, var(--gold-soft), transparent 72%);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.time.is-active::after {
  content: ''; position: absolute; left: 0; top: 12%; bottom: 12%; width: 3px;
  border-radius: 3px; background: linear-gradient(var(--gold-2), var(--gold-3));
  box-shadow: 0 0 12px rgba(233, 202, 129, .7);
}
.time.is-active .time__glyph {
  background: linear-gradient(145deg, var(--gold-2), var(--gold-3));
  color: #0A1226; box-shadow: 0 6px 18px -8px rgba(233, 202, 129, .9);
}
.time.is-active .time__clock { color: var(--gold-2); }
.time.is-past { opacity: .48; }
.time.is-next .time__clock { color: var(--gold-1); }

/* ---------- 11. Namaz takibi ---------------------------------------------- */
.streak {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .74rem; color: var(--gold-1); font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
}
.track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.track__item {
  display: grid; justify-items: center; gap: 6px;
  padding: 11px 4px 9px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid transparent;
  transition: all .28s var(--ease);
}
.track__item:active { transform: scale(.94); }
.track__dot {
  width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line); color: transparent;
  transition: all .28s var(--ease);
}
.track__dot svg { width: 15px; height: 15px; }
.track__item.is-done { background: rgba(86, 192, 143, .12); border-color: rgba(86, 192, 143, .3); }
.track__item.is-done .track__dot {
  background: var(--green); border-color: var(--green); color: #06210F;
  box-shadow: 0 0 16px -4px var(--green);
}
.track__item span { font-size: .68rem; color: var(--text-dim); font-weight: 600; }
.track__item.is-done span { color: var(--green); }

.track__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft);
}
.stat { display: grid; justify-items: center; gap: 2px; text-align: center; }
.stat b {
  font-family: var(--f-display); font-size: 1.35rem; font-weight: 600;
  color: var(--gold-1); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat span { font-size: .66rem; color: var(--text-mute); letter-spacing: .05em; text-transform: uppercase; }

.spark { display: flex; align-items: flex-end; gap: 3px; height: 44px; margin-top: 14px; }
.spark i {
  flex: 1; border-radius: 3px 3px 2px 2px; min-height: 3px;
  background: linear-gradient(var(--gold-1), var(--gold-3));
  opacity: .28; transition: opacity .3s, height .5s var(--ease-out);
}
.spark i.is-full { opacity: 1; }
.spark i.is-part { opacity: .6; }

/* ---------- 12. İmsakiye -------------------------------------------------- */
.monthnav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.monthnav__label { text-align: center; display: grid; gap: 1px; }
.monthnav__label strong { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; letter-spacing: .02em; }
.monthnav__label small { font-size: .7rem; color: var(--gold-1); letter-spacing: .04em; }
.monthnav__tools { display: flex; gap: 8px; justify-content: center; margin: 12px 0 4px; }

.tablewrap { overflow-x: auto; margin: 6px -6px 0; padding: 0 6px; -webkit-overflow-scrolling: touch; }
.imsakiye { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.imsakiye th {
  font-size: .62rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 700; text-align: center;
  padding: 8px 4px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg-1);
}
html[data-theme='light'] .imsakiye th { background: var(--bg-1); }
.imsakiye td {
  text-align: center; padding: 9px 3px; font-size: .82rem;
  border-bottom: 1px solid var(--line-soft); color: var(--text-dim);
}
.imsakiye td:first-child { color: var(--text); font-weight: 600; text-align: left; padding-left: 6px; white-space: nowrap; }
.imsakiye td small { display: block; font-size: .6rem; color: var(--text-mute); font-weight: 500; }
.imsakiye tr.is-today td { background: var(--gold-soft); color: var(--gold-2); font-weight: 700; }
.imsakiye tr.is-today td:first-child { box-shadow: inset 3px 0 0 var(--gold-1); border-radius: 4px 0 0 4px; }
.imsakiye tr.is-friday td:first-child { color: var(--gold-1); }

.hint { font-size: .74rem; color: var(--text-mute); line-height: 1.55; margin-top: 6px; }

/* ---------- 13. Kıble ----------------------------------------------------- */
.card--compass { padding-top: 22px; }
.compass {
  position: relative; width: min(82vw, 330px); aspect-ratio: 1;
  margin: 0 auto 18px; display: grid; place-items: center; touch-action: none;
}
.compass__dial { position: absolute; inset: 0; transition: transform .16s linear; }
.dial { width: 100%; height: 100%; overflow: visible; }
.dial__bg { fill: var(--surface-2); stroke: var(--line-soft); stroke-width: 1; }
.dial__ring { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; }
.dial__tick { stroke: var(--text-mute); stroke-width: 1.4; }
.dial__tick--major { stroke: var(--gold-1); stroke-width: 2; }
.dial__dir {
  font-family: var(--f-body); font-size: 15px; font-weight: 700;
  fill: var(--text-dim); text-anchor: middle;
}
.dial__dir--n { fill: var(--gold-1); }

.compass__needle {
  position: absolute; width: 60px; height: 100%;
  display: grid; place-items: center;
  transition: transform .16s linear;
  filter: drop-shadow(0 0 14px rgba(233, 202, 129, .5));
}
.compass__needle svg { height: 100%; width: auto; }
.compass__center {
  position: absolute; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-2);
  background: radial-gradient(circle at 35% 30%, var(--bg-2), var(--bg-0));
  border: 1px solid var(--gold-line); box-shadow: 0 6px 22px -8px #000, var(--glow);
}
.compass__hit { position: absolute; inset: 0; border-radius: 50%; }
.compass.is-aligned .compass__center { box-shadow: 0 0 0 3px rgba(86, 192, 143, .35), 0 0 34px -6px var(--green); }
.compass.is-aligned .compass__needle { filter: drop-shadow(0 0 18px rgba(86, 192, 143, .75)); }

.qibla__readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.qibla__status {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: .76rem; color: var(--text-dim); text-align: center;
  padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--surface-2); margin-bottom: 12px;
}
.qibla__status.is-warn { color: var(--gold-1); background: var(--gold-soft); }
.qibla__status.is-ok { color: var(--green); background: rgba(86, 192, 143, .12); }

.manual { margin-top: 14px; display: grid; gap: 8px; }
.manual label { font-size: .76rem; color: var(--text-dim); }
.manual output { font-family: var(--f-display); font-size: 1.2rem; color: var(--gold-1); text-align: center; }

.mapwrap { position: relative; border-radius: var(--r-md); overflow: hidden; height: 230px; background: var(--surface-2); }
.map { position: absolute; inset: 0; }
.map__fallback {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  color: var(--text-mute); text-align: center; padding: 20px; font-size: .82rem;
}

/* ---------- 14. Tesbih ---------------------------------------------------- */
.card--tesbih { text-align: center; }
.zikir { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 10px; margin: 0 -16px 4px; padding-inline: 16px; scrollbar-width: none; }
.zikir::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: var(--surface-2); color: var(--text-dim); border: 1px solid transparent;
  transition: all .24s var(--ease); white-space: nowrap;
}
.chip:active { transform: scale(.94); }
.chip.is-active {
  background: linear-gradient(140deg, var(--gold-2), var(--gold-3));
  color: #0A1226; border-color: transparent; font-weight: 700;
  box-shadow: 0 8px 22px -12px var(--gold-1);
}

.zikir__display { margin: 14px 0 6px; display: grid; gap: 4px; }
.zikir__ar { font-family: var(--f-ar); font-size: 1.9rem; color: var(--gold-2); line-height: 1.7; direction: rtl; }
.zikir__tr { font-family: var(--f-display); font-size: 1.28rem; font-weight: 600; letter-spacing: .01em; }
.zikir__mean { font-size: .74rem; color: var(--text-mute); }

.counter {
  position: relative; width: min(66vw, 250px); aspect-ratio: 1;
  margin: 12px auto 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .12s var(--ease);
}
.counter:active { transform: scale(.965); }
.counter.is-pulse { animation: pulse .5s var(--ease-out); }
@keyframes pulse {
  40% { box-shadow: 0 0 0 14px rgba(233, 202, 129, .16), var(--glow); }
  100% { box-shadow: 0 0 0 0 transparent, var(--glow); }
}
.counter__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.counter__track { fill: none; stroke: var(--surface-2); stroke-width: 6; }
.counter__prog {
  fill: none; stroke: url(#ringGrad); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 654; stroke-dashoffset: 654;
  filter: drop-shadow(0 0 8px rgba(233, 202, 129, .55));
  transition: stroke-dashoffset .35s var(--ease-out);
}
.counter__num {
  font-family: var(--f-display); font-size: clamp(3.2rem, 17vw, 4.6rem); font-weight: 300;
  line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums;
  margin-top: 6px;
}
.counter__target {
  font-size: .82rem; color: var(--text-dim); margin-top: 4px;
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.counter__hint {
  margin-top: 14px; font-size: .58rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--text-mute);
}

.targets { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; margin-bottom: 4px; }

/* ---------- 15. Form öğeleri ---------------------------------------------- */
.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field:last-child { margin-bottom: 0; }
.field > label {
  font-size: .74rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-mute);
  display: flex; justify-content: space-between; align-items: center;
}
.field > label output { text-transform: none; letter-spacing: 0; color: var(--gold-1); font-weight: 700; }

select, input[type='number'], input[type='search'], input[type='text'] {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line-soft);
  color: var(--text); font-size: .92rem; outline: none;
  transition: border-color .2s, background .2s;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23988' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px;
}
select:focus, input:focus { border-color: var(--gold-line); background: var(--surface-3); }
select option { background: var(--bg-1); color: var(--text); }

input[type='range'] {
  width: 100%; height: 32px; background: transparent; appearance: none; cursor: pointer;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-1) var(--pct, 50%), var(--surface-3) var(--pct, 50%));
}
input[type='range']::-webkit-slider-thumb {
  appearance: none; width: 20px; height: 20px; border-radius: 50%; margin-top: -7.5px;
  background: linear-gradient(150deg, var(--gold-2), var(--gold-3));
  border: 2px solid var(--bg-0); box-shadow: 0 3px 10px -3px rgba(0, 0, 0, .8);
}
input[type='range']::-moz-range-track { height: 5px; border-radius: 3px; background: var(--surface-3); }
input[type='range']::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--bg-0);
  background: var(--gold-1);
}

.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
  padding: 4px; border-radius: var(--r-sm); background: var(--surface-2);
}
.segmented button {
  padding: 9px 6px; border-radius: 10px; font-size: .84rem; font-weight: 600;
  color: var(--text-dim); transition: all .24s var(--ease);
  display: grid; justify-items: center; gap: 1px; line-height: 1.15;
}
.segmented button small { font-size: .6rem; opacity: .6; font-weight: 500; }
.segmented button.is-active {
  background: linear-gradient(140deg, var(--gold-2), var(--gold-3));
  color: #0A1226; box-shadow: 0 6px 16px -10px var(--gold-1);
}
.segmented--tight button { font-size: .78rem; padding: 8px 2px; }

.switchrow {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-top: 1px solid var(--line-soft); cursor: pointer;
}
.switchrow span { display: grid; gap: 2px; }
.switchrow b { font-size: .9rem; font-weight: 600; }
.switchrow small { font-size: .72rem; color: var(--text-mute); line-height: 1.4; }
.switch {
  appearance: none; width: 48px; height: 28px; flex: none; border-radius: 999px;
  background: var(--surface-3); position: relative; cursor: pointer;
  transition: background .28s var(--ease);
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--text-dim); transition: all .28s var(--ease);
}
.switch:checked { background: linear-gradient(140deg, var(--gold-2), var(--gold-3)); }
.switch:checked::after { left: 23px; background: #0A1226; }

.listrow {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 13px 0; border-top: 1px solid var(--line-soft);
  color: var(--text); transition: opacity .2s;
}
.card > .listrow:first-of-type, .card__head + .listrow { border-top: 0; padding-top: 4px; }
.listrow:active { opacity: .6; }
.listrow > .ic { color: var(--gold-1); }
.listrow__main { flex: 1; display: grid; gap: 2px; min-width: 0; }
.listrow__main b { font-size: .92rem; font-weight: 600; }
.listrow__main small { font-size: .72rem; color: var(--text-mute); }
.listrow > .ic--sm { color: var(--text-mute); }
.listrow--file { cursor: pointer; }

.about { font-size: .72rem; color: var(--text-mute); line-height: 1.6; margin-top: 14px; text-align: center; }

/* Bildirim ızgarası */
.notifgrid { display: grid; gap: 8px; margin: 14px 0 4px; }
.notifrow {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px;
  padding: 8px 0; border-top: 1px solid var(--line-soft);
}
.notifrow:first-child { border-top: 0; }
.notifrow > b { font-size: .88rem; font-weight: 600; }
.notifrow .modes { display: flex; gap: 4px; }
.notifrow .modes button {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: var(--surface-2); color: var(--text-mute);
  border: 1px solid transparent; transition: all .22s var(--ease);
}
.notifrow .modes button.is-active {
  background: linear-gradient(140deg, var(--gold-2), var(--gold-3)); color: #0A1226;
  box-shadow: 0 5px 14px -9px var(--gold-1);
}
.notifrow .modes button:active { transform: scale(.9); }

/* ---------- 16. Butonlar -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 700; letter-spacing: .01em;
  transition: transform .2s var(--ease), filter .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn--gold {
  background: linear-gradient(140deg, var(--gold-2), var(--gold-3));
  color: #0A1226; box-shadow: 0 12px 28px -16px var(--gold-1);
}
.btn--gold:hover { filter: brightness(1.06); }
.btn--ghost { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--line-soft); }
.btn--ghost:hover { color: var(--gold-1); border-color: var(--gold-line); }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 14px; font-size: .8rem; border-radius: 11px; }
.row { display: flex; gap: 8px; margin-top: 12px; align-items: start; }
.row--split > * { flex: 1; }

/* ---------- 17. Alt sekme ------------------------------------------------- */
.tabbar {
  position: fixed; z-index: 60;
  left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(calc(var(--shell) - 26px), calc(100vw - 26px));
  height: var(--tabh);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--bg-1) 82%, transparent);
  border: 1px solid var(--line); border-radius: 22px;
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 22px 50px -22px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.tab {
  display: grid; place-items: center; gap: 3px; position: relative; z-index: 2;
  color: var(--text-mute); transition: color .28s var(--ease); padding-top: 3px;
}
.tab span { font-size: .62rem; font-weight: 600; letter-spacing: .02em; }
.tab .ic { transition: transform .34s var(--ease); }
.tab.is-active { color: var(--gold-1); }
.tab.is-active .ic { transform: translateY(-2px) scale(1.08); }
.tabbar__ind {
  position: absolute; z-index: 1; top: 7px; height: calc(100% - 14px);
  width: calc(20% - 8px); border-radius: 16px;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  transition: transform .42s var(--ease); pointer-events: none;
}

/* ---------- 18. Alt panel (konum) ----------------------------------------- */
.sheet { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet__backdrop {
  position: absolute; inset: 0; background: rgba(3, 7, 16, .6);
  backdrop-filter: blur(6px); animation: fade .3s both;
}
@keyframes fade { from { opacity: 0; } }
.sheet__panel {
  position: relative; width: 100%; max-width: var(--shell); margin-inline: auto;
  max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 10px clamp(14px, 4vw, 20px) calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .9);
  animation: sheetUp .42s var(--ease-out) both;
}
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet__grip { width: 42px; height: 4px; border-radius: 3px; background: var(--surface-3); margin: 0 auto 12px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet__head h2 { font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; }

.search { position: relative; display: flex; align-items: center; margin: 14px 0 10px; }
.search > .ic { position: absolute; left: 13px; color: var(--text-mute); pointer-events: none; }
.search input { padding-left: 40px; padding-right: 40px; }
.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search .iconbtn { position: absolute; right: 6px; background: none; border: 0; }

.cityresults { display: grid; gap: 2px; max-height: 46dvh; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.cityitem {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: var(--r-sm); transition: background .2s;
}
.cityitem:hover, .cityitem:active { background: var(--surface-2); }
.cityitem.is-current { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); }
.cityitem__ic { color: var(--gold-1); opacity: .8; }
.cityitem__main { flex: 1; display: grid; gap: 1px; min-width: 0; }
.cityitem__main b { font-size: .92rem; font-weight: 600; }
.cityitem__main small { font-size: .72rem; color: var(--text-mute); }
.cityitem__tag {
  font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: var(--text-mute); padding: 3px 7px; border-radius: 999px; background: var(--surface-2);
}
.cityresults .empty { padding: 22px 10px; text-align: center; color: var(--text-mute); font-size: .84rem; }

/* ---------- 19. Ezan bandı & toast ---------------------------------------- */
.adhanbar {
  position: fixed; z-index: 130; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabh) + 22px + env(safe-area-inset-bottom));
  width: min(calc(var(--shell) - 26px), calc(100vw - 26px));
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 18px;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  border: 1px solid var(--gold-line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 40px -20px #000, var(--glow);
  animation: sheetUp .4s var(--ease-out) both;
}
.adhanbar[hidden] { display: none; }
.adhanbar__wave { display: flex; align-items: flex-end; gap: 2.5px; height: 24px; }
.adhanbar__wave i {
  width: 3px; border-radius: 2px; background: linear-gradient(var(--gold-2), var(--gold-3));
  animation: wave 1.05s ease-in-out infinite;
}
.adhanbar__wave i:nth-child(1) { height: 40%; animation-delay: 0s; }
.adhanbar__wave i:nth-child(2) { height: 75%; animation-delay: .13s; }
.adhanbar__wave i:nth-child(3) { height: 100%; animation-delay: .26s; }
.adhanbar__wave i:nth-child(4) { height: 65%; animation-delay: .39s; }
.adhanbar__wave i:nth-child(5) { height: 45%; animation-delay: .52s; }
@keyframes wave { 50% { transform: scaleY(.35); } }
.adhanbar__text { flex: 1; display: grid; gap: 1px; min-width: 0; }
.adhanbar__text b { font-size: .86rem; color: var(--gold-2); }
.adhanbar__text small { font-size: .72rem; color: var(--text-mute); }

.toast {
  position: fixed; z-index: 150; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabh) + 26px + env(safe-area-inset-bottom));
  max-width: min(400px, calc(100vw - 40px));
  padding: 12px 18px; border-radius: 14px; font-size: .84rem; font-weight: 600;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  border: 1px solid var(--line); color: var(--text);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px -18px #000;
  animation: toastIn .34s var(--ease-out) both; text-align: center;
}
.toast[hidden] { display: none; }
.toast.is-err { border-color: rgba(226, 114, 91, .45); color: var(--red); }
.toast.is-ok { border-color: rgba(86, 192, 143, .45); color: var(--green); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- 20. Erişilebilirlik & yazdırma -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

@media print {
  .ambient, .topbar, .tabbar, .monthnav__tools, .hint, .sheet, .adhanbar, .toast, .splash { display: none !important; }
  body { background: #fff; color: #000; }
  .app { max-width: none; padding: 0; }
  .view { display: none !important; }
  .view#view-takvim { display: block !important; }
  .card { background: none; border: 0; box-shadow: none; padding: 0; backdrop-filter: none; }
  .imsakiye th { color: #333; background: #fff; border-bottom: 1.5px solid #999; }
  .imsakiye td { color: #111; border-bottom: 1px solid #ddd; }
  .imsakiye tr.is-today td { background: #f4ecd8; color: #000; }
  .monthnav__label strong { font-size: 18pt; }
}

@media (min-width: 560px) {
  .hero__ring { width: 300px; }
  .compass { width: 340px; }
}

/* ==========================================================================
   21. AŞAMA 2 — Kur'an, Ramazan, Esmâ, Dua, Kaza, Rozet, Zekât
   ========================================================================== */

/* ---------- Sekmeli paneller --------------------------------------------- */
.segmented--top { margin-bottom: 14px; }
.pane { display: none; animation: viewIn .34s var(--ease-out) both; }
.pane.is-active { display: block; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chips--scroll::-webkit-scrollbar { display: none; }

/* ---------- Alt sayfalar -------------------------------------------------- */
.subpage {
  position: fixed; inset: 0; z-index: 110;
  display: flex; flex-direction: column;
  background: var(--bg-0);
  animation: subIn .34s var(--ease-out) both;
}
.subpage.is-closing { animation: subOut .26s var(--ease) both; }
@keyframes subIn { from { opacity: .4; transform: translateX(22px); } }
@keyframes subOut { to { opacity: 0; transform: translateX(22px); } }

.subhead {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: max(12px, env(safe-area-inset-top)) clamp(14px, 4vw, 20px) 12px;
  background: color-mix(in srgb, var(--bg-1) 86%, transparent);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.subhead h2 {
  flex: 1; font-family: var(--f-display); font-size: 1.28rem; font-weight: 600;
  letter-spacing: .015em; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.subhead__spacer { width: 42px; flex: none; }

.subbody {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px clamp(14px, 4vw, 20px) calc(40px + env(safe-area-inset-bottom));
  max-width: var(--shell); width: 100%; margin-inline: auto;
}

/* ---------- Kerahat rozeti ------------------------------------------------ */
.kerahat {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 9px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(226, 114, 91, .13); border: 1px solid rgba(226, 114, 91, .32);
  color: var(--red); font-size: .76rem; font-weight: 600;
  animation: fadeUp .4s var(--ease-out) both;
}

/* ---------- Nafile / kerahat listesi -------------------------------------- */
.expander {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; margin-top: 10px; padding: 9px;
  border-radius: var(--r-sm); background: var(--surface-2);
  color: var(--text-dim); font-size: .78rem; font-weight: 600;
  transition: color .2s;
}
.expander:hover { color: var(--gold-1); }
.expander .ic { transition: transform .3s var(--ease); }
.expander.is-open .ic { transform: rotate(180deg); }

.extras { margin-top: 10px; display: grid; gap: 4px; animation: viewIn .3s var(--ease-out) both; }
.xrow {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 9px 11px; border-radius: var(--r-sm); background: var(--surface-2);
}
.xrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-1); }
.xrow--kerahat .xrow__dot { background: var(--red); }
.xrow--now { box-shadow: inset 0 0 0 1px var(--gold-line); background: var(--gold-soft); }
.xrow__main { display: grid; gap: 1px; min-width: 0; }
.xrow__main b { font-size: .86rem; font-weight: 600; }
.xrow__main small { font-size: .69rem; color: var(--text-mute); }
.xrow__time {
  font-family: var(--f-display); font-size: .98rem; font-variant-numeric: tabular-nums;
  color: var(--text-dim); white-space: nowrap;
}

/* ---------- Ramazan ------------------------------------------------------- */
.card--ramazan {
  background: linear-gradient(150deg, rgba(233, 202, 129, .10), var(--surface) 55%);
  border-color: var(--gold-line);
}
.card--ramazan .card__head h2 { display: flex; align-items: center; gap: 8px; }
.card--ramazan .card__head .ic { color: var(--gold-1); }
.iftar { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.iftar__main { display: grid; gap: 1px; }
.iftar__label { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); }
.iftar__count {
  font-family: var(--f-display); font-size: 2.1rem; font-weight: 400; line-height: 1.1;
  color: var(--gold-2); font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.iftar__main small { font-size: .74rem; color: var(--text-dim); }
.orucbtn {
  display: grid; justify-items: center; gap: 5px; padding: 12px 14px;
  border-radius: var(--r-sm); background: var(--surface-2);
  border: 1px solid var(--line-soft); color: var(--text-dim);
  font-size: .7rem; font-weight: 600; transition: all .26s var(--ease);
}
.orucbtn:active { transform: scale(.94); }
.orucbtn.is-done {
  background: rgba(86, 192, 143, .14); border-color: rgba(86, 192, 143, .34); color: var(--green);
}

/* ---------- Günün âyeti / hadisi ------------------------------------------ */
.card--ayet .card__head { margin-bottom: 10px; }
.ayet { display: grid; gap: 10px; }
.ayet__ar {
  font-family: var(--f-ar); font-size: 1.35rem; line-height: 2.1; direction: rtl;
  color: var(--gold-2); text-align: right;
}
.ayet__meal { font-size: .9rem; line-height: 1.65; color: var(--text-dim); }
.ayet__ref { font-size: .72rem; color: var(--gold-1); font-weight: 700; letter-spacing: .03em; }

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%; border-radius: 6px; min-height: 1em;
  animation: shimmer 1.4s linear infinite; color: transparent !important;
}
@keyframes shimmer { to { background-position: -135% 0; } }

.hadis { display: grid; gap: 9px; padding-left: 14px; border-left: 2px solid var(--gold-line); }
.hadis p { font-size: .94rem; line-height: 1.65; font-style: italic; }
.hadis cite { font-size: .72rem; color: var(--gold-1); font-style: normal; font-weight: 700; letter-spacing: .03em; }

/* ---------- Dinî günler --------------------------------------------------- */
.card--event .event { display: grid; gap: 10px; }
.event__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.event__name { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; color: var(--gold-2); }
.event__left {
  font-size: .74rem; font-weight: 700; color: var(--gold-1);
  padding: 5px 11px; border-radius: 999px; background: var(--gold-soft);
  border: 1px solid var(--gold-line); white-space: nowrap;
}
.event__meta { font-size: .8rem; color: var(--text-dim); }
.event__desc { font-size: .76rem; color: var(--text-mute); }

.events { display: grid; gap: 3px; }
.eventrow {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center;
  padding: 11px 8px; border-radius: var(--r-sm); transition: background .2s;
}
.eventrow + .eventrow { border-top: 1px solid var(--line-soft); }
.eventrow.is-next { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); }
.eventrow__date {
  display: grid; justify-items: center; gap: 0; padding: 7px 4px;
  border-radius: 12px; background: var(--surface-2);
}
.eventrow__date b { font-family: var(--f-display); font-size: 1.25rem; line-height: 1; color: var(--gold-1); }
.eventrow__date small { font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mute); }
.eventrow__main { display: grid; gap: 2px; min-width: 0; }
.eventrow__main b { font-size: .92rem; font-weight: 600; }
.eventrow__main small { font-size: .71rem; color: var(--text-mute); }
.eventrow__left { font-size: .7rem; color: var(--text-dim); white-space: nowrap; font-weight: 600; }

/* ---------- Hicri takvim -------------------------------------------------- */
.hcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.hcal__hd {
  text-align: center; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-mute); font-weight: 700; padding-bottom: 4px;
}
.hcell {
  aspect-ratio: 1; display: grid; place-items: center; gap: 0;
  border-radius: 11px; background: var(--surface-2); position: relative;
  font-variant-numeric: tabular-nums;
}
.hcell b { font-size: .92rem; font-weight: 600; line-height: 1; }
.hcell small { font-size: .58rem; color: var(--text-mute); line-height: 1.2; }
.hcell.is-empty { background: none; }
.hcell.is-today { background: linear-gradient(140deg, var(--gold-2), var(--gold-3)); color: #0A1226; }
.hcell.is-today small { color: rgba(10, 18, 38, .7); }
.hcell.is-friday b { color: var(--gold-1); }
.hcell.is-today.is-friday b { color: #0A1226; }
.hcell.has-event::after {
  content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--green);
}
.hcal__legend {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 14px; font-size: .68rem; color: var(--text-mute);
}
.hcal__legend span { display: inline-flex; align-items: center; gap: 5px; }
.dotmark { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dotmark--today { background: var(--gold-1); }
.dotmark--event { background: var(--green); }
.dotmark--friday { background: var(--gold-3); }

/* ---------- Esmâü'l-Hüsnâ ------------------------------------------------- */
.card--esma { text-align: center; }
.esma__hero { display: grid; gap: 6px; padding: 10px 0 18px; }
.esma__no {
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-mute);
}
.esma__ar {
  font-family: var(--f-ar); font-size: clamp(2.4rem, 13vw, 3.4rem); line-height: 1.6;
  color: var(--gold-2); direction: rtl;
  text-shadow: 0 0 34px rgba(233, 202, 129, .25);
}
.esma__tr { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; letter-spacing: .01em; }
.esma__mean { font-size: .86rem; color: var(--text-dim); line-height: 1.55; max-width: 34ch; margin-inline: auto; }

.esmagrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 7px; }
.esmacell {
  display: grid; gap: 2px; padding: 10px 6px; border-radius: var(--r-sm);
  background: var(--surface-2); text-align: center; transition: all .22s var(--ease);
}
.esmacell:active { transform: scale(.94); }
.esmacell.is-active { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); }
.esmacell b { font-family: var(--f-ar); font-size: 1.15rem; color: var(--gold-1); line-height: 1.6; }
.esmacell small { font-size: .66rem; color: var(--text-dim); font-weight: 600; }
.esmacell i { font-size: .56rem; color: var(--text-mute); font-style: normal; }

/* ---------- Dualar -------------------------------------------------------- */
.dualist { display: grid; gap: 3px; }
.duaitem { border-radius: var(--r-sm); overflow: hidden; }
.duaitem + .duaitem { border-top: 1px solid var(--line-soft); }
.duahead {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 13px 10px; color: var(--text);
}
.duahead b { flex: 1; font-size: .92rem; font-weight: 600; }
.duahead .ic { color: var(--text-mute); transition: transform .3s var(--ease); }
.duaitem.is-open .duahead { color: var(--gold-1); }
.duaitem.is-open .duahead .ic { transform: rotate(90deg); color: var(--gold-1); }
.duabody {
  display: grid; gap: 11px; padding: 4px 10px 16px;
  animation: viewIn .3s var(--ease-out) both;
}
.duabody .ar {
  font-family: var(--f-ar); font-size: 1.3rem; line-height: 2.1; direction: rtl;
  color: var(--gold-2); text-align: right;
}
.duabody .ok { font-size: .88rem; line-height: 1.6; color: var(--text); font-style: italic; }
.duabody .mean { font-size: .85rem; line-height: 1.6; color: var(--text-dim); }
.duabody .src { font-size: .7rem; color: var(--gold-1); font-weight: 700; letter-spacing: .03em; }

/* ---------- Kur'an -------------------------------------------------------- */
.search--flat { margin: 0 0 10px; }
.search--flat input { background: var(--surface-2); }

.card--resume {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: linear-gradient(140deg, rgba(233, 202, 129, .12), var(--surface) 60%);
  border-color: var(--gold-line);
}
.card--resume .listrow__main small { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.card--resume .listrow__main b { font-family: var(--f-display); font-size: 1.2rem; color: var(--gold-2); }
.card--resume .ic { color: var(--gold-1); }

.surelist { display: grid; gap: 2px; max-height: none; }
.surerow {
  display: grid; grid-template-columns: 38px 1fr auto auto; gap: 11px; align-items: center;
  width: 100%; text-align: left; padding: 11px 8px; border-radius: var(--r-sm);
  transition: background .2s;
}
.surerow + .surerow { border-top: 1px solid var(--line-soft); }
.surerow:active { background: var(--surface-2); }
.surerow__no {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 11px; background: var(--surface-2);
  font-size: .78rem; font-weight: 700; color: var(--gold-1); font-variant-numeric: tabular-nums;
}
.surerow__main { display: grid; gap: 1px; min-width: 0; }
.surerow__main b { font-size: .93rem; font-weight: 600; }
.surerow__main small { font-size: .69rem; color: var(--text-mute); }
.surerow__ar { font-family: var(--f-ar); font-size: 1.15rem; color: var(--gold-1); }
.surerow__dl { width: 18px; height: 18px; color: var(--green); }
.surerow__dl[hidden] { display: none; }

.sure__head {
  text-align: center; display: grid; gap: 6px; padding: 8px 0 20px;
  border-bottom: 1px solid var(--line-soft); margin-bottom: 16px;
}
.sure__head .ar { font-family: var(--f-ar); font-size: 2.3rem; color: var(--gold-2); }
.sure__head .meta { font-size: .74rem; color: var(--text-mute); letter-spacing: .04em; }
.besmele {
  font-family: var(--f-ar); font-size: 1.5rem; color: var(--gold-1);
  text-align: center; padding: 14px 0 4px; direction: rtl;
}

.ayetler { display: grid; gap: 4px; }
.ayetrow {
  display: grid; gap: 9px; padding: 15px 12px; border-radius: var(--r-md);
  transition: background .3s var(--ease);
}
.ayetrow + .ayetrow { border-top: 1px solid var(--line-soft); }
.ayetrow.is-playing { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); }
.ayetrow__top { display: flex; align-items: center; gap: 8px; }
.ayetrow__no {
  min-width: 30px; height: 26px; padding: 0 8px; display: grid; place-items: center;
  border-radius: 999px; background: var(--surface-2);
  font-size: .7rem; font-weight: 700; color: var(--gold-1); font-variant-numeric: tabular-nums;
}
.ayetrow__tools { margin-left: auto; display: flex; gap: 4px; }
.ayetrow__tools button {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px;
  color: var(--text-mute); transition: all .2s var(--ease);
}
.ayetrow__tools button:hover { color: var(--gold-1); background: var(--surface-2); }
.ayetrow .ar {
  font-family: var(--f-ar); direction: rtl; text-align: right; color: var(--text);
  font-size: calc(1.4rem * var(--qfs, 1)); line-height: 2.2;
}
.ayetrow .meal { font-size: .9rem; line-height: 1.68; color: var(--text-dim); }
.ayetrow.is-secde .ayetrow__no { background: rgba(86, 192, 143, .16); color: var(--green); }

.player {
  position: sticky; bottom: 0; z-index: 5; flex: none;
  display: flex; align-items: center; gap: 12px;
  margin: 0 auto; width: 100%; max-width: var(--shell);
  padding: 11px clamp(14px, 4vw, 20px) calc(11px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  border-top: 1px solid var(--gold-line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.player__text { flex: 1; display: grid; gap: 1px; min-width: 0; }
.player__text b { font-size: .88rem; color: var(--gold-2); }
.player__text small { font-size: .72rem; color: var(--text-mute); }

/* ---------- Oruç takvimi -------------------------------------------------- */
.orucgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 12px; }
.oruccell {
  aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 12px; background: var(--surface-2);
  font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums;
  border: 1px solid transparent; transition: all .24s var(--ease);
}
.oruccell:active { transform: scale(.92); }
.oruccell.is-done {
  background: rgba(86, 192, 143, .16); border-color: rgba(86, 192, 143, .34); color: var(--green);
}
.oruccell.is-today { box-shadow: 0 0 0 2px var(--gold-1); }
.oruccell.is-future { opacity: .42; }

/* ---------- Kaza ---------------------------------------------------------- */
.card--countdown { text-align: center; }
.bignum { display: grid; justify-items: center; gap: 2px; padding: 6px 0 14px; }
.bignum b {
  font-family: var(--f-display); font-size: clamp(3rem, 15vw, 4rem); font-weight: 300;
  line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums;
}
.bignum span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); }
.bignum--sm b { font-size: 2rem; }

.progress { height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-bottom: 14px; }
.progress i {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-1));
  transition: width .6s var(--ease-out);
}

.bigstat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }

.kazalist { display: grid; gap: 3px; }
.kazarow {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  padding: 11px 6px;
}
.kazarow + .kazarow { border-top: 1px solid var(--line-soft); }
.kazarow__main { display: grid; gap: 1px; }
.kazarow__main b { font-size: .92rem; font-weight: 600; }
.kazarow__main small { font-size: .7rem; color: var(--text-mute); }
.kazarow input {
  width: 84px; padding: 8px 10px; text-align: center;
  font-variant-numeric: tabular-nums; font-weight: 600;
}
.kazarow__btns { display: flex; gap: 4px; }
.kazarow__btns button {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: var(--surface-2); color: var(--text-dim); transition: all .2s var(--ease);
}
.kazarow__btns button:active { transform: scale(.9); }
.kazarow__btns .kil { background: var(--gold-soft); color: var(--gold-1); }

.row--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.row--3 .field { margin-bottom: 10px; }

/* ---------- Manuel dakika düzeltme ---------------------------------------- */
.offsets { display: grid; gap: 6px; }
.offrow {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  padding: 7px 0;
}
.offrow + .offrow { border-top: 1px solid var(--line-soft); }
.offrow b { font-size: .88rem; font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px;
  background: var(--surface-2); color: var(--text-dim); transition: all .2s var(--ease);
}
.stepper button:active { transform: scale(.9); }
.stepper output {
  min-width: 56px; text-align: center; font-variant-numeric: tabular-nums;
  font-weight: 700; font-size: .88rem; color: var(--gold-1);
}

/* ---------- Rozetler ------------------------------------------------------ */
.rozetgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 9px; }
.rozet {
  display: grid; justify-items: center; gap: 5px; padding: 15px 8px 12px;
  border-radius: var(--r-md); background: var(--surface-2); text-align: center;
  border: 1px solid transparent; position: relative; overflow: hidden;
}
.rozet__ic {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface-3); color: var(--text-mute);
  transition: all .3s var(--ease);
}
.rozet b { font-size: .78rem; font-weight: 700; }
.rozet small { font-size: .64rem; color: var(--text-mute); line-height: 1.35; }
.rozet__bar { width: 100%; height: 4px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 3px; }
.rozet__bar i { display: block; height: 100%; background: var(--gold-1); transition: width .5s var(--ease-out); }
.rozet.is-earned {
  background: linear-gradient(150deg, rgba(233, 202, 129, .14), var(--surface-2) 60%);
  border-color: var(--gold-line);
}
.rozet.is-earned .rozet__ic {
  background: linear-gradient(145deg, var(--gold-2), var(--gold-3)); color: #0A1226;
  box-shadow: 0 8px 20px -10px var(--gold-1);
}
.rozet.is-earned b { color: var(--gold-2); }

.rozetpop {
  position: fixed; inset: 0; z-index: 160; display: grid; place-items: center;
  background: rgba(3, 7, 16, .72); backdrop-filter: blur(8px);
  animation: fade .3s both; padding: 24px;
}
.rozetpop__card {
  display: grid; justify-items: center; gap: 10px; text-align: center;
  padding: 28px 26px; border-radius: var(--r-xl);
  background: var(--bg-1); border: 1px solid var(--gold-line);
  box-shadow: 0 30px 70px -30px #000, var(--glow);
  animation: markIn .5s var(--ease-out) both; max-width: 320px;
}
.rozetpop__ic {
  width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-2), var(--gold-3)); color: #0A1226;
  box-shadow: 0 12px 34px -12px var(--gold-1);
}
.rozetpop__card b { font-family: var(--f-display); font-size: 1.6rem; color: var(--gold-2); }
.rozetpop__card small { font-size: .82rem; color: var(--text-dim); }
.rozetpop__card .btn { margin-top: 6px; }

/* ---------- Zekât --------------------------------------------------------- */
.card--result {
  text-align: center;
  background: linear-gradient(150deg, rgba(233, 202, 129, .12), var(--surface) 58%);
  border-color: var(--gold-line);
}
.zres { display: grid; gap: 4px; }
.zres__label { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); }
.zres__amount {
  font-family: var(--f-display); font-size: clamp(2.2rem, 11vw, 3rem); font-weight: 400;
  color: var(--gold-2); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.zres__note { font-size: .8rem; color: var(--text-dim); line-height: 1.5; }
.zres__lines {
  display: grid; gap: 6px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line-soft); text-align: left;
}
.zline { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; }
.zline span { color: var(--text-mute); }
.zline b { font-variant-numeric: tabular-nums; font-weight: 600; }
.zline--total b { color: var(--gold-1); }

/* ---------- Elifbâ Cüzü --------------------------------------------------- */
.harfgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.harfcell {
  position: relative; display: grid; justify-items: center; gap: 2px;
  padding: 12px 6px 9px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid transparent;
  transition: all .24s var(--ease);
}
.harfcell:active { transform: scale(.94); }
.harfcell__ar {
  font-family: var(--f-ar); font-size: 2.1rem; line-height: 1.25; color: var(--gold-1);
}
.harfcell__ad { font-size: .72rem; font-weight: 600; color: var(--text-dim); }
.harfcell__no {
  position: absolute; top: 6px; left: 8px;
  font-size: .58rem; color: var(--text-mute); font-variant-numeric: tabular-nums;
}
.harfcell.is-learned {
  background: linear-gradient(150deg, rgba(86, 192, 143, .14), var(--surface-2) 62%);
  border-color: rgba(86, 192, 143, .30);
}
.harfcell.is-learned .harfcell__ad { color: var(--green); }
.harfcell.is-learned::after {
  content: ''; position: absolute; top: 7px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
}
.harfcell.is-thick .harfcell__ar { color: var(--gold-2); text-shadow: 0 0 18px rgba(233, 202, 129, .35); }

.harfdetay {
  display: grid; gap: 14px; padding: 18px 14px;
  border-radius: var(--r-md); background: var(--surface-2);
  margin-top: 12px; animation: viewIn .3s var(--ease-out) both;
}
.harfdetay__top { display: grid; justify-items: center; gap: 4px; text-align: center; }
.harfdetay__ar {
  font-family: var(--f-ar); font-size: clamp(3.4rem, 18vw, 4.6rem); line-height: 1.2;
  color: var(--gold-2); text-shadow: 0 0 40px rgba(233, 202, 129, .28);
}
.harfdetay__ad { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; }
.harfdetay__tag {
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-1); border: 1px solid var(--gold-line);
}
.harfdetay__mahrec { font-size: .84rem; color: var(--text-dim); line-height: 1.6; text-align: center; }

.formgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.formcell {
  display: grid; justify-items: center; gap: 4px; padding: 12px 4px 9px;
  border-radius: var(--r-sm); background: var(--surface);
  border: 1px solid var(--line-soft);
}
.formcell b { font-family: var(--f-ar); font-size: 1.9rem; line-height: 1.3; color: var(--text); }
.formcell small { font-size: .62rem; color: var(--text-mute); letter-spacing: .04em; }

.okugrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.okucell {
  display: grid; justify-items: center; gap: 3px; padding: 12px 4px 10px;
  border-radius: var(--r-sm); background: var(--surface);
  border: 1px solid var(--line-soft); transition: all .2s var(--ease);
}
.okucell:active { transform: scale(.94); }
.okucell b { font-family: var(--f-ar); font-size: 1.85rem; line-height: 1.4; color: var(--gold-1); }
.okucell small { font-size: .76rem; font-weight: 700; color: var(--text-dim); }
.okucell i { font-size: .58rem; color: var(--text-mute); font-style: normal; letter-spacing: .06em; }

.ekharf { display: grid; gap: 3px; }
.ekrow {
  display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center;
  padding: 11px 6px;
}
.ekrow + .ekrow { border-top: 1px solid var(--line-soft); }
.ekrow__ar {
  font-family: var(--f-ar); font-size: 2rem; text-align: center; color: var(--gold-1); line-height: 1.3;
}
.ekrow__main { display: grid; gap: 2px; }
.ekrow__main b { font-size: .92rem; font-weight: 600; }
.ekrow__main small { font-size: .74rem; color: var(--text-mute); line-height: 1.5; }

.harekeler { display: grid; gap: 8px; }
.harekerow {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 10px; border-radius: var(--r-sm); background: var(--surface-2);
}
.harekerow__ar {
  font-family: var(--f-ar); font-size: 2rem; text-align: center; color: var(--gold-2); line-height: 1.3;
}
.harekerow__main { display: grid; gap: 2px; min-width: 0; }
.harekerow__main b { font-size: .9rem; font-weight: 600; }
.harekerow__main small { font-size: .74rem; color: var(--text-mute); line-height: 1.5; }
.harekerow__oku {
  font-family: var(--f-display); font-size: 1.25rem; color: var(--gold-1); font-weight: 600;
}

.hecegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }

.kurallar { display: grid; gap: 3px; }
.kuralrow { display: grid; gap: 7px; padding: 14px 6px; }
.kuralrow + .kuralrow { border-top: 1px solid var(--line-soft); }
.kuralrow__top { display: flex; align-items: baseline; gap: 10px; }
.kuralrow__top b { font-size: .95rem; font-weight: 600; }
.kuralrow__isaret {
  font-family: var(--f-ar); font-size: 1.5rem; color: var(--gold-1);
  min-width: 46px; text-align: center;
}
.kuralrow__desc { font-size: .82rem; color: var(--text-dim); line-height: 1.6; }
.kuralrow__ornek {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px;
  border-radius: var(--r-sm); background: var(--surface-2);
}
.kuralrow__ornek b { font-family: var(--f-ar); font-size: 1.7rem; color: var(--gold-2); line-height: 1.5; }
.kuralrow__ornek small { font-size: .8rem; color: var(--text-dim); font-weight: 600; }

.kalinlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 7px; }
.kalincell {
  display: grid; justify-items: center; gap: 2px; padding: 11px 4px 8px;
  border-radius: var(--r-sm); background: var(--gold-soft); border: 1px solid var(--gold-line);
}
.kalincell b { font-family: var(--f-ar); font-size: 1.7rem; color: var(--gold-2); line-height: 1.3; }
.kalincell small { font-size: .66rem; color: var(--text-dim); font-weight: 600; }

.kelimeler { display: grid; gap: 3px; }
.kelimerow {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 12px 6px; transition: background .2s;
}
.kelimerow + .kelimerow { border-top: 1px solid var(--line-soft); }
.kelimerow:active { background: var(--surface-2); }
.kelimerow__main { display: grid; gap: 2px; }
.kelimerow__main b { font-size: .88rem; font-weight: 700; color: var(--gold-1); }
.kelimerow__main small { font-size: .74rem; color: var(--text-mute); }
.kelimerow__ar { font-family: var(--f-ar); font-size: 1.8rem; color: var(--text); line-height: 1.6; }

/* Alıştırma */
.card--quiz { text-align: center; }
.quiz__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line-soft);
}
.quiz__q { font-size: .78rem; color: var(--text-mute); letter-spacing: .06em; margin-top: 14px; }
.quiz__big {
  font-family: var(--f-ar); font-size: clamp(4rem, 22vw, 6rem); line-height: 1.5;
  color: var(--gold-2); text-shadow: 0 0 44px rgba(233, 202, 129, .3);
  margin: 4px 0 14px; min-height: 1.5em;
}
.quiz__opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.quizopt {
  padding: 14px 10px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line-soft);
  font-size: .95rem; font-weight: 600; transition: all .24s var(--ease);
}
.quizopt:active { transform: scale(.96); }
.quizopt.is-right {
  background: rgba(86, 192, 143, .16); border-color: rgba(86, 192, 143, .4); color: var(--green);
}
.quizopt.is-wrong {
  background: rgba(226, 114, 91, .14); border-color: rgba(226, 114, 91, .4); color: var(--red);
}
.quiz__fb {
  margin-top: 12px; font-size: .84rem; font-weight: 600;
  animation: fadeUp .3s var(--ease-out) both;
}
.quiz__fb.is-right { color: var(--green); }
.quiz__fb.is-wrong { color: var(--red); }

@media print {
  .subpage, .rozetpop { display: none !important; }
}
