/* Hafız Takip — mobil öncelikli stil. Renkler: koyu yeşil arayüz, altın süsleme, krem mushaf kâğıdı. */
:root {
    --g900: #0b2f23;
    --g800: #0f3d2e;
    --g700: #155039;
    --g600: #1d6a4c;
    --g100: #e4f0e9;
    --gold: #b8892d;
    --gold-d: #8a6420;
    --gold-l: #e8d5a6;
    --paper: #fcf7ea;
    --paper-2: #f5ebd0;
    --ink: #1d2621;
    --muted: #66746c;
    --bg: #f1efe8;
    --card: #ffffff;
    --line: #e3ded0;
    --ok: #1f8a5b;
    --ok-bg: rgba(31, 138, 91, .11);
    --part: #d99a2b;
    --danger: #b3261e;
    --radius: 14px;
    --sb-w: 320px;
    --top-h: 56px;
    --safe-t: env(safe-area-inset-top, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);
    --qsize: clamp(23px, 5.8vw, 31px);
    --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --quran: "Amiri Quran", "Amiri", "Scheherazade New", "Traditional Arabic", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 15px/1.5 var(--ui);
    color: var(--ink);
    background: var(--bg);
    -webkit-tap-highlight-color: transparent;
}
a { color: var(--g600); }
h1, h2 { margin: 0; line-height: 1.25; }
h2 { font-size: 17px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Genel iskelet ---------- */
.app { min-height: 100dvh; }
.main { min-width: 0; display: flex; flex-direction: column; min-height: 100dvh; }
.content { flex: 1; padding: 14px 12px calc(24px + var(--safe-b)); }

.topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 6px;
    min-height: calc(var(--top-h) + var(--safe-t));
    padding: var(--safe-t) 8px 0;
    background: var(--g800); color: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.topbar-title {
    flex: 1; min-width: 0;
    color: #fff; text-decoration: none; font-weight: 600; font-size: 16px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-actions { display: flex; align-items: center; gap: 2px; }
.icon-btn {
    display: inline-grid; place-items: center;
    width: 42px; height: 42px; border: 0; border-radius: 12px;
    background: transparent; color: inherit; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: rgba(255,255,255,.1); }
.net-badge { font-size: 12px; background: var(--part); color: #2b1d00; padding: 2px 8px; border-radius: 99px; margin-right: 4px; }

/* ---------- Sol menü ---------- */
.sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 50;
    width: min(88vw, var(--sb-w));
    display: flex; flex-direction: column;
    background: #fbfaf6; border-right: 1px solid var(--line);
    transform: translateX(-102%); transition: transform .25s ease;
    padding-top: var(--safe-t);
}
body.menu-open .sidebar { transform: none; box-shadow: 8px 0 30px rgba(0,0,0,.18); }
.scrim {
    position: fixed; inset: 0; z-index: 40; background: rgba(10,25,18,.45);
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
body.menu-open .scrim { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

.sb-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 6px 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--g800); font-weight: 700; font-size: 17px; }
.brand img { border-radius: 9px; }
.sb-close { color: var(--muted); }
.sb-progress { padding: 4px 14px 10px; font-size: 12.5px; color: var(--muted); }
.bar { height: 6px; background: #e7e3d6; border-radius: 99px; overflow: hidden; margin-bottom: 5px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--g600), var(--ok)); border-radius: inherit; transition: width .4s; }

.sb-tabs { display: flex; gap: 4px; margin: 0 12px 8px; padding: 3px; background: #ece8dc; border-radius: 11px; }
.sb-tabs button { flex: 1; border: 0; background: transparent; padding: 7px; border-radius: 8px; font: 600 13.5px var(--ui); color: var(--muted); cursor: pointer; }
.sb-tabs button.active { background: #fff; color: var(--g800); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.sb-search { padding: 0 12px 8px; }
.sb-search input {
    width: 100%; height: 40px; padding: 0 12px; font: 15px var(--ui);
    border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none;
}
.sb-search input:focus { border-color: var(--g600); box-shadow: 0 0 0 3px rgba(29,106,76,.15); }

.sb-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 12px; -webkit-overflow-scrolling: touch; }
.sb-empty { text-align: center; color: var(--muted); padding: 20px; }

.surah { border-radius: 11px; margin-bottom: 2px; }
.surah[open] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.surah summary {
    display: grid; grid-template-columns: 30px 1fr auto 30px; align-items: center; gap: 8px;
    padding: 8px 6px; cursor: pointer; list-style: none; border-radius: 11px;
}
.surah summary::-webkit-details-marker { display: none; }
.surah summary:hover { background: rgba(0,0,0,.035); }
.sn {
    display: grid; place-items: center; width: 30px; height: 30px;
    font-size: 12px; font-weight: 700; color: var(--g700);
    background: var(--g100); border-radius: 9px;
}
.surah.done .sn { background: var(--ok); color: #fff; }
.sname { min-width: 0; display: flex; flex-direction: column; }
.sname b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sname small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sar { font-family: "Amiri", var(--quran); font-size: 18px; color: var(--g700); white-space: nowrap; }
.ring {
    --p: 0;
    width: 28px; height: 28px; border-radius: 50%;
    background: conic-gradient(var(--ok) calc(var(--p) * 1%), #e6e2d5 0);
    display: grid; place-items: center;
}
.ring span {
    width: 21px; height: 21px; border-radius: 50%; background: #fbfaf6;
    display: grid; place-items: center; font-size: 9px; font-weight: 700; color: var(--g700);
}
.surah[open] .ring span { background: #fff; }

.pages { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 8px 12px 44px; }
.chip {
    display: inline-grid; place-items: center; min-width: 38px; height: 32px; padding: 0 6px;
    font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink);
    background: #f3f1ea; border: 1px solid #e2ddcd; border-radius: 9px;
}
.chip:hover { border-color: var(--g600); }
.chip.visited { background: #fff; border-color: #c9c2ac; box-shadow: inset 0 -3px 0 #c9c2ac; }
.chip.partial { background: #fff6e3; border-color: var(--part); color: #7a5208; box-shadow: inset 0 -3px 0 var(--part); }
.chip.full { background: var(--ok); border-color: var(--ok); color: #fff; }
.chip.current { outline: 2px solid var(--gold); outline-offset: 2px; }

.juz-row {
    display: grid; grid-template-columns: 30px 1fr 70px 38px; align-items: center; gap: 8px;
    padding: 8px 6px; text-decoration: none; color: var(--ink); border-radius: 11px;
}
.juz-row:hover { background: rgba(0,0,0,.035); }
.juz-row.current { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.juz-bar { height: 6px; background: #e7e3d6; border-radius: 99px; overflow: hidden; }
.juz-bar i { display: block; height: 100%; background: var(--ok); }
.juz-pct { font-size: 12px; color: var(--muted); text-align: right; }

.sb-legend { display: flex; gap: 12px; justify-content: center; padding: 8px 10px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.sb-legend span { display: flex; align-items: center; gap: 5px; }
.sb-legend .chip { min-width: 14px; width: 14px; height: 14px; padding: 0; border-radius: 4px; }

@media (min-width: 1024px) {
    .app { display: grid; grid-template-columns: var(--sb-w) 1fr; }
    .sidebar { position: sticky; top: 0; height: 100dvh; transform: none; width: auto; }
    .scrim, .menu-btn, .sb-close { display: none !important; }
    body.menu-open { overflow: auto; }
    .content { padding: 22px 28px 40px; }
    .topbar { padding-left: 20px; }
}

/* ---------- Kartlar, düğmeler, formlar ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head .muted { font-size: 13px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
    font: 600 15px var(--ui); text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--g700); color: #fff; }
.btn.primary:hover { background: var(--g800); }
.btn.ghost { background: #fff; color: var(--g700); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--g600); }
.btn.danger { background: #fff; color: var(--danger); border-color: #efc9c5; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.field small { font-weight: 400; color: var(--muted); }
.field input {
    height: 48px; padding: 0 14px; font: 16px var(--ui); color: var(--ink);
    border: 1px solid #d6d0bf; border-radius: 12px; background: #fff; outline: none;
}
.field input:focus { border-color: var(--g600); box-shadow: 0 0 0 3px rgba(29,106,76,.15); }
.field-error { color: var(--danger); font-weight: 500; font-size: 13px; }
.field-error:empty { display: none; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; user-select: none; }
.check input { width: 22px; height: 22px; accent-color: var(--g700); }

.alert { padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert.error { background: #fdecea; color: #7f1d17; }
.alert.error.validation-summary-valid { display: none; }
.alert.success { background: var(--g100); color: var(--g800); }
.alert.info { background: #f4efe1; color: #5b4a1e; }

/* ---------- Giriş / kayıt ---------- */
.auth-body {
    min-height: 100dvh;
    background:
        radial-gradient(circle at 20% 0%, rgba(184,137,45,.18), transparent 45%),
        linear-gradient(160deg, var(--g800), var(--g900));
}
.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: calc(20px + var(--safe-t)) 16px calc(20px + var(--safe-b)); }
.auth-card { width: 100%; max-width: 410px; background: #fff; border-radius: 20px; padding: 26px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.auth-brand { text-align: center; margin-bottom: 18px; }
.auth-brand img { border-radius: 16px; }
.auth-brand h1 { font-size: 24px; color: var(--g800); margin-top: 8px; }
.auth-ayah { font-family: var(--quran); font-size: 22px; line-height: 2; color: var(--g700); margin: 6px 0 0; }
.auth-ref { margin: 0; font-size: 12px; color: var(--gold-d); }
.auth-sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.auth-switch { text-align: center; margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Ana ekran ---------- */
.dash { display: grid; gap: 12px; max-width: 980px; margin: 0 auto; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(135deg, var(--g800), var(--g600)); color: #fff; border: 0; padding: 20px; }
.hero .muted { color: rgba(255,255,255,.78); margin: 6px 0 14px; }
.eyebrow { margin: 0 0 2px; color: var(--gold-l); font-size: 13px; }
.hero h1 { font-size: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .btn.primary { background: var(--gold); color: #1d1500; }
.hero .btn.primary:hover { background: #c9993a; }
.hero .btn.ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.big-ring {
    --p: 0; flex: none; width: 112px; height: 112px; border-radius: 50%;
    background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255,255,255,.18) 0);
    display: grid; place-items: center;
}
.big-ring > div { width: 90px; height: 90px; border-radius: 50%; background: var(--g700); display: grid; place-content: center; text-align: center; }
.big-ring b { font-size: 20px; }
.big-ring small { font-size: 11px; color: rgba(255,255,255,.7); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.stat-label { font-size: 12.5px; color: var(--muted); }
.stat-value { font-size: 26px; color: var(--g800); line-height: 1.1; }
.stat-value small { font-size: 14px; color: var(--muted); font-weight: 500; }
.stat-hint { font-size: 12px; color: var(--muted); }
.mini-bar { height: 5px; background: #ece8dc; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.mini-bar i { display: block; height: 100%; background: var(--ok); }

.next-ayah {
    display: block; text-decoration: none; color: var(--ink);
    font-family: var(--quran); font-size: 25px; line-height: 2.1; text-align: center;
    background: var(--paper); border: 1px solid var(--gold-l); border-radius: 12px; padding: 10px 14px;
}
.next-ayah .ae { color: var(--gold-d); }

.juz-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.juz-cell {
    --p: 0;
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
    aspect-ratio: 1; border-radius: 10px; text-decoration: none; color: var(--g800);
    background: linear-gradient(to top, var(--ok-bg) calc(var(--p) * 1%), #f5f3ec 0);
    border: 1px solid var(--line);
}
.juz-cell b { font-size: 15px; }
.juz-cell small { font-size: 10.5px; color: var(--muted); }
.juz-cell.done { background: var(--ok); color: #fff; border-color: var(--ok); }
.juz-cell.done small { color: rgba(255,255,255,.85); }

.recent { list-style: none; margin: 0; padding: 0; }
.recent li + li { border-top: 1px solid var(--line); }
.recent a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px; text-decoration: none; color: var(--ink); }
.rc-name { font-weight: 600; }
.rc-meta { color: var(--muted); font-size: 13px; }

@media (min-width: 720px) {
    .stats { grid-template-columns: repeat(3, 1fr); }
    .juz-grid { grid-template-columns: repeat(10, 1fr); }
    .hero { padding: 26px 28px; }
    .big-ring { width: 140px; height: 140px; }
    .big-ring > div { width: 114px; height: 114px; }
    .big-ring b { font-size: 26px; }
}

/* ---------- Ayarlar ---------- */
.settings { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; }
.settings h2 { margin-bottom: 4px; }
.push-diag { margin: 10px 0 0; color: #5b4a1e; word-break: break-word; }
.push-diag:empty { display: none; }

/* ---------- Ana ekrana ekle bandı ---------- */
.install-banner {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 12px 12px 14px; border-radius: var(--radius);
    background: #fff8e6; border: 1px solid var(--gold-l);
}
.install-banner img { border-radius: 11px; flex: none; }
.ib-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: #5b4a1e; }
.ib-text b { color: var(--g800); font-size: 15px; }
.ib-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.ib-actions .icon-btn { color: var(--muted); width: 36px; height: 36px; }

/* ---------- Mushaf sayfası ---------- */
.mtoolbar {
    position: sticky; top: calc(var(--top-h) + var(--safe-t)); z-index: 20;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px;
    padding: 8px 12px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.mt-info { display: flex; flex-direction: column; min-width: 0; }
.mt-info b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-info span { font-size: 12px; color: var(--muted); }
.mt-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.mt-count { font-size: 13px; color: var(--muted); padding: 0 4px; white-space: nowrap; }
.mt-count b { color: var(--ok); font-size: 15px; }
.tbtn {
    display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px;
    border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--g800);
    font: 600 13px var(--ui); cursor: pointer; white-space: nowrap;
}
.tbtn:hover { border-color: var(--g600); }
.tbtn[aria-pressed="true"] { background: var(--g100); border-color: var(--g600); }
.tbtn.primary { background: var(--g700); border-color: var(--g700); color: #fff; }
.tbtn.primary.is-done { background: var(--ok); border-color: var(--ok); }
@media (max-width: 480px) {
    .tbtn span { display: none; }
    .tbtn { padding: 0 9px; }
    .mt-info { flex: 1 1 100%; }
    .mt-actions { margin-left: 0; width: 100%; justify-content: flex-end; }
    .mt-count { margin-right: auto; padding-left: 0; }
}

.page-mushaf .content { padding-left: 8px; padding-right: 8px; }
.mushaf-wrap { display: flex; justify-content: center; touch-action: pan-y; }
.mushaf {
    width: 100%; max-width: 760px;
    background:
        radial-gradient(ellipse at center, rgba(255,255,255,.7), transparent 70%),
        var(--paper);
    border: 2px solid #c9a55a;
    border-radius: 4px;
    box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px #d8bd82, 0 12px 30px rgba(60,40,0,.12);
    padding: 8px;
    margin: 6px 4px;
}
.m-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 8px 6px; font-family: "Amiri", var(--quran); font-size: 15px; color: var(--g700);
}
.m-body {
    border: 1px solid #dcc58f;
    outline: 3px double #e3cf9e; outline-offset: -6px;
    padding: 14px 14px 10px;
    min-height: 60vh;
}
.m-foot {
    text-align: center; font-family: "Amiri", var(--quran); font-size: 16px; color: var(--g700);
    padding-top: 6px;
}

.surah-banner { text-align: center; margin: 8px 0 4px; }
.surah-banner:first-child { margin-top: 0; }
.sb-frame {
    position: relative; display: block;
    padding: 4px 40px; margin: 0 auto;
    background:
        linear-gradient(90deg, transparent, rgba(184,137,45,.14) 15%, rgba(184,137,45,.14) 85%, transparent),
        var(--paper-2);
    border-top: 2px solid #c9a55a; border-bottom: 2px solid #c9a55a;
    font-family: "Amiri", var(--quran); font-weight: 700; font-size: calc(var(--qsize) * .82); color: var(--g800);
    line-height: 1.9;
}
.sb-frame::before, .sb-frame::after {
    content: "۞"; position: absolute; top: 50%; transform: translateY(-50%);
    font-size: .9em; color: var(--gold); font-weight: 400;
}
.sb-frame::before { right: 12px; }
.sb-frame::after { left: 12px; }
.sb-meta { font: 12px var(--ui); color: var(--gold-d); margin-top: 4px; }
.basmala { font-family: var(--quran); font-size: var(--qsize); line-height: 2.1; text-align: center; color: var(--ink); margin: 2px 0; }

.ayat {
    margin: 0;
    font-family: var(--quran);
    font-size: var(--qsize);
    line-height: 2.35;
    text-align: justify;
    text-align-last: center;
    color: #1a1a1a;
    word-spacing: .04em;
}
.ayah { border-radius: 6px; transition: background-color .25s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ayah.is-ezber { background-color: var(--ok-bg); }
.ayah.is-ezber .at { color: #0e4a31; }
.ae { color: var(--gold-d); white-space: nowrap; font-family: var(--quran); }
.hizb, .sajda { color: var(--gold); }

/* Ayet sonundaki ezber kutucuğu: küçük görünür, dokunma alanı geniştir. */
.ez {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; margin: 0 -2px 0 2px;
    vertical-align: middle; cursor: pointer; position: relative; top: -.1em;
}
.ez input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ez i {
    width: 18px; height: 18px; border-radius: 5px;
    border: 1.6px solid #c2a466; background: #fffdf6;
    display: grid; place-items: center; transition: all .15s;
}
.ez i::after {
    content: ""; width: 9px; height: 5px; margin-top: -2px;
    border-left: 2.2px solid #fff; border-bottom: 2.2px solid #fff;
    transform: rotate(-45deg) scale(0); transition: transform .15s;
}
.ez input:checked + i { background: var(--ok); border-color: var(--ok); }
.ez input:checked + i::after { transform: rotate(-45deg) scale(1); }
.ez input:focus-visible + i { box-shadow: 0 0 0 3px rgba(29,106,76,.3); }
.ayah.pending .ez i { border-style: dashed; opacity: .7; }

/* Ezber kontrol modu: ayet metni bulanıklaşır, dokununca görünür. Satır içi metinde filter çalışmadığı için gölge kullanılır. */
body.hide-text .ayah .at { color: transparent; text-shadow: 0 0 13px rgba(40, 40, 30, .55); transition: color .2s, text-shadow .2s; cursor: pointer; }
body.hide-text .ayah.peek .at { color: #1a1a1a; text-shadow: none; }
body.hide-text .ayah.is-ezber.peek .at { color: #0e4a31; }

/* Türkçe okunuş: kapalıyken mushaf düzeni aynen kalır; açıkken her ayet ayrı satıra geçer ve okunuşu altında yazar. */
.okunus { display: none; color: #46524b; }
.ayah.is-ezber .okunus { color: #2c5a45; }
body.show-okunus .ayat { text-align: justify; text-align-last: start; }
body.show-okunus .ayah {
    display: block; margin: 0 -6px; padding: 4px 8px 10px;
    border-bottom: 1px dashed #e2d2a6;
}
body.show-okunus .ayah:last-child { border-bottom: 0; }
body.show-okunus .okunus {
    display: block; margin-top: 2px;
    font-family: var(--ui); font-size: max(14px, calc(var(--qsize) * .56)); font-weight: 400; line-height: 1.6;
    text-align: left; text-align-last: auto; word-spacing: normal;
}
body.show-okunus .basmala { margin-bottom: 0; }
body.show-okunus .basmala-okunus { text-align: center; margin: 4px 0 10px; }
body.hide-text .ayah .okunus { color: transparent; text-shadow: 0 0 8px rgba(40, 40, 30, .5); transition: color .2s, text-shadow .2s; cursor: pointer; }
body.hide-text .ayah.peek .okunus { color: #46524b; text-shadow: none; }
body.hide-text .ayah.is-ezber.peek .okunus { color: #2c5a45; }

.ayah.flash { animation: flash 2.2s ease-out; }
@keyframes flash { 0%, 35% { background-color: rgba(184,137,45,.35); } 100% { background-color: transparent; } }
.ayah.is-ezber.flash { animation: flash-ok 2.2s ease-out; }
@keyframes flash-ok { 0%, 35% { background-color: rgba(184,137,45,.35); } 100% { background-color: var(--ok-bg); } }

.page-nav {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    max-width: 760px; margin: 14px auto 0; padding: 0 4px;
}
.pn {
    display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px;
    border-radius: 12px; background: #fff; border: 1px solid var(--line);
    color: var(--g800); font-weight: 600; text-decoration: none;
}
.pn:hover { border-color: var(--g600); }
.pn-jump { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.pn-jump input { width: 64px; height: 40px; text-align: center; font: 600 15px var(--ui); border: 1px solid var(--line); border-radius: 10px; }
.source-note { max-width: 760px; margin: 14px auto 0; text-align: center; font-size: 11.5px; color: var(--muted); }

@media (min-width: 768px) {
    .mushaf { padding: 12px; }
    .m-body { padding: 22px 28px 14px; }
    :root { --qsize: 30px; }
}

/* ---------- Bildirim balonları ---------- */
.toast-host {
    position: fixed; left: 50%; bottom: calc(16px + var(--safe-b)); transform: translateX(-50%);
    z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none;
}
.toast {
    background: var(--g900); color: #fff; padding: 12px 16px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 14px;
    animation: toast-in .25s ease-out;
}
.toast.success { background: var(--ok); }
.toast.warn { background: #7a5208; }
.toast.celebrate { background: linear-gradient(135deg, var(--gold-d), var(--gold)); color: #fff; font-weight: 600; }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Form satırı ve kullanıcı adı ---------- */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row .field { min-width: 0; }
.username-preview { margin: -6px 0 0; }
.username-preview b, .username-badge b, .mono { font-family: ui-monospace, Consolas, monospace; color: var(--g700); }
.username-badge { margin: 0; padding: 10px 12px; background: var(--g100); border-radius: 10px; color: var(--g800); }
@media (max-width: 380px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Yönetim ---------- */
.admin { display: grid; gap: 12px; max-width: 1100px; margin: 0 auto; }
.admin-stats { grid-template-columns: repeat(3, 1fr); }
.badge { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--gold-l); color: #5b4a1e; font-size: 11px; font-weight: 700; }
.back-link { text-decoration: none; font-weight: 600; font-size: 14px; }

.create-user summary { cursor: pointer; list-style: none; }
.create-user summary::-webkit-details-marker { display: none; }
.create-user summary h2 { color: var(--g700); }
.create-user[open] summary { margin-bottom: 12px; }

.juz-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.juz-col { border: 1px solid var(--line); border-radius: 11px; padding: 8px; background: #fbfaf6; min-height: 64px; }
.juz-col.empty { opacity: .55; }
.jc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 13px; }
.jc-head span { min-width: 22px; text-align: center; padding: 0 6px; border-radius: 99px; background: var(--g100); color: var(--g700); font-weight: 700; font-size: 12px; }
.juz-col:not(.empty) .jc-head span { background: var(--ok); color: #fff; }
.person-chip {
    display: inline-block; margin: 2px 3px 2px 0; padding: 3px 9px; border-radius: 99px;
    background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 12.5px;
}
.person-chip:hover { border-color: var(--g600); }
.not-started { margin: 12px 0 0; }

.table-search { height: 38px; min-width: 200px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: 14px var(--ui); }
.user-list { display: flex; flex-direction: column; }
.user-row {
    display: grid; grid-template-columns: 1fr 120px 170px; gap: 12px; align-items: center;
    padding: 10px 6px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.user-row:first-child { border-top: 0; }
.user-row:hover { background: #fbfaf6; }
.ur-main, .ur-juz, .ur-progress { display: flex; flex-direction: column; min-width: 0; }
.ur-main small, .ur-juz small, .ur-progress small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ur-juz { font-weight: 700; color: var(--g700); }
@media (max-width: 640px) {
    .user-row { grid-template-columns: 1fr auto; }
    .ur-progress { grid-column: 1 / -1; }
    .admin-stats .stat-value { font-size: 21px; }
}

.profile-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.profile-head h1 { font-size: 21px; color: var(--g800); }
.profile-head p { margin: 4px 0 0; }
.juz-now { display: flex; flex-direction: column; align-items: center; padding: 10px 18px; border-radius: 14px; background: var(--g800); color: #fff; }
.juz-now span { font-size: 12px; color: var(--gold-l); }
.juz-now b { font-size: 30px; line-height: 1.1; }
.juz-now small { font-size: 12px; color: rgba(255,255,255,.75); }
.juz-cell.now { outline: 2px solid var(--gold); outline-offset: 1px; }
.surah-progress { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; }
.sp-row { display: grid; grid-template-columns: 1fr 80px 56px; gap: 8px; align-items: center; font-size: 13.5px; }
.sp-row .mini-bar { margin: 0; }
.sp-row small { color: var(--muted); text-align: right; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.inline-form .field { flex: 1; min-width: 180px; }

/* ---------- Sesli okuma ---------- */
.mushaf .ae { cursor: pointer; }
.mushaf .ae:hover { color: var(--g600); }
.ayah.playing, .ayah.playing.is-ezber { background-color: rgba(184, 137, 45, .30); }
.tbtn[aria-pressed="true"]#btnListen { background: var(--gold-l); border-color: var(--gold); }

.audio-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap;
    padding: 8px 12px calc(8px + var(--safe-b));
    background: var(--g900); color: #fff; box-shadow: 0 -6px 24px rgba(0,0,0,.22);
}
@media (min-width: 1024px) { .audio-bar { left: var(--sb-w); padding-left: 24px; padding-right: 24px; } }
.ap-info { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; }
.ap-info b { font-size: 15px; }
.ap-info small { font-size: 12px; color: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-controls { display: flex; align-items: center; gap: 4px; }
.ap-btn {
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    display: grid; place-items: center; background: transparent; color: #fff; cursor: pointer;
}
.ap-btn:hover { background: rgba(255,255,255,.1); }
.ap-btn[aria-pressed="true"] { background: rgba(255,255,255,.16); color: var(--gold-l); }
.ap-main { width: 48px; height: 48px; background: var(--gold); color: #1d1500; }
.ap-main:hover { background: #c9993a; }
.ap-text { width: auto; min-width: 44px; padding: 0 10px; border-radius: 99px; border: 1px solid rgba(255,255,255,.3); font: 700 14px var(--ui); }
.ap-select {
    max-width: 160px; height: 36px; padding: 0 6px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font: 13px var(--ui);
}
.ap-select option { color: #000; }
body.audio-open .content { padding-bottom: 150px; }
body.audio-open .toast-host { bottom: calc(120px + var(--safe-b)); }
@media (max-width: 560px) {
    .ap-controls { width: 100%; justify-content: space-between; }
    .ap-select { max-width: 112px; }
}
.juz-count-grid { margin-bottom: 12px; }
.juz-count-grid .juz-cell { aspect-ratio: auto; padding: 6px 0; }
.juz-count-grid .juz-cell.has { background: var(--ok); border-color: var(--ok); color: #fff; }
.juz-count-grid .juz-cell.has small { color: rgba(255,255,255,.9); }
.person-chip small { color: var(--muted); font-size: 11px; margin-left: 4px; }
.juz-board { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---------- Kaynaklar ve lisanslar ---------- */
.auth-card:has(.about) { max-width: 680px; }
.about h2 { font-size: 20px; color: var(--g800); margin-bottom: 8px; }
.about h3 { font-size: 15px; color: var(--g700); margin: 18px 0 6px; }
.about p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; }
.license-note {
    margin: 8px 0; padding: 10px 12px; max-height: 260px; overflow: auto;
    background: #f6f4ee; border: 1px solid var(--line); border-radius: 10px;
    font: 11.5px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; color: #3b3b3b;
}
.auth-foot { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.source-note a { color: var(--g600); }
