:root,
[data-theme="light"] {
  --bg-outer: #EDE6D8;
  --bg-app: #FAF6EE;
  --bg-surface: #FFFDF8;
  --bg-surface-elevated: #FFFFFF;
  --bg-subtle: #F2ECE0;
  --bg-card-grad-start: #FFFDF9;
  --bg-card-grad-end: #F5EFE2;

  --text-primary: #1E2420;
  --text-secondary: #555E58;
  --text-muted: #848C86;
  --text-verse: #1A211D;

  --accent-primary: #14533E;
  --accent-primary-hover: #0E3F2F;
  --accent-soft: rgba(20, 83, 62, 0.1);
  --accent-gold: #B8893D;
  --accent-gold-soft: rgba(184, 137, 61, 0.14);

  --border-subtle: rgba(20, 83, 62, 0.11);
  --border-gold: rgba(184, 137, 61, 0.28);

  --shadow-soft: 0 8px 28px rgba(24, 38, 31, 0.06);
  --shadow-card: 0 14px 40px rgba(20, 45, 35, 0.08);
  --shadow-popover: 0 18px 48px rgba(15, 30, 24, 0.16);

  --mosque-opacity: 0.08;
  --pattern-opacity: 0.045;
  --verse-font-size: 22px;
  --verse-font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
  --bg-outer: #060D0B;
  --bg-app: #0B1512;
  --bg-surface: #11201B;
  --bg-surface-elevated: #162923;
  --bg-subtle: #152620;
  --bg-card-grad-start: #13251F;
  --bg-card-grad-end: #0C1814;

  --text-primary: #EFEAE1;
  --text-secondary: #A7B4AE;
  --text-muted: #6E7E77;
  --text-verse: #F4EFE6;

  --accent-primary: #2D9370;
  --accent-primary-hover: #38AC85;
  --accent-soft: rgba(45, 147, 112, 0.16);
  --accent-gold: #D8AE64;
  --accent-gold-soft: rgba(216, 174, 100, 0.16);

  --border-subtle: rgba(216, 174, 100, 0.13);
  --border-gold: rgba(216, 174, 100, 0.3);

  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 16px 44px rgba(0, 0, 0, 0.45);
  --shadow-popover: 0 20px 52px rgba(0, 0, 0, 0.65);

  --mosque-opacity: 0.11;
  --pattern-opacity: 0.055;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-outer);
  color: var(--text-primary);
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Subtle Islamic Geometric Star Background Pattern */
.ambient-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--pattern-opacity);
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23B8893D' stroke-width='1'%3E%3Cpath d='M40 4 L49 26 L71 17 L62 39 L84 48 L62 57 L71 79 L49 70 L40 92 L31 70 L9 79 L18 57 L-4 48 L18 39 L9 17 L31 26 Z' transform='translate(0,-8)'/%3E%3Ccircle cx='40' cy='40' r='14'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* App Shell — Mobile Frame on Desktop, 100% on Mobile */
.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  margin: 0 auto;
  background-color: var(--bg-app);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.14);
}

@media (min-width: 520px) {
  .app-shell {
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
  }
}

.hidden {
  display: none !important;
}

/* ==================== TOP BAR ==================== */
.top-bar {
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  z-index: 20;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.crescent-icon {
  font-size: 22px;
  color: var(--accent-gold);
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(184, 137, 61, 0.25));
}

.app-title {
  font-family: 'Nunito', sans-serif;
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.icon-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: scale(0.95);
}

.pill-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pill-btn:hover {
  background: var(--accent-gold);
  color: #fff;
}

/* ==================== SETTINGS POPOVER ==================== */
.settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  z-index: 40;
}

.settings-popover {
  position: absolute;
  top: 70px;
  right: 14px;
  width: calc(100% - 28px);
  max-width: 340px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-popover);
  z-index: 45;
  animation: popDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popDown {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.settings-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.close-mini-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.setting-group {
  margin-bottom: 16px;
}

.setting-group:last-child {
  margin-bottom: 0;
}

.setting-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.setting-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.font-size-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
  padding: 2px 8px;
  border-radius: 99px;
}

.theme-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.theme-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.theme-option.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

.font-family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.font-family-option {
  padding: 9px 6px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.font-family-option.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

.font-controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.font-step-btn {
  width: 42px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.font-step-btn:hover {
  border-color: var(--accent-gold);
  background: var(--accent-gold-soft);
}

#font-size-slider {
  flex: 1;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.font-preview-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  text-align: center;
  font-family: var(--verse-font-family);
  font-size: var(--verse-font-size);
  line-height: 1.65;
  color: var(--text-verse);
  transition: font-size 0.15s ease;
}

.font-preview-ref {
  display: block;
  margin-top: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
}

/* ==================== VIEWS CONTAINER ==================== */
.views-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.view {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.view.active {
  display: flex;
  animation: fadeInView 0.22s ease;
}

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

/* ==================== 1. HOME VIEW ==================== */
.home-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-banner {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(145deg, #124A37 0%, #0B2D22 100%);
  color: #FAF6EE;
  padding: 24px 20px 38px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(14, 52, 39, 0.24);
  border: 1px solid rgba(216, 174, 100, 0.3);
}

.hero-ornament-top {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='50,2 62,35 97,35 69,56 80,90 50,70 20,90 31,56 3,35 38,35' fill='none' stroke='%23D8AE64' stroke-width='2'/%3E%3Ccircle cx='50' cy='50' r='28' fill='none' stroke='%23D8AE64' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: contain;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.bismillah-pill {
  display: inline-block;
  font-family: var(--verse-font-family);
  font-weight: 500;
  font-size: 12.5px;
  color: #E8C782;
  background: rgba(232, 199, 130, 0.14);
  border: 1px solid rgba(232, 199, 130, 0.28);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero-heading {
  font-family: 'Nunito', sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #FFFDF9;
}

.hero-subtext {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(250, 246, 238, 0.8);
  margin-bottom: 18px;
}

.hero-progress-wrap {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 12px;
}

.hero-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #E8C782;
  margin-bottom: 6px;
}

.hero-progress-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.hero-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #D8AE64, #F1D393);
  transition: width 0.35s ease;
}

.mosque-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 68px;
  color: #D8AE64;
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
}

/* Primary CTA: Kuran Okumaya Başla */
.primary-start-card {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-gold);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-start-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-gold);
}

.start-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.start-card-body {
  flex: 1;
  min-width: 0;
}

.start-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
  padding: 2px 9px;
  border-radius: 99px;
  margin-bottom: 4px;
}

.start-card-title {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.start-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.start-card-arrow {
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* Quick Resume Strip */
.quick-resume-strip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.quick-resume-strip:hover {
  border-color: var(--accent-primary);
}

.resume-strip-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.resume-strip-label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
}

.resume-strip-target {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-primary);
}

.resume-strip-cta {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-primary);
}

/* Main Menu Grid */
.menu-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 2px;
}

.main-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.menu-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-gold);
}

.menu-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-card-icon.emerald {
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.menu-card-icon.gold {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
}

.menu-card-icon.rose {
  background: rgba(190, 90, 90, 0.12);
  color: #C45B5B;
}

.menu-card-icon.teal {
  background: rgba(55, 130, 145, 0.13);
  color: #378291;
}

.menu-card-text h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.menu-card-text p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== 2. SURAH LIST VIEW ==================== */
.surah-list-header {
  padding: 12px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 42px;
  border-radius: 13px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.filter-tabs {
  display: flex;
  gap: 8px;
}

.filter-tab {
  flex: 1;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-tab.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.surah-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.surah-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all 0.18s ease;
}

.surah-row.is-next-up {
  border: 1.5px solid var(--accent-gold);
  background: linear-gradient(90deg, var(--bg-surface) 0%, var(--accent-gold-soft) 100%);
  box-shadow: var(--shadow-soft);
}

.surah-row.is-read {
  opacity: 0.85;
}

.surah-row-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  color: inherit;
  font: inherit;
}

.surah-num-star {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-gold);
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.surah-row.is-read .surah-num-star {
  background: var(--accent-soft);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.surah-info {
  flex: 1;
  min-width: 0;
}

.surah-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.surah-name {
  font-family: 'Nunito', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.continue-reading-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-gold), #9B6F27);
  padding: 3px 9px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(184, 137, 61, 0.35);
}

.partial-progress-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 99px;
}

.surah-meta-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Mark as Read Toggle Button */
.mark-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.mark-read-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.mark-read-btn.checked {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

/* ==================== 3. VERSE READER VIEW (VERTICAL SWIPE CARDS) ==================== */
.verse-feed {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.verse-feed::-webkit-scrollbar {
  display: none;
}

.verse-slide {
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 14px 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.verse-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  background: linear-gradient(165deg, var(--bg-card-grad-start) 0%, var(--bg-card-grad-end) 100%);
  border: 1.5px solid var(--border-gold);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 36px 68px 68px 26px; /* Right padding leaves room for right-side action bar */
  overflow: hidden;
  user-select: text;
}

/* Subtle Islamic Geometric Frame & Corner Ornaments inside Card */
.verse-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  pointer-events: none;
}

.card-corner-motif {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 52px;
  height: 52px;
  opacity: 0.18;
  color: var(--accent-gold);
  pointer-events: none;
}

.card-top-badge {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
  z-index: 3;
}

/* Mosque Silhouette at Bottom of Every Verse Card */
.card-mosque-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 110px;
  color: var(--accent-primary);
  opacity: var(--mosque-opacity);
  pointer-events: none;
  z-index: 1;
}

/* Center Verse Content */
.verse-center-content {
  position: relative;
  z-index: 3;
  max-height: 78%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 4px;
  scrollbar-width: thin;
}

.verse-turkish-text {
  font-family: var(--verse-font-family);
  font-size: var(--verse-font-size);
  line-height: 1.72;
  font-weight: 500;
  color: var(--text-verse);
  letter-spacing: 0.008em;
  margin-bottom: 18px;
  transition: font-size 0.15s ease;
}

.verse-ref-caption {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.verse-note-indicator {
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-size: 12px;
  max-width: 90%;
  cursor: pointer;
}

/* Finish Surah / Next Surah Button on Final Verse Card */
.surah-complete-box {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-finish-surah {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 99px;
  border: none;
  background: var(--accent-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 83, 62, 0.3);
  transition: transform 0.15s ease;
}

.btn-finish-surah:hover {
  transform: scale(1.03);
}

/* Right-Side Vertical Action Buttons (Paylaş, Kaydet, Not Al) */
.card-right-actions {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.card-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
}

.card-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.18s ease;
}

.card-action-btn:hover .card-action-icon {
  transform: scale(1.08);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.card-action-btn.active .card-action-icon {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.card-action-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Swipe Hint Pill */
.swipe-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.swipe-hint.fade-out {
  opacity: 0;
}

/* ==================== 4. HADIS & EMPTY STATES ==================== */
.empty-state-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
}

.ornate-circle-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--accent-gold-soft);
  border: 1.5px solid var(--border-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.construction-badge {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.empty-state-title {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.empty-state-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 320px;
  margin-bottom: 22px;
}

.secondary-pill-btn {
  padding: 11px 22px;
  border-radius: 99px;
  border: 1px solid var(--border-gold);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

/* ==================== 5 & 6. SAVED VERSES & SAVED NOTES ==================== */
.list-view-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.saved-verse-card {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(155deg, var(--bg-card-grad-start), var(--bg-card-grad-end));
  border: 1px solid var(--border-gold);
  padding: 20px 18px 16px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.saved-verse-text {
  font-family: var(--verse-font-family);
  font-size: 17.5px;
  line-height: 1.68;
  font-weight: 500;
  color: var(--text-verse);
  margin-bottom: 10px;
}

.saved-verse-ref {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.saved-note-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border-left: 3px solid var(--accent-primary);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.saved-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.card-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.card-mini-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.card-mini-btn.danger:hover {
  border-color: #C45B5B;
  color: #C45B5B;
}

/* ==================== MODALS (NOTE, JUMP, SHARE) ==================== */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(3px);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-sheet {
  width: 100%;
  max-height: 88%;
  background: var(--bg-surface-elevated);
  border-top: 1.5px solid var(--border-gold);
  border-radius: 24px 24px 0 0;
  padding: 20px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  animation: slideUpSheet 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-sheet-header h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.modal-sheet-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-verse-quote {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border-left: 3px solid var(--accent-gold);
  font-family: var(--verse-font-family);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-height: 90px;
  overflow-y: auto;
}

#note-textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-primary);
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  outline: none;
}

#note-textarea:focus {
  border-color: var(--accent-primary);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-primary {
  padding: 11px 20px;
  border-radius: 12px;
  border: none;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.btn-outline {
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.btn-outline.danger {
  color: #C45B5B;
  border-color: rgba(196, 91, 91, 0.35);
}

/* Jump Grid */
.jump-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 2px;
}

.jump-num-btn {
  padding: 10px 4px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.jump-num-btn.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

/* Share Modal */
.share-preview-wrap {
  display: flex;
  justify-content: center;
  background: var(--bg-subtle);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
}

#share-canvas {
  width: 210px;
  height: 280px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.share-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.share-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.share-action-btn.primary-share {
  grid-column: span 2;
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.share-action-btn:hover {
  border-color: var(--accent-gold);
}

/* Toast */
.toast {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  background: var(--text-primary);
  color: var(--bg-app);
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

