/* =====================================================
   TANTRAMANI — Light theme (locked)
   Cream · Gold · Crimson | Hindi-ready fonts
   ===================================================== */

:root,
html,
html[data-theme="light"],
html[data-theme="dark"] {
  /* Light is forced — dark vars map to light for legacy selectors */
  --bg-primary: #f7f3ec;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: #ffffff;
  --bg-elevated: #fffdf9;
  --color-primary: #8B0000;
  --color-primary-hover: #a52a2a;
  --color-gold: #9a7209;
  --color-gold-dim: #8a6508;
  --color-gold-light: #c9a227;
  --text-primary: #1c1612;
  --text-secondary: #4a433c;
  --text-muted: #6e655c;
  --border-color: rgba(139, 0, 0, 0.12);
  --border-gold: rgba(154, 114, 9, 0.4);
  --shadow-soft: 0 10px 30px rgba(60, 40, 20, 0.08);
  --shadow-hover: 0 16px 40px rgba(60, 40, 20, 0.14);
  --nav-bg: rgba(255, 253, 248, 0.92);
  --footer-bg: #efe8dc;
  --input-bg: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --font-heading: 'Cinzel', 'Noto Sans Devanagari', 'Georgia', serif;
  --font-body: 'Inter', 'Noto Sans Devanagari', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Static ambient background — no scroll-linked repaint */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 15% 10%, rgba(139, 0, 0, 0.09) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 90%, rgba(212, 175, 55, 0.06) 0%, transparent 45%);
  pointer-events: none;
  z-index: -1;
}
html[data-theme="light"] body::before {
  background-image:
    radial-gradient(ellipse at 15% 10%, rgba(139, 0, 0, 0.05) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 90%, rgba(154, 114, 9, 0.05) 0%, transparent 45%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.02em;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-gold-light);
}

/* ========== NAVBAR (compact, clean PC layout) ========== */
.navbar-twp {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 0.35rem 0;
  min-height: 56px;
}
.navbar-twp .container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
}
.navbar-twp.scrolled {
  box-shadow: var(--shadow-soft);
}
.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-gold) !important;
  letter-spacing: 0.03em;
  white-space: nowrap;
  margin-right: 0.5rem !important;
  padding: 0.25rem 0 !important;
}
.navbar-brand span {
  color: var(--color-primary);
}
.navbar-twp .navbar-nav {
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
}
.navbar-twp .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.8rem !important;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.55rem !important;
  white-space: nowrap;
  line-height: 1.2;
  position: relative;
}
.navbar-twp .nav-link:hover,
.navbar-twp .nav-link.active {
  color: var(--color-gold) !important;
}
.navbar-twp .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 1px;
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  margin-left: auto;
}
.navbar-actions .btn {
  font-size: 0.75rem;
  padding: 0.28rem 0.7rem;
  white-space: nowrap;
}
.icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--color-gold);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  padding: 0;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.icon-btn:hover {
  border-color: var(--border-gold);
  background: var(--bg-card);
  color: var(--color-gold);
}
.lang-select {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.35rem;
  font-size: 0.72rem;
  min-width: 72px;
  max-width: 88px;
  cursor: pointer;
  height: 32px;
}
.lang-select:focus {
  outline: none;
  border-color: var(--border-gold);
}
.nav-search-input {
  width: 120px !important;
  height: 32px !important;
  font-size: 0.75rem !important;
  padding: 0.2rem 0.5rem !important;
  background: var(--input-bg) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}
.nav-search-input::placeholder {
  color: var(--text-muted);
  font-size: 0.72rem;
}
.nav-user-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.25rem !important;
  color: var(--text-secondary) !important;
  font-size: 0.78rem !important;
  border: none;
  background: transparent;
}
.nav-user-toggle:hover,
.nav-user-toggle:focus {
  color: var(--color-gold) !important;
}
.nav-user-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-gold);
  font-size: 0.78rem;
  font-weight: 500;
}

/* Avatar letter / image */
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
  border: 1px solid var(--border-gold);
  object-fit: cover;
}
.user-avatar-img {
  background: var(--bg-elevated);
}
.user-avatar-letter {
  background: linear-gradient(145deg, var(--color-primary), #5c0000);
  color: #ffd700;
  font-weight: 700;
  font-family: var(--font-body);
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
}

@media (max-width: 991.98px) {
  .navbar-twp .container { flex-wrap: wrap; }
  .navbar-twp .navbar-nav { flex-wrap: wrap; }
  .navbar-actions {
    width: 100%;
    margin: 0.5rem 0 0;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .navbar-twp .nav-link { font-size: 0.85rem !important; padding: 0.5rem 0.75rem !important; }
}

/* Dropdowns work in both themes */
.dropdown-menu-twp {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-color) !important;
}
.dropdown-menu-twp .dropdown-item {
  color: var(--text-primary) !important;
}
.dropdown-menu-twp .dropdown-item:hover {
  background: rgba(139, 0, 0, 0.12) !important;
  color: var(--color-gold) !important;
}
.dropdown-menu-twp .dropdown-divider {
  border-color: var(--border-color) !important;
}

/* ========== BUTTONS ========== */
.btn-gold {
  background: linear-gradient(135deg, #e8c547, #c9a227);
  color: #1a1200 !important;
  border: none;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.btn-gold:hover,
.btn-gold:focus {
  filter: brightness(1.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  color: #000 !important;
}
.btn-crimson {
  background: linear-gradient(135deg, var(--color-primary), #5c0000);
  color: #fff !important;
  border: 1px solid var(--border-gold);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}
.btn-crimson:hover,
.btn-crimson:focus {
  filter: brightness(1.08);
  box-shadow: var(--shadow-soft);
  color: #fff !important;
}
.btn-outline-gold {
  background: transparent;
  color: var(--color-gold) !important;
  border: 1px solid var(--color-gold);
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline-gold:hover,
.btn-outline-gold:focus {
  background: var(--color-gold);
  color: #1a1200 !important;
}
/* Bootstrap outline variants used in admin tables */
.btn-outline-success { color: #198754 !important; border-color: #198754 !important; background: transparent; }
.btn-outline-success:hover { color: #fff !important; background: #198754 !important; }
.btn-outline-warning { color: #b8860b !important; border-color: #c9a227 !important; background: transparent; }
.btn-outline-warning:hover { color: #1a1200 !important; background: #e8c547 !important; }
.btn-outline-danger { color: #dc3545 !important; border-color: #dc3545 !important; background: transparent; }
.btn-outline-danger:hover { color: #fff !important; background: #dc3545 !important; }
.btn-outline-secondary { color: var(--text-secondary) !important; border-color: var(--border-color) !important; }
.btn-outline-secondary:hover { color: var(--text-primary) !important; background: var(--bg-elevated) !important; }
.link-readable { color: var(--color-gold) !important; font-weight: 500; text-decoration: underline; }
.link-readable:hover { color: var(--color-gold-light) !important; }

/* Active tabs / pills / nav pills — always readable */
.nav-pills .nav-link,
.blog-tabs .nav-link {
  color: var(--text-secondary) !important;
  background: transparent;
}
.nav-pills .nav-link.active,
.blog-tabs .nav-link.active {
  color: #1a1200 !important;
  background: linear-gradient(135deg, #e8c547, #c9a227) !important;
  font-weight: 600;
}
.pagination .page-item.active .page-link {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
}
.pagination .page-link {
  color: var(--text-primary) !important;
}
.badge-gold {
  color: #1a1200 !important;
}
.badge-crimson {
  color: #fff !important;
}

/* ========== CARDS — solid bg, no backdrop-filter, no translate hover ========== */
.card-glass {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  /* isolate paint layer without continuous repaints */
  transform: translateZ(0);
}
.card-glass:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-hover);
  /* no transform:translateY — that caused layout thrash / flicker */
}
.card-glass .card-img-top {
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  display: block;
}
.card-glass .card-body {
  padding: 1.25rem;
}
.card-glass .card-title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--color-gold);
}

/* ========== HERO ========== */
.hero-section {
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 0 3.25rem;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 100%),
    radial-gradient(ellipse at center, rgba(139,0,0,0.18) 0%, transparent 70%);
}
html[data-theme="light"] .hero-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(ellipse at center, rgba(139,0,0,0.08) 0%, transparent 70%);
}
.hero-section.hero-compact {
  min-height: auto;
  padding: 4.5rem 0 3rem;
}
.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--color-gold);
  /* solid color — animated gradient text caused shimmer/flicker */
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.hero-ornament {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 1.25rem auto;
}

.stats-strip {
  padding: 1.35rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}
.stat-box { padding: 0.75rem; }
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-gold);
  font-weight: 700;
  line-height: 1.2;
}
.stat-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.topic-card .topic-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 0, 0, 0.18);
  border: 1px solid var(--border-gold);
  color: var(--color-gold);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.home-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
}
.home-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-size: 0.55rem;
  top: 0.7rem;
}
.ebook-cover-wrap {
  background: linear-gradient(145deg, #2a0a12, #120810);
  min-height: 160px;
  overflow: hidden;
  position: relative;
}
.ebook-cover-wrap .card-img-top,
.cover-img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  display: block;
  /* prevent broken-image icon / alt text flash */
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
  background: linear-gradient(145deg, #3a1020, #1a0a14);
}
img.cover-img::before {
  content: '';
}
.blog-thumb-placeholder {
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, rgba(139,0,0,0.28), var(--bg-elevated));
  border-bottom: 1px solid var(--border-color);
  color: var(--color-gold);
}
.blog-thumb-placeholder i { font-size: 1.6rem; }
.blog-thumb-placeholder span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.qa-item,
a.qa-item {
  display: block;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
  text-decoration: none;
}
.qa-item:hover,
a.qa-item:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-hover);
  /* no vertical transform */
  color: inherit;
}

/* List group used on Q&A pages — kill bootstrap flicker */
.list-group-item {
  transition: border-color 0.2s ease, background 0.2s ease !important;
}
.list-group-item-action:hover,
.list-group-item-action:focus {
  z-index: auto !important;
  transform: none !important;
}
.qa-row {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 0.65rem;
  color: var(--text-primary) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: var(--shadow-soft);
}
.qa-row:hover {
  border-color: var(--border-gold) !important;
  box-shadow: var(--shadow-hover) !important;
  background: var(--bg-elevated) !important;
  color: var(--text-primary) !important;
}

.step-num {
  width: 42px;
  height: 42px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  background: rgba(139, 0, 0, 0.2);
  border: 1px solid var(--border-gold);
  color: var(--color-gold);
}
.cta-banner {
  background: linear-gradient(135deg, rgba(139,0,0,0.2), var(--bg-secondary));
  border-top: 1px solid var(--border-color);
}

/* ========== BLOG POST ARTICLE ========== */
article.section.blog-article {
  min-height: 70vh;
  padding-bottom: 4rem;
}
.blog-hero-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 1.75rem;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}
.blog-hero-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (min-width: 768px) {
  .blog-hero-wrap {
    max-width: 560px;
    min-height: 420px;
  }
  .blog-hero-img { min-height: 420px; }
}
@media (min-width: 1200px) {
  .blog-hero-wrap {
    max-width: 640px;
    min-height: 520px;
  }
  .blog-hero-img { min-height: 520px; }
}
.blog-content {
  min-height: 280px;
  line-height: 1.85 !important;
  font-size: 1.08rem !important;
  color: var(--text-secondary) !important;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.blog-content p {
  margin-bottom: 1.1rem;
  color: var(--text-secondary);
}
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-gold);
}
.blog-content ul,
.blog-content ol {
  margin: 0 0 1.1rem 1.25rem;
  color: var(--text-secondary);
}
.blog-content li { margin-bottom: 0.4rem; }
.blog-content blockquote {
  border-left: 3px solid var(--color-gold);
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}
.blog-content table {
  width: 100%;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}
.experience-card .badge { font-weight: 500; }
.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* ========== SECTIONS ========== */
.section {
  padding: 4rem 0;
}
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
}
.section-title .ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}
.section-title .ornament::before,
.section-title .ornament::after {
  content: '';
  width: 50px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.5;
}

/* ========== FORMS ========== */
.form-control, .form-select {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus, .form-select:focus {
  background: var(--input-bg);
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  color: var(--text-primary);
}
.form-label {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.form-control::placeholder {
  color: var(--text-muted);
}
.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ========== AUTH ========== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse at top, rgba(139,0,0,0.12) 0%, transparent 55%),
    var(--bg-primary);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
}
.auth-card .logo {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-card .logo h1 {
  font-size: 1.55rem;
}

/* ========== DASHBOARD ========== */
.dashboard-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  min-height: calc(100vh - 70px);
  padding: 1.5rem 0;
}
.dashboard-sidebar .nav-link {
  color: var(--text-secondary) !important;
  padding: 0.75rem 1.5rem !important;
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
  background: rgba(139, 0, 0, 0.1);
  color: var(--color-gold) !important;
  border-left-color: var(--color-gold);
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease;
}
.stat-card:hover {
  border-color: var(--border-gold);
}
.stat-card .stat-value {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--color-gold);
}
.stat-card .stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== READER ========== */
.reader-container {
  background: var(--bg-primary);
  min-height: 100vh;
}
.reader-toolbar {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.reader-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
  font-size: 1.1rem;
  line-height: 1.8;
}
.reader-content.light-mode {
  background: #f8f4e8;
  color: #1a1a1a;
  min-height: calc(100vh - 120px);
}
.reader-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(128,128,128,0.2);
  z-index: 101;
}
.reader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  width: 0%;
  transition: width 0.2s;
}
.screenshot-deterrent {
  display: none; /* disabled — caused hover flicker overlays */
}
.reader-content.protected {
  -webkit-user-select: none;
  user-select: none;
}

/* ========== FOOTER ========== */
.footer-twp {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  padding: 2.75rem 0 1.5rem;
  margin-top: 2.5rem;
}
.footer-twp h5 {
  color: var(--color-gold);
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.footer-twp .footer-about {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.footer-twp a {
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.4;
}
.footer-twp a:hover {
  color: var(--color-gold);
}
.footer-twp .footer-social a {
  display: inline-flex;
  margin: 0 0.65rem 0 0;
  font-size: 1.15rem;
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  margin-top: 1.75rem;
  padding-top: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-bottom a {
  display: inline;
  font-size: inherit;
  margin: 0;
}

/* ========== MEMBER DASHBOARD ========== */
.member-dash {
  min-height: calc(100vh - 56px);
  background: var(--bg-primary);
}
.member-sidebar {
  padding: 1rem 0.75rem 1.25rem;
  position: sticky;
  top: 68px;
}
.member-sidebar-profile {
  text-align: center;
  padding: 0.5rem 0.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.75rem;
}
.member-sidebar-name {
  font-size: 1.05rem;
  color: var(--color-gold);
  margin: 0.65rem 0 0.15rem;
  font-family: var(--font-heading);
}
.member-sidebar-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}
.member-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.member-side-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid transparent;
}
.member-side-link i {
  font-size: 1.05rem;
  width: 1.25rem;
  text-align: center;
  color: var(--color-gold);
  opacity: 0.9;
}
.member-side-link:hover {
  background: rgba(139, 0, 0, 0.1);
  color: var(--text-primary) !important;
  border-color: var(--border-color);
}
.member-side-link.active {
  background: linear-gradient(135deg, #e8c547, #c9a227);
  color: #1a1200 !important;
  font-weight: 700;
  border-color: transparent;
}
.member-side-link.active i {
  color: #1a1200;
  opacity: 1;
}
.member-side-link.side-logout {
  margin-top: 0.5rem;
  color: #dc3545 !important;
}
.member-side-link.side-logout i { color: #dc3545; }
.side-badge {
  margin-left: auto;
  font-style: normal;
  font-size: 0.7rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-weight: 600;
}
.member-side-link.active .side-badge {
  background: #1a1200;
  color: #ffd700;
}
.member-hero {
  padding: 1.1rem 1.25rem;
}
.member-hero-title {
  font-size: 1.25rem;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 600;
}
.member-hero-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.member-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
  text-align: center;
  height: 100%;
}
.member-stat-num {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.2;
}
.member-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.dash-section-title {
  font-size: 1rem;
  color: var(--color-gold);
  font-family: var(--font-heading);
}
.dash-empty {
  text-align: center;
  padding: 1.75rem 1rem;
  color: var(--text-muted);
}
.dash-empty i {
  font-size: 1.75rem;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}
.dash-read-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.dash-read-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.2s ease;
}
.dash-read-item:hover {
  border-color: var(--border-gold);
}
.dash-book-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 0, 0, 0.18);
  border: 1px solid var(--border-gold);
  color: var(--color-gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.dash-read-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.dash-read-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-read-item:hover .dash-read-title {
  color: var(--color-gold);
}
.dash-read-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.dash-progress {
  height: 4px;
  background: rgba(128,128,128,0.22);
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
  display: block;
}
.dash-progress .progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c9a227, #e8c547);
  border-radius: 2px;
}
.dash-read-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}
.dash-notif-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dash-notif-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}
.dash-notif-list li.is-new span { color: var(--text-primary); font-weight: 500; }
.dash-notif-list li.is-read span { color: var(--text-muted); }
.dash-notif-list small { color: var(--text-muted); white-space: nowrap; }
@media (max-width: 991.98px) {
  .member-sidebar { position: static; }
}

/* Meeting banner on member dashboard */
.meeting-banner {
  border-radius: var(--radius);
  border: 1px solid var(--border-gold);
  background: linear-gradient(120deg, rgba(139,0,0,0.35), rgba(20,12,8,0.95) 55%, rgba(201,162,39,0.12));
  overflow: hidden;
}
html[data-theme="light"] .meeting-banner {
  background: linear-gradient(120deg, rgba(139,0,0,0.1), #fff 50%, rgba(201,162,39,0.15));
}
.meeting-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
}
.meeting-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,215,0,0.12);
  border: 1px solid var(--border-gold);
  color: var(--color-gold);
  font-size: 1.35rem;
  flex-shrink: 0;
}
.meeting-banner-body { flex: 1 1 200px; min-width: 0; }
.meeting-banner-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.meeting-banner-title {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
  font-family: var(--font-heading);
}
.meeting-banner-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 0.35rem;
}
.meeting-banner-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.meeting-banner-cta { flex-shrink: 0; }
.btn-join {
  background: linear-gradient(135deg, #e8c547, #c9a227);
  color: #1a1200 !important;
  font-weight: 700;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  display: inline-block;
  font-size: 0.88rem;
}
.btn-join:hover { filter: brightness(1.06); color: #000 !important; }

/* Impersonation banner */
.impersonate-bar {
  background: #e8c547;
  color: #1a1200;
  border-bottom: 1px solid #c9a227;
  font-size: 0.88rem;
  position: sticky;
  top: 56px;
  z-index: 1020;
}
.impersonate-bar .btn-dark {
  background: #1a1200;
  color: #ffd700 !important;
  border: none;
  font-weight: 600;
}

/* App-style mobile footer nav (fixed bottom tabs) */
.app-footer-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  background: var(--nav-bg);
  border-top: 1px solid var(--border-color);
  padding: 0.28rem 0.1rem calc(0.28rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.app-nav-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.28rem 0.1rem;
  text-decoration: none !important;
  color: var(--text-muted) !important;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-width: 0;
  border-radius: 0.45rem;
  transition: color 0.15s ease, background 0.15s ease;
}
.app-nav-item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-nav-item i {
  font-size: 1.15rem;
  line-height: 1;
}
.app-nav-item.active,
.app-nav-item:hover {
  color: var(--color-gold) !important;
  background: rgba(212, 175, 55, 0.08);
}
body {
  padding-bottom: 0;
}
@media (max-width: 991.98px) {
  body {
    padding-bottom: 3.85rem;
  }
  .back-to-top {
    bottom: 4.25rem;
  }
  .cookie-consent {
    bottom: 3.5rem;
  }
  .footer-twp {
    padding-bottom: 1rem;
  }
}

/* Ebook action buttons — desktop comfy, mobile compact (not huge) */
.ebook-btn-primary,
.ebook-btn-secondary {
  font-size: 0.95rem;
  padding: 0.55rem 1.1rem;
  border-radius: 0.5rem;
  font-weight: 600;
}
@media (max-width: 767.98px) {
  .ebook-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    width: 100%;
  }
  .ebook-actions .alert {
    grid-column: 1 / -1;
  }
  .ebook-actions .btn,
  .ebook-actions .ebook-btn-primary,
  .ebook-actions .ebook-btn-secondary {
    width: 100% !important;
    font-size: 0.78rem !important;
    padding: 0.45rem 0.5rem !important;
    line-height: 1.25 !important;
    white-space: normal;
    min-height: 2.35rem;
  }
  /* Single primary button spans full width when alone */
  .ebook-actions > .btn:only-child,
  .ebook-actions > a.btn:only-of-type:first-child:last-child {
    grid-column: 1 / -1;
  }
  .ebook-detail-cover {
    max-width: 140px;
    margin: 0 auto 0.75rem;
  }
  .ebook-detail-cover img,
  .ebook-cover-display {
    max-height: 190px !important;
    width: 100%;
    object-fit: cover;
  }
  .ebooks-grid .card-title {
    font-size: 0.82rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
  }
  .ebooks-grid .btn {
    font-size: 0.72rem !important;
    padding: 0.35rem 0.45rem !important;
    min-height: auto;
  }
  .ebook-cover-wrap .card-img-top,
  .ebooks-grid .cover-img {
    height: 130px !important;
  }
  .ebooks-grid .card-body {
    padding: 0.5rem !important;
  }
}
@media (max-width: 575.98px) {
  .ebook-actions {
    grid-template-columns: 1fr;
  }
  .ebook-actions .btn {
    font-size: 0.8rem !important;
    padding: 0.5rem 0.65rem !important;
  }
}

/* Member sidebar nav active readable */
.dashboard-sidebar .nav-link.active,
.card-glass .nav-link.active {
  color: var(--color-gold) !important;
  background: rgba(139, 0, 0, 0.12);
  font-weight: 600;
}

/* ========== UTILITIES ========== */
.badge-gold {
  background: linear-gradient(135deg, #e8c547, #c9a227);
  color: #1a1200;
  font-weight: 600;
  padding: 0.35em 0.75em;
  border-radius: 50px;
}
.badge-crimson {
  background: var(--color-primary);
  color: #fff;
}
.text-gold { color: var(--color-gold) !important; }
.text-muted-twp { color: var(--text-muted) !important; }
.bg-dark-card { background: var(--bg-card); }

/* Bootstrap text helpers under light theme */
html[data-theme="light"] .text-light {
  color: var(--text-primary) !important;
}
html[data-theme="light"] .bg-dark {
  background-color: var(--bg-elevated) !important;
}
html[data-theme="light"] .border-secondary {
  border-color: var(--border-color) !important;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--color-primary);
  color: #ffd700;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 999;
  cursor: pointer;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--color-gold);
  color: #0a0a0a;
}

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  border-top: 1px solid var(--border-gold);
  padding: 1rem 1.5rem;
  z-index: 10000;
  display: none;
}
.cookie-consent.show {
  display: block;
}

/* Pagination */
.pagination .page-link {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}
.pagination .page-link:hover {
  background: var(--bg-elevated);
  border-color: var(--border-gold);
  color: var(--color-gold);
}
.pagination .page-item.active .page-link {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Alerts */
.alert {
  border-radius: var(--radius-sm);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 991.98px) {
  .dashboard-sidebar {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-search-input { width: 100%; }
}
@media (max-width: 575.98px) {
  .auth-card { padding: 1.75rem 1.25rem; }
  .section { padding: 2.75rem 0; }
  .hero-section { padding: 3.5rem 0 2.25rem; }
}

/* ========== Homepage showcase ========== */
.home-hero {
  position: relative;
  padding: 4rem 0 3rem;
  overflow: hidden;
}
.home-hero .hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(139, 0, 0, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 20%, rgba(212, 175, 55, 0.16) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.home-hero .container { position: relative; z-index: 1; }
.display-home {
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.text-gradient-gold {
  background: linear-gradient(120deg, var(--color-gold-light), var(--color-gold), #a67c00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 1.05rem;
  max-width: 36rem;
  color: var(--text-secondary);
}
.hero-panel {
  border: 1px solid var(--border-gold);
  position: relative;
  box-shadow: var(--shadow-soft);
}
.hero-panel-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1200;
  background: var(--color-gold);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.hero-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: hs;
}
.hero-steps li {
  counter-increment: hs;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.35rem 0.75rem;
  margin-bottom: 1rem;
  align-items: start;
}
.hero-steps li::before {
  content: counter(hs);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(139, 0, 0, 0.35);
  border: 1px solid var(--border-gold);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  grid-row: 1 / span 2;
}
.hero-steps strong { color: var(--text-primary); font-size: 0.95rem; }
.hero-steps span { color: var(--text-muted); font-size: 0.82rem; grid-column: 2; }
.stats-home .stat-box {
  padding: 1rem 0.5rem;
}
.pillar-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}
.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-hover);
}
.promise-card {
  border: 1px solid var(--border-color);
}
.promise-n {
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  opacity: 0.85;
}
.path-card .path-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 0, 0, 0.2);
  color: var(--color-gold);
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}
.exp-home-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.exp-home-item {
  display: block;
  padding: 0.9rem 1rem;
  text-decoration: none !important;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.exp-home-item:hover {
  border-color: var(--border-gold);
  background: var(--bg-elevated);
}
.home-cta {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 0, 0, 0.22) 0%, transparent 60%),
    var(--bg-secondary);
}
.home-blog-card .cover-img {
  height: 180px;
  object-fit: cover;
}
@media (max-width: 767.98px) {
  .home-hero { padding: 2.5rem 0 2rem; }
  .home-blog-card .cover-img { height: 140px; }
}

/* =====================================================
   v20 — Grand light homepage + page polish
   ===================================================== */
html[data-theme="dark"],
html[data-theme="light"],
html {
  color-scheme: light !important;
}
body.theme-light-fixed,
body {
  background: var(--bg-primary);
  color: var(--text-primary);
}
body::before {
  background-image:
    radial-gradient(ellipse at 12% 0%, rgba(139, 0, 0, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(139, 0, 0, 0.04) 0%, transparent 50%) !important;
}

/* ---- HERO GRAND ---- */
.hero-light-grand {
  position: relative;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,253,248,0.95) 0%, rgba(247,243,236,0.9) 50%, rgba(255,248,240,0.95) 100%);
  border-bottom: 1px solid var(--border-color);
}
.hero-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-orbs .orb {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.45;
}
.orb-1 { width: 280px; height: 280px; background: rgba(212,175,55,0.35); top: -60px; right: 8%; }
.orb-2 { width: 220px; height: 220px; background: rgba(139,0,0,0.12); bottom: -40px; left: 5%; }
.orb-3 { width: 160px; height: 160px; background: rgba(212,175,55,0.2); top: 40%; left: 40%; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--color-gold);
  background: rgba(212,175,55,0.12); border: 1px solid rgba(212,175,55,0.28);
  padding: 0.4rem 0.9rem; border-radius: 999px; margin-bottom: 1rem;
}
.display-home {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15; margin-bottom: 1rem;
  color: var(--text-primary);
}
.text-gradient-gold {
  background: linear-gradient(120deg, #8B0000 0%, #b8860b 45%, #d4af37 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-lead {
  font-size: 1.1rem; color: var(--text-secondary); max-width: 34rem; line-height: 1.7;
}
.hero-trust {
  font-size: 0.92rem; color: var(--text-muted);
}

.hero-showcase { position: relative; }
.hero-feature-card {
  display: block; background: #fff; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(80,50,20,0.1);
  transition: transform .25s ease, box-shadow .25s ease;
  color: inherit;
}
.hero-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(80,50,20,0.14);
}
.hero-feature-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.hero-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-feature-badge {
  position: absolute; top: 14px; left: 14px;
  background: linear-gradient(135deg,#d4af37,#b8860b); color: #1a1200;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .04em;
  padding: 0.35rem 0.7rem; border-radius: 999px; text-transform: uppercase;
}
.hero-feature-body { padding: 1.25rem 1.35rem 1.4rem; }
.hero-feature-body h3 { color: var(--text-primary); font-family: var(--font-heading); }
.hero-feature-cta { color: var(--color-gold); font-weight: 600; font-size: 0.92rem; }
.hero-feature-empty {
  min-height: 280px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.hero-mandala {
  width: 88px; height: 88px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2.4rem; color: var(--color-gold);
  background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, rgba(139,0,0,0.06) 70%);
  border: 1px solid rgba(212,175,55,0.35);
  box-shadow: 0 8px 28px rgba(154,114,9,0.12);
}

/* ---- STATS ---- */
.stats-light {
  background: linear-gradient(180deg, #fff 0%, #faf6ef 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}
.stats-light .stat-box {
  background: #fff; border: 1px solid var(--border-color);
  border-radius: 14px; padding: 1rem 0.5rem;
  box-shadow: var(--shadow-soft);
}
.stats-light .stat-num {
  font-family: var(--font-heading); font-size: 1.6rem;
  color: var(--color-primary); font-weight: 700;
}
.stats-light .stat-label {
  font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em;
}

/* ---- SECTIONS ---- */
.section-eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-gold); margin-bottom: 0.4rem;
}
.section-sub {
  color: var(--text-muted); max-width: 32rem; margin: 0.6rem auto 0;
  font-size: 0.98rem;
}
.section-title h2 {
  color: var(--text-primary);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(247,243,236,0.9) 100%);
}

/* ---- PILARS ---- */
.pillar-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  border: 1px solid var(--border-color) !important;
  background: #fff !important;
}
.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(212,175,55,0.45) !important;
}
.pillar-card .topic-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 0.85rem;
  background: rgba(212,175,55,0.12); color: var(--color-gold);
}
.pillar-crimson .topic-icon { background: rgba(139,0,0,0.1); color: #8B0000; }
.pillar-gold .topic-icon { background: rgba(212,175,55,0.15); color: #9a7209; }
.pillar-sage .topic-icon { background: rgba(60,120,80,0.1); color: #2f6b45; }
.pillar-rose .topic-icon { background: rgba(180,60,90,0.1); color: #a33b55; }
.pillar-indigo .topic-icon { background: rgba(70,70,140,0.1); color: #4545a0; }
.pillar-card .card-title { color: var(--text-primary); font-size: 1.05rem; }

/* ---- CARDS ---- */
.card-glass {
  background: #fff !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card-glass:hover, .hover-lift:hover {
  box-shadow: var(--shadow-hover);
}
.ebook-card-premium .ebook-cover-wrap,
.blog-card-premium .ebook-cover-wrap {
  overflow: hidden; border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 3/4; max-height: 220px;
}
.blog-card-premium .ebook-cover-wrap { aspect-ratio: 16/10; max-height: 180px; }
.ebook-card-premium img,
.blog-card-premium img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.ebook-card-premium:hover img,
.blog-card-premium:hover img { transform: scale(1.05); }
.ebook-card-premium .card-title,
.blog-card-premium .card-title {
  font-size: 0.98rem; color: var(--text-primary);
  font-family: var(--font-heading);
}
.blog-card-premium .card-title a { color: inherit; text-decoration: none; }
.blog-card-premium .card-title a:hover { color: var(--color-gold); }

/* ---- PANEL SOFT ---- */
.panel-soft {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.qa-item {
  padding: 0.85rem 1rem; border-radius: 12px;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
  color: inherit; text-decoration: none;
  margin-bottom: 0.4rem;
}
.qa-item:hover {
  background: rgba(212,175,55,0.08);
  border-color: rgba(212,175,55,0.25);
}
.qa-item h6 { color: var(--text-primary); font-weight: 600; }
.exp-chip {
  background: rgba(247,243,236,0.9);
  border: 1px solid var(--border-color);
  border-radius: 12px; padding: 0.85rem 1rem;
  transition: border-color .15s, transform .15s;
  color: inherit;
}
.exp-chip:hover {
  border-color: rgba(212,175,55,0.4);
  transform: translateX(3px);
}
.exp-chip strong { color: var(--text-primary); }

/* ---- CTA ---- */
.cta-light-grand {
  background:
    linear-gradient(135deg, rgba(139,0,0,0.06), rgba(212,175,55,0.12)),
    #fff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.cta-light-grand h2 {
  color: var(--text-primary);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
.cta-sub { max-width: 28rem; color: var(--text-muted); }

/* ---- NAV LIGHT ---- */
.navbar-twp {
  background: var(--nav-bg) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}
.navbar-twp.scrolled {
  box-shadow: 0 8px 24px rgba(60,40,20,0.08);
}
.navbar-twp .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
}
.navbar-twp .nav-link:hover,
.navbar-twp .nav-link.active {
  color: var(--color-primary) !important;
}
.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-gold) !important;
}
.lang-select {
  background: #fff; border: 1px solid var(--border-color);
  color: var(--text-primary); border-radius: 8px; padding: 0.25rem 0.4rem;
}

/* ---- BUTTONS ---- */
.btn-gold {
  background: linear-gradient(135deg, #d4af37, #b8860b) !important;
  color: #1a1200 !important; border: 0 !important; font-weight: 700;
  box-shadow: 0 6px 16px rgba(184,134,11,0.25);
}
.btn-gold:hover {
  filter: brightness(1.05);
  color: #1a1200 !important;
  transform: translateY(-1px);
}
.btn-crimson {
  background: linear-gradient(135deg, #8B0000, #a52a2a) !important;
  color: #fff !important; border: 0 !important; font-weight: 600;
}
.btn-outline-gold {
  border: 1.5px solid var(--color-gold) !important;
  color: var(--color-gold) !important; background: transparent !important;
  font-weight: 600;
}
.btn-outline-gold:hover {
  background: rgba(212,175,55,0.12) !important;
  color: var(--color-gold-dim) !important;
}

/* ---- FOOTER ---- */
.footer-twp {
  background: var(--footer-bg) !important;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
}
.footer-twp h5 { color: var(--color-gold); }
.footer-twp a { color: var(--text-secondary); }
.footer-twp a:hover { color: var(--color-primary); }

/* ---- BADGES ---- */
.badge-gold {
  background: linear-gradient(135deg,#d4af37,#b8860b); color: #1a1200;
}
.badge-crimson {
  background: rgba(139,0,0,0.1); color: #8B0000; border: 1px solid rgba(139,0,0,0.15);
}

/* ---- FORMS / PAGE SHELL ---- */
.form-control, .form-select {
  background: #fff !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--color-gold) !important;
  box-shadow: 0 0 0 .2rem rgba(212,175,55,.18) !important;
}
.page-hero-mini {
  padding: 2.2rem 0 1rem;
  background: linear-gradient(180deg, #fff, transparent);
  border-bottom: 1px solid transparent;
}
.page-hero-mini h1, .page-hero-mini h2 {
  color: var(--text-primary);
}

/* App bottom nav light */
.app-footer-nav {
  background: rgba(255,253,248,0.96) !important;
  border-top: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}
.app-nav-item { color: var(--text-muted) !important; }
.app-nav-item.active, .app-nav-item:hover { color: var(--color-primary) !important; }

/* Hindi readability */
body, .card-title, .hero-title, p, .qa-item, article {
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
}

@media (max-width: 768px) {
  .hero-light-grand { padding: 2rem 0 1.75rem; }
  .display-home { font-size: 1.9rem; }
  .hero-feature-card { margin-top: 0.5rem; }
}

/* ---- Like button ---- */
.btn-like {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; border-radius: 999px !important;
  padding: 0.5rem 1rem !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-like .like-count {
  background: rgba(139,0,0,0.08); color: var(--color-primary);
  border-radius: 999px; padding: 0.15rem 0.55rem; font-weight: 700;
}
.btn-like.is-liked .like-count,
.btn-like.btn-gold .like-count {
  background: rgba(26,18,0,0.12); color: #1a1200;
}
.btn-like:hover { transform: translateY(-1px); }
.btn-like.like-pulse { transform: scale(1.06); }
.btn-like.is-loading { opacity: 0.7; pointer-events: none; }
.btn-like .like-icon { font-size: 1.1rem; }
.like-bar { border: 1px solid var(--border-color); }
