/* ====================================================================
   MUSLIM CORE — COMPLETE UNIFIED DESIGN SYSTEM
   Palette exact from Pictures/pallete_color.jpeg:
     - Base Ivory: #FAF8F5 (Clean Warm Anti-Glare Canvas)
     - Midnight Navy: #102542 (Deep Luxury Brand Anchor)
     - Gold: #C79C5A (Luminous Gold Accent)
     - Warm Sand / Cream: #D8C3A5 (Soft Supporting Tone)
     - Slate: #64748B (Structural Neutral Text)
   Full Dark Mode Support:
     - Obsidian Midnight Canvas (#08121E)
     - Deep Navy Surface Cards (#0F2139)
     - Glowing Warm Gold Accents (#C79C5A)
     - Crystal-Clear Ivory Text (#FAF8F5)
   ==================================================================== */

/* 100% Offline Local Fonts Import (Zero External Network Requests) */
@import url('/css/local-fonts.css');

@font-face {
  font-family: "Uthmanic";
  src: url("/fonts/uthmanic/uthmanic.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LPMQ IsepMisbah";
  src: url("/fonts/lpmq.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Clarity City";
  src: url("/fonts/clarity-city/ClarityCity-Regular.woff2") format("woff2"),
       url("/fonts/clarity-city/ClarityCity-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Clarity City";
  src: url("/fonts/clarity-city/ClarityCity-Medium.woff2") format("woff2"),
       url("/fonts/clarity-city/ClarityCity-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Clarity City";
  src: url("/fonts/clarity-city/ClarityCity-SemiBold.woff2") format("woff2"),
       url("/fonts/clarity-city/ClarityCity-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Clarity City";
  src: url("/fonts/clarity-city/ClarityCity-Bold.woff2") format("woff2"),
       url("/fonts/clarity-city/ClarityCity-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Clarity City";
  src: url("/fonts/clarity-city/ClarityCity-ExtraBold.woff2") format("woff2"),
       url("/fonts/clarity-city/ClarityCity-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root,
[data-theme="light"] {
  --app-font-base: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --app-font-arabic: "LPMQ IsepMisbah", serif;
  /* Default kaligrafi Arab untuk SELURUH konten di luar halaman Al-Qur'an & nama surah */
  --app-font-arabic-default: "Scheherazade New", "LPMQ IsepMisbah", "Amiri", serif;
  --app-arabic-font-size: 1.85rem;
  --app-arabic-line-height: 2.2;

  --app-bg-main: #FAF8F5;
  --app-surface-card: #FFFFFF;
  --app-surface-subtle: #F4EFEA;
  --app-surface-elevated: #EDE6DD;

  --app-primary-dark: #102542;
  --app-primary-dark-hover: #0B192C;
  --app-primary-light: #F4EFEA;
  --app-accent-gold: #C79C5A;
  --app-accent-warm: #D8C3A5;
  --app-accent-mint: #8DA399;

  --app-text-main: #102542;
  --app-text-muted: #64748B;
  --app-text-inverse: #FAF8F5;

  --app-border-subtle: rgba(16, 37, 66, 0.08);
  --app-border-medium: rgba(216, 195, 165, 0.45);

  --app-badge-bg: #F4EFEA;
  --app-badge-text: #102542;
  --app-icon-bg: #F4EFEA;
  --app-icon-color: #102542;
  --app-arabic-color: #102542;

  --app-input-bg: #FFFFFF;
  --app-input-border: rgba(16, 37, 66, 0.12);
  --app-input-text: #102542;

  --app-hero-bg: linear-gradient(145deg, #102542 0%, #081526 100%);
  --app-hero-text: #FFFFFF;
  --app-hero-button-bg: #FFFFFF;
  --app-hero-button-text: #102542;
  --app-hero-border: rgba(216, 195, 165, 0.25);

  --app-badge-red: #E53935;
  --app-card-shadow: none;
  --app-elevated-shadow: 0 4px 12px rgba(16, 37, 66, 0.05);
}

[data-theme="dark"] {
  --app-bg-main: #08121E;
  --app-surface-card: #0F2139;
  --app-surface-subtle: #173052;
  --app-surface-elevated: #1E3E69;

  --app-primary-dark: #1E3E69;
  --app-primary-dark-hover: #274E82;
  --app-primary-light: #173052;
  --app-accent-gold: #C79C5A;
  --app-accent-warm: #D8C3A5;
  --app-accent-mint: #8DA399;

  --app-text-main: #FAF8F5;
  --app-text-muted: #94A3B8;
  --app-text-inverse: #08121E;

  --app-border-subtle: rgba(216, 195, 165, 0.14);
  --app-border-medium: rgba(216, 195, 165, 0.28);

  --app-badge-bg: #173052;
  --app-badge-text: #C79C5A;
  --app-icon-bg: #173052;
  --app-icon-color: #C79C5A;
  --app-arabic-color: #C79C5A;

  --app-input-bg: #0F2139;
  --app-input-border: rgba(216, 195, 165, 0.25);
  --app-input-text: #FAF8F5;

  --app-hero-bg: linear-gradient(145deg, #132A4A 0%, #0A1729 100%);
  --app-hero-text: #FFFFFF;
  --app-hero-button-bg: #C79C5A;
  --app-hero-button-text: #08121E;
  --app-hero-border: rgba(199, 156, 90, 0.35);

  --app-badge-red: #EF5350;
  --app-card-shadow: none;
  --app-elevated-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  --app-arabic-font-size: 1.85rem;
  --app-arabic-line-height: 2.2;
}

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

html {
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  font-size: 16px;
  touch-action: pan-x pan-y;
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
    touch-action: manipulation;
  }
}

body.noor-application-body {
  background-color: var(--app-bg-main);
  color: var(--app-text-main);
  font-family: var(--app-font-base);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  position: relative;
  display: flex;
  justify-content: center;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Default seluruh teks Arab di luar halaman Al-Qur'an; pilihan font spesifik tetap menang. */
body:not(.in-quran-view) :where([lang="ar"], [dir="rtl"]) {
  font-family: var(--app-font-arabic-default);
}

/* Biarkan teks ayat dan terjemahan bisa dipilih user jika ingin disalin */
.verse-arabic-text,
.verse-translation-text,
.hadith-arabic-text,
.hadith-translation-text,
.tafsir-paragraph,
input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

input, button, select, textarea {
  font-family: inherit;
  color: var(--app-input-text);
  background-color: var(--app-input-bg);
}

::placeholder {
  color: var(--app-text-muted);
  opacity: 0.85;
}

/* Mobile App Container Shell */
.mobile-app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--app-bg-main);
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

/* 1. Header Bar Mobile */
.app-top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(1.25rem, calc(env(safe-area-inset-top, 0px) + 0.85rem)) 1.25rem 0.85rem;
  background-color: var(--app-bg-main);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-user-identity {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.header-greeting-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--app-text-muted);
}

.header-user-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--app-text-main);
  line-height: 1.2;
}

.header-actions-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-circle-action-button {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  color: var(--app-text-main);
  cursor: pointer;
  box-shadow: var(--app-card-shadow);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.header-circle-action-button:hover {
  background-color: var(--app-surface-subtle);
  transform: scale(1.05);
}

.notification-dot-badge {
  display: none;
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--app-badge-red);
}

.header-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--app-icon-bg);
  border: 1.5px solid var(--app-border-medium);
  color: var(--app-icon-color);
  cursor: pointer;
  box-shadow: var(--app-card-shadow);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.header-user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

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

/* Theme toggle icons */
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

/* Global Static Sticky Top Bar untuk Seluruh Halaman Selain Beranda */
.app-static-sticky-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  z-index: 250;
  background: rgba(250, 248, 245, 0.82) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--app-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(0.65rem, calc(env(safe-area-inset-top, 0px) + 0.45rem)) 1rem 0.65rem;
  box-sizing: border-box;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.28s ease,
              background-color 0.25s ease;
  pointer-events: none;
}

.app-static-sticky-top-bar.sticky-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(16, 37, 66, 0.08);
}

[data-theme="dark"] .app-static-sticky-top-bar {
  background: rgba(16, 37, 66, 0.85) !important;
  border-bottom-color: rgba(216, 195, 165, 0.2);
}

[data-theme="dark"] .app-static-sticky-top-bar.sticky-visible {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
}

.sticky-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.sticky-bar-title-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sticky-bar-main-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--app-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.sticky-bar-sub-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--app-accent-gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-bar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.sticky-bar-right .screen-icon-circle-button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
}

.sticky-bar-right .screen-icon-circle-button svg {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
}

.sticky-bar-reading-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--app-surface-subtle);
  overflow: hidden;
}

.sticky-bar-reading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--app-accent-gold) 0%, #E2BA78 100%);
  box-shadow: 0 0 8px rgba(199, 156, 90, 0.7);
  transition: width 0.15s ease-out;
  border-radius: 0 3px 3px 0;
}



/* Pengaturan Jarak Bawah Dinamis Saat Mode Al-Qur'an (Tanpa Navigasi Bawah) */
body.in-quran-view .mobile-app-shell {
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)) !important;
}

body.in-quran-view .app-screen-content {
  padding-left: 0.65rem !important;
  padding-right: 0.65rem !important;
  padding-bottom: 0 !important;
}

/* Hanya saat di detail ayat dan audio bar aktif yang membutuhkan ruang floating bar */
#verse-detail-section:not([hidden]) {
  padding-bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px));
}

/* Reading Progress Bar di dalam Header Layar Ayat */
.surah-reading-progress-container {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--app-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.surah-reading-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--app-text-muted);
}

.surah-reading-progress-text {
  color: var(--app-accent-gold);
  font-weight: 800;
}

.surah-reading-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: var(--app-surface-subtle);
  overflow: hidden;
  position: relative;
}

.surah-reading-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--app-accent-gold) 0%, #E2BA78 100%);
  transition: width 0.25s ease;
}

/* Kartu & Indikator Slide-Up Gulir ke Surah Berikutnya */
.surah-next-slideup-wrapper {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.surah-next-slideup-card {
  width: 100%;
  background: var(--app-surface-card);
  border: 1px dashed var(--app-accent-gold);
  border-radius: 20px;
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.surah-next-slideup-card:active,
.surah-next-slideup-card.pulling-ready {
  transform: scale(0.98) translateY(-4px);
  border-color: var(--app-accent-gold);
  background: var(--app-surface-subtle);
}

.surah-next-indicator-arrow {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--app-icon-bg);
  color: var(--app-accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceUpArrow 1.5s infinite;
}

@keyframes bounceUpArrow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.surah-next-action-prompt {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--app-text-main);
  letter-spacing: 0.01em;
}

.surah-next-target-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--app-accent-gold);
}

.surah-next-gesture-hint {
  font-size: 0.75rem;
  color: var(--app-text-muted);
}

/* 2. Main Content Screen Wrapper */
.app-screen-content {
  flex: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: max(0.85rem, calc(env(safe-area-inset-top, 0px) + 0.5rem)) 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

[hidden],
.app-screen-section[hidden] {
  display: none !important;
}

.app-screen-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: appViewFadeSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes appViewFadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3. Hero Prayer Card */
.hero-prayer-card {
  position: relative;
  background: var(--app-hero-bg);
  color: var(--app-hero-text);
  border: 1px solid var(--app-hero-border);
  border-radius: 20px;
  padding: 1.35rem 1.25rem;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.hero-card-pattern-overlay {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-image: 
    radial-gradient(circle at 90% 20%, rgba(199, 156, 90, 0.12) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C79C5A' stroke-width='0.65' stroke-opacity='0.065'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z'/%3E%3Cpath d='M0 0L40 40M40 0L0 40'/%3E%3Ccircle cx='20' cy='20' r='8'/%3E%3Ccircle cx='20' cy='20' r='14'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 40px 40px;
  background-repeat: no-repeat, repeat;
  pointer-events: none;
  z-index: 1;
}

.hero-prayer-card > *:not(.hero-card-pattern-overlay) {
  position: relative;
  z-index: 2;
}

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

.hero-next-prayer-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.hero-city-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1;
}

.hero-city-indicator svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  display: inline-block;
  margin: 0;
}

.hero-card-middle {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.hero-prayer-name {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.hero-prayer-time {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--app-accent-gold);
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-countdown-wrapper {
  display: flex;
  flex-direction: column;
}

.hero-countdown-label {
  font-size: 0.7rem;
  opacity: 0.8;
  color: var(--app-accent-warm);
}

.hero-countdown-clock {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: monospace;
  font-variant-numeric: tabular-nums;
  color: var(--app-accent-gold);
}

.hero-view-times-button {
  background-color: var(--app-hero-button-bg);
  color: var(--app-hero-button-text);
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.hero-view-times-button:hover {
  transform: translateY(-1px);
}

/* Tombol Navigasi Kembali & Aksi Universal */
.screen-back-circle-button,
.screen-icon-circle-button {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  background-color: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
  color: var(--app-text-main);
  cursor: pointer;
  outline: none !important;
  line-height: 0 !important;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.screen-back-circle-button:hover,
.screen-icon-circle-button:hover {
  background-color: var(--app-surface-elevated);
  color: var(--app-accent-gold);
  border-color: var(--app-accent-gold);
}

.screen-back-circle-button svg,
.screen-icon-circle-button svg {
  display: block;
  flex-shrink: 0;
  margin: auto;
}

.screen-back-button,
.screen-pill-action-button,
.verse-action-pill {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  color: var(--app-text-main);
  min-height: 38px;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.verse-action-pill {
  min-height: 32px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
}

.verse-action-pill.active-saved-pill {
  background: var(--app-accent-gold);
  color: #fff;
  border-color: var(--app-accent-gold);
}

/* Standarisasi Navigation Header Layar */
.screen-navigation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.35rem 0.25rem 0.75rem;
  margin-bottom: 0.85rem;
  min-height: 46px;
  width: 100%;
  box-sizing: border-box;
}

.screen-navigation-header .screen-header-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--app-text-main);
  line-height: 1.25;
  margin: 0;
  text-align: center;
}

.screen-icon-circle-button,
.screen-back-circle-button,
#tasbih-back-to-home-button,
#tasbih-reset-counter-button,
#quran-list-back-button,
#back-to-surahs-button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  aspect-ratio: 1 / 1 !important;
  margin: 0;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  background-color: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
  color: var(--app-text-main);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  outline: none;
  line-height: 0;
}

.screen-icon-circle-button:hover,
.screen-back-circle-button:hover,
.screen-reset-circle-button:hover,
.screen-back-button:hover,
.verse-action-pill:hover,
#tasbih-back-to-home-button:hover,
#tasbih-reset-counter-button:hover {
  background-color: var(--app-surface-card);
  border-color: var(--app-border-medium);
  color: var(--app-accent-gold);
  transform: translateY(-1px);
}

.screen-icon-circle-button:active,
.screen-back-circle-button:active {
  transform: scale(0.92);
}

.screen-icon-circle-button svg,
.screen-back-circle-button svg,
.screen-icon-circle-button .application-vector-icon,
.screen-back-circle-button .application-vector-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  display: block;
  flex-shrink: 0;
  margin: 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  overflow: visible;
}

/* Standarisasi Top Header Sub-Layar */
.app-subscreen-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.15rem;
  padding-top: max(0.45rem, calc(env(safe-area-inset-top, 0px) + 0.35rem));
}

.app-subscreen-top-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--app-text-muted);
  letter-spacing: 0.02em;
}

/* Bar Pilihan Tampilan: Kiri Label, Kanan Dropdown Select */
.quran-list-type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.15rem 0 0.55rem;
  padding: 0 0.15rem;
}

.quran-list-type-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--app-text-main);
  letter-spacing: 0.01em;
}

.quran-list-type-select-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.quran-list-type-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 9999px;
  padding: 0.42rem 2.2rem 0.42rem 1.05rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--app-accent-gold);
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 8px rgba(16, 37, 66, 0.04);
  transition: all 0.2s ease;
}

.quran-list-type-select:focus,
.quran-list-type-select:active {
  border-color: var(--app-accent-gold);
}

.quran-select-chevron {
  position: absolute;
  right: 0.8rem;
  pointer-events: none;
  color: var(--app-accent-gold);
}

/* Rincian Surah & Tag di dalam Kartu Juz */
.juz-surah-breakdown-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

.juz-surah-tag-pill {
  background: rgba(199, 156, 90, 0.12);
  border: 1px solid rgba(199, 156, 90, 0.3);
  color: var(--app-accent-gold);
  border-radius: 9999px;
  padding: 0.28rem 0.65rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.juz-surah-tag-pill:hover,
.juz-surah-tag-pill:active {
  background: var(--app-accent-gold);
  color: #fff;
  transform: translateY(-1px);
}

.juz-surah-count-pill {
  background: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
  color: var(--app-text-muted);
  border-radius: 9999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Tombol Login Cepat Modal */
.login-quick-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--app-text-main);
  cursor: pointer;
  box-shadow: var(--app-card-shadow);
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.login-quick-oauth-btn:hover,
.login-quick-oauth-btn:active {
  background: var(--app-surface-subtle);
  border-color: var(--app-border-medium);
  transform: translateY(-1px);
}

/* Tampilan Mode Halaman (Mushaf Page Mode) */
/* Mode Membaca: Halaman Mushaf Swipe / Flip Kaya Buku Fisik Madinah (Kanan ke Kiri / RTL) */
.quran-page-mode-wrapper {
  display: flex;
  flex-direction: row;
  direction: rtl; /* Al-Quran Asli: Aliran Bacaan Kanan ke Kiri */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  width: 100%;
  gap: 1rem;
  padding: 0.35rem 0.15rem 0.5rem;
  box-sizing: border-box;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
  align-items: flex-start;
  transition: height 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.quran-page-mode-wrapper::-webkit-scrollbar {
  display: none;
}

.mushaf-pages-quick-nav-bar {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 14px;
  padding: 0.4rem 0.65rem;
  box-sizing: border-box;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 10;
  box-shadow: none !important;
}

.mushaf-nav-arrow-btn {
  background: var(--app-badge-bg);
  border: 1px solid var(--app-border-subtle);
  color: var(--app-text-main);
  border-radius: 9999px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.mushaf-nav-arrow-btn:hover,
.mushaf-nav-arrow-btn:active {
  background: rgba(199, 156, 90, 0.2);
  color: var(--app-accent-gold);
  transform: scale(0.95);
}

.mushaf-flip-hint-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  position: relative;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.mushaf-flip-hint-center:hover,
.mushaf-flip-hint-center:active {
  background: var(--app-surface-subtle);
}

.mushaf-page-select-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
  font-size: 16px; /* Mencegah auto-zoom pada perangkat iOS */
}

.mushaf-flip-hint-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--app-text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: -0.01em;
}

.mushaf-page-badge-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--app-accent-gold);
  background: rgba(199, 156, 90, 0.14);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(199, 156, 90, 0.3);
}

.mushaf-nav-select-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mushaf-page-select-dropdown {
  width: 100%;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--app-text-main);
  text-align: center;
  text-align-last: center;
  cursor: pointer;
  outline: none;
  padding: 0.25rem;
}

.mushaf-page-select-dropdown option {
  background: var(--app-bg-main);
  color: var(--app-text-main);
}

.quran-mushaf-page-frame {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: auto;
  background: #FFFDF9;
  border: 2px solid var(--app-accent-gold, #C79C5A);
  border-radius: 14px;
  box-shadow: none !important;
  padding: 1rem 0.95rem 0.85rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 7rem);
}

[data-theme="dark"] .quran-mushaf-page-frame {
  background: #0C1A2E;
  border-color: #C79C5A;
  box-shadow: none !important;
}

[data-theme="dark"] .quran-page-ayah-paragraph,
[data-theme="dark"] .verse-arabic-text,
[data-theme="dark"] .mushaf-verse-unit {
  color: #FFFFFF !important;
}

.mushaf-verse-unit {
  display: inline;
  line-height: 2.2;
  transition: background-color 0.25s ease, color 0.25s ease;
  border-radius: 6px;
  padding: 2px 0px;
  cursor: pointer;
}

.mushaf-verse-unit.active-reading-verse {
  background: rgba(199, 156, 90, 0.22);
  color: var(--app-accent-gold);
  border-radius: 6px;
  box-shadow: none !important;
  text-shadow: none !important;
}

.mushaf-page-flip-footer-card {
  width: 100%;
  max-width: 440px;
  background: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  box-sizing: border-box;
  margin: 0.5rem auto 1.5rem;
  box-shadow: 0 4px 16px rgba(16, 37, 66, 0.05);
}

.mushaf-flip-nav-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mushaf-flip-pill-btn {
  background: rgba(199, 156, 90, 0.12);
  border: 1px solid rgba(199, 156, 90, 0.35);
  color: var(--app-accent-gold);
  border-radius: 9999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.mushaf-flip-pill-btn:hover,
.mushaf-flip-pill-btn:active {
  background: var(--app-accent-gold);
  color: #fff;
  transform: scale(0.96);
}

.mushaf-flip-hint-text {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--app-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.mushaf-page-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: rgba(199, 156, 90, 0.08);
  border: 1px solid rgba(199, 156, 90, 0.35);
  border-radius: 999999px;
  padding: 0.55rem 1rem;
  min-height: 42px;
  font-family: var(--app-font-base, "Clarity City", sans-serif);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--app-accent-gold);
  margin: 1rem 0 0.85rem;
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 1.25rem);
  letter-spacing: 0.01em;
  box-sizing: border-box;
}

.mushaf-page-header-item {
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.mushaf-page-surah-name {
  justify-self: start;
}

.mushaf-page-location {
  justify-self: end;
  white-space: nowrap;
}

.mushaf-page-header-separator {
  margin: 0 0.4rem;
  opacity: 0.55;
}

.mushaf-surah-head-banner {
  width: 100%;
  background: linear-gradient(135deg, rgba(199, 156, 90, 0.16) 0%, rgba(199, 156, 90, 0.06) 100%);
  border: 1.5px solid var(--app-accent-gold);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
  box-sizing: border-box;
  position: relative;
}

.mushaf-surah-head-title {
  font-family: var(--app-font-arabic);
  font-size: 1.6rem;
  color: var(--app-accent-gold);
  font-weight: 800;
  line-height: 1.2;
}

.mushaf-surah-bismillah {
  font-family: var(--app-font-arabic);
  font-size: 1.45rem;
  color: var(--app-arabic-color, var(--app-text-main));
  margin: 0.5rem 0 0.25rem;
  text-align: center;
  width: 100%;
}

.quran-page-ayah-paragraph {
  font-family: var(--app-font-arabic, "LPMQ IsepMisbah", "Amiri", serif);
  font-size: calc(var(--app-arabic-font-size, 1.85rem) * 0.88);
  line-height: calc(var(--app-arabic-line-height, 2.35) * 0.9);
  color: var(--app-arabic-color, var(--app-text-main));
  text-align: justify;
  text-align-last: center;
  direction: rtl;
  word-spacing: 0.08em;
  margin: 0.35rem 0 0.65rem;
  font-feature-settings: 'liga' 1, 'dlig' 1, 'calt' 1, 'curs' 1, 'kern' 1, 'mark' 1, 'mkmk' 1;
}

.mushaf-page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(199, 156, 90, 0.35);
  padding-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--app-accent-gold);
  margin-top: 0.5rem;
}

.mushaf-page-number-pill {
  background: rgba(199, 156, 90, 0.12);
  border: 1px solid rgba(199, 156, 90, 0.3);
  padding: 0.15rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Modal Bottom Sheet Animations & Swipe Down */
@keyframes modalBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSheetSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0.7;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-backdrop-animated {
  animation: modalBackdropFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-sheet-animated {
  animation: modalSheetSlideUp 0.35s cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
  will-change: transform;
}

/* Simbol Nomor Ayat Al-Qur'an Standar Utsmani (100% Simetris, Presisi di Tengah-Tengah) */
.ayah-end-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 1.18em;
  height: 1.18em;
  vertical-align: -0.16em;
  margin: 0 0.08em;
  user-select: none;
  line-height: 1;
}

.ayah-end-frame-svg {
  width: 100%;
  height: 100%;
  display: block;
  flex-shrink: 0;
}

.ayah-end-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  /* Gunakan font angka murni tanpa ornamen kurung/parentheses bawaan */
  font-family: "LPMQ IsepMisbah", "Scheherazade New", "Amiri", "Manrope", sans-serif !important;
  font-size: 0.52em;
  font-weight: 700;
  color: var(--app-text-main);
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

[data-theme="dark"] .ayah-end-num {
  color: #FAF8F5;
}

/* Versi Kompak Simbol untuk Teks Latin & Terjemahan */
.ayah-end-symbol-compact {
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.18em;
  margin: 0 0.25em;
}

.ayah-end-symbol-compact .ayah-end-num {
  font-family: var(--app-font-base, sans-serif);
  font-size: 0.5em;
  font-weight: 700;
}

/* ====================================================================
   SISTEM WARNA HUKUM TAJWID AL-QUR'AN (STANDARD MUSHAF TAJWID RESMI)
   ==================================================================== */
tajweed {
  display: inline;
  font-style: normal;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  transition: color 0.2s ease;
}

/* 1. Ghunnah, Ikhfa, Idgham Bighunnah (Dengung / Hijau) */
tajweed.ghunnah,
tajweed.ikhafa,
tajweed.ikhafa_shafawi,
tajweed.idgham_ghunnah,
tajweed.idgham_shafawi,
tajweed[class*="ghunnah"],
tajweed[class*="ikhafa"] {
  color: #16A34A !important;
}

/* 2. Qalqalah (Memantul / Biru Muda - Cyan) */
tajweed.qalaqah,
tajweed[class*="qalaqah"] {
  color: #0284C7 !important;
}

/* 3. Iqlab (Menukar Bunyi ke Mim / Biru) */
tajweed.iqlab,
tajweed[class*="iqlab"] {
  color: #2563EB !important;
}

/* 4. Hukum Mad Panjang (Mad Lazim & Mad Wajib / Merah) */
tajweed.madda_necessary {
  color: #991B1B !important; /* Mad Lazim - 6 Harakat */
  font-weight: 700;
}

tajweed.madda_obligatory {
  color: #DC2626 !important; /* Mad Wajib Muttashil - 4-5 Harakat */
}

/* 5. Hukum Mad Sedang/Normal (Mad Jaiz & Mad Ashli / Oranye) */
tajweed.madda_permissible {
  color: #D97706 !important; /* Mad Jaiz Munfashil / Aridh Lissukun */
}

tajweed.madda_normal {
  color: #EA580C !important; /* Mad Thabi'i - 2 Harakat */
}

/* 6. Tidak Dibaca / Melebur Tanpa Dengung (Abu-abu / Muted) */
tajweed.ham_wasl,
tajweed.laam_shamsiyah,
tajweed.slnt,
tajweed.idgham_wo_ghunnah,
tajweed.idgham_mutajanisayn,
tajweed.idgham_mutaqaribayn,
tajweed[class*="slnt"],
tajweed[class*="ham_wasl"],
tajweed[class*="laam_shamsiyah"] {
  color: #94A3B8 !important;
  opacity: 0.82;
}

/* Penyesuaian Kontras Tinggi untuk Mode Gelap (Dark Mode) */
[data-theme="dark"] tajweed.ghunnah,
[data-theme="dark"] tajweed.ikhafa,
[data-theme="dark"] tajweed.ikhafa_shafawi,
[data-theme="dark"] tajweed.idgham_ghunnah,
[data-theme="dark"] tajweed.idgham_shafawi,
[data-theme="dark"] tajweed[class*="ghunnah"],
[data-theme="dark"] tajweed[class*="ikhafa"] {
  color: #4ADE80 !important;
}

[data-theme="dark"] tajweed.qalaqah,
[data-theme="dark"] tajweed[class*="qalaqah"] {
  color: #38BDF8 !important;
}

[data-theme="dark"] tajweed.iqlab,
[data-theme="dark"] tajweed[class*="iqlab"] {
  color: #60A5FA !important;
}

[data-theme="dark"] tajweed.madda_necessary {
  color: #F43F5E !important;
}

[data-theme="dark"] tajweed.madda_obligatory {
  color: #F87171 !important;
}

[data-theme="dark"] tajweed.madda_permissible {
  color: #FBBF24 !important;
}

[data-theme="dark"] tajweed.madda_normal {
  color: #FB923C !important;
}

[data-theme="dark"] tajweed.ham_wasl,
[data-theme="dark"] tajweed.laam_shamsiyah,
[data-theme="dark"] tajweed.slnt,
[data-theme="dark"] tajweed.idgham_wo_ghunnah,
[data-theme="dark"] tajweed.idgham_mutajanisayn,
[data-theme="dark"] tajweed.idgham_mutaqaribayn,
[data-theme="dark"] tajweed[class*="slnt"],
[data-theme="dark"] tajweed[class*="ham_wasl"],
[data-theme="dark"] tajweed[class*="laam_shamsiyah"] {
  color: #64748B !important;
  opacity: 0.88;
}

/* Saat Opsi Tajwid Dinonaktifkan */
.tajweed-disabled tajweed,
body.tajweed-mode-disabled tajweed,
body.tajweed-font-incompatible tajweed {
  color: inherit !important;
  opacity: 1 !important;
  font-weight: inherit !important;
}

/* Kotak Panduan Warna Tajwid (Legend Card) */
.tajweed-legend-card {
  background: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tajweed-legend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 0.75rem;
}

.tajweed-legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: var(--app-text-muted);
}

.tajweed-color-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.dot-ghunnah { background: #16A34A; }
.dot-qalaqah { background: #0284C7; }
.dot-iqlab { background: #2563EB; }
.dot-mad-long { background: #DC2626; }
.dot-mad-short { background: #EA580C; }
.dot-silent { background: #94A3B8; }

[data-theme="dark"] .dot-ghunnah { background: #4ADE80; }
[data-theme="dark"] .dot-qalaqah { background: #38BDF8; }
[data-theme="dark"] .dot-iqlab { background: #60A5FA; }
[data-theme="dark"] .dot-mad-long { background: #F87171; }
[data-theme="dark"] .dot-mad-short { background: #FB923C; }
[data-theme="dark"] .dot-silent { background: #64748B; }

/* Mode Membaca: Halaman Mushaf (Page Sheet Mode) */
.quran-mushaf-page-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.mushaf-page-sheet {
  background: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 20px;
  padding: 1.5rem 1.25rem 2rem;
  box-shadow: 0 4px 20px rgba(16, 37, 66, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}



.mushaf-page-content-flow {
  direction: rtl;
  text-align: justify;
  text-justify: inter-word;
  font-family: var(--app-font-arabic);
  font-size: var(--app-arabic-font-size, 1.85rem);
  line-height: var(--app-arabic-line-height, 2.3);
  color: var(--app-arabic-color);
  word-spacing: 0.15em;
}

.mushaf-verse-chunk {
  display: inline;
  cursor: pointer;
  border-radius: 6px;
  padding: 0 2px;
  transition: background-color 0.2s ease;
}

.mushaf-verse-chunk:hover,
.mushaf-verse-chunk:active {
  background-color: rgba(199, 156, 90, 0.15);
}

.mushaf-verse-chunk.active-reading-verse {
  background-color: rgba(199, 156, 90, 0.28);
}

.mushaf-page-footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--app-border-subtle);
  padding-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--app-accent-gold);
}

/* Modal Pengaturan Font Arabic & Kontrol Ukuran */
.arabic-font-settings-modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--app-surface-card);
  border-radius: 28px 28px 0 0;
  padding: 1.25rem 1.5rem 2rem;
  box-shadow: var(--app-elevated-shadow);
  border-top: 1px solid var(--app-border-medium);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-sizing: border-box;
  touch-action: pan-y;
  position: relative;
}

.modal-drag-handle-bar {
  width: 40px;
  height: 5px;
  border-radius: 9999px;
  background: var(--app-border-medium);
  margin: -0.25rem auto 0.5rem auto;
  cursor: grab;
}

/* Toggle Switch iOS/Modern Style */
.settings-switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.settings-switch-input {
  display: none;
}

.settings-switch-slider {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 9999px;
  background-color: var(--app-border-medium);
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-switch-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #FAF8F5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-switch-input:checked + .settings-switch-slider {
  background-color: var(--app-accent-gold);
}

.settings-switch-input:checked + .settings-switch-slider::before {
  transform: translateX(20px);
}

.quran-compact-label > span:first-child {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.quran-compact-label > span:not(:first-child) {
  font-size: 0.74rem !important;
  font-weight: 700 !important;
}

.quran-settings-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding: 0.3rem;
  border-radius: 14px;
  background: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
}

.quran-settings-tab {
  min-height: 38px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--app-text-muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.quran-settings-tab.active {
  background: var(--app-surface-card);
  color: var(--app-accent-gold);
  box-shadow: 0 2px 8px rgba(16, 37, 66, 0.1);
}

.quran-settings-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quran-settings-panel[hidden] {
  display: none !important;
}

.quran-switch-card {
  background: var(--app-surface-subtle);
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--app-border-subtle);
}

.quran-setting-title,
.quran-setting-description {
  display: block;
}

.quran-setting-title {
  color: var(--app-text-main);
  font-size: 0.88rem;
  font-weight: 700;
}

.quran-setting-description {
  margin-top: 0.12rem;
  color: var(--app-text-muted);
  font-size: 0.74rem;
}

.quran-theme-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.quran-theme-option {
  min-height: 42px;
  border: 1px solid var(--app-border-subtle);
  border-radius: 12px;
  background: var(--app-surface-subtle);
  color: var(--app-text-main);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.quran-theme-option.active {
  border-color: var(--app-accent-gold);
  color: var(--app-accent-gold);
  box-shadow: 0 0 0 1px var(--app-accent-gold);
}

.quran-translation-disabled .verse-translation-block {
  display: none !important;
}

.quran-footnotes-disabled .verse-footnotes-block,
.quran-translation-disabled .verse-footnotes-block {
  display: none !important;
}

.quran-audio-disabled .play-single-verse-btn,
.quran-audio-disabled .floating-quran-audio-bar {
  display: none !important;
}

.arabic-settings-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.arabic-font-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.arabic-font-pill-btn,
.arabic-reading-mode-pill-btn {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--app-border-subtle);
  background: var(--app-surface-subtle);
  color: var(--app-text-main);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.arabic-font-pill-btn.active,
.arabic-reading-mode-pill-btn.active {
  border-color: var(--app-accent-gold);
  background: var(--app-surface-elevated);
  color: var(--app-accent-gold);
  box-shadow: 0 0 0 1px var(--app-accent-gold);
}

.reading-mode-option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.16rem;
  line-height: 1.15;
  text-align: center;
}

.reading-mode-option-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
}

.reading-mode-option-description {
  display: block;
  font-size: 0.64rem;
  font-weight: 500;
  color: var(--app-text-muted);
}

.arabic-reading-mode-pill-btn.active .reading-mode-option-description {
  color: var(--app-accent-gold);
  opacity: 0.82;
}

.arabic-size-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.arabic-size-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 9999px;
  background: var(--app-surface-subtle);
  outline: none;
}

.arabic-size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--app-accent-gold);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.arabic-font-preview-box {
  background: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
  border-radius: 18px;
  padding: 1.35rem 1.25rem;
  text-align: right;
  direction: rtl;
  margin: 0.35rem 0;
}

.arabic-font-preview-text {
  font-family: var(--app-font-arabic);
  font-size: var(--app-arabic-font-size);
  line-height: var(--app-arabic-line-height);
  color: var(--app-arabic-color);
  margin: 0;
}

/* Modul Pemilihan Bahasa Aplikasi */
.language-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.language-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  border-radius: 16px;
  background-color: var(--app-surface-subtle);
  border: 1.5px solid var(--app-border-subtle);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.language-option-item:hover {
  border-color: var(--app-border-medium);
  background-color: var(--app-surface-card);
}

.language-option-item.active {
  border-color: var(--app-accent-gold);
  background-color: var(--app-surface-elevated);
  box-shadow: 0 0 0 1px var(--app-accent-gold);
}

.language-item-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

.language-code-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 12px;
  background: rgba(199, 156, 90, 0.12);
  color: var(--app-accent-gold);
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.language-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.language-item-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--app-text-main);
  line-height: 1.3;
}

.language-item-desc {
  font-size: 0.75rem;
  color: var(--app-text-muted);
  line-height: 1.3;
}

.language-check-circle {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: var(--app-accent-gold);
  color: #08121E;
  display: flex;
  align-items: center;
  justify-content: center;
}

.language-radio-circle {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 2px solid var(--app-border-medium);
  background: transparent;
}

/* 4. Quick Actions Grid */
.quick-actions-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem 0.35rem;
  margin-top: 0.5rem;
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.quick-action-squircle {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background-color: var(--app-icon-bg);
  color: var(--app-icon-color);
  border: 1px solid var(--app-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.quick-action-item:hover .quick-action-squircle {
  transform: translateY(-2px);
  background-color: var(--app-surface-elevated);
}

.quick-action-squircle .application-vector-icon {
  width: 24px;
  height: 24px;
}

.quick-action-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--app-text-main);
  line-height: 1.3;
  margin-top: 0.15rem;
}

/* 5. Section Blocks & Headings */
.section-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  width: 100%;
}

.section-block[hidden] {
  display: none !important;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25rem;
  margin: 0;
  min-height: 28px;
}

.section-title-heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--app-text-main);
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0;
  display: flex;
  align-items: center;
}

.section-link-button {
  background: none;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--app-accent-gold);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  line-height: 1.35;
  transition: opacity 0.2s ease;
}

.section-link-button:active {
  opacity: 0.7;
}

/* Today's Progress Card */
.progress-tracker-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 20px;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  box-shadow: var(--app-card-shadow);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.progress-tracker-card:active {
  transform: scale(0.985);
}

.progress-card-icon-squircle {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background-color: var(--app-icon-bg);
  color: var(--app-icon-color);
  border: 1px solid var(--app-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 37, 66, 0.04);
}

.progress-card-icon-squircle .application-vector-icon {
  width: 24px;
  height: 24px;
}

.progress-card-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.progress-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0;
}

.progress-activity-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--app-text-main);
  line-height: 1.3;
}

.progress-fraction-indicator {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--app-accent-gold);
  background: rgba(199, 156, 90, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.progress-track-bar {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--app-surface-subtle);
  overflow: hidden;
}

.progress-fill-bar {
  height: 100%;
  border-radius: 9999px;
  background-color: var(--app-accent-gold);
}

.progress-chevron-arrow {
  width: 18px;
  height: 18px;
  color: var(--app-text-muted);
  flex-shrink: 0;
}

/* Daily Verse Quote Card */
.daily-verse-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 20px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--app-card-shadow);
}

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

.daily-verse-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--app-accent-gold);
  letter-spacing: 0.5px;
}

.daily-verse-reference {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--app-text-muted);
}

.daily-verse-arabic {
  font-family: var(--app-font-arabic-default, "Scheherazade New", serif);
  font-size: 1.4rem;
  line-height: 1.9;
  text-align: right;
  direction: rtl;
  color: var(--app-arabic-color);
}

.daily-verse-translation {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--app-text-muted);
  font-style: italic;
}

.daily-verse-footnote-marker {
  color: var(--app-accent-gold);
  font-size: 0.72em;
  font-style: normal;
  font-weight: 800;
  vertical-align: super;
  line-height: 0;
}

.daily-verse-footnotes {
  border-top: 1px solid var(--app-border-subtle);
  padding-top: 0.7rem;
  color: var(--app-text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.daily-verse-footnotes-title {
  color: var(--app-accent-gold);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.daily-verse-footnotes p {
  margin: 0;
}

.verse-translation-block {
  font-size: var(--quran-translation-font-size, 0.92rem);
  line-height: 1.6;
  color: var(--app-text-main);
  margin: 0;
}

.verse-translation-block p {
  margin: 0;
}

.verse-translation-block sup {
  color: var(--app-accent-gold);
  font-size: 0.72em;
  font-weight: 800;
  vertical-align: super;
  line-height: 0;
}

.verse-footnotes-block {
  border-top: 1px solid var(--app-border-subtle);
  color: var(--app-text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
  padding-top: 0.7rem;
}

.verse-footnotes-title {
  color: var(--app-accent-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.verse-footnotes-block p {
  margin: 0;
}

.mushaf-page-footnotes {
  border-top: 1px solid var(--app-border-subtle);
  color: var(--app-text-muted);
  font-size: 0.75rem;
  line-height: 1.55;
  margin-top: 1rem;
  padding: 0.75rem 0.25rem 0;
  text-align: left;
  direction: ltr;
}

.mushaf-page-footnote-item {
  margin-top: 0.55rem;
}

.mushaf-page-footnote-item strong {
  color: var(--app-accent-gold);
  display: block;
  font-size: 0.72rem;
  margin-bottom: 0.12rem;
}

.mushaf-page-footnote-item p {
  margin: 0;
}

/* Preview Kalender Beranda */
.calendar-home-preview-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 20px;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--app-card-shadow);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.calendar-home-preview-card:active {
  transform: scale(0.985);
}

.calendar-preview-hijri {
  font-size: 1rem;
  font-weight: 800;
  color: var(--app-text-main);
}

.calendar-preview-gregorian {
  font-size: 0.8rem;
  color: var(--app-text-muted);
}

/* 6. Layar Quran (Daftar Surah) */
.quran-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-top: max(0.5rem, calc(env(safe-area-inset-top, 0px) + 0.35rem));
}

.quran-header-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--app-text-main);
}

.search-surah-pill-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 9999px;
  padding: 0.65rem 1.15rem;
  box-shadow: var(--app-card-shadow);
  margin-bottom: 0.35rem;
}

.search-surah-pill-bar .application-vector-icon {
  color: var(--app-text-muted);
  width: 18px;
  height: 18px;
}

.search-surah-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--app-input-text);
}

.surah-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.surah-list-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 16px;
  padding: 0.9rem 1.15rem;
  cursor: pointer;
  box-shadow: var(--app-card-shadow);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.surah-list-row-item:hover {
  transform: translateY(-1px);
  border-color: var(--app-border-medium);
}

.surah-row-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.surah-number-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-color: var(--app-badge-bg);
  color: var(--app-badge-text);
  border: 1px solid var(--app-border-subtle);
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.surah-text-stack {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.surah-name-latin {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--app-text-main);
  line-height: 1.25;
}

.surah-meaning-sub {
  font-size: 0.75rem;
  color: var(--app-text-muted);
  line-height: 1.35;
}

.surah-row-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.surah-name-arabic {
  font-family: 'surah-name-v4-icon', "LPMQ IsepMisbah", serif;
  font-size: 2.4rem;
  color: var(--app-accent-gold);
  direction: rtl;
  letter-spacing: 0;
  speak: never;
}

.surah-chevron {
  width: 16px;
  height: 16px;
  color: var(--app-text-muted);
}

/* Detail Ayat Surah */
.verse-detail-header-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--app-card-shadow);
}

.verse-detail-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-to-surahs-button {
  background-color: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
  border-radius: 9999px;
  padding: 0.4rem 0.9rem;
  color: var(--app-text-main);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.back-to-surahs-button:hover {
  background-color: var(--app-surface-elevated);
  color: var(--app-accent-gold);
}

.verse-item-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 18px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--app-card-shadow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.verse-item-card.active-reading-verse {
  border-color: var(--app-accent-gold) !important;
  background-color: var(--app-surface-elevated) !important;
  box-shadow: none !important;
  animation: none !important;
}

.verse-item-card.is-bookmarked {
  border-left: 3px solid var(--app-accent-gold) !important;
}

.verse-item-card.active-reading-verse .verse-arabic-text {
  color: var(--app-accent-gold) !important;
  text-shadow: none !important;
}

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

.verse-number-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background-color: var(--app-badge-bg);
  color: var(--app-badge-text);
  border: 1px solid var(--app-border-subtle);
}

.verse-actions-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.verse-action-btn {
  background-color: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--app-text-main);
  cursor: pointer;
}

.verse-action-btn:hover {
  background-color: var(--app-surface-elevated);
  color: var(--app-accent-gold);
}

.verse-arabic-text {
  font-family: var(--app-font-arabic);
  font-size: var(--app-arabic-font-size);
  line-height: var(--app-arabic-line-height);
  text-align: right;
  direction: rtl;
  color: var(--app-arabic-color);
  font-feature-settings: 'liga' 1, 'dlig' 1, 'calt' 1, 'curs' 1, 'kern' 1, 'mark' 1, 'mkmk' 1;
}

.quran-font-uthmanic .verse-arabic-text,
.quran-font-uthmanic .quran-page-ayah-paragraph {
  line-height: 1.65;
  padding-top: 0.18em;
  padding-bottom: 0.18em;
  overflow: visible;
}

.quran-font-uthmanic .mushaf-verse-unit {
  overflow: visible;
}

.quran-font-indopak .verse-arabic-text,
.quran-font-indopak .quran-page-ayah-paragraph {
  line-height: var(--app-arabic-line-height);
  word-spacing: 0.015em;
}

.verse-latin-text {
  font-size: var(--quran-latin-font-size, 0.85rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--app-accent-gold);
  margin: 0;
  text-align: right;
  direction: ltr;
}

.verse-isyarat-text {
  font-family: 'LPMQ Isyarat', 'LPMQ MSI ISYARAT', sans-serif;
  font-size: 1.85rem;
  line-height: 2.2;
  direction: rtl;
  text-align: right;
  color: var(--app-text-main);
  letter-spacing: 0.08em;
  word-spacing: 0.15em;
  margin: 0.25rem 0 0.15rem;
  -webkit-font-smoothing: antialiased;
}

.quran-isyarat-disabled .verse-isyarat-text {
  display: none !important;
}

.verse-item-card .verse-latin-text + .verse-translation-block {
  margin-top: -0.55rem;
}

.verse-translation-text {
  font-size: var(--quran-translation-font-size, 0.9rem);
  line-height: 1.6;
  color: var(--app-text-main);
}

/* Tafsir Al-Qur'an Indonesia */
#tafsir-indonesia-section .tafsir-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 5.5rem;
}

#tafsir-indonesia-section .tafsir-screen-header {
  margin-top: max(0.25rem, env(safe-area-inset-top, 0px));
  margin-bottom: 0.85rem;
}

#tafsir-indonesia-section .tafsir-header-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#tafsir-indonesia-section .tafsir-header-subtitle {
  margin-top: 0.12rem;
  color: var(--app-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

#tafsir-indonesia-section .screen-header-spacer {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

#tafsir-indonesia-section .tafsir-search-field {
  position: relative;
  display: block;
}

#tafsir-indonesia-section .tafsir-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

#tafsir-indonesia-section #tafsir-surah-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  border: 1px solid var(--app-border-subtle);
  border-radius: 14px;
  background: var(--app-surface-subtle);
  color: var(--app-input-text);
  font: inherit;
  font-size: 0.9rem;
}

#tafsir-indonesia-section .surah-name-arabic {
  font-family: 'surah-name-v4-icon', "LPMQ IsepMisbah", serif;
}

#tafsir-indonesia-section .tafsir-verse-key {
  color: var(--app-text-muted);
  font-size: 0.74rem;
}

#tafsir-indonesia-section .tafsir-verse-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#tafsir-indonesia-section .tafsir-verse-card {
  gap: 0;
}

#tafsir-indonesia-section .tafsir-arabic-text {
  margin-top: 0.8rem;
  font-family: var(--tafsir-arabic-font-family, var(--app-font-arabic-default));
  font-size: var(--tafsir-arabic-font-size, 1.5rem);
}

#tafsir-indonesia-section .tafsir-source-block {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--app-border-subtle);
}

#tafsir-indonesia-section .tafsir-source-name {
  color: var(--app-accent-gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tafsir-paragraph {
  margin: 0.35rem 0 0;
  color: var(--app-text-main);
  font-size: var(--tafsir-text-font-size, 0.9rem);
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

#tafsir-font-modal-card {
  max-height: 85vh;
  overflow-y: auto;
}

.tafsir-settings-heading,
.tafsir-settings-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tafsir-settings-heading {
  margin-bottom: 1.15rem;
}

.tafsir-settings-heading h3 {
  margin: 0;
  color: var(--app-text-main);
  font-size: 1.15rem;
  font-weight: 800;
}

.tafsir-settings-heading span {
  color: var(--app-text-muted);
  font-size: 0.76rem;
}

.tafsir-settings-label {
  color: var(--app-text-main);
  font-size: 0.88rem;
  font-weight: 800;
}

.tafsir-settings-label strong {
  color: var(--app-accent-gold);
  font-size: 0.78rem;
}

.tafsir-settings-preview {
  margin-top: 1.25rem;
  padding: 1.15rem;
  border: 1px solid var(--app-border-subtle);
  border-radius: 16px;
  background: var(--app-surface-subtle);
}

#tafsir-preview-arabic {
  font-family: var(--tafsir-arabic-font-family, var(--app-font-arabic-default));
  font-size: var(--tafsir-arabic-font-size, 1.5rem);
  line-height: 2.1;
  color: var(--app-arabic-color);
  text-align: right;
}

#tafsir-preview-text {
  margin: 0.65rem 0 0;
  color: var(--app-text-main);
  font-size: var(--tafsir-text-font-size, 0.9rem);
  line-height: 1.55;
  text-align: justify;
}

/* 7. Layar Duas / Al-Matsurat */
.almatsurat-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.almatsurat-header-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--app-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.almatsurat-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--app-text-main);
}

.almatsurat-subtitle {
  font-size: 0.82rem;
  color: var(--app-text-muted);
}

.almatsurat-filter-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.almatsurat-pill-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.almatsurat-pill-button {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
  color: var(--app-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.almatsurat-pill-button.active {
  background-color: var(--app-accent-gold);
  color: #08121E;
  border-color: transparent;
  font-weight: 800;
}

[data-theme="light"] .almatsurat-pill-button.active {
  background-color: var(--app-primary-dark);
  color: #FAF8F5;
}

.almatsurat-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.almatsurat-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 18px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--app-card-shadow);
}

.almatsurat-card.doa-completed {
  border-color: var(--app-accent-gold);
}

.almatsurat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.almatsurat-doa-index {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background-color: var(--app-badge-bg);
  color: var(--app-badge-text);
}

.almatsurat-doa-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--app-text-main);
  flex: 1;
}

.almatsurat-target-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background-color: var(--app-surface-subtle);
  color: var(--app-accent-gold);
}

.almatsurat-arabic-text {
  font-family: var(--doa-arabic-font-family, var(--app-font-arabic-default, var(--app-font-arabic)));
  font-size: var(--doa-arabic-font-size, 1.55rem);
  line-height: var(--doa-arabic-line-height, 2.2);
  text-align: right;
  direction: rtl;
  color: var(--app-arabic-color);
}

.almatsurat-latin-transliteration {
  font-size: calc(var(--doa-translation-font-size, 0.85rem) * 0.95);
  line-height: 1.5;
  color: var(--app-accent-gold);
}

.almatsurat-indonesian-translation {
  font-size: var(--doa-translation-font-size, 0.85rem);
  line-height: 1.6;
  color: var(--app-text-main);
}

.almatsurat-counter-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.almatsurat-count-button {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--app-border-subtle);
  background-color: var(--app-surface-subtle);
  color: var(--app-text-main);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}

.almatsurat-count-button.count-completed {
  background-color: var(--app-accent-gold);
  color: #08121E;
  border-color: transparent;
}

[data-theme="light"] .almatsurat-count-button.count-completed {
  background-color: var(--app-primary-dark);
  color: #FAF8F5;
}

.almatsurat-reset-single-button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--app-border-subtle);
  background-color: var(--app-surface-subtle);
  color: var(--app-text-muted);
  cursor: pointer;
  font-size: 1rem;
}

/* 7b. Layar Tasbih Digital Interaktif */
.tasbih-screen-container {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
}

.tasbih-dzikir-card {
  background: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 22px;
  padding: 1.45rem 1.35rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  gap: 0.65rem;
  box-shadow: var(--app-card-shadow);
  position: relative;
}

.tasbih-dzikir-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--app-accent-gold), transparent);
}

.tasbih-dzikir-arabic {
  font-family: var(--app-font-arabic-default, "Scheherazade New", "LPMQ IsepMisbah", serif);
  font-size: 1.95rem;
  line-height: 1.85;
  color: var(--app-arabic-color);
  direction: rtl;
  margin: 0;
}

.tasbih-dzikir-latin {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--app-text-main);
  margin: 0;
}

.tasbih-dzikir-meaning {
  font-size: 0.84rem;
  color: var(--app-text-muted);
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}

.tasbih-dzikir-pills-row {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.35rem 0.2rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tasbih-dzikir-pills-row::-webkit-scrollbar {
  display: none;
}

.tasbih-dzikir-pill {
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  color: var(--app-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tasbih-dzikir-pill.active {
  background: #102542;
  color: #FFFFFF;
  border: 1.5px solid var(--app-accent-gold);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(16, 37, 66, 0.2);
}

[data-theme="dark"] .tasbih-dzikir-pill.active {
  background: #173052;
  color: #FFFFFF;
  border: 1.5px solid var(--app-accent-gold);
}

.tasbih-counter-dial-wrapper {
  display: flex;
  justify-content: center;
  padding: 1.25rem 0;
}

.tasbih-main-tap-button {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  transition: transform 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}

.tasbih-main-tap-button:active {
  transform: scale(0.95);
}

.tasbih-dial-ring.tasbih-buzzing {
  animation: tasbih-buzz 0.12s ease;
}

@keyframes tasbih-buzz {
  0% { transform: scale(0.95) translate(0, 0); }
  25% { transform: scale(0.95) translate(-2px, 1.5px); }
  50% { transform: scale(0.95) translate(2px, -1.5px); }
  75% { transform: scale(0.95) translate(-1.5px, -1px); }
  100% { transform: scale(0.95) translate(0, 0); }
}

.tasbih-dial-ring {
  width: 236px;
  height: 236px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(16, 37, 66, 0.22), 0 0 28px rgba(199, 156, 90, 0.35);
  transition: transform 0.1s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.tasbih-dial-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #102542 0%, #06111E 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: inset 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(199, 156, 90, 0.4);
  border: 2px solid rgba(216, 195, 165, 0.25);
  color: #FFFFFF;
}

.tasbih-count-display {
  font-size: 4.1rem;
  font-weight: 900;
  color: #F7DF94;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(247, 223, 148, 0.4);
  transition: transform 0.08s ease;
}

.tasbih-target-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

.tasbih-target-selector-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.25rem 0;
}

.tasbih-target-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--app-text-main);
}

.tasbih-target-pill {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  color: var(--app-text-muted);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tasbih-target-pill.active {
  background: #102542;
  color: #FFFFFF;
  border: 1.5px solid var(--app-accent-gold);
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(16, 37, 66, 0.18);
}

[data-theme="dark"] .tasbih-target-pill.active {
  background: #173052;
  color: #FFFFFF;
  border: 1.5px solid var(--app-accent-gold);
}

.tasbih-stats-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 22px;
  padding: 1.45rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-shadow: var(--app-card-shadow);
}

.tasbih-reset-badge-btn:hover {
  background-color: var(--app-surface-elevated) !important;
  color: var(--app-accent-gold) !important;
  transform: translateY(-1px);
}

.tasbih-reset-badge-btn:active {
  transform: scale(0.95);
}

[data-theme="light"] .tasbih-target-pill.active {
  background-color: var(--app-primary-dark);
  color: #FAF8F5;
}

.tasbih-stats-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 18px;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: var(--app-card-shadow);
}

.tasbih-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tasbih-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--app-text-main);
}

.tasbih-stat-label {
  font-size: 0.72rem;
  color: var(--app-text-muted);
  font-weight: 600;
}

.tasbih-stat-divider {
  width: 1px;
  height: 28px;
  background-color: var(--app-border-subtle);
}

/* 8. Layar Shalat & Jadwal Waktu Kemenag RI */
.prayer-container,
.prayer-times-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prayer-header-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--app-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.prayer-location-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.prayer-city-select {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--app-input-border);
  background-color: var(--app-input-bg);
  color: var(--app-input-text);
  font-size: 0.85rem;
  outline: none;
  font-weight: 600;
  box-sizing: border-box;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.prayer-gps-action-button {
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--app-border-subtle);
  background-color: var(--app-surface-subtle);
  color: var(--app-text-main);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prayer-gps-action-button:hover {
  background-color: var(--app-accent-gold);
  color: #08121E;
}

.prayer-city-region-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--app-badge-bg);
  color: var(--app-badge-text);
  border: 1px solid var(--app-border-subtle);
}

.prayer-dates-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.prayer-hijri-date-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--app-text-main);
  line-height: 1.3;
}

.prayer-gregorian-date-text {
  font-size: 0.85rem;
  color: var(--app-text-muted);
  line-height: 1.4;
}

.prayer-countdown-card,
.prayer-next-countdown-box {
  position: relative;
  background: var(--app-hero-bg);
  color: var(--app-hero-text);
  border: 1px solid var(--app-hero-border);
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  box-shadow: var(--app-card-shadow);
  overflow: hidden;
}

.prayer-countdown-card::before,
.prayer-next-countdown-box::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 90% 20%, rgba(199, 156, 90, 0.12) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C79C5A' stroke-width='0.65' stroke-opacity='0.065'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z'/%3E%3Cpath d='M0 0L40 40M40 0L0 40'/%3E%3Ccircle cx='20' cy='20' r='8'/%3E%3Ccircle cx='20' cy='20' r='14'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 40px 40px;
  background-repeat: no-repeat, repeat;
  pointer-events: none;
  z-index: 1;
}

.prayer-countdown-card > *,
.prayer-next-countdown-box > * {
  position: relative;
  z-index: 2;
}

.prayer-countdown-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-accent-gold);
}

.prayer-next-name-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
}

.prayer-next-time-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--app-accent-gold);
}

.prayer-countdown-timer-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--app-accent-warm);
}

.prayer-kemenag-reference-note {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--app-text-muted);
  text-align: center;
  padding: 0.5rem 1rem;
}

.prayer-city-selector-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.prayer-city-search-input {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--app-input-border);
  background-color: var(--app-input-bg);
  color: var(--app-input-text);
  font-size: 0.85rem;
  outline: none;
}

.prayer-city-dropdown-results {
  max-height: 200px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid var(--app-border-subtle);
  background-color: var(--app-surface-card);
  box-shadow: var(--app-elevated-shadow);
  display: flex;
  flex-direction: column;
}

.prayer-city-dropdown-item {
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--app-text-main);
  border-bottom: 1px solid var(--app-border-subtle);
  cursor: pointer;
}

.prayer-city-dropdown-item:hover {
  background-color: var(--app-surface-subtle);
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.prayer-time-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  box-shadow: var(--app-card-shadow);
  transition: all 0.15s ease;
}

.prayer-time-card-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background-color: var(--app-icon-bg);
  color: var(--app-icon-color);
  border: 1px solid var(--app-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prayer-time-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.prayer-time-card-label {
  font-size: 0.78rem;
  color: var(--app-text-muted);
  font-weight: 600;
  line-height: 1.25;
}

.prayer-time-card-time {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--app-text-main);
  line-height: 1.2;
}

.prayer-time-card.active-prayer-card {
  border-color: var(--app-accent-gold);
  background-color: var(--app-surface-elevated);
}

/* 9. Layar Hadits Shahih */
.hadith-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 4.5rem;
}

.hadith-controls-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 20px;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--app-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  width: 100%;
  box-sizing: border-box;
}

.hadith-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.hadith-search-icon {
  position: absolute;
  left: 1rem;
  color: var(--app-text-muted);
  pointer-events: none;
}

.hadith-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.65rem;
  border-radius: 9999px;
  border: 1px solid var(--app-input-border);
  background-color: var(--app-surface-subtle);
  color: var(--app-text-main);
  font-size: 0.85rem;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.hadith-search-input:focus {
  border-color: var(--app-accent-gold);
  background-color: var(--app-surface-card);
}

.hadith-filter-pills {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  box-sizing: border-box;
  padding: 0.15rem 0.1rem;
}

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

.hadith-pill-button {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background-color: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
  color: var(--app-text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.hadith-pill-button:hover {
  border-color: var(--app-border-medium);
  color: var(--app-text-main);
}

.hadith-pill-button.active {
  background-color: var(--app-accent-gold);
  color: #08121E;
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(199, 156, 90, 0.2);
}

[data-theme="light"] .hadith-pill-button.active {
  background-color: var(--app-accent-gold);
  color: #08121E;
}

.hadith-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hadith-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 20px;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  box-shadow: var(--app-card-shadow);
  transition: all 0.2s ease;
}

.hadith-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--app-border-subtle);
}

.hadith-collection-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background-color: var(--app-badge-bg);
  color: var(--app-badge-text);
  border: 1px solid var(--app-border-subtle);
  letter-spacing: 0.2px;
}

.hadith-verse-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--app-accent-gold);
  font-weight: 800;
  background: rgba(199, 156, 90, 0.12);
  border: 1px solid rgba(199, 156, 90, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hadith-verse-link-badge:hover {
  background: rgba(199, 156, 90, 0.2);
  transform: translateY(-1px);
}

.hadith-arabic-text {
  font-family: var(--hadith-arabic-font-family, var(--app-font-arabic-default, var(--app-font-arabic)));
  font-size: var(--hadith-arabic-font-size, 1.45rem);
  line-height: var(--hadith-arabic-line-height, 2.2);
  text-align: right;
  direction: rtl;
  color: var(--app-arabic-color);
  padding: 0.35rem 0;
  word-spacing: 2px;
}

.hadith-arabic-text p {
  margin: 0 0 0.5rem 0;
}

.hadith-arabic-text p:last-child {
  margin-bottom: 0;
}

.hadith-translation-text {
  font-size: var(--hadith-translation-font-size, 0.88rem);
  line-height: 1.65;
  color: var(--app-text-main);
  background-color: var(--app-surface-subtle);
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--app-border-subtle);
}

.hadith-translation-text p {
  margin: 0 0 0.45rem 0;
}

.hadith-translation-text p:last-child {
  margin-bottom: 0;
}

.hadith-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.hadith-page-button {
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  background-color: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
  color: var(--app-text-main);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hadith-page-button:hover:not(:disabled) {
  border-color: var(--app-accent-gold);
  color: var(--app-accent-gold);
}

.hadith-page-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.hadith-page-indicator {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--app-text-muted);
}

/* 10. Layar Kalender Ganda */
.calendar-container {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.calendar-today-card,
.calendar-month-navigation-card,
.calendar-grid-card,
.calendar-monthly-events-card,
.calendar-selected-day-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--app-card-shadow);
}

.calendar-today-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.calendar-today-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background-color: var(--app-badge-bg);
  color: var(--app-badge-text);
  margin-bottom: 0.2rem;
}

.calendar-today-hijri-title {
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--app-accent-gold);
  margin: 0;
}

.calendar-today-gregorian-text {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--app-text-muted);
  margin: 0 0 0.35rem 0;
}

.calendar-today-events-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.calendar-event-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
}

.calendar-event-tag.holiday-tag {
  background: rgba(220, 38, 38, 0.12);
  color: #EF4444;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.calendar-event-tag.islamic-tag {
  background: rgba(199, 156, 90, 0.12);
  color: var(--app-accent-gold);
  border: 1px solid rgba(199, 156, 90, 0.25);
}

.calendar-no-holiday-note {
  font-size: 0.76rem;
  color: var(--app-text-muted);
  font-style: italic;
}

.calendar-month-navigation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.15rem;
}

.calendar-navigation-action-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--app-border-subtle);
  background-color: var(--app-surface-subtle);
  color: var(--app-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calendar-navigation-action-button:hover {
  background-color: var(--app-surface-elevated);
  border-color: var(--app-accent-gold);
  color: var(--app-accent-gold);
}

.calendar-month-title-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.calendar-current-month-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--app-text-main);
  margin: 0;
}

.calendar-current-hijri-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--app-accent-gold);
  margin: 0;
}

.calendar-weekdays-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--app-border-subtle);
}

.calendar-weekday-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--app-text-muted);
}

.calendar-weekday-label.sunday {
  color: #EF4444;
}

.calendar-weekday-label.friday {
  color: var(--app-accent-gold);
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.calendar-day-cell {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  background-color: var(--app-surface-subtle);
  transition: all 0.15s ease;
  padding: 0.2rem;
  box-sizing: border-box;
}

.calendar-day-cell.empty-cell {
  background-color: transparent;
  cursor: default;
  border-color: transparent;
}

.calendar-day-cell:not(.empty-cell):hover {
  border-color: var(--app-accent-gold);
  transform: translateY(-1px);
}

.calendar-day-masehi {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--app-text-main);
  line-height: 1.1;
}

.calendar-day-hijri {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--app-text-muted);
  line-height: 1;
  margin-top: 2px;
}

.calendar-day-cell.is-sunday .calendar-day-masehi {
  color: #EF4444;
}

.calendar-day-cell.is-holiday .calendar-day-masehi {
  color: #EF4444;
  font-weight: 900;
}

.calendar-day-cell.is-today {
  background: linear-gradient(135deg, var(--app-accent-gold), var(--app-accent-warm));
  box-shadow: 0 4px 14px rgba(199, 156, 90, 0.4);
  border-color: var(--app-accent-gold);
}

.calendar-day-cell.is-today .calendar-day-masehi,
.calendar-day-cell.is-today .calendar-day-hijri {
  color: #08121E !important;
  font-weight: 800;
}

.calendar-holiday-dot {
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #EF4444;
}

.calendar-holiday-dot.islamic-dot {
  background-color: var(--app-accent-gold);
}

/* Panel Rincian Hari Terpilih */
.calendar-selected-day-panel {
  margin-top: 0.25rem;
}

.calendar-selected-day-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border: 1px solid var(--app-accent-gold);
  background-color: var(--app-surface-card);
}

.calendar-selected-day-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.calendar-selected-day-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--app-text-main);
  margin: 0 0 0.2rem 0;
  line-height: 1.3;
}

.calendar-selected-day-hijri {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--app-accent-gold);
}

.calendar-close-action-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--app-border-subtle);
  background-color: var(--app-surface-subtle);
  color: var(--app-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.calendar-close-action-button:hover {
  color: var(--app-text-main);
  border-color: var(--app-border-medium);
}

.calendar-selected-event-item {
  padding: 0.75rem;
  border-radius: 12px;
  background-color: var(--app-surface-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.calendar-selected-event-item.holiday-border {
  border-left: 3px solid #EF4444;
}

.calendar-selected-event-item.islamic-border {
  border-left: 3px solid var(--app-accent-gold);
}

.calendar-selected-event-badge {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.calendar-selected-event-badge.holiday-badge {
  background: rgba(220, 38, 38, 0.15);
  color: #EF4444;
}

.calendar-selected-event-badge.islamic-badge {
  background: rgba(199, 156, 90, 0.15);
  color: var(--app-accent-gold);
}

.calendar-selected-event-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--app-text-main);
  line-height: 1.35;
}

.calendar-selected-event-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--app-text-muted);
  margin: 0;
}

.calendar-no-event-message {
  font-size: 0.82rem;
  color: var(--app-text-muted);
  margin: 0;
  line-height: 1.5;
}

.calendar-events-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--app-text-main);
  margin: 0 0 0.85rem 0;
}

.calendar-events-section-title .application-vector-icon {
  color: var(--app-accent-gold);
}

.calendar-monthly-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.calendar-monthly-event-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  background-color: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
  transition: all 0.2s ease;
}

.calendar-monthly-event-row:hover {
  border-color: var(--app-border-medium);
}

.calendar-event-date-box {
  width: 48px;
  min-width: 48px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  padding: 0.2rem 0.35rem;
  box-sizing: border-box;
}

.calendar-event-date-box.holiday-box {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.calendar-event-date-box.islamic-box {
  background: rgba(199, 156, 90, 0.12);
  color: var(--app-accent-gold);
  border: 1px solid rgba(199, 156, 90, 0.25);
}

.calendar-event-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.calendar-event-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--app-text-main);
  line-height: 1.35;
  word-break: break-word;
}

.calendar-event-hijri {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--app-text-muted);
  line-height: 1.25;
}

.calendar-event-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.calendar-event-pill.holiday-pill {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.22);
}

.calendar-event-pill.islamic-pill {
  background: rgba(199, 156, 90, 0.12);
  color: var(--app-accent-gold);
  border: 1px solid rgba(199, 156, 90, 0.22);
}

/* 11. Layar Kompas Kiblat */
.qibla-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 5.5rem;
}

.qibla-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 24px;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--app-card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.qibla-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--app-accent-gold), transparent);
  opacity: 0.7;
}

/* Status & Card Lokasi GPS Otomatis */
.qibla-gps-location-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  border-radius: 18px;
  background: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
  margin-bottom: 0.85rem;
  gap: 0.75rem;
  box-sizing: border-box;
}

.qibla-gps-pin-circle {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: rgba(199, 156, 90, 0.15);
  color: var(--app-accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.qibla-gps-pin-circle.active {
  background: rgba(52, 168, 83, 0.15);
  color: #34A853;
}

.qibla-gps-pin-circle.denied {
  background: rgba(234, 67, 53, 0.15);
  color: #EA4335;
}

.qibla-gps-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-radius: 14px;
  background: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
  margin-bottom: 0.75rem;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.qibla-gps-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--app-text-main);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qibla-gps-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #94A3B8;
  flex-shrink: 0;
}

.qibla-gps-status-dot.active {
  background-color: #34A853;
  box-shadow: 0 0 8px rgba(52, 168, 83, 0.7);
}

.qibla-gps-status-dot.searching {
  background-color: var(--app-accent-gold);
  animation: qiblaGpsPulse 1.2s infinite ease-in-out;
}

.qibla-gps-status-dot.denied {
  background-color: #EA4335;
}

@keyframes qiblaGpsPulse {
  0% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.5; }
}

.qibla-gps-allow-btn {
  background: var(--app-accent-gold);
  color: #08121E;
  border: none;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.qibla-gps-allow-btn:active {
  transform: scale(0.94);
}

/* Wadah Tampilan Kompas */
.qibla-compass-display {
  position: relative;
  width: min(300px, 78vw);
  height: min(300px, 78vw);
  margin: 0.85rem auto 1.15rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), inset 0 2px 10px rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.35s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.qibla-compass-display.is-aligned {
  box-shadow: 0 0 45px rgba(199, 156, 90, 0.45), 0 0 80px rgba(199, 156, 90, 0.25), inset 0 0 20px rgba(199, 156, 90, 0.3);
}

/* Penunjuk Arah Kepala HP (Target Notch di jam 12) */
.qibla-top-heading-notch {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 14px solid var(--app-accent-gold);
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: border-top-color 0.2s ease, transform 0.2s ease;
}

.qibla-compass-display.is-aligned .qibla-top-heading-notch {
  border-top-color: #34A853;
  transform: translateX(-50%) scale(1.18);
  filter: drop-shadow(0 0 8px rgba(52, 168, 83, 0.8));
}

/* Piringan Kompas SVG */
.qibla-compass-dial-svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* Badge Panduan Arah Putar */
.qibla-turn-guidance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  background: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--app-text-main);
  margin-bottom: 0.95rem;
  transition: all 0.25s ease;
}

.qibla-turn-guidance-badge.aligned {
  background: rgba(52, 168, 83, 0.15);
  border-color: #34A853;
  color: #34A853;
  box-shadow: 0 0 16px rgba(52, 168, 83, 0.25);
}

/* Grid Rincian Metrik */
.qibla-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.65rem;
  width: 100%;
  margin-bottom: 1.15rem;
}

.qibla-metric-card {
  background: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
  border-radius: 16px;
  padding: 0.85rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.qibla-metric-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--app-accent-gold);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.qibla-metric-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--app-text-muted);
}

/* Dropdown Pemilihan Kota Manual & Tombol */
.qibla-city-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--app-border-medium);
  background-color: var(--app-surface-subtle);
  color: var(--app-text-main);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  outline: none;
  cursor: pointer;
}

.qibla-action-button {
  width: 100%;
  padding: 0.8rem 1.25rem;
  border-radius: 9999px;
  border: none;
  background-color: var(--app-accent-gold);
  color: #08121E;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.qibla-action-button:active {
  transform: scale(0.97);
}

[data-theme="light"] .qibla-action-button {
  background-color: var(--app-primary-dark);
  color: #FAF8F5;
}

/* 12. Layar Notifikasi & Pengingat */
.notifications-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Tab Filter Notifikasi */
.notif-filter-pill {
  padding: 0.38rem 0.85rem;
  border-radius: 9999px;
  background: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
  color: var(--app-text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.notif-filter-pill.active {
  background: var(--app-surface-card);
  border-color: var(--app-accent-gold);
  color: var(--app-accent-gold);
  box-shadow: 0 2px 8px rgba(16, 37, 66, 0.06);
}

.notification-inbox-card {
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.notification-inbox-card:hover {
  transform: translateY(-1px);
  border-color: var(--app-border-medium);
}

.notification-inbox-card.unread {
  border-left: 3px solid var(--app-accent-gold) !important;
}

.notifications-header-card,
.notifications-toggle-card,
.notifications-preferences-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--app-card-shadow);
}

.notifications-header-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.notifications-header-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--app-icon-bg);
  color: var(--app-icon-color);
  border: 1px solid var(--app-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notifications-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--app-text-main);
}

.notifications-subtitle {
  font-size: 0.8rem;
  color: var(--app-text-muted);
}

.notifications-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
  border-radius: 16px;
  padding: 0.95rem 1.15rem;
  margin-bottom: 1.25rem;
}

.notifications-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.notifications-toggle-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--app-text-main);
  line-height: 1.25;
}

.notifications-permission-status {
  font-size: 0.74rem;
  color: var(--app-text-muted);
}

.notifications-permission-status.status-active {
  color: var(--app-accent-gold);
  font-weight: 700;
}

.notifications-permission-status.status-denied {
  color: #EF4444;
  font-weight: 700;
}

.notifications-action-button {
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  border: none;
  background-color: var(--app-accent-gold);
  color: #08121E;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.notifications-action-button:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.notifications-preferences-card {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.notifications-section-subtitle {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--app-text-main);
  margin: 0 0 0.65rem 0;
  letter-spacing: -0.2px;
}

.notifications-checklist-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.notifications-checkbox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  background-color: var(--app-surface-subtle);
  border: 1px solid var(--app-border-subtle);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.notifications-checkbox-item:hover {
  border-color: var(--app-border-medium);
}

.notifications-item-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.notifications-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--app-text-main);
  line-height: 1.3;
}

.notifications-item-subtitle {
  font-size: 0.74rem;
  color: var(--app-text-muted);
  line-height: 1.35;
}

.settings-switch-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.notifications-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.notifications-save-button {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: 9999px;
  border: none;
  background-color: var(--app-accent-gold);
  color: #08121E;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notifications-save-button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.notifications-test-button {
  padding: 0.85rem 1.15rem;
  border-radius: 9999px;
  border: 1px solid var(--app-border-subtle);
  background-color: var(--app-surface-subtle);
  color: var(--app-text-main);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.notifications-test-button:hover {
  border-color: var(--app-border-medium);
  background-color: var(--app-surface-card);
}

.notifications-feedback-message {
  margin-top: 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.notifications-feedback-message.success {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.notifications-feedback-message.error {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* 13. Layar More & Profil & Billing Xendit */
.more-screen-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.more-profile-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 18px;
  padding: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: var(--app-card-shadow);
  cursor: pointer;
}

.more-avatar-container {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--app-icon-bg);
  color: var(--app-icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--app-border-medium);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.more-avatar-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.more-profile-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.more-profile-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--app-text-main);
  line-height: 1.25;
}

.more-profile-email {
  font-size: 0.78rem;
  color: var(--app-text-muted);
  line-height: 1.35;
}

.more-chevron {
  width: 18px;
  height: 18px;
  color: var(--app-text-muted);
}

.more-menu-group-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--app-card-shadow);
}

.more-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--app-border-subtle);
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.more-menu-item:last-child {
  border-bottom: none;
}

.more-menu-item:hover {
  background-color: var(--app-surface-subtle);
}

.more-menu-item-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.more-menu-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: var(--app-icon-bg);
  color: var(--app-icon-color);
  border: 1px solid var(--app-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.more-menu-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--app-text-main);
}

.more-menu-right-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.more-number-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background-color: var(--app-badge-bg);
  color: var(--app-badge-text);
}

.islamic-blessing-banner {
  background-color: var(--app-surface-subtle);
  border-radius: 18px;
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.blessing-arabic-text {
  font-family: var(--app-font-arabic-default, "Scheherazade New", serif);
  font-size: 1.35rem;
  color: var(--app-arabic-color);
}

.blessing-translation-text {
  font-size: 0.8rem;
  color: var(--app-text-muted);
  font-style: italic;
}

/* Layar Detail Profil & Premium */
.profile-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 3.5rem;
}

#profile-dynamic-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.profile-header-card,
.profile-tier-card,
.profile-settings-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 22px;
  padding: 1.45rem 1.35rem;
  box-shadow: var(--app-card-shadow);
  box-sizing: border-box;
}

.profile-avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--app-icon-bg);
  color: var(--app-icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--app-border-medium);
  margin-bottom: 0.5rem;
}

.profile-user-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-user-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--app-text-main);
  line-height: 1.25;
}

.profile-user-id-badge {
  font-size: 0.75rem;
  color: var(--app-text-muted);
  line-height: 1.35;
}

.profile-tier-card {
  border-left: 4px solid var(--app-accent-gold);
}

.tier-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 0.85rem;
}

.tier-icon-wrapper {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  background: rgba(199, 156, 90, 0.14);
  border: 1px solid rgba(199, 156, 90, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-accent-gold);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(199, 156, 90, 0.12);
}

.tier-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  background-color: var(--app-badge-bg);
  color: var(--app-badge-text);
  display: inline-block;
  margin-bottom: 0.45rem;
}

.tier-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--app-text-main);
  line-height: 1.35;
  margin: 0;
}

.tier-description {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--app-text-muted);
  margin-top: 0.5rem;
}

.profile-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--app-text-main);
  margin-bottom: 0.65rem;
}

.profile-section-subtitle {
  font-size: 0.8rem;
  color: var(--app-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.profile-name-form {
  display: flex;
  gap: 0.5rem;
}

.profile-input {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--app-input-border);
  background-color: var(--app-input-bg);
  color: var(--app-input-text);
  font-size: 0.85rem;
}

.profile-save-button {
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  border: none;
  background-color: var(--app-accent-gold);
  color: #08121E;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}

[data-theme="light"] .profile-save-button {
  background-color: var(--app-primary-dark);
  color: #FAF8F5;
}

.profile-plans-grid,
.profile-plans-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.profile-plan-card {
  background-color: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 18px;
  padding: 1.15rem;
  box-shadow: var(--app-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.plan-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.plan-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--app-text-main);
}

.plan-price-tag,
.plan-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--app-accent-gold);
}

.plan-desc,
.plan-description {
  font-size: 0.82rem;
  color: var(--app-text-muted);
}

.profile-checkout-button {
  width: 100%;
  padding: 0.75rem;
  border-radius: 9999px;
  border: none;
  background-color: var(--app-accent-gold);
  color: #08121E;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 0.4rem;
}

[data-theme="light"] .profile-checkout-button {
  background-color: var(--app-primary-dark);
  color: #FAF8F5;
}

/* 16. Next Chapter Pull / Tap Navigator Banner */
.next-chapter-pull-card {
  margin-top: 1.5rem;
  margin-bottom: 5rem;
  background: var(--app-surface-card);
  border: 1px dashed var(--app-accent-gold);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.next-chapter-pull-card:active {
  transform: scale(0.97);
  background: var(--app-surface-subtle);
}

.next-chapter-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(199, 156, 90, 0.15);
  color: var(--app-accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceGentle 2s infinite ease-in-out;
}

@keyframes bounceGentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.next-chapter-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--app-accent-gold);
}

.next-chapter-name-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--app-text-main);
  margin: 0;
}

.next-chapter-instruction-text {
  font-size: 0.8rem;
  color: var(--app-text-muted);
  margin: 0;
}

.next-chapter-action-btn {
  margin-top: 0.25rem;
  background: var(--app-accent-gold);
  color: #08121E;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
}
.floating-quran-audio-bar {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
  left: 1rem;
  right: 1rem;
  max-width: calc(480px - 2rem);
  margin: 0 auto;
  background: rgba(250, 248, 245, 0.75) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 9999px !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  box-sizing: border-box;
  z-index: 210;
  box-shadow: 
    0 20px 40px -10px rgba(16, 37, 66, 0.16),
    0 2px 8px rgba(16, 37, 66, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}

.floating-quran-audio-bar.audio-bar-hidden-down {
  transform: translateY(150%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

[data-theme="dark"] .floating-quran-audio-bar {
  background: rgba(16, 37, 66, 0.72) !important;
  border: 1px solid rgba(216, 195, 165, 0.32) !important;
  box-shadow: 
    0 20px 45px -10px rgba(0, 0, 0, 0.7),
    0 2px 8px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
}

.floating-audio-play-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 9999px;
  background: var(--app-accent-gold);
  color: #08121E;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(199, 156, 90, 0.35);
  transition: transform 0.18s ease;
}

.floating-audio-play-btn:active {
  transform: scale(0.92);
}

.floating-audio-info-stack {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.floating-audio-surah-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--app-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-audio-reciter-sub {
  font-size: 0.72rem;
  color: var(--app-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-audio-progress-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.floating-audio-range-slider {
  flex: 1;
  height: 4px;
  border-radius: 9999px;
  accent-color: var(--app-accent-gold);
  cursor: pointer;
}

.floating-audio-time-label {
  font-size: 0.68rem;
  color: var(--app-text-muted);
  min-width: 32px;
}
/* 14. Bottom Navigation Bar Mobile (Floating Real Glassmorphism) */
.app-bottom-navigation-bar {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
  left: 1rem;
  right: 1rem;
  max-width: calc(480px - 2rem);
  margin: 0 auto;
  background: rgba(250, 248, 245, 0.65) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 9999px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px;
  box-sizing: border-box;
  z-index: 200;
  box-shadow: 
    0 20px 40px -10px rgba(16, 37, 66, 0.12),
    0 1px 3px rgba(16, 37, 66, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}

.app-bottom-navigation-bar.nav-bar-hidden-down {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.floating-quran-audio-bar.audio-bar-hidden-down {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

[data-theme="dark"] .app-bottom-navigation-bar {
  background: rgba(16, 37, 66, 0.6) !important;
  border: 1px solid rgba(216, 195, 165, 0.28) !important;
  box-shadow: 
    0 20px 45px -10px rgba(0, 0, 0, 0.65),
    0 1px 3px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
}

/* Sliding Active Background Indicator Simetris Sempurna */
.nav-tab-slider-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  border-radius: 9999px;
  background: linear-gradient(135deg, #102542 0%, #1A3357 100%);
  box-shadow: 0 6px 16px rgba(16, 37, 66, 0.28), 0 1px 3px rgba(16, 37, 66, 0.18);
  border: 1px solid #102542;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.35, 1),
              width 0.35s cubic-bezier(0.25, 1, 0.35, 1);
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .nav-tab-slider-indicator {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(216, 195, 165, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.nav-tab-button {
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--app-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.45rem 0.25rem;
  border-radius: 9999px;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.nav-tab-button .application-vector-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.2s ease;
}

.nav-tab-button.active {
  color: #FFFFFF;
  font-weight: 800;
}

[data-theme="light"] .nav-tab-button.active,
[data-theme="light"] .nav-tab-button.active .application-vector-icon {
  color: #FFFFFF;
  stroke: #FFFFFF;
}

[data-theme="dark"] .nav-tab-button.active {
  color: var(--app-accent-gold);
}

.application-vector-icon {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  overflow: visible;
}

/* Universal Bottom Sheet Modals & Smooth Drag/Swipe Interaction */
.app-modal-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-modal-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 37, 66, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

body.has-active-modal {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}

.app-modal-sheet-overlay.sheet-active {
  opacity: 1;
  pointer-events: auto;
}

.app-modal-sheet-card {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--app-surface-card);
  border-radius: 28px 28px 0 0;
  padding: 0.85rem 1.45rem calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--app-border-medium);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
  color: var(--app-text-main);
  box-sizing: border-box;
  transform: translate3d(0, 105%, 0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  touch-action: pan-y;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Tombol Resmi Google Sign-In: 100% Lebar Penuh Tanpa Batasan Max-Width & Rounded Pill */
#google-signin-btn-container {
  width: 100% !important;
  max-width: none !important;
  display: flex !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}

#google-signin-btn-container > div,
#google-signin-btn-container > div > div,
#google-signin-btn-container .nsm7Bb-HzV7m-LgbsSe,
#google-signin-btn-container iframe {
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  border-radius: 9999px !important;
  box-sizing: border-box !important;
}

#google-signin-btn-container .nsm7Bb-HzV7m-LgbsSe {
  border-radius: 9999px !important;
}

#google-signin-btn-container .nsm7Bb-HzV7m-LgbsSe-bN97Pc-sM5MNb {
  width: 100% !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.app-modal-sheet-overlay.sheet-active .app-modal-sheet-card {
  transform: translate3d(0, 0, 0);
}

/* Handle Bar Indikator Swipe Down Gaya Google / iOS */
.app-modal-drag-handle-bar {
  width: 48px;
  height: 5px;
  border-radius: 9999px;
  background: #B0B3B2;
  margin: 0.35rem auto 1rem;
  cursor: grab;
  touch-action: none !important;
  user-select: none;
  flex-shrink: 0;
  display: block;
  position: relative;
  transition: background-color 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

/* Area sentuh ekstra lebar agar mudah ditarik dengan jari */
.app-modal-drag-handle-bar::before {
  content: "";
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -20px;
  right: -20px;
}

[data-theme="dark"] .app-modal-drag-handle-bar {
  background: #606466;
}

.app-modal-drag-handle-bar:hover,
.app-modal-drag-handle-bar:active {
  background: var(--app-accent-gold, #C79C5A);
  transform: scaleX(1.1);
  cursor: grabbing;
}

/* Item Menu Pilihan Aksi Ayat (Seragam dengan Desain Bottom Sheet Lain) */
.verse-action-item-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--app-border-subtle);
  background-color: var(--app-surface-subtle);
  color: var(--app-text-main);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.verse-action-item-btn:hover {
  border-color: var(--app-accent-gold);
  background-color: var(--app-surface-card);
  transform: translateY(-1px);
}

.verse-action-item-btn:active {
  transform: scale(0.98);
}

.verse-action-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--app-badge-bg);
  color: var(--app-accent-gold);
  flex-shrink: 0;
}

/* ====================================================================
   RESPONSIVE & SYMMETRY ENHANCEMENTS
   ==================================================================== */

/* Small Screens (<= 360px) */
@media (max-width: 360px) {
  .app-screen-content {
    padding: max(0.75rem, calc(env(safe-area-inset-top, 0px) + 0.4rem)) 0.9rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }

  .app-top-header {
    padding: max(1rem, calc(env(safe-area-inset-top, 0px) + 0.75rem)) 0.9rem 0.65rem;
  }

  .quick-action-squircle {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .quick-action-squircle .application-vector-icon {
    width: 20px;
    height: 20px;
  }

  .quick-action-label {
    font-size: 0.72rem;
  }

  .hero-prayer-card {
    padding: 1.15rem 0.95rem;
  }

  .hero-countdown-clock {
    font-size: 0.95rem;
  }

  .hero-view-times-button {
    padding: 0.45rem 0.85rem;
    font-size: 0.76rem;
  }
}

/* Tablet & Desktop Framing (Centered Symmetrical App Container) */
@media (min-width: 481px) {
  body.noor-application-body {
    background-color: #EDE8E1;
  }

  [data-theme="dark"] body.noor-application-body {
    background-color: #040911;
  }

  .mobile-app-shell {
    border-left: 1px solid var(--app-border-subtle);
    border-right: 1px solid var(--app-border-subtle);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.12);
  }

  [data-theme="dark"] .mobile-app-shell {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.65);
  }

  .app-bottom-navigation-bar {
    border-radius: 9999px !important;
  }

  #universal-verse-modal-container #active-modal-overlay > div {
    border-left: 1px solid var(--app-border-medium);
    border-right: 1px solid var(--app-border-medium);
  }
}

/* ====================================================================
   GLOBAL MICRO-INTERACTIONS & FLUID MOTION
   ==================================================================== */

/* Tap & Click Feedback untuk seluruh tombol dan kartu interaktif */
button,
.nav-tab-button,
.quick-action-item,
.surah-list-row-item,
.verse-item-card,
.more-menu-item,
.more-profile-card,
.calendar-day-cell,
.prayer-time-card,
.calendar-event-item,
.hadith-card {
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease,
              opacity 0.18s ease;
  will-change: transform;
}

button:active,
.screen-back-circle-button:active,
.screen-pill-action-button:active,
.screen-icon-circle-button:active,
.hero-view-times-button:active,
.quick-action-item:active .quick-action-squircle,
.hadith-pill-button:active,
.verse-action-pill:active {
  transform: scale(0.94) !important;
  opacity: 0.88;
}

.surah-list-row-item:active,
.more-menu-item:active,
.more-profile-card:active,
.prayer-time-card:active,
.calendar-day-cell:active {
  transform: scale(0.985);
  opacity: 0.92;
}

/* Interaktivitas Nav Tab Button */
.nav-tab-button:active .application-vector-icon {
  transform: scale(0.82);
}

.nav-tab-button .application-vector-icon {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-tab-button.active .application-vector-icon {
  transform: scale(1.12);
}

/* Efek ripple / shimmer glow halus */
@keyframes goldPulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(199, 156, 90, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(199, 156, 90, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(199, 156, 90, 0);
  }
}

.verse-item-card.active-reading-verse {
  animation: none !important;
}

/* Transisi Halus Pergantian Tema Gelap/Terang */
body,
.mobile-app-shell,
.app-screen-section,
.app-bottom-navigation-bar,
.hero-prayer-card,
.surah-list-row-item,
.verse-item-card,
.calendar-today-card,
.calendar-grid-card,
.prayer-header-card {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ====================================================================
   SPLASH SCREEN & CIRCULAR DATA LOADERS
   ==================================================================== */

.application-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--app-bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  width: 100vw;
  height: 100vh;
}

.application-splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ===== HUB DOA & DZIKIR ===== */
/* Menyamakan halaman Doa dengan pola kartu dan spacing layar aplikasi lain. */
#doa-hub-section,
#daily-dua-section {
  min-height: 100%;
}
#doa-hub-section .more-screen-container,
#daily-dua-section .app-screen-content-wrapper {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 0 1.5rem;
  box-sizing: border-box;
}
#doa-hub-section .doa-page-top-bar {
  padding: 0.35rem 0.25rem 0.75rem;
  margin-bottom: 0.85rem;
}
#doa-hub-section .screen-header-spacer {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}
#doa-hub-section .more-menu-group-card {
  gap: 0 !important;
  padding: 0.5rem !important;
  border-radius: 20px !important;
}
#doa-hub-section .more-menu-item {
  min-height: 68px;
  padding: 0.8rem 0.9rem !important;
  border-bottom: 1px solid var(--app-border-subtle);
}
#doa-hub-section .more-menu-item:last-child {
  border-bottom: 0;
}
#doa-hub-section .more-menu-item:hover,
#doa-hub-section .more-menu-item:focus-visible {
  background: var(--app-surface-hover, var(--app-icon-bg));
}
#daily-dua-section .app-search-box {
  margin: 0 0 1rem !important;
  min-height: 48px;
  box-sizing: border-box;
}
#daily-dua-section .almatsurat-cards-list {
  display: grid;
  gap: 0.85rem;
}

#daily-dua-section .daily-dua-arabic-text {
  font-family: var(--daily-dua-arabic-font-family, var(--app-font-arabic-default, var(--app-font-arabic)));
  font-size: var(--daily-dua-arabic-font-size, 1.45rem);
  line-height: var(--daily-dua-arabic-line-height, 2.2);
  text-align: right;
  direction: rtl;
  color: var(--app-arabic-color);
  padding: 0.35rem 0;
  word-spacing: 2px;
}

#daily-dua-section .almatsurat-latin-transliteration {
  font-size: calc(var(--daily-dua-translation-font-size, 0.88rem) * 0.95);
}

#daily-dua-section .almatsurat-indonesian-translation {
  font-size: var(--daily-dua-translation-font-size, 0.88rem);
}

#daily-dua-section .almatsurat-card {
  gap: 0.85rem;
}

#daily-dua-section .daily-dua-fawaid {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1.5px solid var(--app-border-subtle);
  font-size: 0.78rem;
  color: var(--app-text-muted);
  line-height: 1.6;
}

#daily-dua-section .daily-dua-fawaid-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  color: var(--app-accent-gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.doa-hub-container {
  padding: 1rem 1.25rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}
.doa-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.doa-category-card {
  background: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.doa-category-card:active {
  transform: scale(0.96);
  border-color: var(--app-accent-gold);
}
.doa-card-icon-squircle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--app-icon-bg);
  color: var(--app-accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.doa-card-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--app-text-main);
}

.app-offline-blocker-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(16, 21, 32, 0.92);
  background: color-mix(in srgb, var(--app-bg-main) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: offlineFadeIn 0.3s ease;
}
.offline-blocker-card {
  background: var(--app-surface-card);
  border: 1px solid var(--app-border-medium);
  border-radius: 24px;
  padding: 2.5rem 2rem 2rem;
  max-width: 340px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--app-elevated-shadow);
  animation: offlineCardPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.offline-blocker-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  background: var(--app-badge-bg);
  border: 1.5px solid var(--app-border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-accent-gold);
  animation: offlineIconPulse 2s ease-in-out infinite;
}
.offline-blocker-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--app-text-main);
}
.offline-blocker-desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--app-text-muted);
}
.offline-blocker-refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  padding: 0.75rem 1.6rem;
  border: none;
  border-radius: 9999px;
  background: var(--app-accent-gold);
  color: var(--app-primary-dark);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--app-accent-gold) 35%, transparent);
}
.offline-blocker-refresh-button:active {
  transform: scale(0.94);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--app-accent-gold) 20%, transparent);
}
.offline-blocker-refresh-button svg {
  animation: offlineRefreshSpin 2.5s linear infinite;
}
@keyframes offlineFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes offlineCardPop {
  from { opacity: 0; transform: scale(0.85) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes offlineIconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.05); opacity: 0.75; }
}
@keyframes offlineRefreshSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.splash-screen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem;
  animation: splashContentEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-logo-container {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--app-surface-card);
  border: 1.5px solid var(--app-border-medium);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 0 25px rgba(199, 156, 90, 0.2);
  padding: 8px;
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .splash-logo-container {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 28px rgba(199, 156, 90, 0.25);
}

.splash-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

.splash-brand-title {
  font-family: var(--app-font-base);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--app-text-main);
  line-height: 1.1;
}

.splash-brand-tagline {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--app-accent-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.splash-circular-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--app-border-subtle);
  border-top-color: var(--app-accent-gold);
  animation: circularSpinAnimation 0.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes splashContentEntrance {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Circular Data Loading Spinner */
.circular-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  gap: 0.9rem;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.circular-loader-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3.5px solid var(--app-border-subtle);
  border-top-color: var(--app-accent-gold);
  animation: circularSpinAnimation 0.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  box-sizing: border-box;
}

.circular-loader-spinner.sm {
  width: 24px;
  height: 24px;
  border-width: 2.5px;
}

.circular-loader-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--app-text-muted);
  letter-spacing: 0.02em;
}

@keyframes circularSpinAnimation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Universal Floating App Toast (Pengganti Native Window Alert) */
.app-toast-container {
  position: fixed;
  top: max(1rem, calc(env(safe-area-inset-top, 0px) + 0.85rem));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999999;
  width: calc(100% - 2.5rem);
  max-width: 420px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.app-toast-banner {
  pointer-events: auto;
  background: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 16px;
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 12px 36px rgba(16, 37, 66, 0.16), 0 2px 8px rgba(16, 37, 66, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--app-text-main);
  font-family: var(--app-font-base);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
  animation: appToastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.app-toast-banner.toast-success {
  border-left: 4px solid #34A853;
}

.app-toast-banner.toast-error {
  border-left: 4px solid #EA4335;
}

.app-toast-banner.toast-warning {
  border-left: 4px solid #FBBC05;
}

.app-toast-banner.toast-info {
  border-left: 4px solid var(--app-accent-gold);
}

.app-toast-banner.hide {
  opacity: 0;
  transform: translateY(-16px) scale(0.96);
}

@keyframes appToastSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-24px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ================= FLOATING ADZAN ACTIVE BANNER & CONTROLS ================= */
.adzan-floating-banner {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top, 16px));
  left: 50%;
  transform: translate3d(-50%, -120%, 0);
  width: min(calc(100vw - 2rem), 480px);
  z-index: 10000;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.adzan-floating-banner.banner-visible {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

.adzan-banner-content {
  background: var(--app-surface-card);
  border: 1.5px solid var(--app-accent-gold);
  border-radius: 18px;
  padding: 0.95rem 1.15rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 0 24px rgba(199, 156, 90, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.adzan-banner-icon-pulse {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: rgba(199, 156, 90, 0.18);
  border: 1px solid var(--app-accent-gold);
  color: var(--app-accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: adzanPulseGlow 1.8s infinite;
}

@keyframes adzanPulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(199, 156, 90, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(199, 156, 90, 0);
    transform: scale(1.04);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(199, 156, 90, 0);
    transform: scale(1);
  }
}

.adzan-banner-text-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.adzan-banner-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--app-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adzan-banner-sub {
  font-size: 0.74rem;
  color: var(--app-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adzan-banner-stop-button {
  background: #DC2626;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
  user-select: none;
}

.adzan-banner-stop-button:active {
  transform: scale(0.95);
  background: #B91C1C;
}

/* ── Server Down Overlay ─────────────────────────────────────────────────── */
#server-down-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#server-down-overlay.sdo-visible {
  opacity: 1;
  pointer-events: auto;
}
.sdo-card {
  background: var(--app-surface-card);
  border: 1px solid var(--app-border-subtle);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  max-width: 340px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  text-align: center;
  animation: sdoSlideUp 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes sdoSlideUp {
  from { transform: translateY(32px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
.sdo-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EF4444;
}
.sdo-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--app-text-main);
  line-height: 1.3;
}
.sdo-msg {
  margin: 0;
  font-size: 0.83rem;
  color: var(--app-text-muted);
  line-height: 1.55;
}
.sdo-retry-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  background: var(--app-accent-gold);
  color: #08121E;
  font-size: 0.9rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.sdo-retry-btn:active { transform: scale(0.95); opacity: 0.85; }
@keyframes sdoShake {
  0%,100% { transform: translateX(0); }
  20%,60%  { transform: translateX(-6px); }
  40%,80%  { transform: translateX(6px); }
}
.sdo-shake { animation: sdoShake 0.5s ease; }
