/* ==============================
   KAJIAN RAMADHAN - Mobile-First
   Masjid As Sakinah Pantai Mentari
   ============================== */

/* === SPLASH SCREEN (mobile only) === */
.splash-screen {
  display: none;
  /* hidden by default on desktop */
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
}

@media (max-width: 768px) {
  .splash-screen {
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
}

.splash-screen.splash-hide {
  animation: splashFadeOut 0.6s ease forwards;
}

@keyframes splashFadeOut {
  to {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
  }
}

.splash-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.splash-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(7, 9, 15, 0.15) 0%,
      rgba(7, 9, 15, 0.55) 60%,
      rgba(7, 9, 15, 0.92) 100%);
}

.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px 54px;
  width: 100%;
}

.splash-sub {
  font-size: 0.75rem;
  color: rgba(237, 232, 220, 0.75);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 400;
}

.splash-title {
  font-family: 'Amiri', serif;
  font-size: 2.2rem;
  color: var(--gold-light);
  text-shadow: 0 2px 20px rgba(212, 175, 55, 0.6);
  margin-bottom: 6px;
  line-height: 1.15;
}

.splash-masjid {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.splash-loader {
  width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  margin: 0 auto;
  overflow: hidden;
}

.splash-loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 100px;
  animation: splashLoad 3s ease forwards;
}

@keyframes splashLoad {
  0% {
    width: 0%;
  }

  80% {
    width: 90%;
  }

  100% {
    width: 100%;
  }
}

/* === CSS Variables === */
:root {
  --gold: #D4AF37;
  --gold-light: #F5DEB3;
  --gold-dark: #A88520;
  --teal: #0D5C63;
  --teal-light: #1A8A94;
  --teal-dark: #083F45;
  --bg: #07090F;
  --bg2: #0D1220;
  --bg3: #131C2E;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.07);
  --text: #EDE8DC;
  --text-muted: #7A8FAA;
  --border: rgba(212, 175, 55, 0.15);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* === Reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(74px + var(--safe-bottom));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(10, 22, 40, 0.82) 0%, rgba(13, 59, 74, 0.75) 50%, rgba(10, 32, 48, 0.85) 100%),
    url('hero.jpg') center center / cover no-repeat;
  overflow: hidden;
  padding: 18px 16px 22px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(13, 92, 99, 0.4) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      transparent,
      transparent 30px,
      rgba(212, 175, 55, 0.03) 30px,
      rgba(212, 175, 55, 0.03) 31px);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.mosque-icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
  filter: drop_shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

.hero-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 500;
}

.hero-title {
  margin-bottom: 4px;
}

.arabic {
  font-family: 'Amiri', serif;
  font-size: 1.6rem;
  color: var(--gold-light);
  display: block;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.5);
}

.hero-subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.hero-desc {
  display: none;
}

.hero-header-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  display: block;
  margin: 4px auto 8px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  border-radius: 8px;
}

.crescent-deco {
  position: absolute;
  right: -30px;
  top: 20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 20px solid rgba(212, 175, 55, 0.08);
  z-index: 1;
}

/* === REMINDER BANNER === */
.reminder-banner {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  background: linear-gradient(90deg, rgba(13, 92, 99, 0.97), rgba(10, 32, 48, 0.97));
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  position: relative;
  z-index: 99;
  animation: slideDown 0.4s ease;
}

.reminder-banner.show {
  display: flex;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reminder-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.reminder-text {
  flex: 1;
  min-width: 0;
}

.reminder-text strong {
  display: block;
  font-size: 0.72rem;
  color: var(--gold);
}

.reminder-text span {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.reminder-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.btn-notif {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0A0F1E;
  border: none;
  border-radius: 50px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 9px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.btn-dismiss {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 50px;
  font-size: 0.62rem;
  padding: 4px 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

/* === TAB NAV (Sticky top) === */
.tab-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  background: rgba(7, 9, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 10px;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 1;
  min-width: 72px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 7px 6px;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}

.tab-btn.active {
  color: #0A0F1E;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  font-weight: 700;
}

/* === MAIN / SECTIONS === */
.main-content {
  padding: 0 0 16px 0;
}

.tab-section {
  display: none;
}

.tab-section.active {
  display: block;
}

.section-header {
  padding: 14px 14px 10px;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* === FEATURED VIDEO === */
.featured-video-wrap {
  margin: 0 10px 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.video-label {
  background: linear-gradient(90deg, var(--teal-dark), var(--teal));
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 12px;
  letter-spacing: 0.04em;
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.yt-channel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(135deg, #FF0000, #CC0000);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  transition: opacity 0.2s;
}

.yt-channel-btn:active {
  opacity: 0.85;
}

.yt-icon {
  font-size: 1rem;
}

/* === PLAYLIST GRID === */
.playlist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 10px 10px;
}

.playlist-card {
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  text-decoration: none;
}

.playlist-card:active {
  transform: scale(0.98);
}

.playlist-card:hover {
  border-color: var(--gold);
}

.playlist-thumb {
  width: 110px;
  min-width: 110px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg3);
}

.playlist-thumb-wrap {
  position: relative;
  width: 88px;
  min-width: 88px;
}

.playlist-thumb-wrap img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  font-size: 1.1rem;
}

.playlist-info {
  flex: 1;
  min-width: 0;
}

.playlist-ep {
  font-size: 0.65rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.playlist-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.playlist-ustadz {
  font-size: 0.7rem;
  color: var(--teal-light);
  font-weight: 600;
}

/* === SEARCH === */
.search-wrap {
  padding: 0 10px 8px;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  color: var(--text);
  font-size: 0.82rem;
  padding: 9px 18px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.search-input:focus {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* === FILTER CHIPS === */
.filter-chips {
  display: flex;
  gap: 6px;
  padding: 0 10px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border-radius: 50px;
  padding: 5px 13px;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Inter', sans-serif;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.chip.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #07090F;
  border-color: transparent;
  font-weight: 700;
}

/* === KAJIAN CARDS === */
.kajian-list {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kajian-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.kajian-card:hover {
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.kajian-card:active {
  transform: scale(0.99);
}

.kajian-card-header {
  padding: 9px 10px 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.kajian-number {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-light);
}

.kajian-meta {
  flex: 1;
}

.kajian-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 2px 8px;
  margin-bottom: 3px;
}

.kajian-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 2px;
}

.kajian-ustadz {
  font-size: 0.72rem;
  color: var(--teal-light);
  font-weight: 600;
}

.kajian-tanggal {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* preview excerpt */
.kajian-excerpt {
  display: none;
}

.kajian-actions {
  display: flex;
  border-top: 1px solid var(--border);
}

.kajian-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 9px 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.15s, color 0.15s;
  font-family: 'Inter', sans-serif;
}

.kajian-btn:active {
  background: rgba(255, 255, 255, 0.05);
}

.kajian-btn.summary {
  color: var(--teal-light);
  border-right: 1px solid var(--border);
}

.kajian-btn.infog {
  color: var(--gold);
}

.kajian-btn.video {
  color: #FF4444;
  border-right: 1px solid var(--border);
}

/* === INFO TAB === */
.info-card {
  margin: 0 16px 16px;
  background: linear-gradient(135deg, var(--teal-dark), var(--bg3));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.info-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

.info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px 10px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.info-emoji {
  font-size: 1.4rem;
  min-width: 28px;
}

.info-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 3px;
}

.info-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 10px 8px;
  padding: 11px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  transition: opacity 0.2s;
}

.btn-social:active {
  opacity: 0.8;
}

.btn-social.youtube {
  background: #FF0000;
  color: #fff;
}

.btn-social.maps {
  background: #4285F4;
  color: #fff;
}

/* === QRIS SECTION === */
.qris-section {
  margin: 0 10px 16px;
  background: linear-gradient(135deg, rgba(13, 92, 99, 0.25), rgba(13, 18, 32, 0.9));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
}

.qris-tagline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.qris-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.qris-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.qris-img {
  width: 220px;
  max-width: 100%;
  border-radius: 12px;
  border: 2px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.qris-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* === IMSAKIYAH === */
.imsakiyah-card {
  margin: 0 10px 10px;
  background: linear-gradient(135deg, #0D1B2A, var(--bg3));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.imsakiyah-card h3 {
  font-size: 0.88rem;
  color: var(--gold);
  margin-bottom: 2px;
}

.imsakiyah-card>p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.waktu-sholat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.waktu-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 4px;
  text-align: center;
}

.waktu-item span {
  display: block;
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.waktu-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--gold-light);
  font-weight: 700;
}

.waktu-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

/* === MODALS === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
  padding: 0;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(60px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-card {
  background: var(--bg2);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 16px 16px calc(16px + var(--safe-bottom));
  position: relative;
  animation: slideUp 0.3s ease;
  border-top: 2px solid var(--border);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 6px;
  padding-right: 40px;
}

.modal-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.modal-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.modal-body h4 {
  color: var(--gold);
  font-size: 0.9rem;
  margin: 12px 0 6px;
}

.modal-body ul {
  padding-left: 20px;
}

.modal-body ul li {
  margin-bottom: 4px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.btn-modal-yt,
.btn-modal-infog {
  flex: 1;
  padding: 11px 8px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: 'Inter', sans-serif;
}

.btn-modal-yt {
  background: #FF0000;
  color: #fff;
}

.btn-modal-infog {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--gold-light);
}

.btn-modal-yt:active,
.btn-modal-infog:active {
  opacity: 0.8;
}

/* Infog modal */
.infog-card {
  border-radius: 24px 24px 0 0;
}

.infog-image-wrap {
  width: 100%;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 14px 0;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.infog-canvas {
  width: 100%;
  display: block;
}

.btn-download {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0A0F1E;
  font-weight: 700;
  padding: 13px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.88rem;
  transition: opacity 0.2s;
}

.btn-download:active {
  opacity: 0.85;
}

/* === BOTTOM NAV === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: flex;
  background: rgba(10, 15, 30, 0.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
  padding-bottom: var(--safe-bottom);
}

.bnav-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.62rem;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
}

.bnav-btn.active {
  color: var(--gold);
}

.bnav-icon {
  font-size: 1.2rem;
}

/* === FAB scroll top === */
.fab-top {
  position: fixed;
  right: 16px;
  bottom: calc(80px + var(--safe-bottom));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border: 1px solid var(--border);
  color: var(--gold-light);
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 140;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.fab-top.visible {
  display: flex;
  animation: fadeIn 0.3s ease;
}

/* === Desktop overrides === */
@media (min-width: 640px) {
  .hero {
    padding: 30px 20px 40px;
  }

  .mosque-icon {
    font-size: 2.5rem;
  }

  .arabic {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-desc {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 14px;
  }

  .btn-hero {
    display: inline-block;
  }

  .playlist-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kajian-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bottom-nav {
    display: none;
  }

  .tab-nav {
    gap: 0;
  }

  .tab-btn {
    font-size: 0.9rem;
    padding: 16px 24px;
  }

  .modal-overlay {
    align-items: center;
  }

  .modal-card {
    border-radius: 24px;
    max-width: 520px;
  }

  .fab-top {
    bottom: 20px;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .waktu-sholat-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 900px) {
  .playlist-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .kajian-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* === Avatar pemateri === */
.avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}

.avatar-fallback {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-light);
  flex-shrink: 0;
  border: 1.5px solid var(--border);
}

.thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  font-size: 2rem;
  border-radius: 8px;
}

/* hidden by default */
.hidden {
  display: none !important;
}