/* style.css */
/* Google Font */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap");

:root {
  --primary: #10b981;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --white: #ffffff;
  --text: #cbd5e1;
  --border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow: auto;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.08;
  pointer-events: none;
}

.glow-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -150px;
  left: -150px;
  animation: float 8s ease-in-out infinite;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: #0ea5e9;
  right: -200px;
  top: 25%;
  animation: float 10s ease-in-out infinite;
}

.glow-3 {
  width: 300px;
  height: 300px;
  background: #14b8a6;
  bottom: -100px;
  left: 40%;
  animation: float 12s ease-in-out infinite;
}

.section-header h2 {
  background: linear-gradient(120deg,
      #34d399 0%,
      #10b981 35%,
      #06b6d4 70%,
      #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Keep existing size/weight intact */
  font-size: 2.5rem;
  font-weight: 700;
}

/* Light mode: slightly warmer gradient so it reads on white */
/* Light mode variable overrides — make the whole site light when active */
body.light-mode {
  --dark: #f8fafc;
  --dark-light: #ffffff;
  --white: #0f172a;
  --text: #475569;
  --border: rgba(0, 0, 0, 0.08);
}

body.light-mode .section-header h2 {
  background: linear-gradient(120deg, #059669 0%, #0d9488 45%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Override the plain color rule from the existing light-mode block
   (that block sets color: #0f172a which would fight the gradient) */
body.light-mode .section-header h2 {
  color: unset;
}

/* ARABIC FONT — upgrade Amiri references site-wide */

.ayah-arabic,
.surah-english,
.modal-arabic,
.bookmark-arabic {
  font-family: "Noto Naskh Arabic", "Amiri", serif;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.2s;
}

.logo:hover {
  transform: scale(1.03);
}

.logo .baca-logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.25));
}

.logo:hover .baca-logo-icon {
  filter: drop-shadow(0 3px 8px rgba(16, 185, 129, 0.4));
}

.logo .logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Poppins", sans-serif;
}

body.light-mode .logo .logo-text {
  background: linear-gradient(135deg, #059669 0%, #0891b2 50%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  white-space: nowrap;
  padding-bottom: 4px;
  max-width: 100%;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  flex-shrink: 0;
}

.nav-links a {
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

.nav-actions button {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: var(--dark-light);
  color: white;
  cursor: pointer;
}

.hamburger-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--dark-light);
  color: white;
  cursor: pointer;
  font-size: 1.1rem;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 8%;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 999;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--primary);
}

/* Hero Section */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1rem;
  position: relative;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: radial-gradient(circle, white 3px, transparent 2px);
  background-size: 2.5rem 2.5rem;
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  color: var(--text);
  font-size: 1.15rem;
  max-width: 700px;
  margin: auto;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-secondary {
  border: 1px solid var(--border);
  color: white;
}

.daily-ayah {
  padding: 6rem 8%;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.section-header p {
  color: var(--text);
  max-width: 600px;
  margin: auto;
}

/* Daily Tafsir Panel */

.daily-tafsir-panel {
  display: none;
  max-width: 900px;
  margin: 1.5rem auto 0;
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 20px;
  padding: 1.5rem 1.8rem;
  animation: fadeDrawer 0.22s ease;
}

.daily-tafsir-panel.active {
  display: block;
}

.daily-tafsir-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.daily-tafsir-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.daily-tafsir-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.daily-tafsir-close:hover {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
}

.daily-tafsir-close svg {
  width: 14px;
  height: 14px;
}

.daily-tafsir-body {
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.85;
  margin: 0;
}

.daily-tafsir-loading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 0.9rem;
}

.daily-tafsir-error {
  color: #f87171;
  font-size: 0.88rem;
  margin: 0;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

/* Ayah Section */

.ayah-card {
  max-width: 900px;
  margin: auto;
  padding: 3rem;
  border-radius: 25px;
  background: var(--dark-light);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ayah-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), transparent);
  pointer-events: none;
}

.ayah-arabic {
  font-size: 2.3rem;
  line-height: 2.5;
  margin-bottom: 2rem;
}

.ayah-translation {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.ayah-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.ayah-actions button {
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  cursor: pointer;
}

/* Audio Player */

.audio-player-section {
  padding: 6rem 8%;
}

.audio-player {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2rem;
}

.audio-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.audio-info h3 {
  color: white;
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
}

.audio-info span {
  color: #94a3b8;
}

#reciter-select {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  outline: none;
}

#reciter-select option {
  color: var(--dark-light);
}

.audio-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.audio-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  transition: 0.3s;
}

.audio-btn:hover {
  transform: translateY(-2px);
  background: var(--primary);
}

.audio-play-btn {
  width: 70px;
  height: 70px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: var(--primary);
  color: white;
  transition: 0.3s;
}

.audio-play-btn:hover {
  transform: scale(1.08);
}

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

.audio-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--primary);
  border-radius: 100px;
}

.audio-time {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.audio-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.volume-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
}

.audio-small-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

#volume-slider {
  width: 100%;
}

#speed-bton {
  min-width: 70px;
  font-weight: 600;
}

.ayah-explorer {
  padding: 6rem 8%;
}

.explorer-search {
  max-width: 700px;
  margin: 2rem auto 3rem;
  position: relative;
  display: flex;
  align-items: center;
}

.explorer-search>svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #94a3b8;
  z-index: 2;
  pointer-events: none;
}

.explorer-search input {
  width: 100%;
  height: 58px;
  padding-left: 55px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: white;
  outline: none;
  font-size: 1rem;
}

.surah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.surah-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.5rem;
  transition: 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.surah-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
}

.surah-number {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
}

.surah-card h3 {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.surah-arabic-name {
  color: #f8fafc;
  font-size: 1.7rem;
  font-weight: 600;
  text-align: right;
  direction: rtl;
  line-height: 1.8;
  margin-bottom: 0.2rem;
  font-family: "Amiri", "Noto Naskh Arabic", serif;
}

.surah-meaning {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.8rem;
  opacity: 0.85;
}

body.light-mode .surah-card h3 {
  color: #0f172a;
}

body.light-mode .surah-arabic-name {
  color: #0f172a;
}

body.light-mode .surah-meaning {
  color: var(--primary);
}

.surah-meta {
  display: flex;
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.favorite-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
}

.favorite-btn.active {
  color: gold;
}

/* Topic Section */

.topics {
  padding: 6rem 8%;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.topic-card {
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  transition: 0.35s;
}

.topic-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border-color: var(--primary);
}

.topic-card svg {
  width: 38px;
  height: 38px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.topic-card h3 {
  font-size: 1.1rem;
}

/* Journey Section */

.journeys {
  padding: 6rem 8%;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.journey-card {
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 2rem;
  transition: 0.35s;
}

.journey-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.journey-card span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  margin-bottom: 1rem;
}

.journey-card h3 {
  margin-bottom: 1rem;
}

.journey-card p {
  color: var(--text);
  margin-bottom: 1.5rem;
}

.journey-card button {
  border: none;
  background: var(--primary);
  color: white;
  padding: 0.9rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
}

.journey-badge.done {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
}

.journey-progress {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.journey-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #06b6d4);
  transition: width 0.4s ease;
}

body.light-mode .journey-progress {
  background: rgba(0, 0, 0, 0.08);
}

/* COMPACT MOBILE CARDS — Topics & Journeys: match .surah-card density on small screens. */
@media (max-width: 768px) {
  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .topic-card {
    padding: 0.9rem 0.6rem;
    border-radius: 16px;
  }

  .topic-card svg,
  .topic-card i {
    width: 24px;
    height: 24px;
    margin-bottom: 0.4rem;
  }

  .topic-card h3 {
    font-size: 0.82rem;
  }

  .journey-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .journey-card {
    padding: 0.85rem;
    border-radius: 16px;
  }

  .journey-card .journey-badge {
    padding: 0.28rem 0.6rem;
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
  }

  .journey-card h3 {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    line-height: 1.25;
  }

  .journey-card p {
    font-size: 0.7rem;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .journey-progress {
    margin-bottom: 0.6rem;
  }

  .journey-card button {
    width: 100%;
    padding: 0.55rem 0.6rem;
    font-size: 0.72rem;
  }
}

/* Continue Reading Section */

.continue-reading {
  padding: 6rem 8%;
}

.continue-card {
  max-width: 760px;
  margin: auto;
  background: linear-gradient(145deg,
      var(--dark-light),
      rgba(255, 255, 255, 0.02));
  border: 0.1rem solid var(--border);
  border-radius: 1.9rem;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.continue-meta {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.surah-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  margin-top: 1rem;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 50px;
  transition: width 0.8s ease;
}

.progress-text {
  display: block;
  margin-top: 0.8rem;
  color: var(--text);
}

.progress-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
}

#reading-status {
  color: var(--primary);
  font-weight: 600;
}

#continue-surah {
  font-size: 2rem;
  margin: 0.6rem 0;
  font-weight: 700;
}

.resume-btn {
  border: none;
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
  animation: btn 3s infinite;
}

.resume-btn:hover {
  font-size: 0.9rem;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.35);
  animation: none;
}

@keyframes btn {
  0% {
    box-shadow: 0 0 0 0 var(--primary);
  }

  70% {
    box-shadow: 0 0 0 0.6rem rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Continue Reading Hint */

#continue-hint {
  position: fixed;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  transition: bottom 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: min(480px, 94vw);
}

#continue-hint.visible {
  bottom: 24px;
}

/* On mobile, the floating chat bubble (js/chat-widget.js) sits at
   bottom:16px/right:16px, roughly 72px tall including its margin. The
   resume toast is nearly full-width on small screens, so instead of
   overlapping the bubble horizontally, lift the toast to sit cleanly
   above it — this only changes the toast's own position, nothing about
   how the chat bubble itself displays or behaves when tapped. */
@media (max-width: 600px) {
  #continue-hint.visible {
    bottom: 88px;
  }
}

.continue-hint-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #1e293b;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

body.light-mode .continue-hint-inner {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.continue-hint-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.continue-hint-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.continue-hint-text strong {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 700;
}

.continue-hint-text span {
  font-size: 0.78rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.continue-hint-text em {
  font-style: normal;
  color: var(--white);
  font-weight: 600;
}

body.light-mode .continue-hint-text em {
  color: #0f172a;
}

.continue-hint-btn {
  border: none;
  background: var(--primary);
  color: white;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.2s;
}

.continue-hint-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.continue-hint-dismiss {
  background: none;
  border: none;
  color: var(--subtext);
  cursor: pointer;
  font-size: 0.9rem;
  flex-shrink: 0;
  padding: 0.2rem;
  line-height: 1;
  transition: color 0.2s;
}

.continue-hint-dismiss:hover {
  color: var(--wrong);
}

/* Reciters Section */

.featured-reciters {
  padding: 6rem 8%;
}

.reciters-search-wrap {
  max-width: 500px;
  margin: 0 auto 2.5rem;
  position: relative;
  display: flex;
  align-items: center;
}

.reciters-search-wrap svg {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.reciters-search-wrap input {
  width: 100%;
  height: 52px;
  padding-left: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.reciters-search-wrap input:focus {
  border-color: var(--primary);
}

.reciters-search-wrap input::placeholder {
  color: #64748b;
}

.reciters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
}

.reciter-card {
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.8rem 1.2rem 1.4rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.reciter-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.12);
}

.reciter-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--primary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
}

.reciter-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reciter-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.reciter-card .rc-country {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.reciter-card .rc-style {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.reciters-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #64748b;
}

/* ── COMPACT RECITERS PREVIEW (on index.html) ──
   Shows a horizontal strip of a few reciter avatars + a "browse all"
   button. The full grid now lives on reciters/index.html so the main
   page stays short. */
.reciters-preview {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.reciters-preview-avatars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.reciters-preview-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  overflow: hidden;
  display: block;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  background: rgba(16, 185, 129, 0.1);
}

.reciters-preview-avatar:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.25);
  z-index: 2;
}

.reciters-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reciters-preview-avatar::after {
  content: attr(data-name);
  position: absolute;
  bottom: -1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.reciters-preview-avatar:hover::after {
  opacity: 1;
}

.reciters-see-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg,
      rgba(16, 185, 129, 0.15),
      rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: 0.2s;
}

.reciters-see-all-btn:hover {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.3);
}

.reciters-see-all-btn i {
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.reciters-see-all-btn:hover i {
  transform: translateX(3px);
}

body.light-mode .reciters-preview-avatar {
  border-color: var(--primary);
}

body.light-mode .reciters-see-all-btn {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}

body.light-mode .reciters-see-all-btn:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .reciters-preview-avatar {
    width: 64px;
    height: 64px;
  }

  .reciters-preview-avatars {
    gap: 0.7rem;
  }
}

/* Daily Reflection Section */

.daily-reflection {
  padding: 6rem 8%;
}

.reflection-card {
  max-width: 900px;
  margin: auto;
  text-align: center;
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 3rem;
}

.reflection-card blockquote {
  font-size: 1.4rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1rem;
}

.reflection-card span {
  color: var(--primary);
}

/* Floating Keyframe */
@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Surah Modal */

.surah-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}

.surah-modal.active {
  display: flex;
}

.surah-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.surah-modal-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 550px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 2.5rem;
  text-align: center;
}

.surah-modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.modal-number {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.modal-arabic {
  font-size: 2rem;
  direction: rtl;
  margin: 1rem 0;
  font-family: "Noto Naskh Arabic", "Amiri", serif;
}

.modal-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  color: #94a3b8;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.modal-actions button {
  border: none;
  cursor: pointer;
  padding: 0.9rem 1.4rem;
  border-radius: 14px;
  color: white;
  background: var(--primary);
}

/* Surah Reader */

.reader-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 4000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.reader-modal.active {
  display: flex;
  animation: fadeInModal 0.25s ease;
  overflow: hidden;
}

.reader-modal.active .reader-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.reader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.reader-content {
  position: relative;
  width: 100%;
  height: 100vh;
  max-width: none;
  max-height: none;
  overflow-y: auto;
  background: linear-gradient(180deg, #0f172a, #111827);
  padding: 2rem 1.5rem;
  border-radius: 0;
  transform: scale(0.96);
  transform-origin: center bottom;
  opacity: 0;
  transition: all 0.35s ease;
  --reader-accent: #10b981;
  --reader-accent-rgb: 16, 185, 129;
  --reader-text: #ffffff;
  --reader-subtext: #cbd5e1;
  --reader-arabic: #ffffff;
  --reader-card-bg: rgba(255, 255, 255, 0.04);
  --reader-card-border: rgba(255, 255, 255, 0.08);
  --reader-header-border: rgba(255, 255, 255, 0.08);
  --reader-tool-bg: rgba(255, 255, 255, 0.05);
  --reader-drawer-bg: #111827;
}

#reader-title {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

/* .dark-theme {
  background: linear-gradient(180deg, #0f172a, #111827);
}

.gold-theme {
  background: linear-gradient(180deg, #1f2937, #111827);
}

.sepia-theme {
  background: #2d2418;
} */

.reader-close {
  position: sticky;
  top: 0;
  float: right;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  cursor: pointer;
  z-index: 2000;
}

.reader-header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 0.1rem solid var(--reader-header-border);
  padding-bottom: 2rem;
}

.reader-header h2 {
  color: var(--reader-text);
  margin-bottom: 0.4rem;
  font-size: 2rem;
}

.surah-header-card {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--reader-header-border);
}

.reader-arabic-name {
  font-size: 3.3rem;
  font-family: "Noto Naskh Arabic", "Amiri", serif;
  color: var(--reader-accent);
  margin-bottom: 0.5rem;
}

.reader-surah-title {
  font-size: 2rem;
  color: var(--reader-text);
  margin-bottom: 0.4rem;
}

.reader-meaning {
  color: var(--reader-subtext);
  margin-bottom: 0.8rem;
}

.reader-meta {
  color: var(--reader-subtext);
  font-size: 0.95rem;
  opacity: 0.85;
}

.bismillah-header {
  text-align: center;
  font-family: "Noto Naskh Arabic", "Amiri", serif;
  font-size: 3rem;
  color: var(--reader-accent);
  margin: 2rem 0 3rem;
  position: relative;
  letter-spacing: 2px;
  line-height: 2;
  animation: glowBismillah 6s ease-in-out infinite;
}

.bismillah-header::before,
.bismillah-header::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(var(--reader-accent-rgb), 1),
      transparent);
}

.bismillah-header::before {
  left: 0;
}

.bismillah-header::after {
  right: 0;
}

@keyframes glowBismillah {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.reader-verses {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.verse-card {
  background: var(--reader-card-bg);
  border: 1px solid var(--reader-card-border);
  border-radius: 28px;
  padding: 3rem;
  transition: 0.4s;
  position: relative;
  user-select: none;
  overflow: hidden;
  z-index: 1;
}

.verse-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top,
      rgba(var(--reader-accent-rgb), 0.15),
      transparent);
  opacity: 0;
  transition: 0.4s;
  z-index: 0;
}

.verse-card:hover::before {
  opacity: 1;
}

.verse-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--reader-accent-rgb), 0.3);
}

.verse-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--reader-accent);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(var(--reader-accent-rgb), 0.15);
  user-select: none;
}

.verse-arabic {
  font-family: "Noto Naskh Arabic", "Amiri", serif;
  font-size: 2.25rem;
  line-height: 2.2;
  text-align: center;
  direction: rtl;
  color: var(--reader-arabic);
  margin-bottom: 1.5rem;
  cursor: text;
}

.verse-translation {
  text-align: center;
  color: var(--reader-subtext);
  line-height: 2;
  font-size: 1.05rem;
  max-width: 700px;
  margin: 1.5rem auto 0;
  cursor: text;
}

.verse-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--reader-card-border);
  position: relative;
  z-index: 5;
}

.ayah-action {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--reader-tool-bg);
  color: var(--reader-subtext);
  transition: all 0.25s ease;
  position: relative;
  z-index: 10;
  transition: transform 0.15s ease, background 0.2s ease;
}

.ayah-action:hover {
  background: rgba(var(--reader-accent-rgb), 0.15);
  color: var(--reader-accent);
  transform: translateY(-2px);
}

.ayah-action svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.ayah-action.copied,
.ayah-action.bookmarked {
  background: rgba(var(--reader-accent-rgb), 0.25);
  color: var(--reader-accent);
  box-shadow: 0 0 15px rgba(var(--reader-accent-rgb), 0.3);
}

.reader-toolbar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.reader-tool-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  cursor: pointer;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  background: var(--reader-tool-bg);
  color: var(--reader-text);
  font-weight: 600;
  transition: 0.3s;
}

.reader-tool-btn:hover {
  transform: translateY(-2px);
  background: rgba(var(--reader-accent-rgb), 0.15);
}

.settings-drawer {
  display: none;
  margin-top: 1.2rem;
  background: var(--reader-drawer-bg);
  border: 1px solid var(--reader-card-border);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  margin-bottom: 2.2rem;
}

.settings-drawer.active {
  display: block;
  animation: fadeDrawer 0.25s ease;
}

.drawer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--reader-card-border);
}

.drawer-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(var(--reader-accent-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--reader-accent);
}

.drawer-header h4 {
  margin: 0;
  color: var(--reader-text);
  font-size: 1.15rem;
  font-weight: 700;
}

.drawer-header span {
  color: var(--reader-subtext);
  font-size: 0.85rem;
}

.setting-group {
  margin-bottom: 1.5rem;
}

.setting-group label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--reader-subtext);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.drawer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.drawer-buttons button {
  border: none;
  cursor: pointer;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  background: #1e293b;
  color: white;
  font-weight: 600;
  transition: 0.25s;
}

.drawer-buttons button:hover {
  background: var(--reader-accent);
  transform: translateY(-2px);
}

.reader-audio-card {
  display: none;
  margin-top: 1.2rem;
  background: var(--reader-drawer-bg);
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid var(--reader-card-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  margin-bottom: 2.2rem;
}

.reader-audio-card.active {
  display: block;
  animation: fadeDrawer 0.25s ease;
}

@keyframes fadeDrawer {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.audio-top2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.audio-reciter-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.audio-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(var(--reader-accent-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--reader-accent);
}

.audio-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--reader-text);
}

#current-reciter-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(var(--reader-accent-rgb), 0.15);
  color: var(--reader-accent);
  font-size: 0.85rem;
  font-weight: 600;
}

#favorite-reciter {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
  transition: 0.25s;
}

#favorite-reciter:hover {
  background: rgba(var(--reader-accent-rgb), 0.15);
  color: var(--reader-accent);
}

.audio-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

.audio-actions button {
  border: none;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: #1e293b;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.audio-actions button:hover {
  transform: translateY(-2px);
  background: rgba(16, 185, 129, 0.15);
}

#reciter-select2 {
  width: 100%;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
  color: white;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

#reciter-select2 option {
  color: var(--white);
}

#surah-audio {
  width: 100%;
  margin-top: 1rem;
}

.audio-status {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.custom-player {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0 3rem 0;
}

#audio-play-bton {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reader-content #audio-play-bton {
  background: linear-gradient(135deg,
      rgba(var(--reader-accent-rgb), 1),
      rgba(var(--reader-accent-rgb), 0.72));
}

.reader-content #audio-progress2 {
  accent-color: var(--reader-accent);
}

.reader-content .player-time {
  color: var(--reader-subtext);
}

.reader-content .audio-status {
  color: var(--reader-subtext);
}

.reader-content .audio-actions button:hover {
  background: rgba(var(--reader-accent-rgb), 0.15);
}

.reader-content .toggle-btn.active,
.reader-content .drawer-buttons button.active {
  background: var(--reader-accent);
  color: #fff;
}

#audio-play-bton svg {
  width: 24px;
  height: 24px;
}

.player-info {
  flex: 1;
  padding-right: 1.5rem;
}

.player-time {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  color: #cbd5e1;
}

#audio-progress2 {
  margin-bottom: 2rem;
  width: 100%;
  accent-color: #10b981;
}

.floating-player {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(95%, 500px);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 14px 18px;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.floating-player.active {
  display: flex;
}

.floating-info {
  min-width: 0;
}

#floating-surah {
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
}

#floating-ayah {
  color: #94a3b8;
  font-size: 0.82rem;
}

.floating-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.floating-controls button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: #1e293b;
  color: white;
  transition: 0.25s;
}

.floating-controls button:hover {
  background: #10b981;
  transform: translateY(-2px);
}

#mini-close:hover {
  background: #ef4444;
}

#mini-play {
  width: 52px;
  height: 52px;
  font-size: 1.15rem;
  background: #10b981;
}

/* Search Modal */

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
}

.search-modal.active {
  visibility: visible;
  opacity: 1;
}

.search-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.search-container {
  position: relative;
  width: min(800px, 90%);
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  z-index: 2;
}

.search-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem;
  border-bottom: 1px solid var(--border);
}

.search-header svg {
  color: var(--primary);
}

.search-header input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: white;
  font-size: 1rem;
}

.close-search {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

.search-results {
  padding: 1rem;
}

.search-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  padding: 0.5rem 1rem;
  margin-bottom: 0.3rem;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.25s;
}

.search-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-item svg {
  color: var(--primary);
}

/* FONT CONTROLS */

.font-controls {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.font-controls button {
  border: none;
  cursor: pointer;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-weight: 600;
  transition: 0.3s;
}

.font-controls button:hover {
  background: var(--reader-accent);
}

#font-increase {
  font-size: 1.1rem;
}

#font-reset {
  font-size: 1rem;
}

#font-decrease {
  font-size: 0.9rem;
}

.saved {
  background: rgba(var(--reader-accent-rgb), 0.18) !important;
  color: var(--reader-accent) !important;
}

.active-reading {
  border-color: var(--reader-accent);
  box-shadow: 0 0 0 1px var(--reader-accent), 0 15px 40px rgba(0, 0, 0, 0.25);
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.95);
  color: #10b981;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 99999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Reciter Picker Modal */

.reciter-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: none;
  align-items: center;
  justify-content: center;
}

.reciter-picker-modal.active {
  display: flex;
}

.reciter-picker-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.reciter-picker-content {
  position: relative;
  z-index: 2;
  width: min(500px, 94%);
  max-height: 80vh;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.picker-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
}

.picker-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.picker-subtitle {
  color: #94a3b8;
  font-size: 0.85rem;
}

.picker-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.picker-search {
  margin: 0.8rem 1rem;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: white;
  padding: 0 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  flex-shrink: 0;
}

.picker-search:focus {
  border-color: var(--primary);
}

.picker-list {
  overflow-y: auto;
  padding: 0.5rem 0.6rem 1rem;
  flex: 1;
}

.picker-reciter-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.18s;
}

.picker-reciter-row:hover {
  background: rgba(16, 185, 129, 0.1);
}

.picker-reciter-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  object-fit: cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  overflow: hidden;
}

.picker-reciter-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.picker-reciter-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.picker-reciter-country {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.1rem;
}

.picker-reciter-arrow {
  margin-left: auto;
  color: #334155;
  font-size: 0.9rem;
}

body.light-mode .reciter-picker-content {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .picker-header {
  border-bottom-color: rgba(0, 0, 0, 0.07);
}

body.light-mode .picker-title {
  color: #0f172a;
}

body.light-mode .picker-subtitle {
  color: #64748b;
}

body.light-mode .picker-close {
  background: #f1f5f9;
  color: #475569;
}

body.light-mode .picker-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

body.light-mode .picker-search {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

body.light-mode .picker-search::placeholder {
  color: #94a3b8;
}

body.light-mode .picker-reciter-row:hover {
  background: rgba(16, 185, 129, 0.08);
}

body.light-mode .picker-reciter-name {
  color: #0f172a;
}

body.light-mode .picker-reciter-country {
  color: #64748b;
}

body.light-mode .picker-reciter-avatar {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

body.light-mode .reciter-picker-overlay {
  background: rgba(0, 0, 0, 0.35);
}

/* Bookmarks section */
.bookmarks-section {
  padding: 5rem 8%;
}

.bookmarks-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.bookmarks-count {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.bookmarks-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.bookmarks-clear-btn:hover {
  background: rgba(239, 68, 68, 0.18);
}

.bookmarks-clear-btn svg {
  width: 15px;
  height: 15px;
}

.bookmarks-list {
  display: grid;
  gap: 1rem;
}

.bookmarks-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 24px;
  background: var(--dark-light);
  border: 1px dashed var(--border);
  color: var(--text);
}

.bookmarks-empty svg {
  width: 42px;
  height: 42px;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.bookmarks-empty p {
  margin: 0;
  max-width: 420px;
  margin-inline: auto;
}

.bookmark-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.4rem 1.5rem;
  border-radius: 20px;
  background: var(--dark-light);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.bookmark-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}

.bookmark-card-main {
  min-width: 0;
}

.bookmark-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.bookmark-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.bookmark-date {
  color: var(--text);
  font-size: 0.78rem;
  opacity: 0.8;
}

.bookmark-arabic {
  font-family: "Noto Naskh Arabic", "Amiri", serif;
  font-size: 1.45rem;
  line-height: 1.9;
  direction: rtl;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.bookmark-translation {
  color: var(--text);
  line-height: 1.7;
  font-size: 0.95rem;
}

.bookmark-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.bookmark-actions button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.bookmark-actions button:hover {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
}

.bookmark-actions button.remove-bookmark:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.bookmark-actions svg {
  width: 16px;
  height: 16px;
}

.daily-bookmark-btn.bookmarked {
  background: rgba(16, 185, 129, 0.18);
  color: var(--primary);
}

body.light-mode .bookmarks-empty,
body.light-mode .bookmark-card {
  background: #ffffff;
}

body.light-mode .bookmark-arabic {
  color: #0f172a;
}

body.light-mode .bookmark-actions button {
  background: #e2e8f0;
  color: #0f172a;
}

/* Media Responsiveness */
@media (max-width: 1119px) {
  .nav-links {
    display: none;
  }

  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .ayah-arabic {
    font-size: 1.8rem;
  }

  .continue-reading {
    padding: 4rem 5%;
  }

  .continue-card {
    grid-template-columns: 1fr;
    text-align: center;
    /* gap: 2rem; */
  }

  .progress-bar {
    margin-top: 1.2rem;
  }

  .resume-btn {
    width: 100%;
    /* margin-top: 1rem; */
  }

  .audio-top {
    flex-direction: column;
    align-items: stretch;
  }

  .audio-bottom {
    flex-direction: column;
  }

  .volume-wrapper {
    width: 100%;
  }

  .surah-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .surah-card {
    padding: 0.8rem;
    border-radius: 16px;
  }

  .surah-number {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .surah-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }

  .surah-arabic-name {
    font-size: 1.2rem;
    margin-bottom: 0.1rem;
  }

  .surah-meaning {
    font-size: 0.78rem;
  }

  .surah-meta {
    font-size: 0.68rem;
    gap: 0.4rem;
  }

  .surah-meta span {
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
  }

  .bismillah-header {
    font-size: 2.2rem;
  }

  .bismillah-header::before,
  .bismillah-header::after {
    width: 22%;
  }

  .verse-arabic {
    font-size: 1.85rem;
  }
}

@media (max-width: 640px) {
  .reciters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  /* Daily Ayah card — reduce padding so buttons aren't squashed */
  .ayah-card {
    padding: 1.5rem 1rem;
    border-radius: 18px;
  }

  .ayah-arabic {
    font-size: 1.5rem;
    line-height: 2;
  }

  .ayah-translation {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  /* Daily Ayah action buttons — smaller + tighter on mobile */
  .ayah-actions {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .ayah-actions button {
    width: 44px;
    height: 44px;
  }

  .ayah-actions button svg,
  .ayah-actions button i {
    width: 17px;
    height: 17px;
  }

  /* Home audio player section — tighten on mobile */
  .audio-player-section {
    padding: 3rem 5%;
  }

  .audio-player {
    padding: 1.2rem;
    border-radius: 18px;
  }

  .audio-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
  }

  .audio-info {
    text-align: center;
  }

  .audio-info h3 {
    font-size: 1.05rem;
  }

  .audio-info span {
    font-size: 0.8rem;
  }

  #reciter-select {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.6rem 0.7rem;
  }

  .audio-controls {
    gap: 0.8rem;
    margin-bottom: 1rem;
  }

  .audio-btn {
    width: 42px;
    height: 42px;
  }

  .audio-btn svg,
  .audio-btn i {
    width: 16px;
    height: 16px;
  }

  .audio-play-btn {
    width: 56px !important;
    height: 56px !important;
  }

  .audio-play-btn svg,
  .audio-play-btn i {
    width: 22px;
    height: 22px;
  }

  .audio-bottom {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
  }

  .volume-wrapper {
    width: 100%;
  }
}

@media (max-width: 540px) {

  .bismillah-header::before,
  .bismillah-header::after {
    display: none;
    /* width: 10%; */
  }
}

/* READING PROGRESS SECTION */

.reading-progress-section {
  padding: 6rem 8%;
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.progress-card {
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: transform 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.progress-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .progress-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }

  .progress-card {
    padding: 0.9rem 0.75rem;
    border-radius: 16px;
    gap: 0.7rem;
  }

  .progress-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .progress-icon svg {
    width: 17px;
    height: 17px;
  }

  .progress-value {
    font-size: 1.1rem;
  }

  .progress-label {
    font-size: 0.62rem;
    letter-spacing: 0.3px;
    margin-top: 0.1rem;
  }

  .streak-flame {
    font-size: 2.2rem;
    right: -6px;
    bottom: -6px;
    opacity: 0.5;
  }
}

.progress-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.progress-icon svg {
  width: 24px;
  height: 24px;
}

.progress-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.progress-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

body.light-mode .progress-value {
  color: var(--white);
}

.progress-label {
  font-size: 0.82rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
}

.streak-card {
  background: linear-gradient(135deg,
      rgba(239, 68, 68, 0.1),
      rgba(249, 115, 22, 0.08));
  border-color: rgba(239, 68, 68, 0.2);
}

.streak-card .progress-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #f97316;
}

.streak-flame {
  position: absolute;
  right: -10px;
  bottom: -10px;
  font-size: 4rem;
  opacity: 0.08;
  pointer-events: none;
}

.daily-goal-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.daily-goal-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  width: 0%;
  transition: width 0.8s ease;
  border-radius: 0 4px 4px 0;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem;
}

body.light-mode .stats-grid {
  background: #fff;
}

.stat-item {
  text-align: center;
  padding: 0.8rem;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(120deg, #34d399, #10b981, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.3rem;
}

/* DAILY CHALLENGE */

.daily-challenge-section {
  padding: 4rem 8% 6rem;
}

.challenge-card {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg,
      var(--dark-light),
      rgba(16, 185, 129, 0.05));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.challenge-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.challenge-card.completed {
  border-color: var(--primary);
  background: linear-gradient(135deg,
      rgba(16, 185, 129, 0.12),
      rgba(6, 182, 212, 0.05));
}

.challenge-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.challenge-badge {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.challenge-badge svg {
  width: 28px;
  height: 28px;
}

.challenge-info h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

body.light-mode .challenge-info h3 {
  color: var(--white);
}

.challenge-info p {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.challenge-progress {
  width: 100%;
  max-width: 300px;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.challenge-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  width: 0%;
  border-radius: 100px;
  transition: width 0.6s ease;
}

.challenge-status {
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 600;
}

.challenge-right {
  text-align: center;
  flex-shrink: 0;
}

.challenge-xp {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

/* ACHIEVEMENTS */

.achievements-section {
  padding: 4rem 8% 6rem;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.achievement-badge {
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, opacity 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.achievement-badge.locked {
  opacity: 0.4;
  filter: grayscale(0.8);
}

.achievement-badge.unlocked {
  border-color: rgba(16, 185, 129, 0.3);
}

.achievement-badge.unlocked::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top,
      rgba(16, 185, 129, 0.08),
      transparent 70%);
  pointer-events: none;
}

.achievement-badge:hover {
  transform: translateY(-4px);
}

.achievement-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.achievement-badge.unlocked .achievement-icon {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.achievement-icon svg {
  width: 26px;
  height: 26px;
}

.achievement-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.2rem;
}

body.light-mode .achievement-name {
  color: var(--white);
}

.achievement-desc {
  font-size: 0.72rem;
  color: var(--text);
  line-height: 1.4;
}

/* FOOTER */

.baca-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 4rem 8% 2rem;
  margin-top: 2rem;
}

body.light-mode .baca-footer {
  background: #f8fafc;
  border-top-color: rgba(0, 0, 0, 0.06);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.baca-footer .baca-logo-icon {
  width: 28px;
  height: 28px;
}

.footer-tagline {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-desc {
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.light-mode .footer-col h4 {
  color: var(--white);
}

.footer-col a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--dark-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  padding: 0;
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  padding-left: 0;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-quote {
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 0.3rem;
}

.footer-quote-ref {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  color: var(--text);
  font-size: 0.82rem;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .challenge-card {
    flex-direction: column;
    text-align: center;
  }

  .challenge-left {
    flex-direction: column;
  }
}

/* TOPIC CARDS — clickable with hover effect */

.topic-card {
  cursor: pointer;
}

.topic-card:active {
  transform: translateY(-2px) scale(0.98);
}

/* JOURNEY CARDS — button hover */

.journey-card button {
  cursor: pointer;
}

/* SEARCH RESULTS — improved styling */

.search-item small {
  font-size: 0.78rem;
  opacity: 0.6;
}

.search-item.topic-result {
  border-left: 3px solid var(--primary);
}

.search-item.topic-result svg {
  color: var(--primary);
}

/* Hide bg-glow elements completely (removed from HTML but CSS safety) */
.bg-glow {
  display: none !important;
}

/* LIGHT MODE — Gamification sections */

body.light-mode .progress-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.07);
}

body.light-mode .progress-icon {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}

body.light-mode .streak-card {
  background: linear-gradient(135deg,
      rgba(239, 68, 68, 0.08),
      rgba(249, 115, 22, 0.06));
  border-color: rgba(239, 68, 68, 0.15);
}

body.light-mode .streak-card .progress-icon {
  background: rgba(239, 68, 68, 0.12);
  color: #ea580c;
}

body.light-mode .stats-grid {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.07);
}

body.light-mode .stat-item {
  border-right-color: rgba(0, 0, 0, 0.07);
}

body.light-mode .stat-number {
  background: linear-gradient(120deg, #059669, #0d9488, #0284c7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .challenge-card {
  background: linear-gradient(135deg, #fff, rgba(5, 150, 105, 0.04));
  border-color: rgba(0, 0, 0, 0.07);
}

body.light-mode .challenge-card.completed {
  background: linear-gradient(135deg,
      rgba(5, 150, 105, 0.1),
      rgba(8, 145, 178, 0.04));
  border-color: rgba(5, 150, 105, 0.3);
}

body.light-mode .challenge-progress {
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .achievement-badge {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.07);
}

body.light-mode .achievement-icon {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}

body.light-mode .achievement-badge.unlocked .achievement-icon {
  background: linear-gradient(135deg, #059669, #0891b2);
  color: #fff;
}

body.light-mode .daily-goal-bar {
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .challenge-xp {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}

/* Light mode for search results */
body.light-mode .search-item small {
  opacity: 0.7;
}

/* Light mode footer adjustments */
body.light-mode .footer-social a {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569;
}

body.light-mode .footer-social a:hover {
  background: #059669;
  color: #fff;
}

body.light-mode .footer-quote {
  color: #64748b;
}

/* Light mode for topics and journeys (already mostly dark-light, ensure white) */
body.light-mode .topic-card {
  background: #fff;
}

body.light-mode .journey-card {
  background: #fff;
}

/* READER — Translation & Tafsir display in verse cards */

.reader-select {
  width: 100%;
  background: #1e293b;
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  margin-top: 0.5rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2310b981' stroke-width='2'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.reader-select:focus {
  border-color: var(--primary);
}

.reader-select option {
  background: var(--dark-light);
  color: var(--white);
  padding: 0.5rem;
}

/* Translation block inside verse cards */
.verse-reader-translation {
  background: var(--reader-tool-bg);
  border-left: 3px solid var(--reader-accent);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--reader-subtext);
}

.verse-reader-translation .vrt-lang,
.verse-reader-tafsir .vrt-lang {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--reader-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

/* Tafsir block inside verse cards */
.verse-reader-tafsir {
  background: var(--reader-tool-bg);
  border: 1px solid var(--reader-card-border);
  border-left: 3px solid var(--reader-accent);
  border-radius: 8px;
  padding: 1rem;
  margin: 0.5rem 0;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--reader-text);
  max-height: 400px;
  overflow-y: auto;
}

.verse-reader-tafsir p {
  margin-bottom: 0.7rem;
}

.verse-reader-tafsir[dir="rtl"] {
  font-family: "Amiri", "Noto Naskh Arabic", serif;
  font-size: 1.1rem;
  line-height: 2;
}

body.light-mode .reader-select {
  background-color: #f1f5f9;
  color: var(--white);
}

body.light-mode .reader-select option {
  background: #fff;
  color: var(--white);
}

/* FOOTER ISLAMIC DATE STRIP — deliberately theme-independent (fixed colors, no vars). */

.footer-islamic-date:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.45);
}

/* Diagonal shimmer sweep */
.footer-islamic-date::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgba(16, 185, 129, 0.16),
      rgba(6, 182, 212, 0.16),
      transparent);
  transform: skewX(-20deg);
  animation: fid-shimmer 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes fid-shimmer {
  0% {
    left: -60%;
  }

  45% {
    left: 130%;
  }

  100% {
    left: 130%;
  }
}

.fid-icon svg {
  width: 20px;
  height: 20px;
}

/* Breathing pulse ring around the moon icon */
.fid-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  animation: fid-pulse 2.4s ease-out infinite;
}

@keyframes fid-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }

  70% {
    transform: scale(1.35);
    opacity: 0;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@media (max-width: 600px) {}

/* HIJRI CALENDAR CARD — two-part: teal Islamic date on top, dark week number below. */

.daily-ayah-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.daily-ayah-title-wrap {
  text-align: center;
}

.hijri-calendar-card {
  display: flex;
  flex-direction: column;
  width: 160px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: hccFloat 4s ease-in-out infinite;
  flex-shrink: 0;
}

.hijri-calendar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

/* Top section — teal with Islamic date */
.hcc-top {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  padding: 0.6rem 0.8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Unique decorative shimmer on the teal section */
.hcc-top::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  animation: hccShimmer 4s ease-in-out infinite;
}

.hcc-date {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

/* Bottom section — dark with week number */
.hcc-bottom {
  background: var(--dark-light, #1e293b);
  padding: 0.5rem 0.8rem 0.7rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.hcc-week-label {
  color: var(--text, #cbd5e1);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.hcc-week-num {
  color: var(--white, #fff);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #34d399, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animations */
@keyframes hccFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes hccShimmer {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 150%;
  }
}

/* Light mode */
body.light-mode .hcc-top {
  background: linear-gradient(135deg, #059669, #0891b2);
}

body.light-mode .hcc-bottom {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .hcc-week-label {
  color: #64748b;
}

body.light-mode .hcc-week-num {
  background: linear-gradient(135deg, #059669, #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 600px) {
  .daily-ayah-header {
    flex-direction: column;
    text-align: center;
  }

  .daily-ayah-title-wrap {
    text-align: center;
  }

  .hijri-calendar-card {
    width: 140px;
  }
}

/* REVELATION ORDER BADGE on surah cards */

.surah-rev-order {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.3rem;
}

body.light-mode .surah-rev-order {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}

/* Filter pills with icons — ensure icons are sized correctly */
.fpill i,
.fpill svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
}

/* READER TAFSIR PANEL — styling for tafsir shown in verse cards */

.tafsir-panel {
  margin-top: 1rem;
  padding: 1.2rem;
  background: var(--reader-tool-bg);
  border: 1px solid var(--reader-card-border);
  border-left: 3px solid var(--reader-accent);
  border-radius: 16px;
  animation: fadeDrawer 0.25s ease;
  position: relative;
  z-index: 5;
}

.tafsir-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--reader-card-border);
}

.tafsir-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(var(--reader-accent-rgb), 0.15);
  color: var(--reader-accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tafsir-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: var(--reader-tool-bg);
  color: var(--reader-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.tafsir-close:hover {
  background: rgba(var(--reader-accent-rgb), 0.2);
  color: var(--reader-accent);
}

.tafsir-close svg {
  width: 16px;
  height: 16px;
}

.tafsir-body {
  color: var(--reader-subtext);
  font-size: 0.95rem;
  line-height: 1.85;
  margin: 0;
}

.tafsir-body p {
  margin-bottom: 0.8rem;
}

.tafsir-body.tafsir-arabic {
  font-family: "Amiri", "Noto Naskh Arabic", serif;
  font-size: 1.15rem;
  line-height: 2;
  direction: rtl;
  text-align: right;
}

/* ── READING MODAL / TAFSIR READABILITY FIXES ──
   On mobile, the verse-card's 3rem padding + reader-content's 1.5rem
   padding made the tafsir text squeezed into a narrow column. These
   rules reduce padding on small screens and give the tafsir body
   more breathing room so it's actually readable. */

@media (max-width: 768px) {
  .reader-content {
    padding: 1rem 0.8rem;
  }

  .verse-card {
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }

  .verse-arabic {
    font-size: 1.7rem;
    line-height: 2;
  }

  .verse-translation {
    font-size: 0.98rem;
    line-height: 1.9;
  }

  .tafsir-panel {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 14px;
  }

  .tafsir-body {
    font-size: 0.95rem;
    line-height: 1.9;
  }

  .tafsir-body.tafsir-arabic {
    font-size: 1.1rem;
    line-height: 2.1;
  }

  .verse-reader-tafsir {
    padding: 0.9rem;
    font-size: 0.92rem;
    line-height: 1.9;
    max-height: 350px;
  }

  .verse-actions {
    gap: 0.6rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .reader-content {
    padding: 0.8rem 0.6rem;
  }

  .verse-card {
    padding: 1.2rem 0.8rem;
  }

  .verse-arabic {
    font-size: 1.45rem;
  }

  .tafsir-panel {
    padding: 0.9rem 0.8rem;
  }

  .tafsir-body {
    font-size: 0.92rem;
    line-height: 1.85;
  }
}

/* ── READING MODAL AUDIO SECTION — mobile fixes ──
   On mobile the audio drawer was cramped: 60px play button,
   3rem padding, and full-width select made everything squashed.
   These rules tighten the layout for small screens. */
@media (max-width: 640px) {
  .reader-audio-card {
    padding: 1rem 0.9rem;
    border-radius: 18px;
  }

  .audio-top2 {
    margin-bottom: 1rem;
    gap: 0.5rem;
  }

  .audio-reciter-info {
    gap: 0.7rem;
    min-width: 0;
    flex: 1;
  }

  .audio-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .audio-title {
    font-size: 0.85rem;
  }

  #current-reciter-badge {
    font-size: 0.72rem;
  }

  #favorite-reciter {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  #favorite-reciter svg,
  #favorite-reciter i {
    width: 15px;
    height: 15px;
  }

  #reciter-select2 {
    font-size: 0.85rem;
    padding: 0.6rem 0.7rem;
  }

  .custom-player {
    gap: 0.7rem;
    padding: 0;
    margin-top: 1rem;
  }

  #audio-play-bton {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
  }

  #audio-play-bton svg,
  #audio-play-bton i {
    width: 18px;
    height: 18px;
  }

  .player-info {
    padding-right: 0.3rem;
    min-width: 0;
  }

  .player-time {
    font-size: 0.72rem;
    margin-bottom: 0.4rem;
  }

  #audio-progress2 {
    margin-bottom: 0.8rem;
    height: 4px;
  }

  .audio-actions {
    gap: 0.4rem;
    margin-top: 0.8rem;
  }

  .audio-actions button {
    padding: 0.55rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 12px;
    gap: 0.3rem;
  }

  .audio-actions button svg,
  .audio-actions button i {
    width: 14px;
    height: 14px;
  }
}

.tafsir-loading {
  color: var(--reader-subtext);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.tafsir-error {
  color: #f87171;
  font-size: 0.88rem;
  margin: 0;
}

/* Favorite reciter button */
#favorite-reciter {
  background: var(--reader-tool-bg) !important;
  color: var(--reader-text) !important;
}

.reader-audio-card {
  background: var(--reader-drawer-bg) !important;
  border-color: var(--reader-card-border) !important;
}

.settings-drawer {
  background: var(--reader-drawer-bg) !important;
  border-color: var(--reader-card-border) !important;
}

.audio-actions button {
  background: var(--reader-tool-bg) !important;
  color: var(--reader-text) !important;
}

.audio-actions button:hover {
  background: rgba(var(--reader-accent-rgb), 0.15) !important;
}

#reciter-select2 {
  background: var(--reader-drawer-bg) !important;
  color: var(--reader-text) !important;
  border-color: var(--reader-card-border) !important;
}

#reciter-select2 option {
  background: var(--reader-drawer-bg) !important;
  color: var(--reader-text) !important;
}

.custom-player {
  background: transparent !important;
}

.player-time {
  color: var(--reader-subtext) !important;
}

#audio-progress2 {
  accent-color: var(--reader-accent) !important;
}

.floating-player {
  background: var(--reader-drawer-bg) !important;
  border: 1px solid var(--reader-card-border) !important;
  color: var(--reader-text) !important;
}

#floating-surah {
  color: var(--reader-text) !important;
}

#floating-ayah {
  color: var(--reader-subtext) !important;
}

.floating-controls button {
  background: var(--reader-tool-bg) !important;
  color: var(--reader-text) !important;
  border: 1px solid var(--reader-card-border) !important;
  transition: background 0.2s, color 0.2s, transform 0.15s !important;
}

.floating-controls button:hover {
  background: var(--reader-accent) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  border-color: var(--reader-accent) !important;
}

#mini-close:hover {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
}

#mini-play {
  background: var(--reader-accent) !important;
  color: #fff !important;
  border-color: var(--reader-accent) !important;
}

#mini-play:hover {
  filter: brightness(1.1) !important;
}

#mini-settings-drawer {
  background: var(--reader-drawer-bg) !important;
  border-color: var(--reader-card-border) !important;
}

#mini-settings-drawer .mini-drawer-label {
  color: var(--reader-subtext) !important;
}

#mini-settings-drawer .mini-drawer-row button {
  background: var(--reader-tool-bg) !important;
  color: var(--reader-text) !important;
}

/* Reader select dropdowns (translation & tafsir) — theme-color sync.
   NOTE: background-color (not the `background` shorthand) is used here
   on purpose. The `background` shorthand resets every background
   sub-property it doesn't mention — including the background-image
   arrow set on the base .reader-select rule above — which is what
   made the dropdown arrow disappear. */
.reader-select {
  background-color: var(--reader-drawer-bg) !important;
  color: var(--reader-text) !important;
  border-color: var(--reader-card-border) !important;
}

.reader-select option {
  background: var(--reader-drawer-bg) !important;
  color: var(--reader-text) !important;
}

.reader-select:focus {
  border-color: var(--reader-accent) !important;
}

/* Verse reader translation block */
.verse-reader-translation {
  background: var(--reader-tool-bg) !important;
  color: var(--reader-subtext) !important;
  border-left-color: var(--reader-accent) !important;
}

/* Current reciter badge */
#current-reciter-badge {
  background: rgba(var(--reader-accent-rgb), 0.15) !important;
  color: var(--reader-accent) !important;
}

/* HIDE CHAT WIDGET WHEN READING MODAL IS OPEN */
body.reader-open .baca-chat-fab,
body.reader-open .baca-chat-panel {
  display: none !important;
}

/* MUSHAF PAGE: chat widget mobile-only */
@media (min-width: 769px) {

  body.mushaf-page .baca-chat-fab,
  body.mushaf-page .baca-chat-panel {
    display: none !important;
  }
}

/* FOOTER FEEDBACK FORM */
.footer-feedback {
  max-width: 600px;
  margin: 2.5rem auto 0;
  padding: 0 1rem;
}

.feedback-card {
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.8rem;
  text-align: center;
}

.feedback-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--white);
}

.feedback-card h4 i {
  color: var(--primary);
}

.feedback-card>p {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.feedback-card form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-align: left;
}

.feedback-card input,
.feedback-card select,
.feedback-card textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.feedback-card input:focus,
.feedback-card select:focus,
.feedback-card textarea:focus {
  border-color: var(--primary);
}

.feedback-card textarea {
  resize: vertical;
  min-height: 70px;
  line-height: 1.5;
}

.feedback-card select {
  cursor: pointer;
  appearance: none;
  color-scheme: dark;
  /* makes the native dropdown list dark in dark mode */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

/* Style the dropdown options for dark mode (works in most modern browsers) */
.feedback-card select option {
  background: #1e293b;
  color: #cbd5e1;
  padding: 0.5rem 0.7rem;
}

.feedback-card select option:checked,
.feedback-card select option:hover {
  background: #10b981;
  color: #fff;
}

.feedback-card input::placeholder,
.feedback-card textarea::placeholder {
  color: #64748b;
}

.feedback-submit-btn {
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feedback-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.feedback-submit-btn:active {
  transform: translateY(0);
}

/* Light mode adjustments */
body.light-mode .feedback-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.07);
}

body.light-mode .feedback-card h4 {
  color: #0f172a;
}

body.light-mode .feedback-card>p {
  color: #475569;
}

body.light-mode .feedback-card input,
body.light-mode .feedback-card select,
body.light-mode .feedback-card textarea {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

/* Light mode: dropdown options use light background */
body.light-mode .feedback-card select {
  color-scheme: light;
}

body.light-mode .feedback-card select option {
  background: #ffffff;
  color: #0f172a;
}

body.light-mode .feedback-card select option:checked,
body.light-mode .feedback-card select option:hover {
  background: #10b981;
  color: #fff;
}

body.light-mode .feedback-card input::placeholder,
body.light-mode .feedback-card textarea::placeholder {
  color: #94a3b8;
}

@media (max-width: 640px) {
  .footer-feedback {
    margin-top: 2rem;
    padding: 0 0.5rem;
  }

  .feedback-card {
    padding: 1.4rem 1.1rem;
    border-radius: 18px;
  }
}

/* LIGHT MODE — Mobile nav (hamburger dropdown) */

body.light-mode .mobile-nav {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .mobile-nav a {
  color: #0f172a;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .mobile-nav a:hover {
  color: var(--primary);
}

body.light-mode .hamburger-btn {
  background: #f1f5f9;
  color: #0f172a;
}

/* SCROLLABLE NAVBAR — horizontal scroll for many nav links */

.nav-links {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  max-width: 100%;
  padding-bottom: 2px;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links-wrapper {
  position: relative;
}

.nav-links-wrapper::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.8));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

body.light-mode .nav-links-wrapper::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
}

.nav-links-wrapper.has-scroll::after {
  opacity: 1;
}

/* Light mode navbar */
body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .navbar .nav-links a {
  color: #0f172a;
}

body.light-mode .navbar .nav-links a:hover {
  color: var(--primary);
}

body.light-mode .nav-actions button {
  background: #f1f5f9;
  color: #0f172a;
}

body.light-mode .nav-actions button:hover {
  background: var(--primary);
  color: #fff;
}

body.light-mode .hamburger-btn {
  background: #f1f5f9;
  color: #0f172a;
}

body.light-mode .mobile-nav {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .mobile-nav a {
  color: #0f172a;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .mobile-nav a:hover {
  color: var(--primary);
}