/* ---------------------------------------------------------
   TIRTHANKAR DETAIL PAGE — PREMIUM EDITION (v6)
   Ultra Responsive + Mandala + Parallax + 3D Lanchan
   NOTE: Only affects #songsList.tirthankar-page
---------------------------------------------------------- */

/* ROOT WRAPPER */
#songsList.tirthankar-page {
  padding: 30px 0 80px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* INNER MAX WIDTH */
#songsList.tirthankar-page .tirthankar-wrapper {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px;
  color: #fff;
  position: relative;
  z-index: 2;
}

/* -----------------------------------------
   MANDALA BACKGROUND BEHIND PORTRAIT
------------------------------------------ */
#songsList.tirthankar-page::before {
  content: "";
  position: absolute;
  top: 220px;
  left: 50%;
  width: 620px;
  height: 620px;
  background: url('/images/mandala-gold.png') no-repeat center/contain;
  opacity: 0.16;
  filter: drop-shadow(0 0 40px rgba(255,215,0,0.4));
  transform: translateX(-50%);
  z-index: 0;
  animation: mandala-spin 60s linear infinite;
}

@keyframes mandala-spin {
  from { transform: translateX(-50%) rotate(0deg);}
  to   { transform: translateX(-50%) rotate(360deg);}
}

/* -----------------------------------------
   TOP BANNER
------------------------------------------ */
#songsList.tirthankar-page .tp-sanskrit-banner {
  font-size: 34px;
  text-align: center;
  margin-bottom: 20px;
  color: #F7D774;
  letter-spacing: 1px;
}

/* -----------------------------------------
   MOBILE-SAFE TOP BAR
------------------------------------------ */
#songsList.tirthankar-page .tp-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: nowrap;
}

#songsList.tirthankar-page .tp-back {
  padding: 10px 22px;
  border-radius: 30px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 15px;
  white-space: nowrap;
}

#songsList.tirthankar-page .tp-top-title {
  flex: 1;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

#songsList.tirthankar-page .tp-chant-btn {
  padding: 10px 20px;
  border-radius: 30px;
  background: #9400d3;
  color: #fff;
  border: 1px solid #ba4ef2;
  white-space: nowrap;
}

/* -----------------------------------------
   GRID LAYOUT (Responsive)
------------------------------------------ */
#songsList.tirthankar-page .tp-layout {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 40px;
}

@media (max-width: 1100px) {
  #songsList.tirthankar-page .tp-layout {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------
   PREMIUM CARDS (Glass + Glow)
------------------------------------------ */
#songsList.tirthankar-page .tp-card {
  background: rgba(18, 18, 22, 0.75);
  padding: 30px;
  border-radius: 24px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 0 18px rgba(255,215,0,0.08);
}

/* -----------------------------------------
   PORTRAIT WITH PARALLAX
------------------------------------------ */
#songsList.tirthankar-page .tp-portrait-container {
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  background: rgba(0,0,0,0.5);
  overflow: hidden;
  position: relative;
}

#songsList.tirthankar-page .tp-portrait {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  border-radius: 16px;
  transform: translateY(var(--scrollParallax, 0px));
  transition: transform 0.1s linear;
}

/* -----------------------------------------
   3D LANCHAN SPIN
------------------------------------------ */
#songsList.tirthankar-page .tp-lanchan-3d {
  width: 110px;
  height: 110px;
  border-radius: 22px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

#songsList.tirthankar-page .tp-lanchan-3d img {
  width: 100%;
  transform-style: preserve-3d;
  animation: rotate3D 9s linear infinite;
}

@keyframes rotate3D {
  0% { transform: rotateY(0deg);}
  100% { transform: rotateY(360deg);}
}

/* -----------------------------------------
   PANCH KALYANAK (Responsive)
------------------------------------------ */
#songsList.tirthankar-page .tp-kalyanak-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

#songsList.tirthankar-page .tp-k-card {
  flex: 1 1 calc(20% - 16px);
  min-width: 130px;
  max-width: 200px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  text-align: center;
  backdrop-filter: blur(6px);
}

#songsList.tirthankar-page .tp-k-label {
  font-size: 11px;
  opacity: 0.7;
  letter-spacing: 1px;
}

#songsList.tirthankar-page .tp-k-value {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
}

/* -----------------------------------------
   QUICK FACTS GRID
------------------------------------------ */
#songsList.tirthankar-page .tp-facts-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  row-gap: 12px;
}

#songsList.tirthankar-page .tp-fact-label {
  font-size: 13px;
  opacity: 0.7;
  text-transform: uppercase;
}

#songsList.tirthankar-page .tp-fact-value {
  font-size: 15px;
  font-weight: 600;
}

/* -----------------------------------------
   BIO CARDS (Premium Narrative)
------------------------------------------ */
#songsList.tirthankar-page .tp-bio-card p {
  background: rgba(255,255,255,0.05);
  padding: 14px 18px;
  border-radius: 16px;
  margin-bottom: 14px;
  line-height: 1.55;
  font-size: 15px;
  border-left: 4px solid #F7D774;
}

/* -----------------------------------------
   TIMELINE (Premium)
------------------------------------------ */
#songsList.tirthankar-page .tp-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#songsList.tirthankar-page .tp-time-chip {
  background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,255,255,0.08));
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(255,215,0,0.35);
  box-shadow: inset 0 0 10px rgba(255,215,0,0.25);
}

/* -----------------------------------------
   FLOATING NAV
------------------------------------------ */
.tp-nav-floating {
  right: 18px;
}


#songsList.tirthankar-page .tp-inline-nav {
  margin: 30px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

#songsList.tirthankar-page .tp-nav-inline-btn {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

#songsList.tirthankar-page .tp-nav-inline-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

#songsList.tirthankar-page .tp-mantra-card {
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 25px;
  text-align: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
}

.tp-mantra-sanskrit {
  font-size: 28px;
  color: #F7D774;
  margin-bottom: 10px;
  font-family: "Noto Sans Devanagari", serif;
}

.tp-mantra-roman {
  font-size: 16px;
  color: #ddd;
  opacity: 0.85;
}

.tp-chant-btn {
  position: relative;
  z-index: 9999 !important;
  cursor: pointer !important;
}

.tp-top-bar {
  position: relative;
  z-index: 9999;
}

.tp-mantra-sanskrit {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffd86b;
  text-align: center;
  margin-bottom: 6px;
}

.tp-mantra-roman {
  font-size: 1rem;
  opacity: 0.9;
  text-align: center;
}

/* Base mantra card ensures we can animate safely */
.tp-mantra-card {
  position: relative;
  overflow: hidden;
}

/* Glowing state toggled from JS */
.tp-mantra-card.tp-mantra-glow {
  box-shadow:
    0 0 18px rgba(255, 215, 0, 0.45),
    0 0 36px rgba(173, 127, 255, 0.35);
  transform: translateZ(0); /* keeps it crisp on mobile */
}

/* Animated halo around the card */
.tp-mantra-card.tp-mantra-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    rgba(255, 215, 0, 0.0),
    rgba(255, 215, 0, 0.6),
    rgba(255, 105, 180, 0.5),
    rgba(124, 77, 255, 0.5),
    rgba(255, 215, 0, 0.0)
  );
  filter: blur(14px);
  opacity: 0.8;
  animation: mantraGlow 5s linear infinite;
  z-index: -1;
}

/* Soft inner breathing effect on text area */
.tp-mantra-card.tp-mantra-glow .tp-mantra-sanskrit {
  text-shadow:
    0 0 10px rgba(255, 223, 128, 0.9),
    0 0 20px rgba(255, 193, 7, 0.7);
  animation: mantraInnerPulse 3s ease-in-out infinite;
}

.tp-mantra-card.tp-mantra-glow .tp-mantra-roman {
  opacity: 0.95;
  animation: mantraInnerPulse 3s ease-in-out infinite;
}

/* Outer halo rotation */
@keyframes mantraGlow {
  0% {
    transform: rotate(0turn);
    filter: blur(14px);
  }
  100% {
    transform: rotate(1turn);
    filter: blur(18px);
  }
}

/* Inner “breathing” pulse */
@keyframes mantraInnerPulse {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-1px);
    opacity: 1;
  }
}

.tp-main-header-line {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.6rem;
}

.tp-main-rank {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.tp-main-name {
  font-size: 1.05rem;
  font-weight: 600;
}

/* Main row: portrait + info */
.tp-main-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.tp-main-info-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Emblem block styling */
.tp-emblem-block {
  padding: 0.6rem 0.7rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at top left,
              rgba(255,255,255,0.12),
              rgba(0,0,0,0.28));
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.14);
}

.tp-emblem-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.tp-emblem-name {
  margin-top: 0.15rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.tp-emblem-subline {
  margin-top: 0.1rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Circular icon frame */
.tp-emblem-icon-row {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-start;
}

.tp-emblem-icon-ring {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.tp-emblem-icon {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.tp-main-meta {
  font-size: 0.8rem;
  line-height: 1.4;
}

.tp-meta-label {
  font-weight: 500;
  opacity: 0.85;
}

/* Journey merged card */
.tp-journey-card {
  margin-top: 0.9rem;
}

.tp-journey-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.tp-journey-sub {
  font-size: 0.75rem;
  opacity: 0.8;
}

.tp-journey-chips {
  margin-top: 0.5rem;
  row-gap: 0.3rem;
}

/* 3D revolving wrapper */
.tp-lanchan-3d {
  width: 52px;
  height: 52px;
  perspective: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  animation: tp-lanchan-orbit 10s linear infinite;
}

/* Ring already exists; just enhance it slightly + spin */
.tp-emblem-icon-ring {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  box-shadow:
    0 0 12px rgba(255, 215, 140, 0.45),
    0 0 20px rgba(255, 180, 80, 0.25);
  animation: tp-lanchan-spin 6s ease-in-out infinite alternate;
}

.tp-emblem-icon {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

/* Orbit-style subtle 3D motion */
@keyframes tp-lanchan-orbit {
  0% {
    transform: rotateY(0deg) translateY(0);
  }
  25% {
    transform: rotateY(12deg) translateY(-1px);
  }
  50% {
    transform: rotateY(0deg) translateY(-2px);
  }
  75% {
    transform: rotateY(-12deg) translateY(-1px);
  }
  100% {
    transform: rotateY(0deg) translateY(0);
  }
}

/* Gentle spin / breathing animation on the ring */
@keyframes tp-lanchan-spin {
  0% {
    transform: rotateZ(0deg) scale(1);
    box-shadow:
      0 0 10px rgba(255, 215, 140, 0.35),
      0 0 18px rgba(255, 180, 80, 0.18);
  }
  50% {
    transform: rotateZ(6deg) scale(1.04);
    box-shadow:
      0 0 14px rgba(255, 230, 180, 0.55),
      0 0 24px rgba(255, 190, 90, 0.35);
  }
  100% {
    transform: rotateZ(-6deg) scale(1);
    box-shadow:
      0 0 10px rgba(255, 215, 140, 0.35),
      0 0 18px rgba(255, 180, 80, 0.18);
  }
}

/* ---------------------------------------------------------
   TIRTHANKAR DETAIL LAYOUT
---------------------------------------------------------- */

.tirthankar-page {
  padding: 16px;
}

.tirthankar-wrapper {
  max-width: 1200px;
  margin: 0 auto 32px auto;
}

.tp-sanskrit-banner {
  text-align: center;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  opacity: 0.9;
}

/* TOP BAR */
.tp-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.tp-back {
  border-radius: 999px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.tp-top-title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  flex: 1;
}

.tp-chant-btn {
  border-radius: 999px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 215, 0, 0.5);
  background: radial-gradient(circle at 0 0, rgba(255, 223, 150, 0.25), transparent),
              rgba(44, 12, 52, 0.9);
  cursor: pointer;
  font-weight: 600;
}

/* LAYOUT COLUMNS */
.tp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .tp-layout {
    grid-template-columns: 1fr;
  }
}

.tp-left-col,
.tp-right-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* GENERIC CARD */
.tp-card {
  border-radius: 20px;
  padding: 16px 18px;
  background: radial-gradient(circle at top left, rgba(255, 245, 200, 0.12), transparent),
              rgba(10, 7, 18, 0.96);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tp-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* MAIN PORTRAIT CARD */
.tp-main-card {
  text-align: center;
}

.tp-rank {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 6px;
}

.tp-portrait-container {
  width: 100%;
  padding: 0;                     /* remove cropping padding */
  background: rgba(0,0,0,0.85);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tp-portrait {
  width: 100%;
  height: auto;
  max-height: 520px;              /* ensures big images do not overflow */
  object-fit: contain;            /* show whole image */
  object-position: center top;    /* prevents head cut-off */
  display: block;
}

.tp-name {
  font-size: 20px;
  margin: 8px 0 12px 0;
}

/* EMBLEM 3D ANIMATION */
.tp-emblem-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.tp-emblem-3d {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #fff7d1, #d19a29);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
  animation: tp-emblem-spin 10s linear infinite;
  transform-style: preserve-3d;
}

.tp-emblem-img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.tp-emblem-text {
  text-align: left;
}

.tp-emblem-label {
  font-size: 12px;
  opacity: 0.8;
}

.tp-emblem-name {
  font-size: 14px;
  font-weight: 600;
}

@keyframes tp-emblem-spin {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* MERGED KALYANAK + SPIRITUAL JOURNEY */
.tp-kalyanak-card {
  margin-top: 8px;
}

.tp-kalyanak-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.tp-kalyanak-sub {
  font-size: 12px;
  opacity: 0.75;
}

.tp-kalyanak-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.tp-k-card {
  flex: 1 1 120px;
  min-width: 120px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), transparent);
}

.tp-k-label {
  font-size: 11px;
  opacity: 0.8;
}

.tp-k-value {
  font-size: 13px;
  margin-top: 2px;
}

/* PROFILE / QUICK FACTS */
.tp-facts-grid {
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  row-gap: 6px;
  column-gap: 10px;
  font-size: 13px;
  margin-top: 10px;
}

.tp-fact-label {
  opacity: 0.7;
}

.tp-fact-value {
  font-weight: 500;
}

/* PREMIUM COLOR + TREE ROW */
.tp-profile-premium {
  margin: 5px 0 18px 0;
  font-size: 18px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffe9b0; /* soft gold */
}

.tp-profile-color {
  color: #ffdd7a; /* brighter golden */
}

.tp-profile-tree {
  color: #ffffffd9; /* soft white */
}

.tp-profile-dot {
  opacity: 0.65;
  font-weight: bold;
}

/* GLOWING MANTRA CARD */
.tp-mantra-card {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  background: radial-gradient(circle at top, rgba(255, 249, 210, 0.25), rgba(16, 7, 30, 0.98));
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.35);
}

.tp-mantra-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 215, 0, 0.45),
    transparent 20%,
    transparent 60%,
    rgba(255, 215, 0, 0.6)
  );
  opacity: 0.4;
  animation: tp-mandala-glow 10s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

.tp-mantra-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.tp-mantra-sanskrit {
  position: relative;
  font-size: 20px;
  margin-top: 4px;
  margin-bottom: 6px;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 240, 180, 0.9);
}

.tp-mantra-roman {
  position: relative;
  font-size: 13px;
  text-align: center;
  opacity: 0.9;
}

.tp-mantra-note {
  position: relative;
  margin-top: 6px;
  font-size: 11px;
  text-align: center;
  opacity: 0.7;
}

@keyframes tp-mandala-glow {
  0% {
    transform: rotate(0deg);
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    transform: rotate(360deg);
    opacity: 0.4;
  }
}

/* BIO */
.tp-bio-card p {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.5;
}

/* INLINE PREV/NEXT NAV */
.tp-inline-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 18px auto 0 auto;
  max-width: 420px;
}

.tp-nav-inline-btn {
  flex: 1;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.tp-nav-inline-btn[disabled] {
  opacity: 0.3;
  cursor: default;
}

body[data-theme="light"] .tirthankar-page {
  color: #222;
}

/* TOP BANNER (ॐ नमः सिद्धेभ्यः) */
body[data-theme="light"] .tp-sanskrit-banner {
  color: #8b5e00 !important;           /* Deep golden brown */
  text-shadow: none;
}

/* TOP BAR TITLES */
body[data-theme="light"] .tp-top-title {
  color: #222 !important;
}

body[data-theme="light"] .tp-back {
  background: #f2f2f2;
  color: #222 !important;
  border-color: #ccc;
}

body[data-theme="light"] .tp-chant-btn {
  background: #fff4cf !important;
  color: #222 !important;
  border-color: #d6a600 !important;
}

/* NEXT / PREVIOUS BUTTONS */
body[data-theme="light"] .tp-inline-nav .tp-nav-inline-btn {
  background: #eee !important;
  border-color: #ccc !important;
  color: #222 !important;
}

body[data-theme="light"] .tp-inline-nav .tp-nav-inline-btn[disabled] {
  opacity: 0.5;
}

/* CARDS */
body[data-theme="light"] .tp-card {
  background: #ffffff !important;
  border-color: #e5e5e5 !important;
  color: #222;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* PROFILE PREMIUM LINE (Golden · Banyan tree) */
body[data-theme="light"] .tp-profile-premium {
  color: #a67600 !important;
}

body[data-theme="light"] .tp-profile-color {
  color: #c28b00 !important;
}

body[data-theme="light"] .tp-profile-tree {
  color: #444 !important;
}

/* MANTRA CARD */
body[data-theme="light"] .tp-mantra-card {
  background: #fff6d5 !important;
  border-color: #e4b200 !important;
  box-shadow: 0 0 18px rgba(255, 208, 0, 0.35) !important;
}

body[data-theme="light"] .tp-mantra-sanskrit {
  color: #8b5e00 !important;
  text-shadow: none !important;
}

body[data-theme="light"] .tp-mantra-roman {
  color: #333 !important;
}

body[data-theme="light"] .tp-mantra-note {
  color: #555 !important;
}

/* FACT GRID */
body[data-theme="light"] .tp-fact-value {
  color: #222 !important;
}
body[data-theme="light"] .tp-fact-label {
  color: #777 !important;
}

/* KALYANAK CARDS */
body[data-theme="light"] .tp-k-card {
  background: #fafafa !important;
  border-color: #ddd !important;
}

body[data-theme="light"] .tp-k-label {
  color: #777 !important;
}

body[data-theme="light"] .tp-k-value {
  color: #222 !important;
}

/* EMBLEM ROTATOR */
body[data-theme="light"] .tp-emblem-3d {
  background: radial-gradient(circle at 30% 20%, #fff5c4, #d39c23) !important;
  box-shadow: 0 0 25px rgba(220, 170, 20, 0.45) !important;
}

body[data-theme="light"] .tp-emblem-name {
  color: #222 !important;
}

body[data-theme="light"] .tp-emblem-label {
  color: #555 !important;
}

/* BIO TEXT */
body[data-theme="light"] .tp-bio-card p {
  color: #333 !important;
}

/* ==============================================================
   DIVINE PANCH KALYANAK VERTICAL TIMELINE
 ============================================================== */


.tp-kalyanak-vertical {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 28px;
  position: relative;
  padding-left: 22px;
}

---------------------------- */
body[data-theme="light"] .tp-kalyanak-vertical::before {
  background: linear-gradient(to bottom, #d8a322, #ffedbf);
  box-shadow: 0 0 10px rgba(200,150,40,0.4);
}


/* Each milestone */
.k-step {
  position: relative;
  padding: 20px 22px 18px 90px;
  border-radius: 20px;
  background: radial-gradient(
      circle at top left,
      rgba(255, 245, 210, 0.08),
      rgba(0, 0, 0, 0.55)
    ),
    rgba(25, 16, 35, 0.9);
  border: 1px solid rgba(255, 215, 150, 0.25);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35),
              0 0 25px rgba(255, 215, 120, 0.15) inset;
  transition: all .35s ease;
  cursor: pointer;
  overflow: hidden;
}

.k-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.5),
              0 0 40px rgba(255, 215, 120, 0.25) inset;
}

.k-step::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/gold-dust.png");
  background-size: cover;
  opacity: 0.08;
  pointer-events: none;
}


/* Glowing divine rays */

@keyframes haloRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.k-rays {
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255,235,150,0.55),
    rgba(255,235,150,0.0) 70%
  );
  border-radius: 50%;
  animation: goldenAura 6s linear infinite;
  filter: blur(4px);
}

@keyframes kRaysSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes goldenAura {
  0%   { transform: scale(1) rotate(0deg); opacity: .55; }
  50%  { transform: scale(1.15) rotate(180deg); opacity: .85; }
  100% { transform: scale(1) rotate(360deg); opacity: .55; }
}


.k-dot {
  width: 22px;
  height: 22px;
  position: absolute;
  left: 24px;
  top: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe9a8, #c18b2c);
  box-shadow:
    0 0 15px #ffd97d,
    0 0 30px rgba(255,200,100,0.8),
    inset 0 0 10px rgba(255,255,255,0.9);
}

.k-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  color: #ffe6b6;
  text-shadow: 0 0 14px rgba(255,210,120,0.65);
}

.k-expand {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .5s ease, opacity .45s ease;
}
.k-step.open .k-expand {
  max-height: 220px;
  opacity: 1;
  margin-top: 6px;
}

.k-value {
  font-size: 16px;
  color: #fffae6;
  line-height: 1.55;
  text-shadow: 0 0 6px rgba(255,215,140,0.25);
}

body[data-theme="light"] .k-step {
  background: #fff9e8;
  border-color: #e4c26b;
  box-shadow:
    0 6px 20px rgba(0,0,0,0.1),
    inset 0 0 15px rgba(255,230,130,0.3);
}

body[data-theme="light"] .k-value {
  color: #7a5800;
}


body[data-theme="light"] .k-title {
  color: #a06f00;
  text-shadow: none;
}


body[data-theme="light"] .k-dot {
  background: radial-gradient(circle, #ffdd8b, #b48000);
  box-shadow: 0 0 15px #ffdd8b;
}

.k-icon-wrap {
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
}

/* ---------------------------------------------------------
   LOTUS PETAL ANIMATION
---------------------------------------------------------- */
/* ---------------------------------------------------------
   LOTUS PETAL ANIMATION
---------------------------------------------------------- */
.floating-petal {
  position: fixed;
  top: -40px;
  width: 32px;
  height: auto;
  pointer-events: none;
  z-index: 999999;
  animation: fallPetal linear forwards;
  filter: drop-shadow(0 2px 6px rgba(255, 180, 230, 0.5));
}

@keyframes fallPetal {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(110vh) rotate(260deg);
  }
}

/* ---------------------------------------
   PREMIUM 3D DIVINE LOTUS PETALS ✨
---------------------------------------- */

.premium-petal {
  position: fixed;
  top: -60px;
  pointer-events: none;
  z-index: 999999;
  animation: premiumPetalFall linear forwards;
  filter: drop-shadow(0 0 8px rgba(255, 170, 245, 0.6));
  transform-origin: center;
}

/* Main fall + drift animation */
@keyframes premiumPetalFall {
  0% {
    transform: translateX(0) translateY(0) rotate3d(1, 1, 0, 0deg);
    opacity: 1;
  }
  50% {
    transform: translateX(var(--driftX)) translateY(60vh) rotate3d(1, 1, 0, 180deg);
    opacity: 0.9;
  }
  100% {
    transform: translateX(calc(var(--driftX) * 1.8))
               translateY(110vh)
               rotate3d(1, 1, 0, 360deg);
    opacity: 0.7;
  }
}

/* Continuous gentle spin aura */
.premium-petal {
  animation-name: premiumPetalFall, premiumPetalSpin;
  animation-timing-function: linear;
  animation-iteration-count: 1;
}

@keyframes premiumPetalSpin {
  0%   { transform: rotateZ(0deg); }
  100% { transform: rotateZ(360deg); }
}

@media (max-width: 480px) {
  .tp-top-bar {
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
  }

  .tp-back {
    order: 1;
  }

  .tp-top-title {
    order: 2;
    width: 100%;
    text-align: center;
    font-size: 18px !important;
  }

  .tp-chant-btn {
    order: 3;
    width: 100%;
    text-align: center;
    font-size: 16px !important;
    padding: 10px 14px !important;
  }
}
