/* ============================================================
   PUJA BIDHI - Premium Spiritual Design System & Aesthetics
   Sacred Bengali Temple Theme • Glassmorphism • Golden Glows
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Hind+Siliguri:wght@400;500;600;700&family=Tiro+Bangla:ital@0;1&display=swap');

:root {
  --font-serif: 'Tiro Bangla', serif;
  --font-sans: 'Hind Siliguri', sans-serif;
  --font-title: 'Cinzel', 'Tiro Bangla', serif;

  /* Sacred Color Palette */
  --sacred-crimson: #991b1b;
  --sacred-crimson-dark: #7f1d1d;
  --sacred-crimson-light: #dc2626;
  --sacred-vermilion: #c2410c;
  --sacred-gold: #d97706;
  --sacred-gold-light: #f59e0b;
  --sacred-gold-glow: #fbbf24;
  --sacred-marigold: #f97316;
  --sacred-sandalwood: #fef3c7;
  --sacred-parchment: #fffdf5;
  --sacred-bg-subtle: #fcf8ee;
  --sacred-card-bg: rgba(255, 255, 255, 0.96);
  --sacred-border: rgba(217, 119, 6, 0.22);
  --sacred-border-gold: linear-gradient(135deg, #d97706, #fbbf24, #b45309);

  /* Text & Elements */
  --text-primary: #291811;
  --text-secondary: #573c30;
  --text-muted: #7c5847;
  --text-gold: #b45309;

  /* Shadows & Glow */
  --shadow-sm: 0 2px 8px rgba(153, 27, 27, 0.08);
  --shadow-md: 0 8px 24px rgba(153, 27, 27, 0.12);
  --shadow-lg: 0 16px 40px rgba(153, 27, 27, 0.16);
  --gold-glow: 0 0 20px rgba(245, 158, 11, 0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sacred Dark Mode (Sanctum Mode) */
body.dark-sanctum {
  --sacred-parchment: #0f0a07;
  --sacred-bg-subtle: #17100b;
  --sacred-card-bg: rgba(28, 19, 14, 0.94);
  --sacred-border: rgba(245, 158, 11, 0.2);
  --text-primary: #fbf7ee;
  --text-secondary: #d6c6b8;
  --text-muted: #a69282;
  --text-gold: #fbbf24;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 50px rgba(0, 0, 0, 0.7);
  --gold-glow: 0 0 30px rgba(245, 158, 11, 0.4);
}

/* ================= Global Reset & Copy Protection ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--sacred-bg-subtle);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(153, 27, 27, 0.05) 0%, transparent 40%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

input, textarea {
  user-select: text !important;
  -webkit-user-select: text !important;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--sacred-bg-subtle);
}
::-webkit-scrollbar-thumb {
  background: var(--sacred-gold);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--sacred-crimson);
}

/* ================= Header & Sacred Bar ================= */
.sacred-topbar {
  background: linear-gradient(90deg, #7f1d1d, #991b1b, #b45309, #7f1d1d);
  color: #fef3c7;
  font-size: 0.84rem;
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  font-weight: 500;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sacred-bell-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(254, 240, 138, 0.4);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  transition: var(--transition);
}
.sacred-bell-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 10px rgba(254, 240, 138, 0.6);
  transform: scale(1.04);
}

.site-header {
  position: relative; /* Not overlapping content */
  z-index: 100;
  background: var(--sacred-card-bg);
  border-bottom: 2px solid rgba(217, 119, 6, 0.3);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.header-container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b91c1c, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fef08a;
  font-size: 1.5rem;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.4);
  border: 2px solid #fef3c7;
}
.brand-text h1 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sacred-crimson);
  line-height: 1.15;
}
body.dark-sanctum .brand-text h1 {
  color: var(--sacred-gold-glow);
}
.brand-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-admin-link {
  background: rgba(153, 27, 27, 0.08);
  border: 1px solid rgba(153, 27, 27, 0.25);
  color: var(--sacred-crimson);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}
body.dark-sanctum .nav-admin-link {
  color: #fef08a;
  border-color: rgba(245, 158, 11, 0.3);
}
.nav-admin-link:hover {
  background: var(--sacred-crimson);
  color: #fff;
  transform: translateY(-1px);
}

.nav-dict-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(153, 27, 27, 0.15));
  border: 1px solid var(--sacred-gold);
  color: var(--sacred-crimson);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}
body.dark-sanctum .nav-dict-btn {
  color: #fef08a;
  border-color: rgba(245, 158, 11, 0.4);
}
.nav-dict-btn:hover {
  background: var(--sacred-gold);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

.theme-toggle-btn {
  background: var(--sacred-bg-subtle);
  border: 1px solid var(--sacred-border);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}
.theme-toggle-btn:hover {
  background: var(--sacred-gold);
  color: #fff;
  transform: rotate(25deg);
}

/* ================= Hero & Search Section ================= */
.hero-banner {
  background: linear-gradient(180deg, rgba(153, 27, 27, 0.08) 0%, rgba(217, 119, 6, 0.02) 100%);
  padding: 40px 20px 28px; /* Clean breathing room */
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--sacred-border);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sacred-crimson);
  margin-bottom: 8px;
  display: block;
}
body.dark-sanctum .hero-title {
  color: #fef08a;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 20px;
}

/* Live Search Bar */
.search-container {
  max-width: 540px;
  margin: 0 auto 16px;
  position: relative;
}
.search-box {
  width: 100%;
  padding: 13px 20px 13px 48px;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 2px solid var(--sacred-border);
  border-radius: var(--radius-full);
  background: var(--sacred-card-bg);
  color: var(--text-primary);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.search-box:focus {
  border-color: var(--sacred-gold);
  box-shadow: 0 0 16px rgba(217, 119, 6, 0.3);
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  color: var(--sacred-gold);
  pointer-events: none;
}

/* Category Filter Tabs */
.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.cat-pill {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--sacred-border);
  background: var(--sacred-card-bg);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.cat-pill:hover, .cat-pill.active {
  background: linear-gradient(135deg, var(--sacred-crimson), var(--sacred-vermilion));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(153, 27, 27, 0.25);
  transform: translateY(-2px);
}

/* ================= 5 Columns Grid on Desktop ================= */
/* User requirement: "ডেস্কটপ মোডে এখানে এক একটা রো তে মোটামুটি ৫টা করে এলিমেন্ট কিন্তু দেখাবে।" */
.main-wrapper {
  max-width: 1560px;
  width: 95%;
  margin: 0 auto;
  padding: 32px 10px 60px;
  flex: 1;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--sacred-border);
  padding-bottom: 10px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--sacred-crimson);
  display: flex;
  align-items: center;
  gap: 8px;
}
body.dark-sanctum .section-title {
  color: var(--sacred-gold-glow);
}
.items-counter {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Desktop: 5 Cards Per Row */
.puja-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1380px) {
  .puja-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}
@media (max-width: 1080px) {
  .puja-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .puja-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .puja-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Compact & Sleek Puja Card for 5-Column Grid */
.puja-card {
  background: var(--sacred-card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--sacred-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.puja-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), var(--gold-glow);
  border-color: var(--sacred-gold);
}

.card-media {
  position: relative;
  width: 100%;
  height: 145px; /* Compact & proportional */
  overflow: hidden;
  background: #1e110a;
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.puja-card:hover .card-image {
  transform: scale(1.07);
}
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(153, 27, 27, 0.9);
  color: #fef08a;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(254, 240, 138, 0.4);
}
.card-deity-pill {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.2);
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-tithi {
  font-size: 0.78rem;
  color: var(--text-gold);
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--sacred-crimson);
  line-height: 1.3;
  margin-bottom: 6px;
  transition: var(--transition);
}
body.dark-sanctum .card-title {
  color: #fef3c7;
}
.puja-card:hover .card-title {
  color: var(--sacred-gold);
}
.card-summary {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  border-top: 1px dashed var(--sacred-border);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.read-more-btn {
  background: linear-gradient(135deg, var(--sacred-gold), var(--sacred-crimson));
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.puja-card:hover .read-more-btn {
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
  transform: translateX(2px);
}

/* ================= Detail Page (Puja Bidhi Full View) ================= */
.article-header {
  margin-bottom: 24px;
  text-align: center;
}
.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumbs a {
  color: var(--sacred-gold);
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  color: var(--sacred-crimson);
  line-height: 1.25;
  margin-bottom: 8px;
}
body.dark-sanctum .article-title {
  color: var(--sacred-gold-glow);
}
.article-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 18px;
}

.article-meta-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 10px 18px;
  background: var(--sacred-card-bg);
  border-radius: var(--radius-full);
  border: 1px solid var(--sacred-border);
  max-width: 760px;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-sm);
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.meta-item strong {
  color: var(--sacred-gold);
}

.reading-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: var(--sacred-card-bg);
  border: 1px solid var(--sacred-border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.reading-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.zoom-btn {
  background: var(--sacred-bg-subtle);
  border: 1px solid var(--sacred-border);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}
.zoom-btn:hover {
  background: var(--sacred-gold);
  color: #fff;
}

.detail-banner-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--sacred-border);
  max-height: 440px;
}
.detail-banner-img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.puja-content-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  position: relative;
}
@media (max-width: 992px) {
  .puja-content-container {
    grid-template-columns: 1fr;
  }
}

.sacred-main-column {
  background: var(--sacred-card-bg);
  border: 1px solid var(--sacred-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.sacred-section-heading {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--sacred-crimson);
  margin-top: 28px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sacred-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
body.dark-sanctum .sacred-section-heading {
  color: var(--sacred-gold-glow);
}
.sacred-section-heading:first-of-type {
  margin-top: 0;
}

.sacred-prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.sacred-prose p {
  margin-bottom: 14px;
}

/* ================= Sacred Mantras Section ================= */
.mantra-card {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.3) 0%, rgba(255, 255, 255, 0.4) 100%);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-left: 5px solid var(--sacred-crimson);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
body.dark-sanctum .mantra-card {
  background: linear-gradient(135deg, rgba(45, 29, 22, 0.6) 0%, rgba(28, 19, 14, 0.8) 100%);
}
.mantra-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.mantra-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sacred-crimson);
}
body.dark-sanctum .mantra-title {
  color: var(--sacred-gold-glow);
}
.mantra-sanskrit {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--sacred-crimson-dark);
  font-weight: 600;
  background: rgba(254, 240, 138, 0.25);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(217, 119, 6, 0.35);
  margin-bottom: 12px;
  line-height: 1.8;
}
body.dark-sanctum .mantra-sanskrit {
  color: #fef08a;
  background: rgba(0, 0, 0, 0.35);
}
.mantra-pronounce {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.mantra-meaning {
  font-size: 0.94rem;
  color: var(--text-secondary);
  font-style: italic;
  border-top: 1px solid rgba(217, 119, 6, 0.2);
  padding-top: 8px;
}

/* ================= Dual Reading Mode Switcher ================= */
.mode-switch-wrapper {
  display: inline-flex;
  background: var(--sacred-bg-subtle);
  border: 1px solid var(--sacred-border);
  border-radius: var(--radius-full);
  padding: 2px;
}
.mode-switch-btn {
  border: none;
  background: transparent;
  padding: 4px 12px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}
.mode-switch-btn.active {
  background: linear-gradient(135deg, var(--sacred-crimson), var(--sacred-gold));
  color: #fff;
  box-shadow: 0 2px 6px rgba(153, 27, 27, 0.3);
}

/* ================= Dual Mode Overhead Syllable Display ================= */
.sacred-word-unit {
  display: inline-flex;
  flex-direction: column;
  vertical-align: bottom;
  text-align: center;
  position: relative;
  margin: 0 2px;
  cursor: pointer;
}

/* 1. Beginner Mode: Direct Overhead Syllable Breakdown */
body.beginner-mode .sacred-word-unit .syllable-overhead {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sacred-crimson);
  line-height: 1.15;
  background: rgba(254, 240, 138, 0.55);
  border: 1px dashed rgba(217, 119, 6, 0.45);
  border-radius: 4px;
  padding: 1px 5px;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
body.dark-sanctum.beginner-mode .sacred-word-unit .syllable-overhead {
  color: #fef08a;
  background: rgba(45, 29, 22, 0.85);
  border-color: rgba(251, 191, 36, 0.4);
}
body.beginner-mode .sacred-word-unit .original-word {
  border-bottom: 2px solid var(--sacred-gold);
  color: var(--sacred-crimson);
  font-weight: 600;
}
body.dark-sanctum.beginner-mode .sacred-word-unit .original-word {
  color: #fef3c7;
}
body.beginner-mode .sacred-word-unit:hover .syllable-overhead {
  background: var(--sacred-gold);
  color: #fff;
}

/* 2. Professional Mode: Pure Text (Overhead & borders hidden) */
body.professional-mode .sacred-word-unit .syllable-overhead {
  display: none !important;
}
body.professional-mode .sacred-word-unit .original-word {
  border-bottom: none !important;
  color: inherit !important;
  font-weight: inherit !important;
}
body.professional-mode .sacred-word-unit {
  display: inline !important;
  cursor: default;
}

.pronounce-popover {
  position: fixed;
  z-index: 9999;
  background: var(--sacred-parchment);
  border: 2px solid var(--sacred-gold);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(245, 158, 11, 0.3);
  max-width: 360px;
  width: 90vw;
  display: none;
  animation: popoverFadeIn 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: var(--text-primary);
}
.pronounce-popover.active {
  display: block;
}
@keyframes popoverFadeIn {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--sacred-border);
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.popover-title {
  font-size: 0.88rem;
  color: var(--sacred-gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.popover-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
}
.popover-word {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sacred-crimson);
  margin-bottom: 4px;
}
body.dark-sanctum .popover-word {
  color: var(--sacred-gold-glow);
}
.popover-phonetic {
  background: rgba(254, 240, 138, 0.3);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  border-left: 3px solid var(--sacred-gold);
}
.popover-breakdown {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.popover-meaning {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 10px;
}
.popover-speak-btn {
  background: linear-gradient(135deg, var(--sacred-crimson), var(--sacred-gold));
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}
.popover-speak-btn:hover {
  transform: scale(1.04);
}

/* ================= Global Pronunciation Dictionary Modal ================= */
.dict-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 10, 7, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.dict-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.dict-modal {
  background: var(--sacred-card-bg);
  border: 2px solid var(--sacred-gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), var(--gold-glow);
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.dict-modal-overlay.active .dict-modal {
  transform: translateY(0);
}
.dict-modal-header {
  padding: 16px 22px;
  border-bottom: 2px solid var(--sacred-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(153, 27, 27, 0.08), rgba(245, 158, 11, 0.08));
}
.dict-modal-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sacred-crimson);
  display: flex;
  align-items: center;
  gap: 8px;
}
body.dark-sanctum .dict-modal-title {
  color: var(--sacred-gold-glow);
}
.dict-modal-close {
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.dict-modal-close:hover {
  color: var(--sacred-crimson);
  transform: scale(1.15);
}

.dict-search-wrapper {
  padding: 14px 22px;
  border-bottom: 1px solid var(--sacred-border);
}
.dict-search-input {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  border: 1px solid var(--sacred-border);
  border-radius: var(--radius-full);
  background: var(--sacred-bg-subtle);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}
.dict-search-input:focus {
  border-color: var(--sacred-gold);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.3);
}

.dict-words-list {
  padding: 18px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dict-word-card {
  background: var(--sacred-bg-subtle);
  border: 1px solid var(--sacred-border);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: var(--transition);
}
.dict-word-card:hover {
  border-color: var(--sacred-gold);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.dict-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.dict-main-word {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sacred-crimson);
}
body.dark-sanctum .dict-main-word {
  color: #fef08a;
}
.dict-speak-pill {
  background: linear-gradient(135deg, var(--sacred-crimson), var(--sacred-gold));
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.dict-speak-pill:hover {
  transform: scale(1.05);
}
.dict-phonetic {
  font-size: 0.94rem;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.dict-breakdown {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 3px;
}
.dict-meaning {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ================= Step by Step Bidhi Timeline ================= */
.bidhi-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}
.timeline-item {
  display: flex;
  gap: 16px;
  background: var(--sacred-card-bg);
  border: 1px solid var(--sacred-border);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: var(--transition);
}
.timeline-item:hover {
  border-color: var(--sacred-gold);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.timeline-badge {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sacred-crimson), var(--sacred-gold));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 3px 8px rgba(153, 27, 27, 0.25);
}
.timeline-content h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--sacred-crimson);
  margin-bottom: 4px;
}
body.dark-sanctum .timeline-content h4 {
  color: var(--sacred-gold-glow);
}
.timeline-content p, .timeline-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ================= Sidebar: Interactive Samagri Checklist ================= */
.sacred-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  background: var(--sacred-card-bg);
  border: 1px solid var(--sacred-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 30px;
}
.sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--sacred-crimson);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sacred-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
body.dark-sanctum .sidebar-title {
  color: var(--sacred-gold-glow);
}
.samagri-counter {
  font-size: 0.78rem;
  background: var(--sacred-gold);
  color: #fff;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.samagri-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: var(--sacred-bg-subtle);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.checklist-item:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--sacred-border);
}
.checklist-item input[type="checkbox"] {
  accent-color: var(--sacred-crimson);
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
}
.checklist-item.checked span {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ================= Toast Notification (Copy Block Alert) ================= */
.sacred-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  color: #fef08a;
  border: 1px solid #fbbf24;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(245, 158, 11, 0.5);
  font-weight: 600;
  font-size: 0.92rem;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sacred-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ================= Footer ================= */
.site-footer {
  background: linear-gradient(180deg, var(--sacred-card-bg) 0%, rgba(127, 29, 29, 0.15) 100%);
  border-top: 2px solid var(--sacred-border);
  padding: 40px 20px 20px;
  margin-top: 50px;
  text-align: center;
}
.footer-container {
  max-width: 1560px;
  margin: 0 auto;
}
.footer-emblem {
  font-size: 2.2rem;
  color: var(--sacred-gold);
  margin-bottom: 10px;
}
.footer-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 16px;
}
.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--sacred-border);
  padding-top: 16px;
}

body.devtools-blur-active .puja-content-container {
  filter: blur(12px);
  pointer-events: none;
}

/* Admin Logged-In Mode: Unrestricted text selection and copy */
body.admin-logged-in,
body.admin-logged-in *,
body[data-admin-logged-in="1"],
body[data-admin-logged-in="1"] * {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}
