/* ==========================================================================
   HajjPedia.com v2.0 — Native App-Style Mobile-First UI
   Rounded Fonts: Baloo Da 2 (Bangla Rounded) + Nunito (English Rounded)
                  + Hind Siliguri (Ultra-Clear Bangla Body) + Amiri (Arabic)
   ========================================================================== */

:root {
  --bg: #f3f7f5;
  --surface: #ffffff;
  --surface-soft: #eaf2ee;
  --surface-elevated: #ffffff;
  --text: #10241d;
  --text-muted: #4b635a;
  --border: #d8e5df;

  --primary: #0b664d;
  --primary-hover: #08503c;
  --primary-soft: #e2f4ed;
  --accent: #c89b24;
  --accent-soft: #fdf6e2;
  --danger: #d9383a;

  --shadow-xs: 0 2px 6px rgba(10, 36, 28, 0.05);
  --shadow-sm: 0 4px 14px rgba(10, 36, 28, 0.07);
  --shadow-md: 0 12px 28px rgba(10, 36, 28, 0.11);
  --shadow-nav: 0 8px 30px rgba(10, 36, 28, 0.14);

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-pill: 9999px;

  /* Best Clear Rounded Font Stack */
  --font-rounded: 'Baloo Da 2', 'Nunito', 'Hind Siliguri', system-ui, sans-serif;
  --font-body: 'Hind Siliguri', 'Nunito', system-ui, -apple-system, sans-serif;
  --font-ar: 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif;

  /* Dynamic User Font Scale */
  --font-scale: 1;
  --header-h: 64px;
  --bottom-nav-space: 92px;
}

/* Dark Theme: Midnight Navy & Warm Gold */
[data-theme="dark"] {
  --bg: #0a101d;
  --surface: #121c30;
  --surface-soft: #1a2742;
  --surface-elevated: #16223a;
  --text: #f3f6fb;
  --text-muted: #a6b7d1;
  --border: #253659;

  --primary: #e0b946;
  --primary-hover: #f2cf66;
  --primary-soft: rgba(224, 185, 70, 0.15);
  --accent: #e0b946;
  --accent-soft: rgba(224, 185, 70, 0.12);

  --shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.36);
  --shadow-md: 0 14px 32px rgba(0, 0, 0, 0.5);
  --shadow-nav: 0 10px 32px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--bottom-nav-space) + env(safe-area-inset-bottom, 0px));
  min-height: 100vh;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, .brand, .btn, .tab-btn, .bottom-nav-item, .drawer-link {
  font-family: var(--font-rounded);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------------- Top App Bar ---------------- */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

[data-theme="dark"] .app-header {
  background: rgba(10, 16, 29, 0.9);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: -0.01em;
  color: var(--primary);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b664d, #063d2d);
  color: #f5d36d;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(11, 102, 77, 0.28);
  flex-shrink: 0;
}

[data-theme="dark"] .brand-icon {
  background: linear-gradient(135deg, #e0b946, #a88218);
  color: #0a101d;
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.1;
}

/* Desktop Navigation Pills */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.desktop-nav a {
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-family: var(--font-rounded);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Easy Touch App Buttons in Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-icon-btn {
  height: 44px;
  min-width: 44px;
  padding: 0 11px;
  border-radius: 15px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.14s ease, border-color 0.2s ease, background 0.2s ease;
}

.app-icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

/* ---------------- Slide-Over Mobile Drawer ---------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.56);
  backdrop-filter: blur(4px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 86vw);
  height: 100vh;
  background: var(--surface);
  z-index: 1300;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  border-radius: 26px 0 0 26px;
  box-shadow: -10px 0 36px rgba(0, 0, 0, 0.24);
}

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

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

.drawer-body {
  padding: 14px;
  overflow-y: auto;
  flex: 1;
}

.drawer-section-title {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 700;
  padding: 12px 12px 6px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 5px;
  transition: background 0.2s ease, transform 0.14s ease;
}

.drawer-link:active {
  transform: scale(0.97);
}

.drawer-link:hover,
.drawer-link.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.drawer-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------------- Floating Native App Bottom Nav (Mobile) ---------------- */
.bottom-nav-wrap {
  position: fixed;
  bottom: max(10px, env(safe-area-inset-bottom, 10px));
  left: 12px;
  right: 12px;
  z-index: 990;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.bottom-nav {
  pointer-events: auto;
  width: 100%;
  max-width: 520px;
  height: 68px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow-nav);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px;
  gap: 4px;
}

[data-theme="dark"] .bottom-nav {
  background: rgba(18, 28, 48, 0.94);
  border-color: rgba(224, 185, 70, 0.24);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  transition: all 0.18s ease;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.1;
}

.bottom-nav-item:active {
  transform: scale(0.92);
}

.bottom-nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
}

/* ---------------- Primary App Buttons (Large, Rounded, Tactile) ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform 0.14s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.96);
}

.btn-gold {
  background: linear-gradient(135deg, #e5be49, #c89b24);
  color: #0b111e;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(6px);
}

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

[data-theme="dark"] .btn-primary {
  color: #0a101d;
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-soft {
  background: var(--primary-soft);
  color: var(--primary);
  min-height: 42px;
  padding: 8px 16px;
  font-size: 0.9rem;
  box-shadow: none;
}

/* ---------------- Hero & Page Headers ---------------- */
.hero {
  margin-top: 16px;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  background: linear-gradient(140deg, #0b664d 0%, #074131 60%, #05291f 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .hero {
  background: linear-gradient(140deg, #162442 0%, #0e172c 65%, #091020 100%);
  border: 1.5px solid rgba(224, 185, 70, 0.3);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: #fae08c;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-rounded);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(1.62rem, 4.6vw, 2.35rem);
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero p {
  font-size: calc(1rem * var(--font-scale));
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin-bottom: 20px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-header {
  padding: 20px 0 12px;
}

.breadcrumb {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.page-header h1 {
  font-size: clamp(1.52rem, 4.2vw, 2.08rem);
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 6px;
}

.page-header p {
  color: var(--text-muted);
  font-size: calc(0.98rem * var(--font-scale));
}

/* ---------------- Sticky App Section Tabs (Easy Touch Pills) ---------------- */
.tabs-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--bg);
  padding: 10px 16px 12px;
  margin: 0 -16px;
}

.tab-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: all 0.18s ease;
}

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

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 5px 14px rgba(11, 102, 77, 0.26);
}

[data-theme="dark"] .tab-btn.active {
  color: #0a101d;
  box-shadow: 0 5px 16px rgba(224, 185, 70, 0.28);
}

.tab-panel {
  display: none;
  animation: fadeUp 0.24s ease;
}

.tab-panel.active {
  display: block;
}

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

/* ---------------- App Cards & Quick Hub Grid ---------------- */
.section-block {
  margin-top: 24px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}

.section-head h2 {
  font-size: 1.26rem;
  font-weight: 800;
}

.section-link {
  font-family: var(--font-rounded);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hub-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.hub-card:active {
  transform: scale(0.97);
}

.hub-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.45rem;
  display: grid;
  place-items: center;
}

.hub-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.hub-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.48;
}

.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.card-title {
  font-size: calc(1.12rem * var(--font-scale));
  font-weight: 800;
  margin-bottom: 8px;
}

.card-text {
  font-size: calc(0.98rem * var(--font-scale));
  color: var(--text-muted);
}

/* ---------------- Timeline Step Cards ---------------- */
.step-card {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.step-badge {
  min-width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-body h3 {
  font-size: calc(1.1rem * var(--font-scale));
  font-weight: 800;
  margin-bottom: 5px;
}

.step-body p, .step-body li {
  font-size: calc(0.97rem * var(--font-scale));
  color: var(--text-muted);
}

.step-body ul {
  padding-left: 18px;
  margin-top: 6px;
}

.step-body li {
  margin-bottom: 5px;
}

.step-meta {
  display: inline-block;
  font-family: var(--font-rounded);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

/* ---------------- Checklists (Large Touch Rows) ---------------- */
.progress-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 0.98rem;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: var(--surface-soft);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-pill);
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 62px;
  padding: 15px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform 0.14s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.checklist-item:active {
  transform: scale(0.985);
}

.checklist-item input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.checklist-item.checked {
  opacity: 0.72;
  background: var(--surface-soft);
}

.checklist-item.checked .check-title {
  text-decoration: line-through;
}

.check-content {
  flex: 1;
}

.check-title {
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: calc(1.02rem * var(--font-scale));
  display: block;
  line-height: 1.38;
}

.check-note {
  font-size: calc(0.89rem * var(--font-scale));
  color: var(--text-muted);
  display: block;
  margin-top: 3px;
}

.del-custom-btn {
  background: transparent;
  border: none;
  color: var(--danger);
  font-size: 1.1rem;
  font-weight: 700;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.add-item-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.text-input {
  flex: 1;
  min-height: 48px;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.96rem;
  outline: none;
  box-shadow: var(--shadow-xs);
}

.text-input:focus {
  border-color: var(--primary);
}

/* ---------------- Dua Cards (Ultra-Clear Font & App Pill Controls) ---------------- */
.dua-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.search-box {
  flex: 1;
  min-width: 230px;
  position: relative;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 11px 16px 11px 42px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.96rem;
  outline: none;
  box-shadow: var(--shadow-xs);
}

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

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.font-control-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.font-pill-btn {
  min-width: 40px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--surface-soft);
  color: var(--text);
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}

.font-pill-btn:active {
  transform: scale(0.92);
}

.dua-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.dua-day-badge {
  display: inline-block;
  font-family: var(--font-rounded);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 7px;
}

.dua-title {
  font-size: calc(1.14rem * var(--font-scale));
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
}

.dua-arabic-box {
  background: var(--surface-soft);
  border-radius: 18px;
  padding: 20px 18px;
  margin-bottom: 16px;
  text-align: right;
  direction: rtl;
  font-family: var(--font-ar);
  font-size: calc(1.88rem * var(--font-scale));
  line-height: 2.38;
  color: var(--text);
  border-right: 5px solid var(--primary);
  word-spacing: 2px;
}

.dua-label {
  font-family: var(--font-rounded);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 3px;
  display: block;
}

.dua-pronunciation {
  font-size: calc(1.06rem * var(--font-scale));
  font-weight: 600;
  color: var(--text);
  margin-bottom: 13px;
  line-height: 1.78;
}

.dua-meaning {
  font-size: calc(0.97rem * var(--font-scale));
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.dua-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--accent-soft);
  padding: 10px 14px;
  border-radius: 14px;
  border-left: 4px solid var(--accent);
  margin-bottom: 14px;
}

/* Easy Mobile App Action Row on Every Dua Card */
.dua-action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dua-pill-action {
  flex: 1;
  min-width: 120px;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.2s ease, background 0.2s ease;
}

.dua-pill-action:active {
  transform: scale(0.96);
}

.dua-pill-action.bookmark-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------------- FAQ Accordion (SEO + UX) ---------------- */
.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.faq-item summary {
  list-style: none;
  padding: 16px 18px;
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: calc(1.02rem * var(--font-scale));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 800;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: calc(0.95rem * var(--font-scale));
  color: var(--text-muted);
}

/* ---------------- Back to Top + Toast ---------------- */
.back-top-btn {
  position: fixed;
  right: 16px;
  bottom: calc(var(--bottom-nav-space) + 6px);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.22s ease;
  z-index: 950;
}

.back-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-space) + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(18px);
  background: #0f172a;
  color: #ffffff;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-rounded);
  font-size: 0.92rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 1500;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}

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

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 26px 0 18px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
  font-family: var(--font-rounded);
  font-weight: 700;
}

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

/* ---------------- Desktop Responsive ---------------- */
@media (min-width: 768px) {
  body {
    padding-bottom: 36px;
  }
  .desktop-nav {
    display: flex;
  }
  .bottom-nav-wrap {
    display: none;
  }
  .hub-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .hero {
    padding: 42px 38px;
  }
  .dua-arabic-box {
    font-size: calc(2.12rem * var(--font-scale));
    padding: 24px 26px;
  }
  .back-top-btn, .toast {
    bottom: 24px;
  }
}
