/* gita-reader.css — Reader Mode v2 */

/* ---------- Compact bottom floating controls ---------- */
.gita-body .chn-controls {
  bottom: 12px;
  padding: 5px;
  gap: 1px;
  border-radius: 999px;
}
.gita-body .chn-controls__btn {
  width: 40px; min-width: 40px; height: 40px;
  font-size: 16px;
  padding: 0 2px;
}
.gita-body .chn-controls__btn--ai {
  width: auto; padding: 0 14px; font-size: 13px; font-weight: 700;
  gap: 5px;
}
.gita-body .chn-controls__btn--ai span { font-size: 13px; }

/* Attractive "Add Note" CTA pill */
.gita-body .gita-note-cta {
  width: auto !important; min-width: 0 !important;
  height: 38px;
  padding: 0 16px !important;
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font: 800 13.5px Inter, system-ui, sans-serif;
  box-shadow: 0 3px 12px rgba(234,88,12,.42), inset 0 1px 0 rgba(255,255,255,.25);
  letter-spacing: .01em;
  position: relative;
  transition: transform .12s ease, box-shadow .12s ease;
}
.gita-body .gita-note-cta:hover,
.gita-body .gita-note-cta:active {
  background: linear-gradient(135deg, #f59e0b 0%, #c2410c 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(234,88,12,.5), inset 0 1px 0 rgba(255,255,255,.3);
}
.gita-body .gita-note-cta .gnb-ico {
  display: inline-block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.2));
}
.gita-body .gita-note-cta span { font-size: 13.5px; color: #fff; }
/* subtle attention pulse ring */
.gita-body .gita-note-cta::after {
  content: ""; position: absolute; inset: -3px; border-radius: 999px;
  border: 2px solid rgba(245,158,11,.5);
  animation: gita-note-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gita-note-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%      { opacity: .55; transform: scale(1.05); }
}

@media (max-width: 640px) {
  .gita-body .chn-controls__btn { width: 38px; min-width: 38px; height: 38px; font-size: 15px; }
  .gita-body .chn-controls__btn--ai { padding: 0 12px; font-size: 12.5px; }
  .gita-body .gita-note-cta { height: 36px; padding: 0 14px !important; font-size: 13px; }
  .gita-body .gita-note-cta span { font-size: 13px; }
}

/* ---------- Back-to-top arrow: lift above the controls, don't overlap ---------- */
.gita-immersive #vgBackTop {
  display: none !important;   /* hidden by default; shown via .show */
  bottom: 66px !important;    /* sit above the controls pill */
  right: 14px !important;
  width: 40px !important; height: 40px !important;
  font-size: 18px !important;
  z-index: 45 !important;     /* below controls (50) so it never covers them */
}
.gita-immersive #vgBackTop.show { display: flex !important; }

/* ---------- Spiritual Passport card in drawer ---------- */
.gmd-account { margin: 4px 4px 12px; }
.gita-passport {
  background: linear-gradient(150deg,#1e3a8a 0%,#312e81 55%,#0e7490 100%);
  color: #fff; border-radius: 16px; padding: 14px 14px 12px;
  box-shadow: 0 8px 24px rgba(30,58,138,.28);
  position: relative; overflow: hidden;
  border: 1.5px solid rgba(255,212,114,.28);
}
.gita-passport::before {
  content: "🕉"; position: absolute; top: -6px; right: 10px;
  font-size: 60px; opacity: .10; pointer-events: none;
}
.gita-passport .gpp-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; position: relative; z-index: 1; }
.gita-passport .gpp-avatar {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg,#f59e0b,#ea580c); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 800 21px "Noto Serif Devanagari", Georgia, serif;
  box-shadow: 0 2px 10px rgba(234,88,12,.5); border: 2px solid rgba(255,255,255,.3);
}
.gita-passport .gpp-id { flex: 1; min-width: 0; }
.gita-passport .gpp-name { display: block; font: 800 15.5px Inter, sans-serif; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gita-passport .gpp-title { display: block; font: 700 11.5px Inter, sans-serif; color: #fed7aa; margin-top: 1px; letter-spacing: .02em; }
.gita-passport .gpp-no {
  flex-shrink: 0; font: 800 10px "SF Mono", ui-monospace, monospace; color: #86efac;
  background: rgba(0,0,0,.24); padding: 4px 8px; border-radius: 6px; letter-spacing: .06em;
  border: 1px solid rgba(134,239,172,.3);
}
.gita-passport .gpp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
  position: relative; z-index: 1;
}
.gita-passport .gpp-cell {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,212,114,.20);
  border-radius: 11px; padding: 9px 6px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.gita-passport .gpp-ic { font-size: 16px; line-height: 1; }
.gita-passport .gpp-cell strong { font: 800 18px "Noto Serif Devanagari", Georgia, serif; color: #fed7aa; letter-spacing: -.01em; }
.gita-passport .gpp-lbl { font: 700 9px Inter, sans-serif; color: rgba(255,247,237,.72); letter-spacing: .05em; text-transform: uppercase; }
.gita-passport .gpp-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(255,212,114,.20);
  position: relative; z-index: 1;
}
.gita-passport .gpp-plan { font: 700 11.5px Inter, sans-serif; color: #fed7aa; }
.gita-passport .gpp-view {
  background: rgba(255,255,255,.14); color: #fff; text-decoration: none;
  padding: 7px 13px; border-radius: 8px; font: 800 12px Inter, sans-serif;
  border: 1px solid rgba(255,212,114,.4);
}
.gita-passport .gpp-view:hover { background: rgba(255,255,255,.24); color: #fff; }

.gmd-account .gac-out {
  background: linear-gradient(135deg,#fff7ed,#fed7aa);
  border: 1.5px solid #f59e0b; border-radius: 14px; padding: 14px 16px;
}
.gmd-account .gac-out-text strong { display: block; font: 800 14px Inter, sans-serif; color: #7c2d12; margin-bottom: 3px; }
.gmd-account .gac-out-text span { display: block; font: 500 12px/1.5 Inter, sans-serif; color: #92400e; }
.gmd-account .gac-login {
  display: block; text-align: center; margin-top: 12px;
  background: linear-gradient(135deg,#16a34a,#15803d); color: #fff;
  padding: 11px; border-radius: 10px; font: 800 14px Inter, sans-serif;
  text-decoration: none; box-shadow: 0 4px 14px rgba(22,163,74,.3);
}
.gmd-account .gac-login:hover { color: #fff; box-shadow: 0 6px 20px rgba(22,163,74,.42); transform: translateY(-1px); }

/* ---------- Immersive: hide site chrome on chapter pages ---------- */
.gita-immersive .vgp-topbar,
.gita-immersive .vgp-nav-v2,
.gita-immersive header.vgp-topbar,
.gita-immersive .vg-footer,
.gita-immersive .navbar-v2,
.gita-immersive header.chrome-header,
.gita-immersive #site-header,
.gita-immersive .site-header,
.gita-immersive footer.vg-footer,
.gita-immersive #site-footer,
.gita-immersive .site-footer,
.gita-immersive .footer-legacy { display: none !important; }
/* Chanakya HUD replaced by our own topbar — hide the duplicate */
.gita-body .chn-hud { display: none !important; }

/* ---------- Article prose refinements ---------- */
.gita-body .vp-article {
  font-size: 16.5px;
  line-height: 1.85;
  color: #1e293b;
  padding: 0 6px;
}
.gita-body .vp-article p {
  margin: 14px 0;
  color: #334155;
  hanging-punctuation: first;
}
.gita-body .vp-article p strong { color: #1e3a8a; font-weight: 700; }
.gita-body .vp-article p em { color: #ea580c; font-style: normal; font-weight: 600; }
.gita-body .vp-article ul, .gita-body .vp-article ol { margin: 14px 0; padding-left: 22px; }
.gita-body .vp-article li { margin: 6px 0; line-height: 1.75; }
.gita-body .vp-article h2.vp-section {
  font: 800 clamp(22px, 3.4vw, 28px)/1.35 "Noto Serif Devanagari", Georgia, serif;
  color: #1e3a8a;
  border-left: 5px solid #ea580c;
  background: linear-gradient(90deg, #fff7ed 0%, transparent 65%);
  padding: 12px 18px;
  border-radius: 8px;
  margin: 40px 0 16px;
  scroll-margin-top: 110px;
}
.gita-body .vp-article h3 {
  font: 700 20px/1.4 "Noto Serif Devanagari", Georgia, serif;
  color: #7c2d12;
  margin: 28px 0 10px;
}
.gita-body .vp-article a { color: #ea580c; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gita-body .vp-article a:hover { color: #c2410c; }

/* ---------- Hero stats: saffron/cream tiles on navy ---------- */
.gita-body .chn-cover__stats {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  gap: 10px !important;
  margin: 20px 0 4px !important;
}
.gita-body .chn-cover__stats > div {
  position: relative;
  padding: 14px 10px !important;
  background: linear-gradient(140deg, rgba(254,215,170,.16) 0%, rgba(245,158,11,.10) 100%) !important;
  border: 1.5px solid rgba(254,215,170,.38) !important;
  border-radius: 12px;
  border-right: 1.5px solid rgba(254,215,170,.38) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 4px 14px rgba(0,0,0,.14);
  overflow: hidden;
}
.gita-body .chn-cover__stats > div::before {
  content: "";
  position: absolute; inset: auto -20px -20px auto;
  width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(245,158,11,.35), transparent 65%);
  pointer-events: none;
}
.gita-body .chn-cover__stats strong {
  display: block;
  font: 800 30px/1.05 "Noto Serif Devanagari", Georgia, serif !important;
  color: #fed7aa !important;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(245,158,11,.35), 0 0 1px rgba(0,0,0,.35);
  position: relative;
  z-index: 1;
}
.gita-body .chn-cover__stats span {
  display: block;
  font: 700 11px Inter, sans-serif !important;
  color: rgba(255,247,237,.78) !important;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}
@media (max-width: 640px) {
  .gita-body .chn-cover__stats strong { font-size: 24px !important; }
  .gita-body .chn-cover__stats span { font-size: 10px !important; }
  .gita-body .chn-cover__stats > div { padding: 12px 6px !important; }
}

/* ---------- Reader Top Bar ---------- */
.gita-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #f1e6d1;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  font: 500 14.5px Inter, system-ui, sans-serif;
  color: #1e3a8a;
  /* Smooth hide-on-scroll-down / show-on-scroll-up */
  transform: translateY(0);
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .28s ease;
  will-change: transform;
}
.gita-topbar.is-hidden {
  transform: translateY(-110%);
}
/* subtle lift shadow once scrolled away from the very top */
.gita-topbar.is-scrolled { box-shadow: 0 4px 16px rgba(30,58,138,.10); }
/* spacer keeps content below the fixed bar (height set by JS) */
.gita-topbar-spacer { width: 100%; }

/* ---------- [F2] Reading progress bar (under fixed header) ---------- */
.gita-progress-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 89;
  background: rgba(30,58,138,.10);
  pointer-events: none;
}
.gita-progress-bar .gpb-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg,#f59e0b,#ea580c);
  box-shadow: 0 0 8px rgba(234,88,12,.5);
  transition: width .1s linear;
  border-radius: 0 3px 3px 0;
}
.gita-progress-bar .gpb-label {
  position: absolute; right: 10px; top: 8px;
  font: 700 10.5px Inter, system-ui, sans-serif; color: #7c2d12;
  background: rgba(255,247,237,.92); padding: 3px 9px; border-radius: 99px;
  border: 1px solid #fed7aa; pointer-events: none;
  opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .3s ease;
}
/* show the "min left" pill only while the header is hidden (reading mode) */
.gita-topbar.is-hidden ~ .gita-progress-bar .gpb-label { opacity: 1; transform: translateY(0); }

/* ---------- Achievement unlock celebration ---------- */
.gita-ach-pop { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .28s ease; }
.gita-ach-pop.is-in { opacity: 1; }
.gita-ach-pop.is-out { opacity: 0; }
.gita-ach-pop .gap-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.62); backdrop-filter: blur(3px); }
.gita-ach-pop .gap-card {
  position: relative; z-index: 2; width: min(360px, 100%);
  background: linear-gradient(160deg,#1e3a8a 0%,#312e81 55%,#0e7490 100%);
  color: #fff; border-radius: 22px; padding: 30px 26px 22px; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); border: 1.5px solid rgba(255,212,114,.4);
  transform: scale(.85); transition: transform .34s cubic-bezier(.2,1.3,.4,1);
}
.gita-ach-pop.is-in .gap-card { transform: scale(1); }
.gita-ach-pop .gap-ribbon {
  display: inline-block; background: linear-gradient(135deg,#f59e0b,#ea580c); color: #fff;
  font: 800 11.5px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 99px; box-shadow: 0 4px 14px rgba(234,88,12,.45);
  margin-bottom: 14px;
}
.gita-ach-pop .gap-badge {
  width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fef3c7, #fbbf24 60%, #f59e0b);
  display: flex; align-items: center; justify-content: center; font-size: 48px;
  box-shadow: 0 6px 24px rgba(245,158,11,.6), inset 0 2px 6px rgba(255,255,255,.5);
  animation: gap-badge-pop .6s cubic-bezier(.2,1.5,.4,1) .1s both;
}
@keyframes gap-badge-pop { 0% { transform: scale(0) rotate(-30deg); } 100% { transform: scale(1) rotate(0); } }
.gita-ach-pop .gap-name { margin: 0 0 4px; font: 800 24px "Noto Serif Devanagari", Georgia, serif; color: #fed7aa; }
.gita-ach-pop .gap-desc { margin: 0 0 18px; font: 500 14.5px Inter, sans-serif; color: rgba(255,255,255,.9); }
.gita-ach-pop .gap-actions { display: flex; gap: 10px; }
.gita-ach-pop .gap-btn {
  flex: 1; background: rgba(255,255,255,.14); color: #fed7aa; text-decoration: none;
  padding: 12px; border-radius: 11px; font: 800 13.5px Inter, sans-serif;
  border: 1px solid rgba(255,212,114,.4);
}
.gita-ach-pop .gap-btn:hover { background: rgba(255,255,255,.22); color: #fff; }
.gita-ach-pop .gap-close {
  flex: 1; background: linear-gradient(135deg,#f59e0b,#ea580c); color: #fff; border: none;
  padding: 12px; border-radius: 11px; font: 800 13.5px Inter, sans-serif; cursor: pointer;
  box-shadow: 0 4px 14px rgba(234,88,12,.4);
}
.gita-ach-pop .gap-close:hover { transform: translateY(-1px); }
/* Confetti */
.gita-ach-pop .gap-confetti { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.gita-ach-pop .gap-confetti i {
  position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; opacity: 0;
  animation: gap-fall 2.4s linear infinite;
}
.gita-ach-pop.is-in .gap-confetti i { opacity: 1; }
@keyframes gap-fall {
  0% { transform: translateY(-20px) rotate(0); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: .3; }
}
@media (max-width: 640px) {
  .gita-ach-pop .gap-badge { width: 82px; height: 82px; font-size: 40px; }
  .gita-ach-pop .gap-name { font-size: 21px; }
}

/* ---------- Listen-Mode login prompt (centered) ---------- */
.gita-listen-prompt { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.gita-listen-prompt[hidden] { display: none; }
.gita-listen-prompt .glp-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(3px); animation: glp-fade .2s ease; }
@keyframes glp-fade { from { opacity: 0; } to { opacity: 1; } }
.gita-listen-prompt .glp-card {
  position: relative; z-index: 1; width: min(420px, 100%);
  background: linear-gradient(160deg,#1e3a8a 0%,#312e81 55%,#0e7490 100%);
  color: #fff; border-radius: 20px; padding: 26px 24px 22px;
  text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.5);
  border: 1.5px solid rgba(255,212,114,.35);
  animation: glp-in .25s cubic-bezier(.2,.7,.2,1);
}
@keyframes glp-in { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
.gita-listen-prompt .glp-ico {
  width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(135deg,#f59e0b,#ea580c); display: flex; align-items: center; justify-content: center;
  font-size: 30px; box-shadow: 0 4px 16px rgba(234,88,12,.5);
}
.gita-listen-prompt h3 { margin: 0 0 8px; font: 800 20px "Noto Serif Devanagari", Georgia, serif; color: #fff; }
.gita-listen-prompt p { margin: 0 0 12px; font: 500 14px/1.6 Inter, system-ui, sans-serif; color: rgba(255,255,255,.9); }
.gita-listen-prompt p strong { color: #fed7aa; }
.gita-listen-prompt .glp-perks { font-size: 12.5px; color: rgba(255,247,237,.82); background: rgba(0,0,0,.2); border: 1px solid rgba(255,212,114,.25); border-radius: 12px; padding: 12px 14px; }
.gita-listen-prompt .glp-login {
  display: block; margin: 4px 0 10px; background: linear-gradient(135deg,#16a34a,#15803d); color: #fff;
  padding: 14px; border-radius: 12px; font: 800 15px Inter, sans-serif; text-decoration: none;
  box-shadow: 0 4px 16px rgba(22,163,74,.4);
}
.gita-listen-prompt .glp-login:hover { color: #fff; box-shadow: 0 6px 22px rgba(22,163,74,.55); transform: translateY(-1px); }
.gita-listen-prompt .glp-close {
  background: transparent; border: none; color: rgba(255,247,237,.7);
  font: 700 13px Inter, sans-serif; cursor: pointer; padding: 6px;
}
.gita-listen-prompt .glp-close:hover { color: #fed7aa; }

/* Subtle lock hint on the audio button for guests */
.gita-body.gita-guest .chn-controls__btn[data-ctl="tts"],
.gita-body.gita-guest .chn-controls__btn[data-ctl-gita="tts"] { position: relative; }
.gita-body.gita-guest .chn-controls__btn[data-ctl="tts"]::after,
.gita-body.gita-guest .chn-controls__btn[data-ctl-gita="tts"]::after {
  content: "🔒"; position: absolute; top: -2px; right: -2px; font-size: 10px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.3));
}
.gita-topbar__btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1.5px solid transparent; color: #1e3a8a;
  cursor: pointer; font: 600 14px Inter, system-ui, sans-serif;
  padding: 8px 12px; border-radius: 10px; min-height: 40px;
  text-decoration: none; transition: background .12s, border-color .12s;
}
.gita-topbar__btn:hover { background: #fff7ed; border-color: #fed7aa; }
.gita-topbar__title {
  flex: 1; text-align: center;
  font: 700 15.5px "Noto Serif Devanagari", Georgia, serif;
  color: #1e3a8a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gita-topbar__title small { display: block; font: 500 11.5px Inter; color: #7a4a1a; margin-top: 1px; letter-spacing: .04em; text-transform: uppercase; }
a.gita-topbar__title { text-decoration: none; cursor: pointer; padding: 4px 12px; border-radius: 10px; transition: background .12s ease, transform .12s ease; }
a.gita-topbar__title:hover { background: #fff7ed; color: #1e3a8a; transform: translateY(-1px); }
a.gita-topbar__title:hover .gtt-hint { color: #ea580c; }
a.gita-topbar__title .gtt-hint { color: #b8511f; font-weight: 700; letter-spacing: .03em; text-transform: none; }
@media (max-width: 640px) { a.gita-topbar__title .gtt-hint { display: none; } }
.gita-topbar__streak {
  background: linear-gradient(135deg,#fed7aa,#fdba74); color: #7c2d12;
  padding: 6px 10px; border-radius: 99px; font: 700 12.5px Inter;
  min-width: 40px; text-align: center;
}
@media (max-width: 640px) {
  .gita-topbar__title { font-size: 13.5px }
  .gita-topbar__title small { display: none }
  .gita-topbar__btn { padding: 8px 10px; font-size: 13px }
}

/* ---------- Welcome-Back Banner (top of article) ---------- */
.gita-welcome-back {
  background: linear-gradient(135deg,#fff7ed,#fed7aa);
  border: 1.5px solid #f59e0b; border-radius: 16px;
  padding: 16px 18px; margin: 14px 22px 0;
  box-shadow: 0 6px 18px rgba(234,88,12,.14);
}
.gwb-inner { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.gwb-left { flex: 1; min-width: 240px; }
.gwb-hi { display: block; font: 800 12.5px Inter; color: #7c2d12; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.gwb-line { display: block; font: 500 15.5px "Noto Serif Devanagari"; color: #1e3a8a; line-height: 1.5; }
.gwb-bar { margin-top: 8px; height: 6px; background: rgba(255,255,255,.6); border-radius: 99px; overflow: hidden; }
.gwb-bar > div { height: 100%; background: linear-gradient(90deg,#f59e0b,#ea580c); border-radius: 99px; transition: width .5s ease; }
.gwb-btn { background: linear-gradient(135deg,#1e3a8a,#312e81); color: #fff; padding: 12px 20px; border-radius: 12px; text-decoration: none; font: 800 14.5px Inter; box-shadow: 0 4px 14px rgba(30,58,138,.3); white-space: nowrap; }
.gwb-btn:hover { color: #fff; box-shadow: 0 6px 20px rgba(30,58,138,.42); }
.gwb-close { background: transparent; border: none; color: #7c2d12; font-size: 20px; cursor: pointer; padding: 4px 8px; }

/* ---------- Drawer Backdrop + shell ---------- */
.gita-drawer-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.gita-drawer-backdrop.is-open { opacity: 1; pointer-events: all; }

.gita-menu-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(400px, 94vw); background: #fff; z-index: 210;
  transform: translateX(-105%);
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column;
  box-shadow: 8px 0 34px rgba(15,23,42,.24);
}
.gita-menu-drawer.is-open { transform: translateX(0); }
.gmd-head {
  padding: 18px 18px 14px;
  background: linear-gradient(135deg,#1e3a8a,#312e81 55%,#0e7490);
  color: #fff; border-bottom: 3px solid #f59e0b; position: relative;
}
.gmd-head h3 { margin: 0; font: 800 20px "Noto Serif Devanagari"; }
.gmd-head p { margin: 2px 0 0; color: #fed7aa; font: 500 13px Inter; }
.gmd-close { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.14); border: none; color: #fff; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.gmd-body { overflow-y: auto; padding: 12px 12px 30px; flex: 1; scrollbar-width: thin; }

/* ---------- Welcome Card (top of body, always visible) ---------- */
.gmd-welcome-card {
  background: linear-gradient(135deg,#fff7ed,#fef3c7);
  border: 1.5px solid #fde68a; border-radius: 14px;
  padding: 14px 16px; margin: 4px 4px 14px;
  box-shadow: 0 4px 14px rgba(234,88,12,.08);
}
.gwc-hi { font: 800 12px Inter; color: #7c2d12; letter-spacing: .08em; text-transform: uppercase; }
.gwc-line { font: 600 16px "Noto Serif Devanagari"; color: #1e3a8a; margin: 4px 0 10px; }
.gwc-bar { height: 8px; background: rgba(255,255,255,.7); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.gwc-bar > div { height: 100%; background: linear-gradient(90deg,#f59e0b,#ea580c); border-radius: 99px; transition: width .5s ease; }
.gwc-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font: 600 12px Inter; color: #7a4a1a; }

/* ---------- Collapsible sections ---------- */
.gmd-fold {
  background: #fff; border: 1.5px solid #f1e6d1; border-radius: 12px;
  margin: 6px 4px; overflow: hidden;
  transition: border-color .12s ease;
}
.gmd-fold[open] { border-color: #fdba74; }
.gmd-fold summary {
  cursor: pointer; list-style: none;
  padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font: 700 14.5px Inter; color: #1e3a8a;
  transition: background .12s ease;
}
.gmd-fold summary::-webkit-details-marker { display: none; }
.gmd-fold summary::before {
  content: "▸"; color: #ea580c; transition: transform .18s ease; display: inline-block; margin-right: 6px; font-size: 13px;
}
.gmd-fold[open] summary::before { transform: rotate(90deg); }
.gmd-fold summary:hover { background: #fff7ed; }
.gmd-fold summary > span:first-of-type { flex: 1; }
.gmd-fold .fold-meta { font: 700 12px Inter; color: #ea580c; background: #fff7ed; padding: 3px 10px; border-radius: 99px; }
.gmd-fold-body { padding: 4px 14px 14px; border-top: 1px solid #fef3c7; }

/* Bars */
.gmd-bar { height: 6px; background: #f1e6d1; border-radius: 99px; overflow: hidden; }
.gmd-bar > div { height: 100%; background: linear-gradient(90deg,#f59e0b,#ea580c); border-radius: 99px; transition: width .5s ease; }
.gmd-bar.large { height: 10px; }
.gmd-bar.mini { height: 4px; margin-top: 6px; }

/* This Chapter */
.gmd-chapter-progress { display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; }
.gmd-chapter-progress .gmd-bar { flex: 1; }
.gmd-chapter-progress span { font: 800 15px Inter; color: #1e3a8a; min-width: 44px; text-align: right; }
.gmd-toc { list-style: none; padding: 0; margin: 0; }
.gmd-toc li { margin: 3px 0; }
.gmd-toc a {
  display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px;
  border-radius: 8px; text-decoration: none; color: #0f172a;
  transition: background .12s ease;
}
.gmd-toc a:hover { background: #fff7ed; color: #0f172a; }
.gmd-toc__mark { display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: #f1f5f9; color: #64748b; text-align: center; font: 700 12px Inter; line-height: 20px; flex-shrink: 0; }
.gmd-toc li.is-seen .gmd-toc__mark { background: #16a34a; color: #fff; }
.gmd-toc__title { font: 500 14px "Noto Serif Devanagari"; line-height: 1.4; }

/* AI Krishna inline card */
.gmd-ai-hint { margin: 6px 0 8px; color: #64748b; font: 500 13px Inter; }
.gmd-ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gmd-ai-chip {
  background: linear-gradient(135deg,#fff7ed,#fef3c7); border: 1.5px solid #fde68a;
  color: #7c2d12; padding: 8px 12px; border-radius: 99px; font: 700 12.5px Inter;
  cursor: pointer; transition: border-color .12s, transform .12s;
}
.gmd-ai-chip:hover { border-color: #ea580c; transform: translateY(-1px); }
.gmd-open-ask { display: block; width: 100%; margin-top: 10px; background: linear-gradient(135deg,#1e3a8a,#312e81); color: #fff; border: none; padding: 12px; border-radius: 10px; font: 800 14px Inter; cursor: pointer; text-align: center; text-decoration: none; }

/* Today's Verse */
.gmd-verse-card { background: linear-gradient(135deg,#fff,#fef3c7); border: 1.5px solid #fde68a; border-radius: 12px; padding: 14px; position: relative; }
.gmd-verse-card::before { content: "॥"; position: absolute; top: 6px; right: 10px; color: #ea580c; opacity: .35; font: 800 20px "Noto Serif Devanagari"; }
.gmd-verse-ref { font: 800 11.5px Inter; color: #7c2d12; letter-spacing: .06em; text-transform: uppercase; }
.gmd-verse-sanskrit { font: 600 15px/1.75 "Noto Serif Devanagari"; color: #7c2d12; white-space: pre-wrap; margin: 8px 0 10px; background: transparent; padding: 0; }
.gmd-verse-gist { font: 500 14px/1.6 Inter; color: #475569; margin: 0 0 12px; }
.gmd-verse-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gmd-btn-primary, .gmd-btn-ghost { padding: 9px 14px; border-radius: 10px; font: 700 13px Inter; text-decoration: none; cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 6px; }
.gmd-btn-primary { background: linear-gradient(135deg,#f59e0b,#ea580c); color: #fff; }
.gmd-btn-ghost { background: #fff; color: #1e3a8a; border: 1.5px solid #e2e8f0; }

/* Reading Goal */
.gmd-goal-row { margin-bottom: 12px; }
.gmd-goal-current { font: 800 20px "Noto Serif Devanagari"; color: #1e3a8a; margin-bottom: 6px; }
.gmd-goal-status { font: 600 13px Inter; color: #ea580c; margin-top: 6px; }
.gmd-goal-slider label { display: block; font: 600 12.5px Inter; color: #475569; margin-bottom: 6px; }
.gmd-goal-slider label strong { color: #1e3a8a; }
.gmd-goal-slider input[type=range] { width: 100%; accent-color: #ea580c; margin: 4px 0; }
.gmd-goal-scale { display: flex; justify-content: space-between; font: 500 10.5px Inter; color: #94a3b8; }

/* All Chapters v2 */
.gmd-ch2 {
  display: block; padding: 10px 12px; border-radius: 10px;
  border: 1px solid #f1e6d1; margin-bottom: 6px; text-decoration: none;
  color: #0f172a; background: #fff;
  transition: background .12s ease, border-color .12s ease;
}
.gmd-ch2:hover { background: #fff7ed; color: #0f172a; border-color: #fdba74; }
.gmd-ch2.is-current { background: linear-gradient(135deg,#fed7aa,#fdba74); border-color: #f59e0b; }
.gmd-ch2.is-done .gmd-ch2-no { background: #16a34a; }
.gmd-ch2-head { display: flex; align-items: center; gap: 10px; }
.gmd-ch2-no { flex-shrink: 0; width: 30px; height: 30px; background: #1e3a8a; color: #fff; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font: 800 13px Inter; }
.gmd-ch2-name { flex: 1; font: 700 14px "Noto Serif Devanagari"; color: #0f172a; overflow: hidden; text-overflow: ellipsis; }
.gmd-ch2-status { font: 800 10.5px Inter; padding: 3px 8px; border-radius: 99px; letter-spacing: .04em; text-transform: uppercase; }
.gmd-ch2-status.done { background: #dcfce7; color: #15803d; }
.gmd-ch2-status.inprog { background: #fef3c7; color: #b45309; }
.gmd-ch2-status.new { background: #e0e7ff; color: #3730a3; }
.gmd-ch2-sub { font: 500 11.5px Inter; color: #64748b; margin-top: 4px; margin-left: 40px; }

/* Library */
.gmd-lib-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid #f1e6d1; border-radius: 10px;
  background: #fff; text-decoration: none; color: #0f172a;
  margin-bottom: 6px; transition: background .12s, border-color .12s;
}
.gmd-lib-card:hover { background: #fff7ed; color: #0f172a; border-color: #fdba74; }
.gmd-lib-icon { font-size: 24px; }
.gmd-lib-body strong { display: block; font: 700 14px "Noto Serif Devanagari"; color: #1e3a8a; }
.gmd-lib-body em { display: block; font: 500 12px Inter; color: #64748b; font-style: normal; }

/* Journey stats */
.gmd-stat2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.gmd-stat2 { background: linear-gradient(135deg,#fff7ed,#fef3c7); border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; text-align: center; }
.gmd-stat2 strong { display: block; font: 800 18px "Noto Serif Devanagari"; color: #1e3a8a; }
.gmd-stat2 span { font: 500 11.5px Inter; color: #7a4a1a; }
.gmd-history-head { font: 800 12px Inter; color: #7c2d12; letter-spacing: .06em; text-transform: uppercase; margin: 6px 0 6px; }
.gmd-history-row { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: #0f172a; border: 1px solid #f1e6d1; margin-bottom: 4px; background: #fff; }
.gmd-history-row:hover { background: #fff7ed; color: #0f172a; }
.gmd-history-row strong { display: block; font: 600 13px "Noto Serif Devanagari"; }
.gmd-history-row em { font: 400 11px Inter; color: #64748b; font-style: normal; }
.gmd-empty { font-size: 13px; color: #64748b; padding: 8px; background: #f8fafc; border-radius: 8px; margin: 4px 0; text-align: center; }

/* Achievements */
.gmd-ach { display: inline-block; width: calc(50% - 6px); vertical-align: top; margin: 3px; padding: 12px 8px; text-align: center;
  border: 1.5px solid #f1e6d1; border-radius: 10px; background: #f8fafc; opacity: .55; transition: opacity .2s ease, transform .2s ease; }
.gmd-ach.is-unlocked { opacity: 1; background: linear-gradient(135deg,#fff7ed,#fef3c7); border-color: #fdba74; transform: translateY(-1px); }
.gmd-ach-icon { font-size: 28px; margin-bottom: 4px; filter: grayscale(1); }
.gmd-ach.is-unlocked .gmd-ach-icon { filter: none; }
.gmd-ach-name { font: 800 12px Inter; color: #1e3a8a; }
.gmd-ach-sub { font: 500 10.5px Inter; color: #64748b; margin-top: 2px; }

/* Reader Insights */
.gmd-insight { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid #f1e6d1; border-radius: 8px; margin-bottom: 6px; background: #fff; }
.gmd-insight span { font: 500 13px Inter; color: #64748b; }
.gmd-insight strong { font: 700 13.5px "Noto Serif Devanagari"; color: #1e3a8a; }

/* Guidance card at bottom */
.gmd-guidance-card {
  background: linear-gradient(135deg,#1e3a8a,#312e81);
  color: #fff; border-radius: 14px; padding: 16px;
  margin: 12px 4px 4px; text-align: center; position: relative; overflow: hidden;
}
.gmd-guidance-card::before {
  content: "🙏"; position: absolute; right: -8px; bottom: -12px; font-size: 74px; opacity: .10;
}
.gmd-guidance-card h4 { margin: 0 0 4px; font: 800 15px "Noto Serif Devanagari"; color: #fed7aa; }
.gmd-guidance-card p { margin: 0 0 12px; font: 500 12.5px Inter; color: rgba(255,255,255,.85); line-height: 1.5; }
.gmd-guidance-btn { display: block; background: linear-gradient(135deg,#16a34a,#15803d); color: #fff; padding: 12px; border-radius: 10px; font: 800 14px Inter; text-decoration: none; box-shadow: 0 4px 14px rgba(22,163,74,.35); }
.gmd-guidance-btn:hover { color: #fff; box-shadow: 0 6px 20px rgba(22,163,74,.5); }
.gmd-guidance-small { display: block; margin-top: 6px; font: 500 11px Inter; color: rgba(255,212,114,.85); }

/* ---------- Search Drawer (unchanged) ---------- */
.gita-search-drawer { position: fixed; top: 0; left: 0; right: 0; z-index: 220; background: #fff; transform: translateY(-105%); transition: transform .3s cubic-bezier(.2,.7,.2,1); max-height: 100vh; display: flex; flex-direction: column; box-shadow: 0 8px 34px rgba(15,23,42,.22); }
.gita-search-drawer.is-open { transform: translateY(0); }
.gsd-head { padding: 14px 18px; background: linear-gradient(135deg,#1e3a8a,#312e81); color: #fff; display: flex; align-items: center; gap: 12px; }
.gsd-head input { flex: 1; background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.25); color: #fff; padding: 12px 14px; border-radius: 12px; font: 500 15.5px Inter; outline: none; }
.gsd-head input::placeholder { color: rgba(255,212,114,.7); }
.gsd-head input:focus { border-color: #fed7aa; background: rgba(255,255,255,.22); }
.gsd-close { background: rgba(255,255,255,.14); color: #fff; border: none; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 18px; }
.gsd-body { overflow-y: auto; padding: 18px; max-height: calc(100vh - 84px); }
.gsd-row { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: #0f172a; border: 1px solid #f1e6d1; margin-bottom: 6px; background: #fff; }
.gsd-row:hover { background: #fff7ed; color: #0f172a; border-color: #fed7aa; }
.gsd-row strong { display: block; font: 700 15.5px "Noto Serif Devanagari"; color: #1e3a8a; }
.gsd-row em { display: block; font: 500 12.5px Inter; color: #7a4a1a; font-style: normal; margin-top: 2px; }
.gsd-badge { display: inline-block; background: #fed7aa; color: #7c2d12; font: 800 10.5px Inter; padding: 2px 8px; border-radius: 99px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.gsd-row--mini { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.gsd-mini-no { flex-shrink: 0; width: 26px; height: 26px; background: #1e3a8a; color: #fff; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font: 800 11.5px Inter; }
.gsd-mini-no + span strong { font-size: 14px; }
.gsd-mini-no + span em { font-size: 11.5px; }
.gsd-hint { color: #64748b; font-size: 13.5px; padding: 8px 4px 14px; }
.gsd-hint em { color: #ea580c; font-style: normal; font-weight: 600; }
.gsd-empty { color: #64748b; text-align: center; padding: 30px; }
.gsd-featured h4 { color: #7c2d12; font: 800 12px Inter; letter-spacing: .08em; text-transform: uppercase; margin: 10px 4px 8px; }

/* AI Krishna preset chips (kept for existing Ask drawer) */
.gita-ask-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.gita-ask-preset { background: linear-gradient(135deg,#fff7ed,#fef3c7); border: 1.5px solid #fde68a; color: #7c2d12; padding: 8px 12px; border-radius: 99px; font: 700 13px Inter; cursor: pointer; transition: border-color .12s, transform .12s; }
.gita-ask-preset:hover { border-color: #ea580c; transform: translateY(-1px); }

/* TTS playing state */
.chn-controls__btn.is-playing { background: linear-gradient(135deg,#ea580c,#c2410c) !important; color: #fff !important; box-shadow: 0 0 0 4px rgba(234,88,12,.20); animation: gita-pulse 1.6s ease-in-out infinite; }
@keyframes gita-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(234,88,12,.20); } 50% { box-shadow: 0 0 0 10px rgba(234,88,12,.05); } }

/* ---------- Right Rail (sticky, context-aware) — desktop only ---------- */
.gita-immersive .chn-rail { display: none; }
.gita-immersive .chn-main { grid-template-columns: 1fr !important; max-width: 780px; margin: 0 auto; padding: 0 20px; }
.gita-immersive .chn-cover { margin-top: 6px; border-radius: 22px; margin-left: 12px; margin-right: 12px; }

@media (min-width: 1180px) {
  .gita-immersive .chn-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 30px;
    max-width: 1160px;
    padding: 0 22px;
    align-items: start;
  }
  .gita-immersive .chn-rail {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 68px;              /* under topbar + HUD */
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
  }
  .gita-immersive .chn-rail::-webkit-scrollbar { width: 6px; }
  .gita-immersive .chn-rail::-webkit-scrollbar-thumb { background: #fed7aa; border-radius: 99px; }
  .gita-immersive .chn-cover { margin-left: 0; margin-right: 0; }
}
@media (min-width: 1360px) {
  .gita-immersive .chn-main { max-width: 1280px; grid-template-columns: minmax(0,1fr) 340px !important; }
}

/* Rail card base */
.gita-rail-card {
  background: #fff;
  border: 1.5px solid #f1e6d1;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
.gita-rail-card h3 {
  font: 800 14px Inter, system-ui, sans-serif;
  color: #1e3a8a;
  margin: 0 0 10px;
  letter-spacing: .02em;
}

/* This Chapter progress + ToC */
.gita-rail-progress .grc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.gita-rail-progress .grc-head h3 { margin: 0; }
.gita-rail-progress .grc-pct {
  background: linear-gradient(135deg,#f59e0b,#ea580c); color: #fff;
  font: 800 12px Inter; padding: 4px 10px; border-radius: 99px; letter-spacing: .04em;
}
.gita-rail-progress .grc-bar { height: 6px; background: #f1e6d1; border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.gita-rail-progress .grc-bar > div { height: 100%; background: linear-gradient(90deg,#f59e0b,#ea580c); border-radius: 99px; transition: width .5s ease; }
.gita-rail-progress .grc-toc { list-style: none; padding: 0; margin: 0; max-height: 200px; overflow-y: auto; scrollbar-width: thin; }
.gita-rail-progress .grc-toc::-webkit-scrollbar { width: 4px; }
.gita-rail-progress .grc-toc::-webkit-scrollbar-thumb { background: #fed7aa; border-radius: 99px; }
.gita-rail-progress .grc-toc li { margin: 2px 0; }
.gita-rail-progress .grc-toc a {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 7px 10px; border-radius: 8px;
  text-decoration: none; color: #0f172a;
  transition: background .12s ease;
  font: 500 13px "Noto Serif Devanagari", Georgia, serif;
}
.gita-rail-progress .grc-toc a:hover { background: #fff7ed; color: #0f172a; }
.gita-rail-progress .grc-toc li.is-seen .grc-mark { background: #16a34a; color: #fff; }
.gita-rail-progress .grc-toc li.is-current a { background: linear-gradient(135deg,#fed7aa,#fdba74); border-left: 3px solid #ea580c; padding-left: 8px; }
.grc-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: #f1f5f9; color: #64748b;
  font: 700 10.5px Inter; flex-shrink: 0; margin-top: 2px;
}
.grc-title { line-height: 1.4; }

/* Today's Verse rail card */
.gita-rail-verse { background: linear-gradient(135deg,#fff,#fef3c7); border-color: #fde68a; position: relative; }
.gita-rail-verse::before {
  content: "॥"; position: absolute; top: 8px; right: 12px;
  color: #ea580c; opacity: .35; font: 800 24px "Noto Serif Devanagari";
}
.gita-rail-verse .grv-ref { font: 800 11px Inter; color: #7c2d12; letter-spacing: .06em; text-transform: uppercase; }
.gita-rail-verse .grv-sanskrit { font: 600 13.5px/1.75 "Noto Serif Devanagari"; color: #7c2d12; white-space: pre-wrap; margin: 8px 0; }
.gita-rail-verse .grv-gist { font: 500 12.5px/1.55 Inter; color: #475569; margin: 0 0 10px; }
.gita-rail-verse .grv-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.gita-rail-verse .grv-actions a, .gita-rail-verse .grv-actions button {
  flex: 1; min-width: 100px;
  padding: 7px 10px; border-radius: 8px;
  font: 700 12px Inter; text-decoration: none; text-align: center; cursor: pointer; border: none;
}
.gita-rail-verse .grv-actions a { background: linear-gradient(135deg,#f59e0b,#ea580c); color: #fff; }
.gita-rail-verse .grv-actions button { background: #fff; color: #1e3a8a; border: 1.5px solid #e2e8f0; }

/* Quick Actions — tighter (4-across when wide, 2×2 when narrow) */
.gita-rail-actions { padding: 12px 14px; }
.gita-rail-actions h3 { margin-bottom: 8px; }
.gita-rail-actions .gra-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.gita-rail-actions .gra-btn {
  background: #fff7ed; border: 1.5px solid #fde68a; color: #7c2d12;
  padding: 8px 4px; border-radius: 9px;
  font: 700 11px Inter; cursor: pointer;
  transition: border-color .12s, transform .12s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gita-rail-actions .gra-btn:hover { border-color: #ea580c; transform: translateY(-1px); }
@media (max-width: 1260px) {
  .gita-rail-actions .gra-grid { grid-template-columns: 1fr 1fr; }
  .gita-rail-actions .gra-btn { font-size: 12px; padding: 9px 6px; }
}

/* ---------- Shop rail card (product recommendations) ---------- */
.gita-rail-shop { padding: 14px; }
.gita-rail-shop h3 { margin-bottom: 4px; }
.gita-rail-shop .grs-sub { font: 500 11.5px Inter; color: #7c2d12; margin: 0 0 10px; }
.gita-rail-shop .grs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gita-rail-shop .grs-card {
  display: block; background: #fff;
  border: 1px solid #f1e6d1; border-radius: 10px;
  padding: 8px; text-decoration: none; color: #0f172a;
  transition: border-color .12s, transform .12s;
}
.gita-rail-shop .grs-card:hover { border-color: #ea580c; transform: translateY(-1px); color: #0f172a; }
.gita-rail-shop .grs-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 6px; background: #fff7ed; display: block;
}
.gita-rail-shop .grs-name {
  font: 700 11.5px/1.35 Inter; color: #1e3a8a;
  margin: 6px 0 3px; height: 30px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.gita-rail-shop .grs-price {
  font: 800 12.5px Inter; color: #ea580c;
}
.gita-rail-shop .grs-mrp { color: #94a3b8; text-decoration: line-through; font-weight: 500; font-size: 10.5px; margin-left: 4px; }
.gita-rail-shop .grs-all {
  display: block; text-align: center; margin-top: 10px;
  padding: 8px; background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 8px; font: 700 12px Inter; color: #7c2d12; text-decoration: none;
}
.gita-rail-shop .grs-all:hover { border-color: #ea580c; color: #7c2d12; }

/* ---------- Bookmarks rail card ---------- */
.gita-rail-bookmarks { padding: 14px; }
.gita-rail-bookmarks h3 { margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between; }
.gita-rail-bookmarks .grb-count {
  background: linear-gradient(135deg,#fed7aa,#fdba74); color: #7c2d12;
  font: 800 11px Inter; padding: 3px 9px; border-radius: 99px; letter-spacing: .04em;
}
.gita-rail-bookmarks .grb-hint {
  font: 500 11.5px/1.5 Inter; color: #64748b;
  margin: 0 0 10px; padding: 8px 10px;
  background: #fff7ed; border-radius: 8px; border-left: 3px solid #fed7aa;
}
.gita-rail-bookmarks .grb-hint kbd {
  background: #fff; border: 1px solid #fdba74; border-radius: 4px;
  padding: 1px 6px; font: 700 10.5px "SF Mono", monospace; color: #7c2d12;
}
.gita-rail-bookmarks .grb-list { list-style: none; padding: 0; margin: 0; }
.gita-rail-bookmarks .grb-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px;
  background: #fff; border: 1px solid #f1e6d1;
  text-decoration: none; color: #0f172a;
  margin-bottom: 4px;
  transition: background .12s ease, border-color .12s ease;
}
.gita-rail-bookmarks .grb-item:hover { background: #fff7ed; color: #0f172a; border-color: #fdba74; }
.gita-rail-bookmarks .grb-item .grb-star { color: #ea580c; font-size: 14px; }
.gita-rail-bookmarks .grb-item .grb-label {
  flex: 1; font: 600 12.5px/1.4 "Noto Serif Devanagari";
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gita-rail-bookmarks .grb-remove {
  background: transparent; border: none; color: #94a3b8;
  font-size: 14px; cursor: pointer; padding: 0 4px;
}
.gita-rail-bookmarks .grb-remove:hover { color: #ea580c; }
.gita-rail-bookmarks .grb-empty {
  font: 500 12px Inter; color: #64748b; text-align: center;
  padding: 12px; background: #f8fafc; border-radius: 8px;
}
.gita-rail-bookmarks .grb-hint small { display: block; margin-top: 4px; color: #7c2d12; font-size: 11px; font-weight: 500; }
.gita-rail-bookmarks .grb-footer { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #fdba74; text-align: center; }
.gita-rail-bookmarks .grb-sync {
  display: inline-flex; align-items: center; gap: 4px;
  color: #15803d; font: 700 11.5px Inter;
  background: #dcfce7; padding: 3px 10px; border-radius: 99px;
}
.gita-rail-bookmarks .grb-login {
  display: inline-block;
  background: linear-gradient(135deg,#16a34a,#15803d); color: #fff;
  padding: 7px 14px; border-radius: 8px;
  font: 800 12px Inter; text-decoration: none;
  box-shadow: 0 4px 12px rgba(22,163,74,.3);
}
.gita-rail-bookmarks .grb-login:hover { color: #fff; box-shadow: 0 6px 18px rgba(22,163,74,.4); }

/* CTA — sticky at bottom of the scrollable rail so it's ALWAYS visible */
.gita-rail-cta {
  background: linear-gradient(135deg,#1e3a8a,#312e81);
  color: #fff; border: none;
  position: sticky; bottom: 0;
  padding: 14px 16px 12px;
  z-index: 3;
  box-shadow: 0 -10px 24px rgba(15,23,42,.14), 0 4px 14px rgba(30,58,138,.20);
  overflow: hidden;
}
.gita-rail-cta::before {
  content: "🙏"; position: absolute; right: -6px; bottom: -14px;
  font-size: 68px; opacity: .10; pointer-events: none;
}
.gita-rail-cta h3 {
  color: #fed7aa; margin: 0 0 4px;
  font: 800 13.5px Inter, system-ui, sans-serif; letter-spacing: .02em;
}
.gita-rail-cta p {
  font: 500 12px/1.5 Inter; color: rgba(255,255,255,.88);
  margin: 0 0 10px; position: relative; z-index: 1;
}
.gita-rail-cta p strong { color: #fed7aa; font-weight: 700; }
.gita-rail-cta .grc-cta {
  display: block; position: relative; z-index: 1;
  background: linear-gradient(135deg,#16a34a,#15803d); color: #fff;
  padding: 10px 12px; border-radius: 10px; font: 800 13px Inter;
  text-decoration: none; text-align: center;
  box-shadow: 0 4px 14px rgba(22,163,74,.35);
  transition: box-shadow .15s ease, transform .12s ease;
}
.gita-rail-cta .grc-cta:hover { color: #fff; box-shadow: 0 6px 20px rgba(22,163,74,.5); transform: translateY(-1px); }
.gita-rail-cta .grc-cta-small {
  display: block; margin-top: 6px;
  font: 500 10.5px Inter; color: rgba(255,212,114,.9); text-align: center;
  position: relative; z-index: 1;
}

/* ---------- Inline contextual product card ---------- */
.gita-inline-product {
  margin: 26px 0;
  background: linear-gradient(135deg,#fff7ed 0%,#fef3c7 100%);
  border: 1.5px solid #fdba74;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(234,88,12,.10);
  position: relative;
}
.gita-inline-product::before {
  content: "🛍️";
  position: absolute; top: 8px; right: 14px;
  font-size: 30px; opacity: .14;
  pointer-events: none;
}
.gita-inline-product .gip-strip {
  padding: 8px 16px;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  color: #fff;
  font: 800 12px Inter, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gita-inline-product .gip-strip em {
  font-style: normal; font-weight: 600;
  color: #fef3c7; text-transform: none; letter-spacing: normal;
  margin-left: 4px;
}
.gita-inline-product .gip-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  text-decoration: none;
  color: #0f172a;
  align-items: stretch;
}
.gita-inline-product .gip-card:hover { color: #0f172a; }
.gita-inline-product .gip-img {
  width: 110px; height: 110px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #fed7aa;
  background: #fff;
  flex-shrink: 0;
}
.gita-inline-product .gip-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gita-inline-product .gip-name {
  font: 800 18px/1.25 "Noto Serif Devanagari", Georgia, serif;
  color: #1e3a8a;
  margin-bottom: 4px;
}
.gita-inline-product .gip-sub {
  font: 500 13.5px/1.5 Inter, sans-serif;
  color: #7a4a1a;
  margin-bottom: 10px;
}
.gita-inline-product .gip-price-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.gita-inline-product .gip-price {
  font: 800 20px "Noto Serif Devanagari", Georgia, serif;
  color: #ea580c;
}
.gita-inline-product .gip-mrp {
  color: #94a3b8;
  text-decoration: line-through;
  font: 500 14px Inter, sans-serif;
}
.gita-inline-product .gip-buy {
  margin-left: auto;
  background: linear-gradient(135deg,#16a34a,#15803d);
  color: #fff;
  padding: 8px 16px; border-radius: 10px;
  font: 800 13px Inter, sans-serif;
  box-shadow: 0 4px 12px rgba(22,163,74,.30);
  transition: transform .12s ease, box-shadow .12s ease;
}
.gita-inline-product .gip-card:hover .gip-buy {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22,163,74,.40);
}
.gita-inline-product .gip-alt {
  padding: 8px 16px 12px;
  border-top: 1px dashed #fdba74;
  font: 500 12.5px Inter, sans-serif;
  color: #7a4a1a;
}
.gita-inline-product .gip-alt a {
  color: #ea580c;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-weight: 700;
}
.gita-inline-product .gip-alt a:hover { color: #c2410c; }

@media (max-width: 640px) {
  .gita-inline-product .gip-card { flex-direction: column; }
  .gita-inline-product .gip-img { width: 100%; height: 200px; }
  .gita-inline-product .gip-buy { margin-left: 0; text-align: center; }
  .gita-inline-product .gip-name { font-size: 17px; }
}

/* ---------- Life Journey Mode (end-of-chapter) ---------- */
.gita-life-journey {
  margin: 30px auto 20px; max-width: 780px;
  background: linear-gradient(135deg,#1e3a8a 0%,#312e81 55%,#0e7490 100%);
  color: #fff; border-radius: 22px; padding: 30px 26px 24px;
  box-shadow: 0 12px 34px rgba(30,58,138,.25); position: relative; overflow: hidden;
}
.gita-life-journey::before {
  content: "✨"; position: absolute; top: 14px; right: 22px; font-size: 26px; opacity: .5;
}
.glj-inner { position: relative; z-index: 1; }
.glj-eyebrow { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,212,114,.4); color: #fed7aa; font: 800 11.5px Inter; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; }
.glj-head h3 { font: 800 24px "Noto Serif Devanagari"; color: #fff; margin: 12px 0 6px; }
.glj-head p { color: rgba(255,255,255,.85); font: 500 14.5px Inter; margin: 0 0 18px; line-height: 1.55; }
.glj-chips { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 8px; }
.glj-chip { background: rgba(255,255,255,.10); border: 1.5px solid rgba(255,212,114,.35); color: #fff; padding: 14px 12px; border-radius: 12px; font: 700 14.5px Inter; cursor: pointer; transition: all .18s ease; text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; }
.glj-chip:hover { background: rgba(255,255,255,.18); border-color: #fed7aa; transform: translateY(-1px); }
.glj-chip.is-active { background: linear-gradient(135deg,#f59e0b,#ea580c); border-color: #f59e0b; box-shadow: 0 4px 14px rgba(234,88,12,.35); }
.glj-result { margin-top: 22px; padding: 20px; background: rgba(0,0,0,.18); border-radius: 14px; border: 1px solid rgba(255,255,255,.10); }
.glj-result h4 { color: #fed7aa; font: 800 17px "Noto Serif Devanagari"; margin: 0 0 4px; }
.glj-result > p { color: rgba(255,255,255,.85); font: 500 13.5px Inter; margin: 0 0 14px; }
.glj-recs { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 8px; margin-bottom: 16px; }
.glj-rec { display: block; background: rgba(255,255,255,.10); border: 1px solid rgba(255,212,114,.30); border-radius: 10px; padding: 12px; text-decoration: none; color: #fff; transition: background .12s ease, transform .12s ease; }
.glj-rec:hover { background: rgba(255,255,255,.18); color: #fff; transform: translateY(-1px); }
.glj-rec-no { display: inline-block; background: #fed7aa; color: #7c2d12; font: 800 11px Inter; padding: 2px 8px; border-radius: 99px; letter-spacing: .04em; }
.glj-rec strong { display: block; font: 700 14.5px "Noto Serif Devanagari"; margin: 4px 0 2px; }
.glj-rec em { display: block; font: 500 11.5px Inter; color: rgba(255,212,114,.9); font-style: normal; }
.glj-cross { display: flex; flex-wrap: wrap; gap: 8px; }
.glj-cross-btn { flex: 1; min-width: 200px; background: linear-gradient(135deg,#16a34a,#15803d); color: #fff; border: none; padding: 12px; border-radius: 10px; font: 800 13.5px Inter; text-decoration: none; text-align: center; cursor: pointer; box-shadow: 0 4px 14px rgba(22,163,74,.3); }
.glj-cross-btn:hover { color: #fff; box-shadow: 0 6px 20px rgba(22,163,74,.4); }
.glj-cross-btn.ghost { background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,212,114,.4); box-shadow: none; }
.glj-cross-btn.ghost:hover { background: rgba(255,255,255,.20); }

@media (max-width: 640px) {
  .gita-welcome-back { margin: 10px 12px 0; padding: 14px; }
  .gwb-btn { width: 100%; text-align: center; }
  .gita-immersive .chn-main { padding: 0 14px; }
  .gita-immersive .chn-cover { margin-left: 6px; margin-right: 6px; padding: 30px 18px 26px; }
  .gita-life-journey { margin: 24px 12px 16px; padding: 24px 20px 20px; }
  .glj-head h3 { font-size: 20px; }
  .gmd-stat2-grid { grid-template-columns: 1fr 1fr; }
}
