/* ========================================================================= */
/* TOMEHUB v3.2 - 3-COLUMN PROPORTIONAL MASTERPIECE (BOTANICA + ZEN)         */
/* ========================================================================= */

:root {
  /* Dark Mode: Volcanic Basalt, Sage Glow & Sandstone Amber */
  --bg-base: #101311;
  --bg-rail: rgba(14, 18, 15, 0.6);
  --bg-panel-1: rgba(18, 22, 19, 0.85);
  --bg-panel-2: rgba(22, 27, 24, 0.6);
  --bg-panel-3: #141816;
  
  --bg-card: rgba(28, 34, 30, 0.7);
  --bg-card-hover: rgba(38, 48, 42, 0.95);
  --bg-card-active: rgba(45, 58, 50, 1);
  --bg-card-inner: rgba(16, 20, 17, 0.8);
  
  --border-subtle: rgba(94, 156, 126, 0.15);
  --border-medium: rgba(94, 156, 126, 0.28);
  --text-main: #e8eee9;
  --text-muted: #9bb0a3;
  --text-dim: #8aa092;

  --bg-chip: rgba(255, 255, 255, 0.08);

  --accent-sage: #5e9c7e;
  --accent-glow: rgba(94, 156, 126, 0.2);
  --accent-sand: #c4a47c;
  --accent-sand-glow: rgba(196, 164, 124, 0.2);
  
  --error: #cf6679;
  --success: #5eb69c;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-arabic: 'Amiri', serif;
}

[data-theme="light"] {
  /* Light Mode: Limestone Alabaster, Sage Forest & Smoked Amber */
  --bg-base: #f3f4ef;
  --bg-rail: rgba(235, 238, 232, 0.8);
  --bg-panel-1: rgba(246, 247, 243, 0.9);
  --bg-panel-2: rgba(252, 252, 250, 0.75);
  --bg-panel-3: #ffffff;
  
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-card-active: #e9f0eb;
  --bg-card-inner: rgba(240, 243, 239, 0.9);
  
  --border-subtle: rgba(59, 107, 86, 0.12);
  --border-medium: rgba(59, 107, 86, 0.25);
  --border-strong: rgba(59, 107, 86, 0.45);

  --text-main: #19201c;
  --text-muted: #546258;
  --text-dim: #6e7d73;

  --bg-chip: rgba(0, 0, 0, 0.06);

  --accent-sage: #346851;
  --accent-glow: rgba(52, 104, 81, 0.12);
  --accent-sand: #8c6d46;
  --accent-sand-glow: rgba(140, 109, 70, 0.15);
  
  --error: #b00020;
  --success: #2d6a4f;
}

/* Base Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  background-image: radial-gradient(circle at 30% 0%, var(--accent-glow), transparent 70%);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.app-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ========================================================================= */
/* 0. SLIM RAIL (Navigation) - 56px                                          */
/* ========================================================================= */
.app-rail {
  width: 56px;
  background: var(--bg-rail);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  z-index: 50;
  flex-shrink: 0;
}

.rail-top-spacer {
  width: 38px;
  height: 38px;
  visibility: hidden;
  pointer-events: none;
}

.rail-actions, .rail-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

#btnBrandHome span {
  font-size: 1.25rem;
  filter: drop-shadow(0 0 6px var(--accent-glow));
  transition: transform 0.2s ease;
}
#btnBrandHome:hover span {
  transform: scale(1.2);
}

.rail-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.rail-btn:hover {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.rail-btn.active {
  background: var(--accent-sage);
  color: #101311;
  box-shadow: 0 4px 14px var(--accent-glow);
}
[data-theme="light"] .rail-btn.active { color: #ffffff; }

/* ========================================================================= */
/* 1. SÜTUN: KÜLLİYAT KOLEKSİYONU & KATEGORİLER (EN DAR: ~320px)             */
/* ========================================================================= */
.col-kulliyat {
  width: 320px;
  min-width: 290px;
  max-width: 340px;
  background: var(--bg-panel-1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 45;
  flex-shrink: 0;
}

.kulliyat-header {
  padding: 1.5rem 1.25rem 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.kulliyat-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kulliyat-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.kulliyat-total-badge {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-sand);
  background: var(--accent-sand-glow);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(196, 164, 124, 0.3);
}

.kulliyat-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-mini-icon {
  position: absolute;
  left: 10px;
  font-size: 0.85rem;
  color: var(--text-dim);
  pointer-events: none;
}

.kulliyat-filter-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.55rem 2rem 0.55rem 2rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.2s ease;
}

.kulliyat-filter-input:focus {
  border-color: var(--accent-sage);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.btn-clear-mini {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
}

/* Accordion List */
.kulliyat-accordion-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.kulliyat-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Category Card (Matching User's Uploaded Mockup) */
.cat-card {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-card);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

.cat-card.expanded {
  border-color: var(--accent-sand);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cat-card.active-category {
  border-color: var(--accent-sage);
  background: var(--bg-card-hover);
  box-shadow: 0 0 14px var(--accent-glow);
}

.cat-card.active-category .cat-label {
  color: var(--accent-sage);
}

.cat-card-header {
  padding: 0.85rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  user-select: none;
}

.cat-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cat-name-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cat-icon { font-size: 1rem; }
.cat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.cat-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-sand);
}

.cat-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 1.5rem;
}

/* Accordion Drawer (Books inside category) */
.cat-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-card-inner);
  border-top: 1px solid transparent;
}

.cat-card.expanded .cat-drawer {
  max-height: 550px;
  overflow-y: auto;
  border-top-color: var(--border-subtle);
}

/* Subcategory Card inside Main Category Drawer */
.subcat-card {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.subcat-header {
  padding: 0.55rem 0.85rem 0.55rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.015);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.subcat-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.subcat-card.expanded .subcat-header {
  background: rgba(138, 171, 143, 0.07);
  border-left: 3px solid var(--accent-sage);
}

.subcat-card.active-subcategory .subcat-header {
  background: rgba(138, 171, 143, 0.14);
  border-left: 3px solid var(--accent-sage);
}

.subcat-card.active-subcategory .subcat-label {
  color: var(--accent-sage);
  font-weight: 700;
}

.subcat-card.active-subcategory .subcat-badge {
  background: rgba(138, 171, 143, 0.25);
  color: var(--accent-sage);
}

.subcat-title-box {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subcat-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.subcat-label {
  font-size: 0.8rem;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

.subcat-meta-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.subcat-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.subcat-arrow {
  font-size: 0.6rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.subcat-card.expanded .subcat-arrow {
  transform: rotate(90deg);
  color: var(--accent-sage);
}

/* Subcategory Drawer (holds book items) */
.subcat-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(0, 0, 0, 0.18);
}

.subcat-card.expanded .subcat-drawer {
  max-height: 450px;
  overflow-y: auto;
}

.subcat-drawer .book-item {
  padding-left: 2.2rem;
  background: transparent;
}

.book-item {
  padding: 0.55rem 1rem 0.55rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.15s ease;
}

.book-item:hover {
  background: var(--bg-card-active);
  color: var(--accent-sage);
}

.book-item.active {
  background: var(--accent-glow);
  color: var(--accent-sage);
  border-left: 3px solid var(--accent-sage);
}

.book-item-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.book-item:hover .book-item-title { color: var(--accent-sage); }

.book-item-pages {
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(0,0,0,0.15);
  padding: 1px 5px;
  border-radius: 4px;
}

.book-item-load-more {
  padding: 0.6rem 1rem 0.6rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-sand);
  background: var(--accent-sand-glow);
  cursor: pointer;
  text-align: center;
  border-radius: 6px;
  margin: 0.4rem 0.5rem;
  transition: all 0.2s ease;
}

.book-item-load-more:hover {
  background: var(--accent-sand);
  color: #101311;
}

/* Footer Stats */
.kulliyat-footer-stats {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ========================================================================= */
/* 2. SÜTUN: ANA ARAMA SÜTUNU (EN GENİŞ: flex 1.25, min 420px)                */
/* ========================================================================= */
.col-search {
  flex: 1.25;
  min-width: 420px;
  background: var(--bg-panel-2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow: hidden;
}

/* Spotlight Bar */
.search-spotlight-bar {
  padding: 1.5rem 1.75rem 1rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spotlight-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 0.6rem 1.15rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.spotlight-box:focus-within {
  border-color: var(--accent-sage);
  box-shadow: 0 0 0 2px var(--accent-glow), 0 12px 40px rgba(0, 0, 0, 0.25);
  background: var(--bg-card-hover);
}

.spotlight-icon {
  font-size: 1.25rem;
  color: var(--accent-sage);
  margin-right: 0.85rem;
}

.spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.15rem;
  font-family: var(--font-serif);
  padding: 0.5rem 0;
}
.spotlight-input:focus { outline: none; }
.spotlight-input::placeholder { color: var(--text-dim); font-size: 1rem; font-style: italic; }

.btn-clear-search {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 0.5rem;
}

/* Search Controls */
.search-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pills-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.filter-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.filter-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.filter-pill input:focus-visible + .pill-dot {
  outline: 2px solid var(--accent-sage);
  outline-offset: 2px;
}

.pill-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.filter-pill input:checked + .pill-dot {
  background: var(--accent-sage);
  border-color: var(--accent-sage);
  box-shadow: 0 0 8px var(--accent-glow);
}

.filter-pill input:checked + .pill-dot::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.filter-pill input:checked ~ span:last-child {
  color: var(--text-main);
  font-weight: 600;
}

.active-scope-badge {
  background: var(--accent-sand-glow);
  border: 1px solid var(--accent-sand);
  color: var(--accent-sand);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.active-scope-badge button {
  background: transparent;
  border: none;
  color: var(--accent-sand);
  cursor: pointer;
  font-size: 0.9rem;
}

/* Meta Banner */
.search-meta-banner {
  padding: 0.75rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.meta-count { color: var(--accent-sage); font-weight: 700; }
.corpus-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
}

/* Results Stream */
.search-results-stream {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Empty State Card */
.empty-state-card {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}
.empty-icon-halo {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  color: var(--accent-sage);
  filter: drop-shadow(0 0 15px var(--accent-glow));
}
.empty-state-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}
.empty-state-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  color: var(--text-muted);
}
.suggested-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.chip-example {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip-example:hover {
  border-color: var(--accent-sage);
  color: var(--accent-sage);
  background: var(--accent-glow);
}

/* Search Card (Zen Hit) */
.zen-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.zen-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.zen-card.active {
  background: var(--bg-card-active);
  border-color: var(--accent-sage);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.zen-card.active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 15%;
  bottom: 15%;
  width: 3px;
  background: var(--accent-sage);
  border-radius: 4px;
}

.z-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  gap: 0.5rem;
}

.z-card-title-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  flex: 1;
}

.z-card-title {
  font-weight: 600;
  color: var(--accent-sage);
  font-size: 0.92rem;
}

.z-card-heading {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  padding: 1px 6px;
  border-radius: 4px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-serif);
}

.z-card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-sand);
  background: var(--accent-sand-glow);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(196, 164, 124, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

.z-card-text {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.z-card-text mark {
  background: var(--accent-glow);
  color: var(--accent-sage);
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
}
[data-theme="light"] .z-card-text mark { background: #e2ede5; }

/* A result stays in the search stream; opening it never moves the reader. */
.zen-card.expanded {
  cursor: default;
}

.z-card-expanded {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.zen-card.expanded .z-card-expanded {
  display: block;
}

.z-card-expanded-content {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-main);
}

.z-card-expanded-content p {
  margin: 0 0 1rem;
}

.z-card-expanded-content p:last-child {
  margin-bottom: 0;
}

.z-card-expanded-content p.para-rtl {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
  font-size: 1.25rem;
  line-height: 2;
}

.z-card-expanded-content mark {
  background: var(--accent-glow);
  color: var(--accent-sage);
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
}

.z-card-rtl {
  direction: rtl;
  font-family: var(--font-arabic);
  font-size: 1.25rem;
  line-height: 1.8;
  text-align: right;
}

.z-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-subtle);
}

.btn-card-mini-action {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-card-mini-action:hover {
  border-color: var(--accent-sage);
  color: var(--accent-sage);
  background: var(--accent-glow);
}

/* Pagination */
.stream-pagination {
  padding: 0.85rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-panel-2);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pag-numbers {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pag-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
}

.pag-btn:hover:not(:disabled) {
  border-color: var(--accent-sage);
  color: var(--accent-sage);
  background: var(--bg-card-hover);
}

.pag-btn.active {
  background: var(--accent-sage);
  color: #101311;
  border-color: var(--accent-sage);
  font-weight: 700;
  box-shadow: 0 2px 10px var(--accent-glow);
}
[data-theme="light"] .pag-btn.active { color: #ffffff; }

.pag-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pag-ellipsis {
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 0 0.25rem;
  user-select: none;
}

.pag-meta-info {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ========================================================================= */
/* 3. SÜTUN: TAM METİN OKUYUCU & İÇERİK MASASI (flex 1.15, min 400px)        */
/* ========================================================================= */
.col-reader {
  flex: 1.15;
  min-width: 400px;
  background: var(--bg-panel-3);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}

.col-reader::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 100% 100%, var(--accent-glow), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

/* Standby Screen */
.reader-standby-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-dim);
  z-index: 10;
}

.standby-icon {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  opacity: 0.35;
}

.reader-standby-screen h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.reader-standby-screen p {
  font-size: 0.9rem;
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.standby-shortcuts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.kbd {
  background: var(--bg-chip);
  border: 1px solid var(--border-medium);
  color: var(--accent-sand);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.75rem;
}

/* Live Canvas */
.reader-live-canvas {
  padding: 2.5rem 3rem 4rem 3rem;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
  z-index: 10;
}

.reader-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.reader-breadcrumbs {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-sand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.bc-sep { opacity: 0.4; }

.reader-top-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn-mini {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}
.action-btn-mini:hover {
  border-color: var(--accent-sage);
  color: var(--accent-sage);
}
.action-btn-mini.btn-danger-mini:hover {
  border-color: #ef5350;
  color: #ef5350;
}

/* Article */
.article-header {
  margin-bottom: 2.5rem;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.article-meta-line {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.meta-dot { opacity: 0.4; }

.author-tag { color: var(--accent-sage); font-weight: 500; }
.page-tag { color: var(--accent-sand); }
.chunk-tag { font-family: monospace; font-size: 0.75rem; color: var(--text-dim); }

.article-prose {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.95;
  color: var(--text-main);
  unicode-bidi: plaintext;
  text-align: start;
}

.article-prose p {
  margin-bottom: 1.5rem;
  unicode-bidi: plaintext;
  text-align: start;
}

.article-prose p.para-rtl {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
  font-size: 1.38rem;
  line-height: 2.2;
}

.inline-arabic {
  direction: rtl;
  unicode-bidi: embed;
  font-family: var(--font-arabic);
  font-size: 1.18em;
  color: var(--accent-sand);
  padding: 0 0.15em;
}

.article-prose mark {
  background: var(--accent-glow);
  color: var(--accent-sage);
  border-bottom: 2px solid var(--accent-sage);
  padding: 1px 4px;
  font-weight: 600;
}
[data-theme="light"] .article-prose mark { background: #e2ede5; }

/* Pagination Footer */
.reader-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  border-color: var(--accent-sage);
  color: var(--accent-sage);
  background: var(--bg-card-hover);
}

.nav-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.nav-btn.next .nav-text { text-align: right; }

.nav-lbl { font-size: 0.8rem; font-weight: 600; }
.nav-page { font-size: 0.7rem; color: var(--text-dim); }
.nav-btn .arrow { font-size: 1.25rem; font-weight: 700; color: var(--accent-sage); }

.nav-current-info {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(0,0,0,0.15);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ========================================================================= */
/* MODALS & TOASTS                                                           */
/* ========================================================================= */
.zen-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.zen-modal {
  background: var(--bg-panel-1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 { font-size: 1.1rem; color: var(--accent-sage); font-weight: 600; font-family: var(--font-serif); }
.btn-close {
  background: transparent; border: none;
  color: var(--text-muted); font-size: 1.5rem; cursor: pointer;
}
.btn-close:hover { color: var(--error); }

.modal-body { padding: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.4rem; font-weight: 500; }

.zen-input, .zen-file-input, .zen-select {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
}
.zen-input:focus, .zen-select:focus { border-color: var(--accent-sage); }

.zen-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.zen-btn.primary {
  background: var(--accent-sage);
  color: #101311;
  border-color: var(--accent-sage);
}
[data-theme="light"] .zen-btn.primary { color: #ffffff; }
.zen-btn.btn-full { width: 100%; }

/* Toast */
.zen-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent-sage);
  color: #101311;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 6px 20px var(--accent-glow);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}
[data-theme="light"] .zen-toast { color: #ffffff; }
.zen-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.zen-toast.error { background: var(--error); color: #fff; }

/* ========================================================================= */
/* TOC LIST (Book Reader Mode in Column 2)                                   */
/* ========================================================================= */
.toc-stream-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.toc-header-banner {
  padding: 1.25rem 1.75rem;
  background: var(--bg-panel-2);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.toc-header-banner h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent-sage);
  margin-bottom: 0.25rem;
}

.toc-header-banner p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.toc-items-container {
  padding: 1rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.toc-chunk-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.toc-chunk-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-sage);
}

.toc-chunk-card.active {
  background: var(--accent-glow);
  border-color: var(--accent-sage);
  border-left: 3px solid var(--accent-sage);
}

.toc-chunk-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toc-chunk-card:hover .toc-chunk-title { color: var(--accent-sage); }

.toc-chunk-page {
  font-size: 0.72rem;
  color: var(--accent-sand);
  background: var(--accent-sand-glow);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ========================================================================= */
/* UPLOAD PROGRESS & STATUS CARD                                             */
/* ========================================================================= */
.upload-progress-box {
  margin-top: 1rem;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.progress-percent {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-sage);
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--accent-sage), var(--accent-sand));
  border-radius: 6px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px var(--accent-glow);
}

.progress-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.step-bullet { font-size: 0.75rem; }

.step-item.active {
  color: var(--accent-sage);
  font-weight: 600;
}
.step-item.completed {
  color: var(--text-muted);
}
.step-item.completed .step-bullet { color: var(--success); }

.upload-success-card {
  text-align: center;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.success-icon { font-size: 2.5rem; }
.upload-success-card h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--accent-sage);
}

.success-stats {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  background: var(--bg-card);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  width: 100%;
}

/* Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-sage); }

/* ========================================================================= */
/* ACCESSIBILITY & FOCUS VISIBLE (WCAG 2.2)                                  */
/* ========================================================================= */
button:focus-visible,
input:focus-visible,
.rail-btn:focus-visible,
.cat-card:focus-visible,
.book-item:focus-visible,
.zen-card:focus-visible,
.toc-chunk-card:focus-visible {
  outline: 2px solid var(--accent-sage) !important;
  outline-offset: 2px !important;
}

/* ========================================================================= */
/* SKELETON LOADERS & PLACEHOLDERS                                           */
/* ========================================================================= */
@keyframes skeleton-shimmer {
  0% { opacity: 0.35; }
  50% { opacity: 0.75; }
  100% { opacity: 0.35; }
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 0.85rem;
  animation: skeleton-shimmer 1.5s infinite ease-in-out;
}

.skeleton-bar {
  height: 12px;
  background: var(--border-medium);
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.skeleton-bar.w-75 { width: 75%; }
.skeleton-bar.w-50 { width: 50%; }
.skeleton-bar.w-35 { width: 35%; }

/* TOC Search Box */
.toc-banner-top {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toc-search-wrap {
  position: relative;
  margin-top: 0.75rem;
}

.toc-filter-input {
  width: 100%;
  padding: 0.45rem 1.75rem 0.45rem 2rem;
  font-size: 0.78rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.toc-filter-input:focus {
  outline: none;
  border-color: var(--accent-sage);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ========================================================================= */
/* RESPONSIVE LAYOUT (iPad, MacBook Air, Tablet & Mobile)                    */
/* ========================================================================= */
@media (max-width: 1200px) {
  .col-kulliyat {
    width: 270px;
  }
  .spotlight-input {
    font-size: 0.95rem;
  }
}

@media (max-width: 992px) {
  .app-layout {
    grid-template-columns: 56px 1fr 1fr;
  }
  .col-kulliyat {
    position: fixed;
    top: 0;
    left: 56px;
    bottom: 0;
    width: 300px;
    z-index: 90;
    transform: translateX(-110%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
    background: var(--bg-panel-1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .col-kulliyat.mobile-open {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  body {
    overflow: auto;
  }
  .app-layout {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  .app-rail {
    position: sticky;
    top: 0;
    width: 100%;
    height: 52px;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.25rem 1rem;
    z-index: 100;
  }
  .rail-top-spacer {
    display: none;
  }
  .rail-actions {
    flex-direction: row;
  }
  .col-kulliyat {
    position: fixed;
    top: 52px;
    left: 0;
    width: 100%;
    max-width: 320px;
    height: calc(100vh - 52px);
  }
  .col-search, .col-reader {
    width: 100%;
    min-height: calc(100vh - 52px);
    overflow: visible;
  }
  .reader-live-canvas {
    padding: 1.5rem 1rem 3rem 1rem;
  }
}

/* ========================================================================= */
/* MOBILE-FIRST RESEARCH FLOW                                                */
/* ========================================================================= */
.kulliyat-title-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mobile-kulliyat-trigger,
.mobile-kulliyat-close,
.mobile-kulliyat-backdrop,
.mobile-reader-back {
  display: none;
}

@media (max-width: 1024px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-layout {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .app-rail {
    position: sticky;
    top: 0;
    width: 100%;
    height: 56px;
    min-height: 56px;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.25rem 0.75rem;
    z-index: 130;
  }

  .rail-top-spacer {
    display: none;
  }

  .rail-actions,
  .rail-footer {
    width: auto;
    flex-direction: row;
    gap: 0.35rem;
  }

  .mobile-kulliyat-trigger {
    display: inline-flex;
    width: auto;
    min-width: 38px;
    gap: 0.35rem;
    padding: 0 0.65rem;
    font-size: 0.8rem;
  }

  .mobile-rail-label {
    font-size: 0.75rem;
    font-weight: 600;
  }

  .col-kulliyat {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: auto;
    width: min(88vw, 360px);
    min-width: 0;
    max-width: none;
    height: calc(100dvh - 56px);
    transform: translateX(-105%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 140;
    box-shadow: 12px 0 34px rgba(0, 0, 0, 0.42);
  }

  .col-kulliyat.mobile-open {
    transform: translateX(0);
  }

  .mobile-kulliyat-backdrop {
    display: block;
    position: fixed;
    inset: 56px 0 0;
    z-index: 135;
    border: 0;
    background: rgba(5, 8, 6, 0.62);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .mobile-kulliyat-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-kulliyat-close {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
  }

  .col-search,
  .col-reader {
    width: 100%;
    min-width: 0;
    min-height: calc(100dvh - 56px);
    overflow: visible;
  }

  .col-search {
    border-right: 0;
  }

  .col-reader {
    border-top: 1px solid var(--border-subtle);
  }

  .search-spotlight-bar {
    padding: 1rem;
    gap: 0.75rem;
  }

  .spotlight-box {
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
  }

  .spotlight-icon {
    margin-right: 0.55rem;
    font-size: 1rem;
  }

  .spotlight-input {
    min-width: 0;
    font-size: 1rem;
  }

  .filter-pills-group {
    width: 100%;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0.15rem 0 0.25rem;
    scrollbar-width: none;
  }

  .filter-pills-group::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    flex: 0 0 auto;
    font-size: 0.75rem;
  }

  .search-meta-banner {
    padding: 0.65rem 1rem;
  }

  .search-results-stream {
    min-height: calc(100dvh - 214px);
    padding: 0.9rem 1rem 1.25rem;
  }

  .zen-card {
    padding: 1rem;
  }

  .z-card-heading {
    max-width: 150px;
  }

  .z-card-expanded-content {
    font-size: 1rem;
    line-height: 1.75;
  }

  .reader-live-canvas {
    min-height: calc(100dvh - 56px);
    padding: 1rem 1rem 2.5rem;
  }

  .reader-topbar {
    position: sticky;
    top: 56px;
    z-index: 20;
    align-items: flex-start;
    gap: 0.65rem;
    margin: -1rem -1rem 1.25rem;
    padding: 0.75rem 1rem;
    background: var(--bg-panel-3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .reader-breadcrumbs {
    max-width: 58%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .reader-top-actions {
    justify-content: flex-end;
  }

  .mobile-reader-back {
    display: inline-flex;
  }

  #btnCopyFullText,
  #selWorkCategory,
  #btnDeleteCurrentWork {
    display: none;
  }

  .article-header {
    margin-bottom: 1.5rem;
  }

  .article-title {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .article-prose {
    font-size: 1.05rem;
    line-height: 1.85;
  }

  .reader-pagination-bar {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
  }
}

@media (max-width: 420px) {
  .app-rail {
    padding-inline: 0.4rem;
  }

  .rail-actions,
  .rail-footer {
    gap: 0.1rem;
  }

  .rail-btn {
    width: 34px;
    height: 34px;
  }

  .mobile-kulliyat-trigger {
    padding-inline: 0.4rem;
  }

  .mobile-rail-label,
  .reader-breadcrumbs .bc-sep,
  #rBreadcrumbCategory,
  #btnCopyCitation span:last-child {
    display: none;
  }

  .reader-breadcrumbs {
    max-width: 48%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
