/* T5.8: self-hosted fonts (previously loaded from Google Fonts) — offline-capable PWA,
   removes a render-blocking cross-origin request and third-party data transfer. */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/amiri-normal-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/amiri-normal-400-latin.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+0000-00FF, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/amiri-normal-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/amiri-normal-700-latin.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+0000-00FF, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'Amiri';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/amiri-italic-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Amiri';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/amiri-italic-400-latin.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+0000-00FF, U+2000-206F, U+20AC;
}
/* Scheherazade New — Osmanlı Hattı Kur'ân fontu (self-hosted, offline-capable) */
@font-face {
  font-family: 'Scheherazade New';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ScheherazadeNew-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Scheherazade New';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/ScheherazadeNew-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/literata-normal-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/literata-italic-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-normal-var.woff2') format('woff2');
}

:root {
  --bg: #f7f4ee;
  --surface: #fffdf9;
  --surface-soft: #f0ebe1;
  --surface-deep: #e7dfd1;
  --text: #1f2a26;
  --muted: #6d756f;
  --line: #ded8cc;
  --accent: #275c4c;
  --accent-dark: #173f35;
  --gold: #b7965f;
  --danger: #9b3d35;
  --shadow: 0 22px 60px rgba(41, 52, 46, .09);
  --font-ui: 'Plus Jakarta Sans', Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Literata', Georgia, "Times New Roman", serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  --reader-scale: 1;
  color-scheme: light;
}

:root[data-theme="sepia"] {
  --bg: #f4eedd;
  --surface: #faf5e8;
  --surface-soft: #ece3cc;
  --surface-deep: #e1d6b9;
  --text: #2d241e;
  --muted: #7a6857;
  --line: #dcd0b3;
  --accent: #275c4c;
  --accent-dark: #194034;
  --gold: #9e7b3b;
  --shadow: 0 20px 55px rgba(60, 48, 38, .1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #121714;
  --surface: #1a211d;
  --surface-soft: #222b26;
  --surface-deep: #2c3731;
  --text: #eef3ef;
  --muted: #a8b3ac;
  --line: #334039;
  --accent: #8dc5b0;
  --accent-dark: #b9ddcf;
  --gold: #d0b47b;
  --shadow: 0 24px 65px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

:root[data-font-family="sans"] .tafsir-content {
  font-family: var(--font-ui) !important;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  z-index: 999;
  transition: width .1s ease-out;
}

a { color: inherit; }
button, select, input, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 36px)); margin: auto; }
.narrow { width: min(820px, calc(100% - 36px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 89%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
}
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: #fff;
  font: 700 23px var(--font-arabic);
  box-shadow: 0 8px 20px rgba(39, 92, 76, .18);
}
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--font-serif); font-size: 19px; letter-spacing: -.01em; line-height: 1.2; }
.brand small { font-size: 11px; color: var(--muted); white-space: nowrap; }

nav { display: flex; align-items: center; gap: 10px; }
nav a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  text-decoration: none;
  font-weight: 650;
  font-size: 13.5px;
  color: var(--muted);
  border-radius: 10px;
  transition: .18s;
}
nav a:hover { color: var(--accent); background: var(--surface-soft); }

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 0 13px;
  cursor: pointer;
  transition: .18s ease;
  font-size: 13.5px;
  font-weight: 600;
}
.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.reading-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  background: var(--surface-soft);
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

/* Personal Note Box */
.personal-note-box {
  background: color-mix(in srgb, var(--gold) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line));
  padding: 16px;
  border-radius: 16px;
  margin: 0 auto 24px;
  max-width: 840px;
}
.personal-note-box textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  outline: none;
  font-size: 14px;
}

/* Command Palette Trigger Button */
.command-palette-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .18s;
}
.command-palette-trigger:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface);
}
.command-palette-trigger kbd {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 76px;
  background: radial-gradient(circle at 84% 18%, rgba(183,150,95,.18), transparent 24%), linear-gradient(180deg, var(--surface-soft), transparent);
}
.hero:before {
  content: "تَوَسُّم";
  position: absolute;
  right: 5%;
  top: 20px;
  font: 700 clamp(70px, 13vw, 180px) var(--font-arabic);
  color: color-mix(in srgb, var(--accent) 8%, transparent);
  pointer-events: none;
  letter-spacing: .03em;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.18;
  margin: 0 0 16px;
  font-weight: 700;
}
h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -.03em; }
h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.02em; }
h3 { font-size: 24px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: .18em; margin: 0 0 12px; }
.lead { font-size: 18px; color: var(--muted); max-width: 740px; margin: 0; }
.hero .lead { font-size: 19px; }

.section { padding: 66px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 26px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); }

/* Last Read Card */
.last-read-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  padding: 18px 24px;
  border-radius: 20px;
  margin: 24px 0 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .04);
  transition: all .2s ease;
}
.last-read-card:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: 0 16px 40px rgba(39, 92, 76, .08);
}
.last-read-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.last-read-history-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  padding-top: 12px;
}
.last-read-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 4px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background .15s ease;
}
.last-read-history-item:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.last-read-history-surah {
  font-size: 13.5px;
  font-weight: 650;
}
.last-read-history-book {
  font-size: 12px;
  color: var(--muted);
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45%;
}
.last-read-info-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.last-read-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 2px;
}
.last-read-title {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  color: var(--text);
  line-height: 1.3;
}
.last-read-ayah {
  color: var(--accent);
  font-weight: 700;
}
.last-read-book {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}
.last-read-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  padding: 12px 22px;
  border-radius: 14px;
  white-space: nowrap;
  transition: all .2s ease;
  box-shadow: 0 8px 22px rgba(39, 92, 76, .2);
}
.last-read-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(39, 92, 76, .3);
  filter: brightness(1.05);
}

.selector-card {
  margin-top: 32px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.4fr 1fr .72fr auto;
  gap: 14px;
  align-items: end;
}
.selector-card.compact {
  margin: 0 0 24px;
  padding: 16px;
  border-radius: 18px;
  box-shadow: none;
  background: var(--surface);
}

.field label { display: block; font-size: 12px; font-weight: 800; color: var(--muted); margin: 0 0 7px; }
.field select, .search-form input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 13px;
  padding: 0 14px;
  outline: none;
  transition: .18s;
}
.field select:focus, .search-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.primary-button {
  height: 50px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(39, 92, 76, .16);
  transition: .18s;
}
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.03); }
.primary-button:disabled { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }
.form-message { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }

.secondary-button {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 0 16px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: .15s;
}
.secondary-button:hover { background: var(--surface-soft); }

.bookmarks-backup-bar {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
}
.bookmarks-backup-bar .secondary-button {
  height: 28px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 0 8px;
  border-radius: 8px;
  opacity: .75;
}
.bookmarks-backup-bar .secondary-button:hover { background: var(--surface-soft); color: var(--text); opacity: 1; }
.search-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.search-pagination-status { font-size: 13.5px; color: var(--muted); font-weight: 700; }

/* Toast Notification Banner */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 9999;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  opacity: 0;
  transition: transform .28s cubic-bezier(.175, .885, .32, 1.275), opacity .25s ease;
  pointer-events: none;
}
.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.spin-icon {
  display: inline-block;
  animation: pulseSpin 1.2s infinite ease-in-out;
}
@keyframes pulseSpin {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ========================================================
   ÂYET KARTI — Arapça Metin + Sade Meal
   (Tefsir içeriğinden NET OLARAK AYRI)
   ======================================================== */
.ayah-card-wrapper {
  margin-bottom: 28px;
}

.ayah-card {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--gold) 8%, var(--surface)) 0%,
    color-mix(in srgb, var(--accent) 5%, var(--surface)) 100%
  );
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line));
  border-radius: 22px;
  padding: 24px 28px;
  margin-bottom: 10px;
}

.ayah-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

.ayah-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line));
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.ayah-meal-selector {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ayah-meal-selector label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.ayah-meal-selector select {
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Single ayah row inside the card */
.ayah-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 20%, var(--line));
}
.ayah-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ayah-row:first-child { padding-top: 0; }

.ayah-number-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ayah-number-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 18%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line));
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}

.ayah-arabic {
  font-family: 'Scheherazade New', 'Amiri', serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 2.0;
  color: var(--text);
  text-align: right;
  direction: rtl;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.ayah-meal-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  font-style: italic;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--gold) 6%, var(--surface));
  border-radius: 10px;
  border-left: 3px solid color-mix(in srgb, var(--gold) 50%, var(--line));
}

/* Separator between Âyet Kartı and Tefsir */
.ayah-tefsir-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--muted);
}
.ayah-tefsir-separator::before,
.ayah-tefsir-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.ayah-tefsir-separator span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  padding: 3px 12px;
  border-radius: 20px;
}

/* Collapsed state */
.ayah-card.collapsed .ayah-row { display: none; }
.ayah-card.collapsed .ayah-card-toggle::after { content: 'Göster ↓'; }
.ayah-card:not(.collapsed) .ayah-card-toggle::after { content: 'Gizle ↑'; }
.ayah-card-toggle {
  background: none;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold);
  cursor: pointer;
  transition: .15s;
}
.ayah-card-toggle:hover { background: color-mix(in srgb, var(--gold) 10%, transparent); }

/* Mobil Uyumlu Âyet Kartı Düzenlemeleri */
@media (max-width: 640px) {
  .ayah-card {
    padding: 16px 14px;
    border-radius: 16px;
  }
  .ayah-card-label {
    flex-wrap: wrap;
    gap: 8px;
    row-gap: 10px;
  }
  .ayah-card-badge {
    font-size: 10px;
    padding: 3px 8px;
    letter-spacing: .04em;
  }
  .ayah-meal-selector label {
    display: none; /* Mobilde 'Meal:' etiketini gizle, yer kazandır */
  }
  .ayah-meal-selector select {
    max-width: 130px;
    font-size: 11.5px;
    height: 28px;
    padding: 0 4px;
    text-overflow: ellipsis;
  }
  .ayah-card-toggle {
    font-size: 11px;
    padding: 2px 8px;
  }
  .ayah-arabic {
    font-size: 22px;
    line-height: 1.85;
  }
  .ayah-meal-text {
    font-size: 13.5px;
    padding: 7px 10px;
  }
}



/* Reader Header Top Layout */
.reader-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.reader-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.reader-header-tools #readerSettingsToggleBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

/* Floating Quick Actions Button — appears once the header's own button scrolls out of view */
.reader-floating-quick-btn {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 20;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
  opacity: 0;
  transform: translateY(-10px) scale(.9);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.reader-floating-quick-btn.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.reader-floating-quick-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
}

/* Reader Options Modal Sheet (⚡ Hızlı İşlemler Modal) */
.reader-options-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  animation: fadeInModal .22s ease-out;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.options-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}
.options-modal-content {
  position: relative;
  z-index: 10;
  width: min(380px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  animation: scaleUpModal .22s cubic-bezier(.16, 1, .3, 1);
}
@keyframes scaleUpModal {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.options-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.options-modal-header strong {
  font-size: 15px;
  color: var(--text);
}
.modal-close-icon {
  border: 0;
  background: var(--surface-soft);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .15s;
}
.modal-close-icon:hover {
  background: var(--line);
  color: var(--text);
}
.reader-options-modal .options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reader-options-modal .options-grid button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  transition: all .18s ease;
}
.reader-options-modal .options-grid button:hover {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--accent);
  transform: translateY(-1px);
}
.font-size-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 12px;
}
.font-size-controls button {
  width: 36px;
  height: 32px;
  padding: 0;
  justify-content: center;
}

/* Yayındaki tefsirler — Grid düzeni, tam dolgu ve etkileşimli kartlar */
.tefsir-chip-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.tefsir-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
  outline: none;
}
.tefsir-chip:hover, .tefsir-chip:focus-visible {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 12%, transparent);
}
.tefsir-chip:active {
  transform: translateY(0);
}
.tefsir-chip-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.tefsir-chip-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.tefsir-chip-text strong {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tefsir-chip-text small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.surah-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.surah-card strong, .surah-card small { display: block; }
.surah-card strong { font-family: var(--font-serif); font-size: 19px; }
.surah-card small { margin-top: 4px; color: var(--muted); }

.breadcrumbs { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; flex-wrap: wrap; margin-bottom: 24px; }
.breadcrumbs a:hover { color: var(--accent); }

.book-hero, .reader-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(26px, 5vw, 54px);
  box-shadow: var(--shadow);
}
#readerCard { scroll-margin-top: 88px; }
.book-hero { margin-bottom: 44px; background: radial-gradient(circle at 88% 18%, rgba(183,150,95,.16), transparent 25%), var(--surface); }

.reader-header { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.reader-header h1 { font-size: clamp(32px, 5vw, 48px); }
.reader-header > p:not(.eyebrow) { margin: 0; color: var(--muted); }
.reader-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.reader-actions button { font-weight: 700; }

.tafsir-content {
  font-family: var(--font-serif);
  font-size: calc(20.5px * var(--reader-scale));
  line-height: 1.95;
  max-width: 840px;
  margin: auto;
  color: color-mix(in srgb, var(--text) 96%, transparent);
}
.tafsir-content p { text-align: justify; margin: 0 0 1.35em; }
.tafsir-content h2, .tafsir-content h3 { margin-top: 1.65em; font-family: var(--font-serif); }
.tafsir-content blockquote {
  margin: 1.5em 0;
  padding: 20px 24px;
  border-inline-start: 4px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 6%, var(--surface-soft));
  border-radius: 0 16px 16px 0;
  font-style: italic;
}
.tafsir-content a { color: var(--accent); }

/* Highlight search matches */
mark.search-highlight {
  background: color-mix(in srgb, var(--gold) 45%, transparent);
  color: inherit;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 700;
}

/* Arabic typography formatting */
.arabic-text {
  font-family: var(--font-arabic);
  font-size: 1.3em;
  line-height: 2.2;
  direction: rtl;
  text-align: right;
  color: var(--accent);
  margin: 0.8em 0;
}

.section-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.section-navigation a {
  display: inline-block;
  background: var(--surface-soft);
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 750;
  transition: .18s;
}
.section-navigation a:hover { background: var(--surface-deep); transform: translateY(-1px); }

.section-list { display: grid; gap: 10px; margin-top: 30px; }
.section-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 15px 17px;
  background: var(--surface-soft);
  border-radius: 13px;
  text-decoration: none;
  transition: .15s;
}
.section-list a:hover { background: var(--surface-deep); transform: translateY(-1px); }
.section-list a.intro-link {
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--accent) 5%, var(--surface-soft));
}

.intro-notice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  padding: 16px 20px;
  border-radius: 16px;
  margin: 0 auto 28px;
  max-width: 840px;
}
.intro-notice-banner p { margin: 0; font-size: 14.5px; color: var(--text); font-weight: 600; }
.intro-notice-banner a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
  transition: .18s;
}
.intro-notice-banner a:hover { filter: brightness(1.1); transform: translateY(-1px); }

.badge-intro {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
  background: color-mix(in srgb, var(--gold) 20%, transparent);
  color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}

.reader-loading { text-align: center; padding: 60px 20px; color: var(--muted); }
.spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Command Palette & Bookmarks Modals */
.cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: start center;
  padding-top: 10vh;
}
.cmd-palette-card {
  width: min(640px, calc(100% - 32px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  overflow: hidden;
}
.cmd-palette-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.cmd-palette-header svg { color: var(--muted); flex-shrink: 0; }
.cmd-palette-header input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 16px;
  color: var(--text);
  font-family: var(--font-ui);
}
.cmd-palette-close {
  background: transparent;
  border: 0;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
}
.cmd-palette-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 10px;
}
.cmd-palette-hint {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: .15s;
  cursor: pointer;
}
.cmd-item:hover, .cmd-item.active {
  background: var(--surface-soft);
  color: var(--accent);
}
.cmd-item strong { font-size: 15px; }
.cmd-item small { color: var(--muted); font-size: 12px; }

/* Sticky Mobile Navigation Bar */
@media (min-width: 901px) {
  .sticky-mobile-nav { display: none !important; }
}
.sticky-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -10px 30px rgba(0,0,0,.1);
}
.sticky-mobile-nav > div {
  /* Onceki/Sonraki div sarmalayicilari kuculmesin — metin, ortadaki merkez
     dugmenin genisligine kurban edilmesin (metin sarilma hatasinin kaynagiydi). */
  flex-shrink: 0;
}
.sticky-mobile-nav a {
  display: inline-flex;
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}
.mobile-center-btn {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  /* Kalan esnek alani kaplasin; uzun sure/bolum adi tasmak yerine ucta kirpilsin. */
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* PWA Update Toast Banner */
.pwa-update-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: var(--surface);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line));
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: slideUpToast .3s ease-out;
}
@keyframes slideUpToast {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.pwa-update-toast strong { font-size: 14px; }
.pwa-update-toast button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

/* PWA Install Banner (mobile bottom sheet) */
.pwa-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1000;
  background: var(--surface);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line));
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideUpToast .3s ease-out;
}
.pwa-install-icon { font-size: 26px; line-height: 1; flex-shrink: 0; }
.pwa-install-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pwa-install-copy strong { font-size: 14px; }
.pwa-install-copy small { color: var(--muted); font-size: 12px; }
.pwa-install-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.pwa-install-actions button {
  border: 0;
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}
#pwaInstallNowBtn { background: var(--accent); color: #fff; }
#pwaInstallLaterBtn { background: transparent; color: var(--muted); }
@media (min-width: 640px) {
  .pwa-install-banner { left: auto; right: 24px; bottom: 24px; max-width: 380px; }
}

.pwa-manual-install-card ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.pwa-manual-install-card li strong { color: var(--accent); }


.search-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 30px 0 12px; }
.search-filters-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.search-filter-select {
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font-size: 13.5px;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
}
.search-results { display: grid; gap: 12px; margin-top: 25px; }
.search-result {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  text-decoration: none;
  transition: .18s;
  overflow-wrap: break-word;
  word-break: break-word;
}
.search-result:hover { border-color: var(--accent); transform: translateY(-2px); }
.search-result h2 { font-family: inherit; font-size: 19px; margin-bottom: 7px; }
.search-result p { margin: 0; color: var(--muted); }

/* Mobil Ekran İyileştirmeleri (Masaüstü görünümü ve Zoom Out problemini önleme) */
@media (max-width: 768px) {
  .search-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .search-filters-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  /* Mobil odaklanmada (focus) otomatik sayfa büyütmeyi/zoom yapmayı engellemek için font 16px yapıldı */
  .search-filter-select, #searchInput {
    font-size: 16px !important;
    height: 48px;
    border-radius: 12px;
  }
  #searchSubmitBtn {
    width: 100%;
    height: 46px;
    font-size: 15px;
  }
  .search-results {
    gap: 10px;
    margin-top: 16px;
  }
  .search-result {
    padding: 14px 14px;
    border-radius: 16px;
  }
  .search-result h2 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 6px;
  }
  .search-result p, .search-snippet {
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}
.match-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 750;
  padding: 3px 9px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  white-space: nowrap;
}
/* Offline Status Badge */
.offline-status-badge {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10000;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  align-items: center;
  gap: 6px;
  animation: fadeInDown .3s ease-out;
}

.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding: 36px 0 40px; margin-top: 56px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.footer-brand-col strong { font-family: var(--font-serif); color: var(--text); font-size: 18px; }
.footer-main-domain { margin-top: 8px; }
.footer-main-domain a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: .15s;
}
.footer-main-domain a:hover { text-decoration: underline; color: var(--gold); }

.footer-contact-col { text-align: right; }
.footer-contact-title { font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.footer-emails { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.footer-emails a {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  transition: .15s;
}
.footer-emails a:hover { color: var(--gold); text-decoration: underline; }
.footer-emails .sep { color: var(--line); font-size: 12px; }
.footer-note { font-size: 12px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Print Friendly Styles (@media print) */
@media print {
  .site-header, .site-footer, .reader-toolbar,
  .reader-actions, .section-navigation, .intro-notice-banner,
  .sticky-mobile-nav, .command-palette-backdrop, .scroll-progress-bar {
    display: none !important;
  }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .container, .reader-card { width: 100% !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  .tafsir-content { font-size: 13pt !important; line-height: 1.6 !important; }
}

@media(max-width:900px) {
  .selector-card { grid-template-columns: 1fr 1fr; }
  .surah-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width:640px) {
  .container, .narrow { width: min(100% - 24px, 1180px); }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand small, .desktop-tagline { display: none; }
  .brand strong { display: block; font-size: 15px; line-height: 1.15; }
  .header-inner nav { gap: 8px; }
  .header-inner nav a { display: none; }
  .command-palette-trigger span, .command-palette-trigger kbd { display: none; }
  /* Okuma Listem düğmesi ikon-only olsun; erişilebilir isim aria-label'da duruyor. */
  .icon-button .btn-label { display: none; }
  .hero { padding: 54px 0 46px; }
  .hero:before { right: -7%; top: 2px; }
  .hero .lead { font-size: 16.5px; }
  .section { padding: 40px 0; }
  .selector-card, .selector-card.compact { grid-template-columns: 1fr; padding: 16px; border-radius: 18px; }
  .surah-grid { grid-template-columns: 1fr; }
  .surah-card { padding: 20px; }
  .tefsir-chip-list { gap: 8px; }
  .tefsir-chip { flex: 1 1 100%; padding: 10px 14px; }
  .reader-card { padding: 22px 16px; border-radius: 20px; margin-bottom: 60px; }
  .reader-header { margin-bottom: 22px; }
  .reader-header-top { flex-direction: column; align-items: stretch; gap: 14px; }
  .reader-header-tools {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
  }
  .reader-header-tools #readerSettingsToggleBtn {
    justify-content: center;
  }
  .reader-floating-quick-btn {
    top: 78px;
    right: 14px;
    width: 46px;
    height: 46px;
    font-size: 19px;
  }
  .tafsir-content { font-size: calc(18px * var(--reader-scale)); line-height: 1.88; }
  .tafsir-content p { text-align: left; }
  .section-navigation { gap: 10px; flex-direction: column; }
  .section-navigation a { text-align: center; width: 100%; }
  .search-form { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
  .footer-contact-col { text-align: left; }
  .footer-emails { justify-content: flex-start; }
  .breadcrumbs { overflow: auto; white-space: nowrap; flex-wrap: nowrap; padding-bottom: 3px; }
  .intro-notice-banner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .intro-notice-banner a { align-self: flex-start; }
  .last-read-primary { flex-direction: column; align-items: flex-start; }
  .last-read-primary a { width: 100%; justify-content: center; }
  .last-read-history-item { flex-direction: column; align-items: flex-start; gap: 2px; }
  .last-read-history-book { max-width: 100%; }
}

/* T5.7: prefers-reduced-motion — disable animated transitions/scroll when the user (or an
   explicit reduced-motion class set from JS, since window.matchMedia can't be read in pure
   CSS at load reliably across all browsers for scroll-behavior) has asked for less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
html.reduced-motion { scroll-behavior: auto; }
html.reduced-motion * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }

/* T5.9: skip-to-content link — visually hidden until keyboard-focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* ════════════════════════════════════════════════════
   EÛZU BESMELESİ — Açılış Ekranı
   ════════════════════════════════════════════════════ */
@keyframes euuzuFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes euuzuSlideUp {
  from { opacity: 0; transform: translateY(32px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes euuzuFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; pointer-events: none; }
}
@keyframes euuzuRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.euuzu-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: euuzuFadeIn .4s ease both;
}
.euuzu-splash[hidden] {
  display: none !important;
}
.euuzu-splash.closing {
  animation: euuzuFadeOut .5s ease forwards;
}

.euuzu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.euuzu-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--surface) 95%, var(--gold)) 0%,
    var(--surface) 60%,
    color-mix(in srgb, var(--surface) 92%, var(--accent)) 100%
  );
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
  border-radius: 32px;
  padding: 44px 40px 36px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gold) 15%, transparent),
    0 30px 80px rgba(0,0,0,.5),
    inset 0 1px 0 color-mix(in srgb, var(--gold) 20%, transparent);
  animation: euuzuSlideUp .55s cubic-bezier(.22,1,.36,1) .1s both;
}

/* Geometric ornament */
.euuzu-ornament {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  color: var(--gold);
  opacity: .55;
  animation: euuzuRotate 30s linear infinite;
}
.euuzu-ornament svg { width: 100%; height: 100%; }

/* Arabic text */
.euuzu-arabic {
  font-family: 'Scheherazade New', 'Amiri', serif;
  direction: rtl;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 4px;
  text-shadow: 0 1px 12px color-mix(in srgb, var(--gold) 15%, transparent);
}
.euuzu-aaraf {
  font-size: 22px;
  color: var(--muted);
  opacity: .85;
}
.euuzu-besmele {
  font-size: 34px;
  color: var(--gold);
  text-shadow: 0 2px 20px color-mix(in srgb, var(--gold) 40%, transparent);
  margin-bottom: 20px !important;
}

/* Divider */
.euuzu-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px auto 14px;
  max-width: 200px;
}
.euuzu-divider span:first-child,
.euuzu-divider span:last-child {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--gold) 60%, var(--line)), transparent);
}
.euuzu-gem {
  font-size: 12px;
  color: var(--gold);
  flex: 0;
}

/* Translation */
.euuzu-translation {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 28px;
}
.euuzu-translation strong {
  color: var(--text);
  font-weight: 700;
}

/* Button */
.euuzu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), color-mix(in srgb, var(--gold) 75%, var(--accent)));
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--gold) 40%, transparent);
  letter-spacing: .01em;
}
.euuzu-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--gold) 55%, transparent);
}
.euuzu-btn:active { transform: translateY(0); }

/* Note */
.euuzu-note {
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--muted);
  opacity: .55;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .euuzu-card { padding: 32px 24px 28px; border-radius: 24px; }
  .euuzu-besmele { font-size: 26px; }
  .euuzu-aaraf { font-size: 18px; }
  .euuzu-ornament { width: 80px; height: 80px; }
}

