/* Index refresh styles layered above existing CSS and Tailwind utilities. */
:root {
  --dm-ink: #0b1024;
  --dm-night: #12183b;
  --dm-violet: #36225f;
  --dm-aurora: #4bb1b7;
  --dm-gold: #f0c36b;
  --dm-cream: #f6f2ea;
  --dm-ice: #c7d2ff;
  --dm-border: rgba(240, 195, 107, 0.25);
  --dm-glow: rgba(75, 177, 183, 0.25);
  --dm-card: rgba(12, 18, 40, 0.65);
  --dm-shadow: 0 30px 80px rgba(7, 9, 24, 0.6);
  --dm-font-display: "Marcellus", "GFS Didot", serif;
  --dm-font-body: "Alegreya Sans", "Plus Jakarta Sans", sans-serif;
  --dm-cta-1: #f7e4bb;
  --dm-cta-2: #f0c36b;
  --dm-cta-3: #f9ebc9;
  --dm-cta-4: #cf8b35;
  --dm-cta-text: #1f1408;
  --dm-cta-border: rgba(255, 236, 199, 0.72);
  --dm-cta-glow: rgba(240, 195, 107, 0.35);
  --dm-karmic-cta-start: #5b3ad5;
  --dm-karmic-cta-mid: #8a5bff;
  --dm-karmic-cta-end: #b877ff;
  --dm-karmic-cta-glow: rgba(118, 78, 255, 0.45);
  --dm-karmic-cta-text: #fefcff;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: var(--dm-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dm-cream);
  background-color: var(--dm-ink);
  background-image:
    radial-gradient(1200px circle at 12% 12%, rgba(75, 177, 183, 0.16), transparent 55%),
    radial-gradient(900px circle at 88% 10%, rgba(240, 195, 107, 0.14), transparent 52%),
    linear-gradient(135deg, #0b1024 0%, #151a38 45%, #090b1d 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  opacity: 0.12;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
  padding-left: clamp(0.4rem, 1.6vw, 2.25rem);
  padding-right: clamp(0.4rem, 1.6vw, 2.25rem);
}

h1,
h2,
h3,
.font-didot {
  font-family: var(--dm-font-display);
  letter-spacing: 0.01em;
  font-optical-sizing: auto;
}

.font-inter {
  font-family: var(--dm-font-body);
}

header [class*="bg-black/80"] {
  background: rgba(10, 13, 30, 0.86) !important;
  border-bottom: 1px solid rgba(240, 195, 107, 0.12) !important;
}

header nav a.underline {
  text-decoration: none !important;
  position: relative;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

header nav a.underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(240, 195, 107, 0.1), rgba(240, 195, 107, 0.8));
  transition: width 0.25s ease;
}

header nav a.underline:hover::after {
  width: 100%;
}

header nav a[href="#calculator-section"][class*="bg-gradient"],
header nav a[href="#calculator-section"].nav-cta {
  background: linear-gradient(135deg, var(--dm-cta-1) 0%, var(--dm-cta-2) 38%, var(--dm-cta-3) 58%, var(--dm-cta-4) 100%) !important;
  color: var(--dm-cta-text) !important;
  border: 1px solid var(--dm-cta-border);
  box-shadow: 0 14px 28px rgba(7, 9, 24, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

:where(a, button)[class~="bg-gradient-to-r"],
:where(a, button)[class~="bg-gradient-to-l"],
:where(a, button)[class~="bg-gradient-to-br"],
:where(a, button)[class~="bg-gradient-to-tr"],
:where(a, button)[class~="bg-purple-600"],
:where(a, button)[class~="bg-indigo-600"],
:where(a, button)[class~="bg-violet-600"],
:where(a, button)[class~="bg-fuchsia-600"] {
  background: linear-gradient(135deg, var(--dm-cta-1) 0%, var(--dm-cta-2) 38%, var(--dm-cta-3) 58%, var(--dm-cta-4) 100%) !important;
  color: var(--dm-cta-text) !important;
  border: 1px solid var(--dm-cta-border) !important;
  box-shadow: 0 14px 28px rgba(7, 9, 24, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -10px 18px rgba(135, 78, 18, 0.28);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
  min-height: 44px;
}

:where(a, button)[class~="bg-gradient-to-r"]:hover,
:where(a, button)[class~="bg-gradient-to-l"]:hover,
:where(a, button)[class~="bg-gradient-to-br"]:hover,
:where(a, button)[class~="bg-gradient-to-tr"]:hover,
:where(a, button)[class~="bg-purple-600"]:hover,
:where(a, button)[class~="bg-indigo-600"]:hover,
:where(a, button)[class~="bg-violet-600"]:hover,
:where(a, button)[class~="bg-fuchsia-600"]:hover {
  background: linear-gradient(135deg, #ffefcd 0%, #f6d48d 40%, #fff4d7 62%, #d3913a 100%) !important;
  box-shadow: 0 18px 34px rgba(7, 9, 24, 0.6), 0 0 18px var(--dm-cta-glow);
}

:where(a, button)[class~="bg-gradient-to-r"]:focus-visible,
:where(a, button)[class~="bg-gradient-to-l"]:focus-visible,
:where(a, button)[class~="bg-gradient-to-br"]:focus-visible,
:where(a, button)[class~="bg-gradient-to-tr"]:focus-visible,
:where(a, button)[class~="bg-purple-600"]:focus-visible,
:where(a, button)[class~="bg-indigo-600"]:focus-visible,
:where(a, button)[class~="bg-violet-600"]:focus-visible,
:where(a, button)[class~="bg-fuchsia-600"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(240, 195, 107, 0.4), 0 16px 30px rgba(7, 9, 24, 0.6);
}

:where(a, button)[class~="bg-gradient-to-r"] svg,
:where(a, button)[class~="bg-gradient-to-l"] svg,
:where(a, button)[class~="bg-gradient-to-br"] svg,
:where(a, button)[class~="bg-gradient-to-tr"] svg,
:where(a, button)[class~="bg-purple-600"] svg,
:where(a, button)[class~="bg-indigo-600"] svg,
:where(a, button)[class~="bg-violet-600"] svg,
:where(a, button)[class~="bg-fuchsia-600"] svg {
  color: var(--dm-cta-text);
}

.cta-secondary {
  background: linear-gradient(145deg, rgba(16, 22, 44, 0.92), rgba(10, 14, 30, 0.96)) !important;
  color: var(--dm-cream) !important;
  border: 1px solid rgba(240, 195, 107, 0.35) !important;
  box-shadow: 0 12px 26px rgba(7, 9, 24, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
  text-shadow: none !important;
}

.cta-secondary:hover {
  background: linear-gradient(145deg, rgba(22, 30, 58, 0.96), rgba(12, 16, 34, 0.98)) !important;
  box-shadow: 0 16px 32px rgba(7, 9, 24, 0.6), 0 0 12px rgba(75, 177, 183, 0.2) !important;
}

.cta-secondary svg {
  color: var(--dm-gold) !important;
}

.karmic-tail-card .karmic-tail-cta {
  background: linear-gradient(
    135deg,
    var(--dm-karmic-cta-start) 0%,
    var(--dm-karmic-cta-mid) 55%,
    var(--dm-karmic-cta-end) 100%
  ) !important;
  color: var(--dm-karmic-cta-text) !important;
  border: 1px solid rgba(166, 142, 255, 0.7) !important;
  box-shadow: 0 20px 40px rgba(40, 12, 90, 0.6), 0 0 30px var(--dm-karmic-cta-glow) !important;
  background-size: 200% 200%;
  letter-spacing: 0.22em;
  text-shadow: 0 2px 12px rgba(7, 4, 20, 0.65);
  text-transform: uppercase;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-position 0.35s ease, border 0.35s ease;
}

.karmic-tail-card .karmic-tail-cta:hover {
  background-position: 100% 0% !important;
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 25px 45px rgba(55, 16, 120, 0.7), 0 0 40px var(--dm-karmic-cta-glow);
  border-color: rgba(255, 255, 255, 0.65) !important;
}

.karmic-tail-card .karmic-tail-cta:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(148, 129, 255, 0.45),
    0 0 25px rgba(77, 35, 171, 0.6),
    0 20px 40px rgba(40, 12, 90, 0.6);
}

.karmic-tail-card .karmic-tail-cta svg {
  color: inherit !important;
}

#menu-backdrop {
  background: rgba(6, 8, 20, 0.88) !important;
}

#mobile-menu {
  background: rgba(9, 12, 26, 0.96) !important;
  border-left: 1px solid rgba(240, 195, 107, 0.12);
}

#lang-dropdown {
  background: rgba(9, 12, 26, 0.96) !important;
  border: 1px solid rgba(240, 195, 107, 0.18) !important;
}

header .lg\:hidden button,
header button.lg\:hidden,
header #menu-toggle {
  position: relative;
  background: radial-gradient(80% 80% at 30% 20%, rgba(240, 195, 107, 0.18), rgba(9, 12, 26, 0.92)) !important;
  border: 1px solid rgba(240, 195, 107, 0.45) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 26px rgba(7, 9, 24, 0.6), inset 0 0 12px rgba(240, 195, 107, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

header #menu-toggle {
  position: fixed !important;
  right: max(16px, env(safe-area-inset-right)) !important;
  left: auto !important;
  top: max(16px, env(safe-area-inset-top)) !important;
}

header .lg\:hidden button::after,
header button.lg\:hidden::after,
header #menu-toggle::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(240, 195, 107, 0.4), rgba(75, 177, 183, 0.25));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.2s ease;
}

header .lg\:hidden button:hover,
header button.lg\:hidden:hover,
header #menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(7, 9, 24, 0.6), 0 0 18px rgba(240, 195, 107, 0.18);
}

header .lg\:hidden button:hover::after,
header button.lg\:hidden:hover::after,
header #menu-toggle:hover::after {
  opacity: 1;
}

header .lg\:hidden button svg,
header button.lg\:hidden svg,
header #menu-toggle svg {
  color: var(--dm-gold);
}

header .lg\:hidden #menu-toggle span,
header #menu-toggle span {
  background-color: var(--dm-gold) !important;
  box-shadow: 0 0 10px rgba(240, 195, 107, 0.4);
}

#hero-section {
  background:
    radial-gradient(980px circle at 20% 5%, rgba(75, 177, 183, 0.18), transparent 55%),
    radial-gradient(800px circle at 80% 15%, rgba(240, 195, 107, 0.16), transparent 50%),
    linear-gradient(140deg, #0b1024 0%, #1a1f45 55%, #090b1d 100%) !important;
  padding-left: clamp(0.25rem, 1.2vw, 1.5rem) !important;
  padding-right: clamp(0.25rem, 1.2vw, 1.5rem) !important;
}

#hero-section::before {
  content: "";
  position: absolute;
  inset: -20% 0 0;
  background:
    radial-gradient(420px circle at 12% 18%, rgba(75, 177, 183, 0.12), transparent 60%),
    radial-gradient(320px circle at 88% 22%, rgba(240, 195, 107, 0.12), transparent 62%),
    linear-gradient(120deg, rgba(75, 177, 183, 0.08), rgba(7, 10, 24, 0));
  opacity: 0.65;
  pointer-events: none;
}

#hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(240, 195, 107, 0.45) 0, transparent 60%),
    radial-gradient(1px 1px at 35% 40%, rgba(246, 242, 234, 0.4) 0, transparent 60%),
    radial-gradient(1px 1px at 60% 25%, rgba(75, 177, 183, 0.35) 0, transparent 60%),
    radial-gradient(1px 1px at 85% 35%, rgba(240, 195, 107, 0.35) 0, transparent 60%),
    radial-gradient(1px 1px at 20% 75%, rgba(246, 242, 234, 0.3) 0, transparent 60%),
    radial-gradient(1px 1px at 75% 70%, rgba(75, 177, 183, 0.3) 0, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

#hero-section h1 {
  font-size: clamp(2.8rem, 5vw, 5.6rem);
  background-image: none;
  color: rgba(245, 235, 220, 0.96);
  -webkit-text-fill-color: rgba(245, 235, 220, 0.96);
  -webkit-background-clip: border-box;
  text-shadow: 0 20px 50px rgba(8, 10, 24, 0.65);
  animation: none;
}

#hero-section .text-center > * {
  animation: dm-fade-up 0.8s ease both;
}

#hero-section .text-center > *:nth-child(1) {
  animation-delay: 0.05s;
}

#hero-section .text-center > *:nth-child(2) {
  animation-delay: 0.12s;
}

#hero-section .text-center > *:nth-child(3) {
  animation-delay: 0.2s;
}

#hero-section .text-center > *:nth-child(4) {
  animation-delay: 0.28s;
}

#hero-section .text-center > *:nth-child(5) {
  animation-delay: 0.36s;
}

#hero-section .text-center > *:nth-child(6) {
  animation-delay: 0.44s;
}

#hero-section p {
  color: rgba(246, 242, 234, 0.88) !important;
}

#hero-section .bg-purple-900\/40 {
  background: rgba(13, 18, 40, 0.7) !important;
  border: 1px solid rgba(240, 195, 107, 0.3) !important;
}

#hero-section .text-purple-300 {
  color: var(--dm-gold) !important;
}

#hero-section a.group {
  background: linear-gradient(135deg, #f0c36b 0%, #f7d49b 55%, #f0c36b 100%) !important;
  color: #1f1508 !important;
  box-shadow: 0 18px 40px rgba(240, 195, 107, 0.35);
}

#hero-section a.group svg {
  color: #1f1508;
}

#hero-section a.group::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

#hero-section a.group:hover::before {
  opacity: 0.6;
}

#hero-section .flex.flex-wrap > div {
  background: rgba(12, 18, 40, 0.55);
  border: 1px solid rgba(240, 195, 107, 0.18);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
}

#hero-section h3 + .grid a {
  background: rgba(12, 18, 40, 0.6) !important;
  border: 1px solid rgba(240, 195, 107, 0.22) !important;
  color: var(--dm-cream) !important;
  box-shadow: 0 12px 28px rgba(7, 9, 24, 0.4);
}

#hero-section h3 + .grid a:hover {
  background: rgba(20, 28, 60, 0.8) !important;
  border-color: rgba(240, 195, 107, 0.4) !important;
  transform: translateY(-2px);
}

#hero-section .grid.grid-cols-4 a {
  background: rgba(12, 18, 40, 0.55) !important;
  border: 1px solid rgba(240, 195, 107, 0.18) !important;
}

#hero-section .grid.grid-cols-4 a:hover {
  background: rgba(20, 28, 60, 0.78) !important;
  border-color: rgba(240, 195, 107, 0.35) !important;
}

#hero-section img {
  border: 1px solid rgba(240, 195, 107, 0.2);
  box-shadow: var(--dm-shadow);
  animation: dm-float 10s ease-in-out infinite;
}

#calculator-section {
  max-width: 560px;
}

#calculator-section h2 {
  color: var(--dm-cream);
}

#calculator-section .bg-white\/10 {
  position: relative;
  overflow: hidden;
  background: rgba(12, 18, 40, 0.75) !important;
  border: 1px solid rgba(240, 195, 107, 0.2) !important;
  box-shadow: 0 25px 60px rgba(7, 9, 24, 0.45);
}

#calculator-section .bg-white\/10::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  box-shadow: inset 0 0 28px rgba(75, 177, 183, 0.12);
  pointer-events: none;
}

#calculator-section label {
  color: rgba(246, 242, 234, 0.9) !important;
}

#calculator-section input {
  background: rgba(7, 10, 24, 0.6) !important;
  border: 1px solid rgba(240, 195, 107, 0.2) !important;
  color: var(--dm-cream) !important;
}

#calculator-section input:focus {
  border-color: rgba(240, 195, 107, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(240, 195, 107, 0.2) !important;
}

#get_the_answer {
  background: linear-gradient(135deg, #f0c36b 0%, #f7d49b 60%, #f0c36b 100%) !important;
  color: #1f1508 !important;
  box-shadow: 0 16px 35px rgba(240, 195, 107, 0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#get_the_answer span {
  color: #1f1508;
}

#calculator-section .errorOutput {
  background: rgba(120, 22, 22, 0.2) !important;
  border: 1px solid rgba(255, 140, 140, 0.25) !important;
}

#pento {
  margin-top: 1.5rem;
}

#pento .personal-calculator p {
  font-family: var(--dm-font-display);
  color: var(--dm-cream);
}

a[data-umami-event="analysis-cta-click"] > div {
  background: rgba(12, 18, 40, 0.85) !important;
  border: 1px solid rgba(240, 195, 107, 0.22) !important;
  box-shadow: 0 24px 60px rgba(7, 9, 24, 0.55);
}

a[data-umami-event="analysis-cta-click"] span.text-xs {
  color: rgba(240, 195, 107, 0.7) !important;
}

#personal-analysis > div {
  background: rgba(12, 18, 40, 0.82) !important;
  border: 1px solid rgba(240, 195, 107, 0.2) !important;
  box-shadow: 0 26px 60px rgba(7, 9, 24, 0.55);
}

button[data-accordion-target] {
  background: transparent !important;
  border: 0 !important;
  color: var(--dm-cream);
}

#karmic-tail-calculator,
#pento-interpretation,
#compatibility-guide,
#chakra-guide,
#related-articles {
  background: rgba(10, 14, 30, 0.6);
  border: 1px solid rgba(240, 195, 107, 0.18) !important;
  border-radius: 26px;
  box-shadow: 0 22px 55px rgba(7, 9, 24, 0.45);
}

#karmic-tail {
  background: rgba(8, 12, 28, 0.72);
  border: 1px solid rgba(240, 195, 107, 0.24) !important;
  border-radius: 26px;
  box-shadow: 0 26px 60px rgba(7, 9, 24, 0.5);
}

#karmic-tail-result {
  display: grid;
  gap: 1.1rem;
}

.karmic-tail-summary {
  margin-top: -0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(12, 18, 40, 0.6);
  border: 1px solid rgba(240, 195, 107, 0.22);
  box-shadow: 0 12px 30px rgba(7, 9, 24, 0.4);
}

.karmic-tail-summary-value {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(240, 195, 107, 0.12);
  border: 1px solid rgba(240, 195, 107, 0.35);
}

.karmic-tail-drawers {
  display: grid;
  gap: 1.2rem;
}

.karmic-tail-card {
  background: linear-gradient(155deg, rgba(18, 25, 51, 0.9), rgba(9, 12, 26, 0.75));
  border: 1px solid rgba(240, 195, 107, 0.2);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(75, 177, 183, 0.08), 0 18px 35px rgba(7, 9, 24, 0.45);
  overflow: hidden;
}

.karmic-tail-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1.3rem 1.5rem 0.8rem;
  background: rgba(8, 12, 28, 0.6);
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.karmic-tail-card-header:hover {
  background: rgba(10, 14, 32, 0.75);
}

.karmic-tail-card[data-open="true"] .karmic-tail-card-header {
  background: rgba(12, 18, 40, 0.72);
  box-shadow: inset 0 -1px 0 rgba(240, 195, 107, 0.18);
}

.karmic-tail-header-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  min-width: 0;
}

.karmic-tail-toggle {
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 195, 107, 0.45);
  background: radial-gradient(120% 120% at 20% 20%, rgba(240, 195, 107, 0.18), rgba(9, 12, 26, 0.95));
  color: var(--dm-cream);
  font-family: var(--dm-font-body);
  font-size: 0.7rem;
  line-height: 1;
  min-height: 36px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(7, 9, 24, 0.45), inset 0 0 10px rgba(240, 195, 107, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.karmic-tail-toggle-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.karmic-tail-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 195, 107, 0.75);
  box-shadow: 0 14px 24px rgba(7, 9, 24, 0.55), 0 0 12px rgba(240, 195, 107, 0.2);
}

.karmic-tail-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(240, 195, 107, 0.35), 0 14px 24px rgba(7, 9, 24, 0.55);
}

.karmic-tail-toggle-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.karmic-tail-card[data-open="true"] .karmic-tail-toggle-icon {
  transform: rotate(180deg);
}

.karmic-tail-drawer-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.karmic-tail-arcana-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.karmic-number-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 44px;
  padding: 0 1.4rem;
  border-radius: 12px;
  border: 1px solid rgba(160, 114, 255, 0.65);
  background: linear-gradient(135deg, #7a34e8 0%, #8d4bff 55%, #6f2dd7 100%);
  box-shadow: 0 12px 24px rgba(77, 34, 148, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.karmic-number-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(88, 45, 168, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.karmic-number-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(160, 114, 255, 0.45), 0 16px 30px rgba(88, 45, 168, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.karmic-number-sheen {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

.karmic-tail-number {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 195, 107, 0.55);
  background: radial-gradient(120% 120% at 20% 20%, rgba(240, 195, 107, 0.25), rgba(9, 12, 26, 0.95));
  color: var(--dm-cream);
  font-family: var(--dm-font-display);
  font-size: 1.05rem;
  box-shadow: 0 12px 24px rgba(7, 9, 24, 0.5), inset 0 0 12px rgba(240, 195, 107, 0.2);
}

.karmic-tail-arcana-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: #f6f2ea;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.karmic-tail-arcana-number {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 195, 107, 0.85);
}

.karmic-tail-card-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.35s ease;
}

.karmic-tail-card[data-open="true"] .karmic-tail-card-body {
  max-height: var(--drawer-max, 2400px);
  opacity: 1;
  transform: translateY(0);
}

.karmic-tail-card-body-inner {
  padding: 0 1.5rem 1.5rem;
}

.karmic-tail-drawer-body {
  padding: 0 1.5rem 1.5rem;
}

.karmic-tail-eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 195, 107, 0.72);
}

.karmic-tail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 195, 107, 0.55);
  background: radial-gradient(120% 120% at 20% 20%, rgba(240, 195, 107, 0.25), rgba(9, 12, 26, 0.95));
  color: var(--dm-cream);
  font-family: var(--dm-font-display);
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(7, 9, 24, 0.5), inset 0 0 12px rgba(240, 195, 107, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.karmic-number-value {
  position: relative;
  z-index: 1;
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0;
  text-shadow: 0 4px 10px rgba(44, 22, 92, 0.35);
  font-variant-numeric: tabular-nums;
}

.karmic-number-arrow {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  right: 12px;
  top: 50%;
  width: 20px;
  height: 20px;
  background: transparent;
  border: 0;
  color: #ffffff;
  box-shadow: none;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.karmic-number-button:hover .karmic-number-arrow {
  transform: translate(3px, -50%);
}

.karmic-number-arrow svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.karmic-tail-desc {
  color: rgba(246, 242, 234, 0.78);
}

.karmic-tail-cta {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(199, 210, 255, 0.7);
}

.karmic-tail-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.karmic-tail-arcana-title {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 195, 107, 0.8);
}

.karmic-tail-arcana {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(240, 195, 107, 0.18);
}

.karmic-tail-arcana-intro {
  color: rgba(246, 242, 234, 0.85);
  margin-bottom: 0.9rem;
}

.karmic-tail-arcana-sections h4 {
  margin-top: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 195, 107, 0.85);
}

.karmic-tail-arcana-sections ul {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
  color: rgba(246, 242, 234, 0.8);
  list-style: disc;
  list-style-position: outside;
}

@media (max-width: 768px) {
  .karmic-tail-card-header {
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding: 1.05rem 1.05rem 0.7rem;
  }

  .karmic-tail-toggle {
    justify-self: start;
  }

  .karmic-tail-drawer-row {
    gap: 0.8rem;
  }

  .karmic-number-button {
    min-width: 90px;
    min-height: 40px;
    padding: 0 1.2rem;
    border-radius: 10px;
  }

  .karmic-number-value {
    font-size: 1.4rem;
  }

  .karmic-number-arrow {
    width: 20px;
    height: 20px;
  }


  .karmic-tail-number {
    font-size: 1rem;
  }

  .karmic-tail-arcana-name {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .karmic-tail-arcana-number {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
  }

  .karmic-tail-card-body {
    max-height: 0;
  }

  .karmic-tail-card-body-inner {
    padding: 0 1.1rem 1.2rem;
  }

  .karmic-tail-summary {
    padding: 0.85rem 0.85rem;
  }
}

.karmic-tail-arcana-sections li {
  margin-top: 0.35rem;
}

#karmic-tail-before-calculation {
  background: rgba(10, 14, 30, 0.6);
  border: 1px dashed rgba(240, 195, 107, 0.28);
  border-radius: 16px;
}

#karmic-tail-calculator h2,
#pento-interpretation h2,
#compatibility-guide h2,
#chakra-guide h2,
#related-articles h2 {
  color: var(--dm-cream);
}

#related-articles a,
#pento-interpretation a {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#related-articles a:hover,
#pento-interpretation a:hover {
  transform: translateY(-2px);
}

#related-articles {
  padding-left: clamp(1rem, 3vw, 2.5rem) !important;
  padding-right: clamp(1rem, 3vw, 2.5rem) !important;
}

#get_the_answer {
  flex-wrap: nowrap;
  white-space: nowrap;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  padding: 0.85rem 1.1rem !important;
}

#get_the_answer span:last-child {
  white-space: nowrap;
  font-size: clamp(0.9rem, 2.8vw, 1.05rem);
}

#get_the_answer_compatibility,
#get_the_answer_matrix {
  flex-wrap: nowrap;
  white-space: nowrap;
}

#get_the_answer_compatibility span:last-child,
#get_the_answer_matrix span:last-child {
  white-space: nowrap;
  font-size: clamp(0.9rem, 2.8vw, 1.05rem);
}

#insights-dimensions [data-dimension-key] {
  --insights-accent-rgb: 240, 195, 107;
}

#insights-dimensions [data-dimension-key="innerSelf"] {
  --insights-accent-rgb: 251, 191, 36;
}

#insights-dimensions [data-dimension-key="outerSelf"] {
  --insights-accent-rgb: 167, 139, 250;
}

#insights-dimensions [data-dimension-key="karmicTail"] {
  --insights-accent-rgb: 251, 113, 133;
}

#insights-dimensions [data-dimension-key="loveLine"] {
  --insights-accent-rgb: 232, 121, 249;
}

#insights-dimensions [data-dimension-key="moneyLine"] {
  --insights-accent-rgb: 34, 211, 238;
}

#insights-dimensions [data-dimension-key="careerTalents"] {
  --insights-accent-rgb: 96, 165, 250;
}

#insights-dimensions [data-dimension-key="purposeDestinies"] {
  --insights-accent-rgb: 129, 140, 248;
}

#insights-dimensions [data-dimension-key="lifeScenario"] {
  --insights-accent-rgb: 45, 212, 191;
}

#insights-dimensions [data-dimension-key="relationshipsFamily"] {
  --insights-accent-rgb: 52, 211, 153;
}

#insights-dimensions [data-dimension-key="programs"] {
  --insights-accent-rgb: 251, 146, 60;
}

#insights-dimensions [data-dimension-key="health"] {
  --insights-accent-rgb: 163, 230, 53;
}

#insights-dimensions [data-dimension-key="yearlyCycles"] {
  --insights-accent-rgb: 56, 189, 248;
}

#insights-dimensions [data-insights-toggle] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(var(--insights-accent-rgb), 0.35);
  background: linear-gradient(135deg, rgba(11, 16, 36, 0.96) 0%, rgba(14, 20, 44, 0.88) 46%, rgba(10, 14, 32, 0.98) 100%);
  box-shadow: 0 18px 32px rgba(7, 9, 24, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#insights-dimensions [data-insights-toggle]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 20%, rgba(var(--insights-accent-rgb), 0.28), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

#insights-dimensions [data-insights-toggle]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 12%, rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0.65;
  pointer-events: none;
}

#insights-dimensions [data-insights-toggle] > * {
  position: relative;
  z-index: 1;
}

#insights-dimensions [data-insights-tier][data-tier-prefix] {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  line-height: 1;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

#insights-dimensions [data-insights-tier][data-tier-prefix]::before {
  content: attr(data-tier-prefix);
  font-size: 0.48rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.75;
}

#insights-dimensions .group:hover [data-insights-toggle] {
  transform: translateY(-2px);
  border-color: rgba(var(--insights-accent-rgb), 0.6);
  box-shadow: 0 22px 40px rgba(7, 9, 24, 0.6), 0 0 20px rgba(var(--insights-accent-rgb), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#insights-dimensions [data-insights-toggle]:focus-visible {
  outline: none;
  border-color: rgba(var(--insights-accent-rgb), 0.75);
  box-shadow: 0 0 0 3px rgba(var(--insights-accent-rgb), 0.45), 0 22px 40px rgba(7, 9, 24, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#insights-dimensions [data-insights-toggle][aria-expanded="true"] {
  border-color: rgba(var(--insights-accent-rgb), 0.75);
  box-shadow: 0 20px 38px rgba(7, 9, 24, 0.6), 0 0 20px rgba(var(--insights-accent-rgb), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#insights-dimensions .insights-arcana-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.75rem;
}

#insights-dimensions .insights-arcana-button {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.85rem 0;
  text-decoration: none;
  color: rgba(246, 242, 234, 0.9);
}

#insights-dimensions .insights-arcana-button + .insights-arcana-button {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#insights-dimensions .insights-arcana-button:focus-visible {
  outline: none;
}

#insights-dimensions .insights-arcana-button .insights-arcana-info {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

#insights-dimensions .insights-arcana-button .insights-arcana-cta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  width: 100%;
}

#insights-dimensions .insights-arcana-button .insights-arcana-meta {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
  color: rgba(246, 242, 234, 0.92);
  text-shadow: 0 1px 10px rgba(6, 8, 20, 0.55);
}

#insights-dimensions .insights-arcana-button .insights-arcana-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(var(--insights-accent-rgb), 0.4);
  background: linear-gradient(135deg, rgba(var(--insights-accent-rgb), 0.6) 0%, rgba(var(--insights-accent-rgb), 0.35) 60%, rgba(var(--insights-accent-rgb), 0.62) 100%);
  box-shadow: 0 8px 14px rgba(7, 9, 24, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  height: 48px;
  justify-content: space-between;
  width: 100%;
}

#insights-dimensions .insights-arcana-button .insights-arcana-value {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.95);
}

#insights-dimensions .insights-arcana-button .insights-arcana-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.95);
}

#insights-dimensions .insights-arcana-button .insights-arcana-arrow svg {
  width: 16px;
  height: 16px;
}

#insights-dimensions .insights-arcana-button:hover .insights-arcana-pill,
#insights-dimensions .insights-arcana-button:focus-visible .insights-arcana-pill {
  border-color: rgba(var(--insights-accent-rgb), 0.5);
  box-shadow: 0 10px 18px rgba(7, 9, 24, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#insights-dimensions .insights-arcana-button .insights-arcana-gloss {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  color: rgba(246, 242, 234, 0.85);
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(6, 8, 20, 0.5);
}

#insights-dimensions .insights-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--insights-accent-rgb), 0.4);
  background: linear-gradient(135deg, rgba(var(--insights-accent-rgb), 0.6) 0%, rgba(var(--insights-accent-rgb), 0.34) 58%, rgba(var(--insights-accent-rgb), 0.62) 100%);
  box-shadow: 0 8px 14px rgba(7, 9, 24, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: var(--dm-cream);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#insights-dimensions .insights-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--insights-accent-rgb), 0.5);
  box-shadow: 0 10px 18px rgba(7, 9, 24, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#insights-dimensions .insights-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--insights-accent-rgb), 0.45), 0 18px 34px rgba(7, 9, 24, 0.6);
}

#insights-dimensions .insights-cta-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

#insights-dimensions .insights-cta:hover .insights-cta-icon {
  transform: translateX(4px);
}

main [class*="border-white/"] {
  border-color: rgba(240, 195, 107, 0.25) !important;
}

#pento-interpretation .bg-white\/10,
#frequently-asked-questions .bg-white\/10 {
  background: rgba(12, 18, 40, 0.72) !important;
  border: 1px solid rgba(240, 195, 107, 0.2);
  box-shadow: 0 18px 40px rgba(6, 8, 20, 0.45);
}

#pento-interpretation .bg-white\/5,
#frequently-asked-questions .bg-white\/5 {
  background: rgba(10, 14, 30, 0.55) !important;
  border: 1px solid rgba(75, 177, 183, 0.12);
}

#frequently-asked-questions {
  background: rgba(10, 14, 30, 0.55);
  border-color: rgba(240, 195, 107, 0.28) !important;
}

@keyframes dm-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dm-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 768px) {
  header nav a.underline::after {
    display: none;
  }

  #hero-section {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    padding-left: clamp(0.9rem, 4.2vw, 1.4rem) !important;
    padding-right: clamp(0.9rem, 4.2vw, 1.4rem) !important;
  }

  #hero-section h1 {
    text-shadow: 0 12px 30px rgba(8, 10, 24, 0.5);
  }

  #calculator-section {
    max-width: 92vw;
  }
}
