/* ============================================
   NUMEROLOGIE COSMICĂ – Advanced Numerology App
   Dark Mystical Design System
   ============================================ */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #0a051d;
  --bg-dark: #110b2a;
  --bg-card: rgba(20, 15, 40, 0.4);
  --bg-glass: rgba(10, 5, 25, 0.6);
  --bg-card-hover: rgba(30, 20, 60, 0.5);

  --purple-dim: #2e1065;
  --purple-mid: #6b21a8;
  --purple-bright: #9333ea;
  --purple-glow: rgba(147, 51, 234, 0.4);

  --gold: #fde047;
  --gold-dim: rgba(253, 224, 71, 0.1);
  --gold-glow: rgba(253, 224, 71, 0.5);

  --teal: #2dd4bf;
  --teal-glow: rgba(45, 212, 191, 0.4);
  --pink: #ec4899;
  --blue: #3b82f6;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(168, 85, 247, 0.2);
  --border-gold: rgba(251, 191, 36, 0.2);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-neon: 0 0 20px rgba(168, 85, 247, 0.15);
  --shadow-gold: 0 0 20px rgba(251, 191, 36, 0.1);

  --font-display: 'Cinzel', serif;
  --font-body: 'Raleway', sans-serif;

  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --stagger-delay: 0.1s;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(ellipse at center, rgba(8, 25, 42, 1) 19%, rgba(1, 4, 6, 1) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Sparkling Background ---- */
#root {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

@keyframes shine {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  20% {
    transform: scale(.9);
    opacity: .8;
  }

  40% {
    transform: scale(1);
    opacity: .9;
  }

  50% {
    transform: scale(.2);
    opacity: .2;
  }

  60% {
    transform: scale(.2);
    opacity: .1;
  }

  80% {
    transform: scale(.5);
    opacity: .5;
  }

  100% {
    transform: scale(.9);
    opacity: .9;
  }
}

/* ---- Floating Orbs ---- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 15s ease-in-out infinite;
}

.orb1 {
  width: 500px;
  height: 500px;
  background: var(--purple-mid);
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.orb2 {
  width: 350px;
  height: 350px;
  background: var(--teal);
  bottom: 10%;
  left: -100px;
  animation-delay: 5s;
}

.orb3 {
  width: 280px;
  height: 280px;
  background: var(--pink);
  top: 40%;
  right: 5%;
  animation-delay: 10s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-40px) scale(1.05);
  }
}

/* ---- Utility ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--purple-bright) 50%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hidden {
  display: none !important;
}

.center-content {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.center-content.active {
  display: flex !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 4, 15, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-symbol {
  font-size: 1.4rem;
  color: var(--gold);
  animation: spinGlow 6s linear infinite;
}

@keyframes spinGlow {

  0%,
  100% {
    text-shadow: 0 0 8px var(--gold);
    transform: rotate(0deg);
  }

  50% {
    text-shadow: 0 0 20px var(--gold-glow);
    transform: rotate(180deg);
  }
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.logo-text em {
  font-style: normal;
  color: var(--gold);
}

.main-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 100px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(168, 85, 247, 0.15);
}

/* ---- Hero & Orbital Rings ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 48px 60px;
  max-width: 1300px;
  margin: 0 auto;
  gap: 40px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.orbital-rings {
  position: absolute;
  top: 50%;
  left: 65%;
  transform: translateY(-50%) rotateX(60deg) rotateZ(-30deg);
  width: 800px;
  height: 800px;
  pointer-events: none;
  z-index: -1;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.05), inset 0 0 20px rgba(168, 85, 247, 0.05);
  animation: orbitRotate linear infinite;
}

.ring-1 {
  width: 100%;
  height: 100%;
  border-color: rgba(45, 212, 191, 0.15);
  animation-duration: 40s;
}

.ring-2 {
  width: 75%;
  height: 75%;
  border-style: dashed;
  animation-duration: 30s;
  animation-direction: reverse;
}

.ring-3 {
  width: 50%;
  height: 50%;
  border-width: 2px;
  animation-duration: 20s;
}

.planet-orb {
  position: absolute;
  top: 25%;
  left: 50%;
  width: 15px;
  height: 15px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--gold-glow);
  transform: translate(-50%, -50%);
  animation: orbitRotate 20s linear infinite reverse;
}

@keyframes orbitRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-content {
  flex: 1;
  max-width: 580px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  background: var(--gold-dim);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold), var(--purple-bright));
  padding: 16px 36px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 40px var(--purple-glow), 0 0 20px var(--gold-glow);
  transition: var(--transition);
  animation: fadeInUp 0.8s ease 0.3s both;
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 60px var(--purple-glow), 0 0 30px var(--gold-glow);
}

.hero-wheel {
  flex-shrink: 0;
  animation: fadeIn 1s ease 0.4s both;
}

#numerologyWheel {
  filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.4));
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--purple-bright);
  border: 1px solid var(--border);
  background: rgba(168, 85, 247, 0.08);
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Calculator Card ---- */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-xl);
  padding: 48px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(168, 85, 247, 0.05);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.calculator-card:hover {
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), inset 0 0 60px rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.4);
}

.calculator-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-mid), transparent);
  opacity: 0.7;
}

/* ---- Level Boxes (3-Tier) ---- */
.level-box {
  background: rgba(10, 5, 30, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  transition: var(--transition);
}

.level-box:hover {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(15, 10, 40, 0.5);
}

.level-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.level-header h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-top: 10px;
}

.level-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.level-badge.premium {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(168, 85, 247, 0.2));
  color: var(--gold);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.optional-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.form-group input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
  color-scheme: dark;
}

.form-group input:focus {
  border-color: var(--purple-bright);
  background: rgba(168, 85, 247, 0.08);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-bright));
  padding: 14px 32px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.4);
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(147, 51, 234, 0.7), inset 0 0 20px rgba(255, 255, 255, 0.2);
  border-color: var(--gold);
}

.panel-side:hover .panel-side-img {
  transform: scale(1.15) rotate(6deg);
}

.panel-side-icon-wrap {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.panel-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  mask-image: radial-gradient(circle, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.panel-side:hover .panel-side-img {
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.3));
}

.btn-icon {
  font-size: 1.2rem;
  animation: spin 4s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.reset-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 14px 24px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.reset-btn:hover {
  color: var(--text-primary);
  border-color: var(--purple-bright);
}

/* ---- Results Grid ---- */
/* =========================================
   EDUCATIONAL SOURCES (3 PILLARS)
   ========================================= */

.sources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .sources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sources-grid {
    grid-template-columns: 1fr;
  }
}

.source-card {
  background: rgba(20, 15, 40, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.source-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-mid), transparent);
  opacity: 0.5;
  transition: opacity 0.4s;
}

.source-card:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(168, 85, 247, 0.15);
}

.panel-center.theme-tarot {
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 0 70px rgba(220, 38, 38, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Hide marketing drawings when tool is active */
.panel-center.is-active-tool .center-discipline-badge,
.panel-center.is-active-tool .center-main-icon {
  display: none !important;
}

.panel-center.is-active-tool {
  justify-content: flex-start;
  padding-top: 1rem;
  padding-left: 8px;
  padding-right: 8px;
  align-items: stretch;
  /* panel stretches children to full width */
}

/* Force tarot/astro content to use full panel width */
.panel-center.is-active-tool .center-content {
  align-items: stretch;
  width: 100%;
}

/* Manual wrap must also be full width */
.panel-center.is-active-tool .manual-wrap,
.panel-center.is-active-tool #tarot-section,
.panel-center.is-active-tool #horoscope-section {
  width: 100%;
}

.source-card:hover::before {
  opacity: 1;
}

.source-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--purple-bright);
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
  display: inline-block;
  background: rgba(255, 255, 255, 0.03);
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.source-title {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.source-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.results-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* =========================================
   WHEEL OF DESTINY TABS (3 ENGINES)
   ========================================= */

.engine-tabs {
  display: flex;
  justify-content: center;
  /* Center the tabs when there are fewer than 4 */
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  /* Allow wrapping on smaller screens */
}

.engine-tab {
  flex: 0 1 auto;
  /* Don't force them to stretch fully, let them size based on content or a set width */
  min-width: 160px;
  /* Give them a nice consistent base width */
  text-align: center;
  /* Center the text inside the stretched tab */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 12px 10px;
  /* Reduced side padding slightly to fit smaller screens */
  border-radius: 12px;
  /* Made corners less round for a cleaner grid look */
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  /* Slightly reduced letter spacing to fit 4 tabs */
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  /* Prevent text from breaking into multiple lines unless necessary */
}

/* Responsiveness for mobile screens */
@media (max-width: 768px) {
  .engine-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .engine-tab {
    flex: 1 1 calc(50% - 12px);
    /* 2x2 grid on mobile */
    min-width: unset;
    font-size: 0.75rem;
  }
}

.engine-tab:hover {
  background: rgba(168, 85, 247, 0.08);
  color: var(--text-primary);
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
}

.engine-tab.active {
  background: var(--purple-mid);
  color: #fff;
  border-color: var(--purple-bright);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.engine-panel {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  display: none;
}

.engine-panel.active {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.engine-panel.hidden {
  display: none;
}

.panel-header {
  text-align: center;
  margin-bottom: 30px;
}

.panel-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--purple-bright);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.panel-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================= */

.results-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.primary-grid {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .primary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .primary-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.secondary-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.secondary-grid>.num-card {
  width: 100%;
}

/* Staggered Entrance */
.results-grid>div:nth-child(1) {
  animation-delay: 0.1s;
}

.results-grid>div:nth-child(2) {
  animation-delay: 0.2s;
}

.results-grid>div:nth-child(3) {
  animation-delay: 0.3s;
}

.results-grid>div:nth-child(4) {
  animation-delay: 0.4s;
}

.results-grid>div:nth-child(5) {
  animation-delay: 0.5s;
}

.results-grid>div:nth-child(6) {
  animation-delay: 0.6s;
}

/* ---- Number Cards ---- */
.num-card {
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 24px 10px 24px;
  /* Exactly 10px from the bottom edge */
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  animation: revealUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  /* Ensures minimum distance between text and button */
  /* keep content horizontally centered */
}

.num-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.15);
}

.num-card.featured {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(251, 191, 36, 0.03));
  border: 1px solid var(--purple-mid);
  grid-column: span 1;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.1);
}

.num-card.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-bright), var(--gold), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderBeam 4s linear infinite;
  opacity: 0.5;
}

@keyframes borderBeam {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.num-card.featured .card-number {
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold-glow);
}

.num-card.small {
  padding: 20px 16px;
}

.num-card.small .card-number {
  font-size: 2rem;
}

.card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--purple-bright);
  opacity: 0.06;
  filter: blur(30px);
}

.card-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--purple-bright);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 20px var(--purple-glow);
}

.card-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: left;
}

/* ---- Karmic & Master ---- */
.karmic-section,
.master-section {
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.karmic-section {
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.master-section {
  background: rgba(245, 200, 66, 0.06);
  border: 1px solid var(--border-gold);
}

.karmic-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 12px;
}

.master-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.karmic-section p,
.master-section p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---- Lucky Section ---- */
.lucky-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 24px;
}

.lucky-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 28px;
  text-align: center;
  letter-spacing: 0.1em;
}

.lucky-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.lucky-item {
  text-align: center;
}

.lucky-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.lucky-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.lucky-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-dim), var(--purple-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  box-shadow: 0 0 12px var(--purple-glow);
}

.lucky-colors {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.lucky-color-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.lucky-day,
.lucky-stone {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--purple-bright);
  margin-top: 8px;
}

/* ---- Pinnacles ---- */
.pinnacles-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 24px;
}

.pinnacles-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: 0.1em;
}

.pinnacles-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}

.pinnacles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pinnacle-item {
  background: rgba(45, 212, 191, 0.06);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
}

.pinnacle-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--teal);
}

.pinnacle-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pinnacle-name {
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 600;
  margin-top: 4px;
}

/* ---- Time & Place Section ---- */
.time-place-section {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.06), rgba(168, 85, 247, 0.06));
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 24px;
}

.time-place-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 28px;
  text-align: center;
  letter-spacing: 0.1em;
}

.time-place-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.time-place-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}

.time-place-card:hover {
  border-color: var(--teal);
  background: rgba(45, 212, 191, 0.06);
  transform: translateY(-3px);
}

.tp-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.tp-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tp-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 14px;
}

.tp-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: left;
}

/* ---- Chart Section ---- */
.chart-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 24px;
  text-align: center;
}

.chart-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--blue);
  margin-bottom: 28px;
  letter-spacing: 0.1em;
}

#profileChart {
  max-width: 100%;
}

/* ---- Compatibility ---- */
.compat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-purple);
}

.compat-form {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}

.compat-person h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 16px;
  text-align: center;
}

.compat-person input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
  display: block;
  color-scheme: dark;
}

.compat-person input:focus {
  border-color: var(--purple-bright);
  background: rgba(168, 85, 247, 0.08);
}

.compat-person input::placeholder {
  color: var(--text-muted);
}

.compat-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.compat-symbol {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-dim), var(--purple-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  box-shadow: 0 0 20px var(--purple-glow);
}

.compat-result {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.compat-score-ring {
  position: relative;
  width: 200px;
  height: 200px;
}

.compat-score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.compat-percent {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--purple-bright);
}

.compat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compat-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
}

.compat-detail-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.compat-detail-item .label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.compat-detail-item .value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* ---- Guide ---- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-bright), var(--teal));
}

.guide-card:hover {
  border-color: var(--purple-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-purple);
}

.guide-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--purple-bright);
  margin-bottom: 8px;
}

.guide-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.guide-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.trait-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: var(--purple-bright);
}

.guide-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =========================================
   PREMIUM REPORT CHAPTERS
   ========================================= */

.premium-report {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.report-chapter {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple-mid);
  padding: 12px 16px 12px 18px;
  border-radius: var(--radius-md);
  position: relative;
  text-align: left;
}

.report-chapter:hover {
  background: var(--bg-card-hover);
  border-left-color: var(--purple-bright);
}

.chapter-badge {
  display: inline-block;
  background: var(--bg-deep);
  border: 1px solid var(--purple-mid);
  color: var(--gold);
  padding: 2px 9px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.chapter-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--purple-bright);
  margin: 2px 0 6px;
  letter-spacing: 0.04em;
}

.chapter-content {
  font-size: 0.9rem;
  line-height: 1.52;
  color: var(--text-secondary);
}

.chapter-content p {
  margin-bottom: 5px;
}

.chapter-content p:last-child {
  margin-bottom: 0;
}


/* ========================================= */

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: 60px 24px 40px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-tagline {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes numberPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  70% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.num-pop {
  animation: numberPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }

  .hero-wheel {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .pinnacles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compat-form {
    grid-template-columns: 1fr;
  }

  .compat-divider {
    display: none;
  }
}

@media (max-width: 600px) {

  .calculator-card,
  .compat-card,
  .lucky-section,
  .pinnacles-section {
    padding: 28px 20px;
  }

  .pinnacles-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav {
    display: none;
  }
}

/* ---- Paywall & Locks (Phase 4) ---- */
.locked {
  position: relative;
  overflow: hidden;
}

.locked>*:not(.lock-overlay) {
  filter: blur(8px) grayscale(50%);
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
  transition: filter 0.5s ease;
}

.lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(10, 5, 20, 0.6);
  z-index: 10;
  text-align: center;
  padding: 20px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.lock-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(234, 179, 8, 0.5));
}

.lock-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.lock-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.unlock-btn {
  background: linear-gradient(135deg, var(--gold), #b48505);
  color: #000;
  border: none;
  padding: 12px 30px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.4);
  transition: transform 0.2s;
}

.unlock-btn:hover {
  transform: scale(1.05);
}

/* Modal Payment styles */
#payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.payment-box {
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(234, 179, 8, 0.1);
}

.payment-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 12px 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================================
   FEATURES.JS – New Enhanced Styles
   ============================================================ */

/* ---- Card Expand Button & Panel ---- */
.expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  /* Force button to the bottom of the flex card */
  padding: 7px 16px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-bright);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.expand-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--purple-bright);
}

.expand-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.expand-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  opacity: 0;
  margin-top: 0;
  text-align: left;
}

.num-card.expanded .expand-panel {
  max-height: 1200px;
  opacity: 1;
  margin-top: 16px;
}

.expand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 800px) {
  .expand-grid {
    grid-template-columns: 1fr;
  }
}

.expand-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px 16px;
}

.affirmation-item {
  grid-column: 1 / -1;
  background: rgba(245, 200, 66, 0.05);
  border-color: rgba(245, 200, 66, 0.2);
}

.expand-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.expand-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.affirmation-text {
  font-style: italic;
  color: var(--gold);
  font-size: 0.88rem;
}

.full-modal-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.full-modal-btn:hover {
  background: rgba(168, 85, 247, 0.1);
  transform: translateY(-1px);
}

/* ---- Full Detail Modal ---- */
.detail-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 2, 20, 0.85);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.detail-modal-overlay.modal-visible {
  opacity: 1;
}

.detail-modal-box {
  background: linear-gradient(135deg, #1a0a3a, #0d0621);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 24px;
  padding: 48px;
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 80px rgba(168, 85, 247, 0.25);
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: rgba(236, 72, 153, 0.2);
  border-color: var(--pink);
  color: #fff;
}

.modal-header {
  text-align: center;
  border-bottom: 1px solid;
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.modal-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.modal-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.modal-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.modal-section {
  margin-bottom: 22px;
}

.modal-section h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-bright);
  margin-bottom: 10px;
}

.modal-section p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.affirmation-box {
  background: rgba(245, 200, 66, 0.06);
  border: 1px solid;
  border-radius: 12px;
  padding: 20px 24px;
}

.affirmation-quote {
  font-style: italic;
  color: var(--gold) !important;
  font-size: 1rem !important;
  text-align: center;
}

.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 28px;
  padding-top: 16px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---- Personal Reading Section ---- */
.pr-section {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.07), rgba(245, 200, 66, 0.04));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 24px;
}

.pr-section .section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: 0.08em;
}

.pr-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.6;
}

.pr-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pr-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.85;
  white-space: pre-wrap;
  width: 100%;
}

.pr-generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(245, 200, 66, 0.1);
  border: 1px solid rgba(245, 200, 66, 0.4);
  padding: 14px 28px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.pr-generate-btn:hover {
  background: rgba(245, 200, 66, 0.18);
  box-shadow: 0 0 30px rgba(245, 200, 66, 0.2);
  transform: translateY(-2px);
}

.print-report-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.print-report-btn:hover {
  background: rgba(45, 212, 191, 0.08);
  border-color: var(--teal);
  color: var(--teal);
}

/* ---- Responsive Design ---- */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
    gap: 60px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-wheel {
    transform: scale(0.9);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 20px;
  }

  .main-nav {
    display: none;
    /* Mobile menu needed if complex, keeping it simple for now */
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .calculator-card {
    padding: 30px 20px;
  }

  .pinnacles-grid {
    grid-template-columns: 1fr 1fr;
  }

  .time-place-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .num-card {
    padding: 20px;
  }

  .pinnacles-grid {
    grid-template-columns: 1fr;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* Safari-specific patches */
@supports (-webkit-hyphens:none) {

  .cta-btn,
  .calc-btn,
  .nav-link {
    /* Safari button rendering fix */
    appearance: none;
    -webkit-appearance: none;
  }

  .site-header {
    /* Safari backdrop-filter blur fix */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  input[type="date"],
  input[type="time"] {
    /* Safari date/time input centering */
    display: flex;
    align-items: center;
    min-height: 52px;
  }
}

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(12, 8, 32, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 20px 40px;
  z-index: 1000;
  display: none;
  /* Controlled by JS */
  animation: slideUp 0.5s ease;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ---- Print / PDF Styles ---- */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .site-header,
  .hero,
  .compat-section,
  .guide-section,
  .site-footer,
  .expand-btn,
  .full-modal-btn,
  .pr-generate-btn,
  .print-report-btn,
  .reset-btn,
  .calc-btn,
  .form-actions,
  canvas {
    display: none !important;
  }

  .num-card,
  .karmic-section,
  .master-section,
  .lucky-section,
  .pinnacles-section,
  .time-place-section,
  .pr-section {
    border: 1px solid #ccc !important;
    background: #fff !important;
    color: #000 !important;
    page-break-inside: avoid;
    margin-bottom: 16px !important;
  }

  .card-number,
  .card-name,
  .card-desc,
  .section-title,
  .card-label,
  .expand-label,
  .pr-text {
    color: #000 !important;
    text-shadow: none !important;
  }

  .resultsSection {
    display: block !important;
  }

  .expand-panel {
    max-height: none !important;
    opacity: 1 !important;
  }

  .hidden {
    display: none !important;
  }
}

/* ============================================================
   FERRARINI PLANET IMAGES — Floating Animation
   ============================================================ */

@keyframes planetFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes planetGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4));
  }

  50% {
    filter: drop-shadow(0 0 22px rgba(168, 85, 247, 0.9));
  }
}

.ferrarini-card-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.planet-external-wrap {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}

#planet-karma-placeholder {
  right: calc(100% + 30px);
  left: auto;
}

#planet-freq-placeholder {
  left: calc(100% + 30px);
  right: auto;
}


.planet-img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.planet-float-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: 50%;
  animation: planetFloat 5s ease-in-out infinite, planetGlow 5s ease-in-out infinite;
}

/* Responsiveness for Ferrarini */
@media (max-width: 1400px) {
  #planet-karma-placeholder {
    left: -140px;
  }

  #planet-freq-placeholder {
    right: -140px;
  }
}

@media (max-width: 1200px) {
  .planet-external-wrap {
    position: static;
    transform: none;
    margin-bottom: 10px;
    width: 120px;
    height: 120px;
  }

  .ferrarini-card-wrap {
    flex-direction: column;
    align-items: center;
  }

  #planet-karma-placeholder,
  #planet-freq-placeholder {
    left: auto;
    right: auto;
    order: -1;
  }
}

/* ---- Millman Archetypes UI ---- */
.mill-archetype {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 15px var(--gold-glow);
}

.mill-law {
  font-family: var(--font-body);
  color: var(--teal);
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 12px;
  opacity: 0.9;
}

.mill-desc-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   TRANZITE PLANETARE — STYLES
   ============================================================ */

/* Loading */
.transits-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px;
  color: rgba(160, 210, 255, 0.6);
  font-size: 0.9rem;
}

.transits-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(100, 200, 255, 0.15);
  border-top-color: #67e8f9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.transits-error {
  color: #f87171;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

.transits-empty {
  color: rgba(160, 200, 255, 0.5);
  text-align: center;
  padding: 30px;
  font-style: italic;
}

/* Today's Info Header */
.transits-meta {
  margin-bottom: 20px;
}

.transits-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(160, 220, 255, 0.7);
  margin-bottom: 14px;
}

.transits-date-icon {
  font-size: 1.2rem;
}

/* Sky Strip */
.transits-sky-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sky-planet-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, var(--chip-color) 10%, #0a1a3a);
  border: 1px solid color-mix(in srgb, var(--chip-color) 40%, transparent);
  border-radius: 20px;
  padding: 4px 10px 4px 6px;
}

.sky-planet-symbol {
  font-size: 1.1rem;
  color: var(--chip-color);
}

.sky-planet-info {
  font-size: 0.72rem;
  color: rgba(200, 230, 255, 0.75);
  line-height: 1.2;
}

/* Stats Bar */
.transits-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(100, 200, 255, 0.1);
}

.transit-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 60px;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stat-color);
  font-family: 'Cinzel', serif;
}

.stat-lbl {
  font-size: 0.68rem;
  color: rgba(170, 200, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Transit Cards Grid */
.transits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

/* Transit Card */
.transit-card {
  background: rgba(10, 20, 50, 0.7);
  border: 1px solid color-mix(in srgb, var(--tc-color) 25%, transparent);
  border-radius: 14px;
  padding: 16px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
}

.transit-card-visible {
  opacity: 1;
  transform: translateY(0);
}

.transit-card:hover {
  box-shadow: 0 4px 24px color-mix(in srgb, var(--tc-color) 20%, transparent);
}

/* High intensity cards get a left border accent */
.transit-intensity-high {
  border-left: 3px solid var(--asp-color);
}

.transit-intensity-mid {
  border-left: 3px solid var(--asp-color);
}

.transit-card-header {
  margin-bottom: 12px;
}

.transit-planets-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.transit-planet-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 10px;
  flex: 1;
  min-width: 110px;
}

.transit-planet-sym {
  font-size: 1.3rem;
  line-height: 1;
}

.transit-planet-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
}

.transit-planet-pos {
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.7);
}

.transit-aspect-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid;
  white-space: nowrap;
  flex-shrink: 0;
}

.transit-retro-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.68rem;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 6px;
  padding: 2px 8px;
}

.transit-card-body {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.transit-text {
  font-size: 0.85rem;
  color: rgba(186, 210, 240, 0.85);
  line-height: 1.65;
  margin: 0;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   FORECAST ENGINE — Prognoza Personalizată
═══════════════════════════════════════════════════════════════ */

/* Controls bar */
.forecast-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  margin-top: 8px;
}

.forecast-period-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.forecast-period-btn {
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.3);
  color: rgba(200, 170, 255, 0.7);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.03em;
}

.forecast-period-btn:hover {
  background: rgba(192, 132, 252, 0.22);
  color: #e9d5ff;
  border-color: rgba(192, 132, 252, 0.6);
}

.forecast-period-btn.active {
  background: rgba(192, 132, 252, 0.28);
  border-color: #c084fc;
  color: #f3e8ff;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.3);
}

/* Date control */
.forecast-date-control {
  min-width: 200px;
}

.forecast-date-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.forecast-date-input {
  background: rgba(15, 5, 40, 0.8);
  border: 1px solid rgba(192, 132, 252, 0.35);
  border-radius: 10px;
  color: #e9d5ff;
  padding: 8px 12px;
  font-size: 0.85rem;
  flex: 1;
  transition: border-color 0.2s;
}

.forecast-date-input:focus {
  border-color: #c084fc;
  outline: none;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.25);
}

.forecast-refresh-btn {
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  border: none;
  border-radius: 10px;
  color: #fff;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s;
}

.forecast-refresh-btn:hover {
  background: linear-gradient(135deg, #9333ea, #d8b4fe);
  box-shadow: 0 4px 16px rgba(192, 132, 252, 0.4);
  transform: translateY(-1px);
}

/* Loading */
.forecast-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 50px 20px;
  color: rgba(200, 170, 255, 0.6);
  font-size: 0.9rem;
}

.forecast-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(192, 132, 252, 0.15);
  border-top-color: #c084fc;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.forecast-error {
  color: #f87171;
  text-align: center;
  padding: 24px;
  font-size: 0.9rem;
}

/* Header with score */
.forecast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.forecast-period-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f3e8ff;
  font-family: 'Cinzel Decorative', serif;
  letter-spacing: 0.04em;
}

/* Energy score ring */
.forecast-score-ring {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}

.forecast-score-ring svg {
  width: 76px;
  height: 76px;
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 7;
}

.score-ring-fill {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dasharray 0.8s ease;
}

.forecast-score-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.forecast-score-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--score-color, #c084fc);
  line-height: 1;
}

.forecast-score-lbl {
  font-size: 0.7rem;
  color: rgba(200, 170, 255, 0.5);
  align-self: flex-end;
  padding-bottom: 3px;
}

/* Banner */
.forecast-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid color-mix(in srgb, var(--banner-color, #c084fc) 30%, transparent);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
}

.forecast-banner-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  line-height: 1;
}

.forecast-banner-title {
  font-size: 1rem;
  font-weight: 700;
  color: #e9d5ff;
  margin-bottom: 6px;
}

.forecast-banner-text p {
  font-size: 0.87rem;
  color: rgba(200, 180, 255, 0.75);
  line-height: 1.65;
  margin: 0;
}

/* 3-column grid */
.forecast-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

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

/* Cards */
.forecast-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(192, 132, 252, 0.18);
  border-radius: 14px;
  padding: 16px;
}

.forecast-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #c084fc;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

/* Numerology column */
.forecast-num-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.forecast-num-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 9px 12px;
}

.forecast-num-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.forecast-num-label {
  font-size: 0.7rem;
  color: rgba(200, 180, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.forecast-num-val {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.forecast-num-name {
  font-size: 0.75rem;
  color: rgba(220, 200, 255, 0.7);
}

.forecast-focus-block {
  margin-bottom: 12px;
}

.forecast-focus-row {
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(200, 180, 255, 0.75);
  padding: 4px 0;
}

.forecast-focus-row span {
  font-weight: 700;
}

.focus-do span {
  color: #4ade80;
}

.focus-avoid span {
  color: #fb923c;
}

.forecast-affirmation {
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(220, 200, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
  line-height: 1.6;
}

/* Transit column */
.forecast-transit-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.forecast-transits-mini {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.forecast-transit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 600;
}

.ftr-transit {
  white-space: nowrap;
}

.ftr-aspect {
  font-size: 0.72rem;
  opacity: 0.85;
}

.ftr-natal {
  font-size: 0.72rem;
}

.ftr-interp {
  font-size: 0.75rem;
  color: rgba(186, 210, 240, 0.6);
  font-style: italic;
  margin: 0 0 6px;
  line-height: 1.55;
  padding-left: 4px;
  border-left: 2px solid rgba(192, 132, 252, 0.3);
}

/* Days column */
.forecast-days-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.forecast-days-grid.days-month {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.forecast-day-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(var(--dc, 192, 132, 252), 0.2);
  border-radius: 9px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}

.days-month .forecast-day-chip {
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  text-align: center;
}

.forecast-day-chip.day-today {
  background: rgba(192, 132, 252, 0.12);
  border-color: rgba(192, 132, 252, 0.55);
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.2);
}

.forecast-day-chip.day-lucky {
  border-color: rgba(234, 179, 8, 0.55);
  background: rgba(234, 179, 8, 0.06);
}

.fdc-label {
  font-size: 0.75rem;
  color: rgba(200, 180, 255, 0.55);
  min-width: 64px;
}

.fdc-num {
  font-size: 0.95rem;
  font-weight: 800;
}

.fdc-name {
  font-size: 0.7rem;
  color: rgba(200, 180, 255, 0.55);
  flex: 1;
}

.days-month .fdc-label {
  font-size: 0.65rem;
  min-width: auto;
}

.days-month .fdc-name {
  font-size: 0.65rem;
}

.forecast-lucky-bar {
  margin-top: 12px;
  font-size: 0.78rem;
  color: rgba(234, 179, 8, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.forecast-lucky-bar span {
  font-weight: 700;
  color: #fbbf24;
}

/* Top transit full cards */
.forecast-top-transits {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: 14px;
  padding: 18px;
}

.forecast-full-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.forecast-full-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid color-mix(in srgb, var(--tc, #c084fc) 25%, transparent);
  border-left: 3px solid var(--ac, #c084fc);
  border-radius: 12px;
  padding: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.forecast-full-card.ffc-visible {
  opacity: 1;
  transform: translateY(0);
}

.ffc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ffc-planet {
  font-size: 0.9rem;
  font-weight: 700;
}

.ffc-aspect {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
}

.ffc-natal {
  font-size: 0.75rem;
}

.ffc-orb {
  font-size: 0.7rem;
  color: rgba(200, 180, 255, 0.4);
  margin-left: auto;
}

.ffc-text {
  font-size: 0.82rem;
  color: rgba(186, 210, 240, 0.75);
  font-style: italic;
  line-height: 1.65;
  margin: 0;
}

.retro-badge {
  display: inline-block;
  font-size: 0.65rem;
  background: rgba(255, 150, 80, 0.2);
  color: #fb923c;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 150, 80, 0.3);
}

/* ============================================================
   HOROSCOPE MODULE — Premium Astrological UI
   ============================================================ */
.discipline-center-logo {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.discipline-center-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.center-content .discipline-center-logo {
  filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.45));
}

.theme-astro .discipline-center-logo {
  filter: drop-shadow(0 0 25px rgba(6, 182, 212, 0.45));
}

.theme-tarot .discipline-center-logo {
  filter: drop-shadow(0 0 25px rgba(220, 38, 38, 0.45));
}

.horoscope-wrap,
.tarot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.horoscope-badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.horoscope-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.25rem;
  background: linear-gradient(135deg, #67e8f9, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.horoscope-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin: 0;
}

.horoscope-sign-display {
  text-align: center;
  flex-shrink: 0;
}

.horo-sign-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.horo-sign-name {
  color: #67e8f9;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Period Bar */
.horoscope-period-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.horo-period-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  background: rgba(6, 182, 212, 0.07);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s;
  font-family: inherit;
}

.horo-period-btn:hover {
  background: rgba(6, 182, 212, 0.18);
  color: #fff;
  transform: translateY(-1px);
}

.horo-period-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(59, 130, 246, 0.35));
  border-color: #67e8f9;
  color: #fff;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

/* Loader */
.horoscope-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.5);
}

.horo-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(6, 182, 212, 0.15);
  border-top-color: #67e8f9;
  animation: horoSpin 0.8s linear infinite;
}

@keyframes horoSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Energy Row */
.horo-energy-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.horo-energy-card,
.horo-moon-card,
.horo-period-label-card {
  background: rgba(6, 182, 212, 0.07);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}

.horo-energy-label {
  font-size: 0.78rem;
  color: #67e8f9;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.horo-energy-bar-wrap {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.horo-energy-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #06b6d4, #6366f1);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.horo-energy-score {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.horo-energy-score span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.horo-moon-card {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.horo-moon-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.horo-moon-phase {
  font-weight: 700;
  color: #a78bfa;
  font-size: 0.9rem;
}

.horo-moon-sign {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  margin: 2px 0;
}

.horo-moon-desc {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  line-height: 1.4;
}

.horo-period-label-card {
  text-align: center;
}

.horo-period-icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.horo-period-text {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.horo-sign-props {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.horo-sign-props span {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: #67e8f9;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.72rem;
}

/* Main Grid */
.horo-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.horo-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #67e8f9;
  font-weight: 700;
  margin: 0 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

/* Domain Cards */
.horo-domain-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
  transition: border-color 0.2s, background 0.2s;
}

.horo-domain-card:hover {
  background: rgba(6, 182, 212, 0.07);
  border-color: rgba(6, 182, 212, 0.25);
}

.horo-domain-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.horo-domain-icon {
  font-size: 1.1rem;
}

.horo-domain-label {
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
  flex: 1;
}

.horo-domain-stars {
  color: #facc15;
  font-size: 0.75rem;
}

.horo-domain-score {
  color: #67e8f9;
  font-size: 0.8rem;
  font-weight: 700;
}

.horo-domain-text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
}

.horo-domain-planet {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: rgba(103, 232, 249, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.4rem;
}

/* Transit Rows */
.horo-transit-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.horo-transit-row:last-child {
  border-bottom: none;
}

.horo-transit-planet {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  min-width: 80px;
  flex-shrink: 0;
}

.horo-transit-sign {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.horo-transit-aspect {
  font-size: 0.76rem;
  font-weight: 600;
}

.horo-transit-domain {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

/* Week Grid */
.horo-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.horo-week-day {
  background: rgba(6, 182, 212, 0.07);
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-radius: 12px;
  padding: 0.7rem 0.4rem;
  text-align: center;
}

.horo-wd-name {
  font-weight: 700;
  color: #67e8f9;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.horo-wd-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  margin: 2px 0 6px;
}

.horo-wd-bar {
  height: 50px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-bottom: 4px;
}

.horo-wd-bar>div {
  width: 100%;
  border-radius: 6px;
  transition: height 0.6s;
  min-height: 4px;
}

.horo-wd-score {
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
}

.horo-wd-moon {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 2px 0;
}

.horo-wd-tip {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.3;
  margin-top: 4px;
}

/* Phase / Quarter Cards */
.horo-phases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.horo-phase-card {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 1rem;
}

.horo-phase-days {
  font-size: 0.78rem;
  color: #a78bfa;
  font-weight: 700;
  margin-bottom: 4px;
}

.horo-phase-name {
  font-size: 0.92rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 4px;
}

.horo-phase-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

/* Bottom Row */
.horo-bottom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
}

.horo-aff-label {
  font-size: 0.82rem;
  color: #c4b5fd;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.horo-aff-text {
  font-style: italic;
  color: #111111;
  font-size: 1rem;
  line-height: 1.6;
}

.horo-lucky {
  flex-shrink: 0;
  text-align: right;
}

.horo-lucky-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.horo-lucky-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.horo-lucky-items span {
  font-size: 0.78rem;
  color: #e9d5ff;
}

/* Responsive */
@media (max-width: 900px) {
  .horo-energy-row {
    grid-template-columns: 1fr 1fr;
  }

  .horo-period-label-card {
    display: none;
  }

  .horo-main-grid {
    grid-template-columns: 1fr;
  }

  .horo-week-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .horo-bottom-row {
    grid-template-columns: 1fr;
  }

  .horo-lucky {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .horoscope-period-bar {
    gap: 0.3rem;
  }

  .horo-period-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .horo-energy-row {
    grid-template-columns: 1fr;
  }

  .horo-week-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Natal Form ── */
.horo-natal-form {
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1rem;
}

.horo-natal-label {
  font-size: 0.8rem;
  color: #67e8f9;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.horo-natal-label span {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.horo-natal-inputs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.horo-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.horo-input:focus {
  border-color: #67e8f9;
  background: rgba(6, 182, 212, 0.1);
}

.horo-input[type="date"] {
  width: 140px;
}

.horo-input[type="time"] {
  width: 100px;
}

.horo-input[type="text"] {
  flex: 1;
  min-width: 140px;
}

.horo-natal-btn {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(99, 102, 241, 0.3));
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #fff;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}

.horo-natal-btn:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.5), rgba(99, 102, 241, 0.5));
  transform: translateY(-1px);
}

/* ── Natal Section Header ── */
.horo-natal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 0.6rem;
  border-top: 1px solid rgba(6, 182, 212, 0.15);
  margin-top: 1rem;
}

.horo-natal-badge {
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ── Ascendent + MC ── */
.horo-asc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.horo-asc-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 14px;
  padding: 1rem;
}

.horo-asc-label {
  font-size: 0.72rem;
  color: #67e8f9;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.horo-asc-sign {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.horo-asc-deg {
  font-size: 0.8rem;
  color: #a78bfa;
  margin: 2px 0;
}

.horo-asc-desc {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
  margin-top: 4px;
}

/* ── 12 Houses Grid ── */
.horo-houses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.horo-house-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.6rem 0.5rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.horo-house-card:hover {
  background: rgba(6, 182, 212, 0.07);
  border-color: rgba(6, 182, 212, 0.2);
}

.horo-house-num {
  font-size: 0.7rem;
  color: #67e8f9;
  font-weight: 700;
  margin-bottom: 2px;
}

.horo-house-sign {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.horo-house-deg {
  font-size: 0.72rem;
  color: #a78bfa;
}

.horo-house-meaning {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 3px;
  line-height: 1.3;
}

/* ── Exact Aspects ── */
.horo-exact-aspects {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.horo-aspect-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}

.horo-asp-planets {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 4px;
}

.horo-asp-transit {
  font-weight: 700;
  color: #fff;
  font-size: 0.85rem;
}

.horo-asp-symbol {
  font-size: 1.1rem;
}

.horo-asp-natal {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}

.horo-asp-detail {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 3px;
}

.horo-asp-name {
  font-weight: 700;
  font-size: 0.8rem;
}

.horo-asp-orb {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
}

.horo-asp-interp {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

/* ── Natal Prompt ── */
.horo-natal-prompt {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.07), rgba(99, 102, 241, 0.07));
  border: 1px dashed rgba(6, 182, 212, 0.25);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  margin: 1rem 0;
}

.horo-np-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.horo-np-title {
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.horo-np-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .horo-asc-row {
    grid-template-columns: 1fr;
  }

  .horo-houses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .horo-houses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   TAROT MODULE — Premium Dark Mystical UI
   ============================================================ */
.tarot-wrap {
  padding: 0 0 2rem;
}

.tarot-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.tarot-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.2rem;
  background: linear-gradient(135deg, #fca5a5, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tarot-sub {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

.tarot-card-count {
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(252, 165, 165, 0.8);
  text-align: center;
  line-height: 1;
}

.tarot-card-count span {
  display: block;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Type Bar */
.tarot-type-bar {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tarot-type-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 7px 12px;
  border-radius: 50px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.06);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.22s;
  font-family: inherit;
}

.tarot-type-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fff;
  transform: translateY(-1px);
}

.tarot-type-btn.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(167, 139, 250, 0.3));
  border-color: #fca5a5;
  color: #fff;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.25);
}

.tarot-type-icon {
  font-size: 1rem;
}

.tarot-type-label {
  white-space: nowrap;
}

/* Partner Row */
.tarot-partner-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  margin-bottom: 0.8rem;
}

.tarot-partner-label {
  font-size: 0.82rem;
  color: #fca5a5;
  font-weight: 600;
}

.tarot-input-date,
.tarot-input-date:focus {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
}

.tarot-apply-btn {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(167, 139, 250, 0.35));
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* Shuffle Animation */
.tarot-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 1rem;
  color: rgba(255, 255, 255, 0.4);
  min-height: 350px;
}

.tarot-deck-shuffle {
  position: relative;
  width: 120px;
  height: 204px;
  /* 1:1.7 ratio */
  margin-bottom: 1rem;
  perspective: 1000px;
}

.shuffle-card {
  position: absolute;
  inset: 0;
  background: #0a051e url('assets/tarot_back.png') no-repeat center center;
  background-size: cover;
  border-radius: 8px;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transform-origin: center;
}

/* Create a stack effect */
.shuffle-card:nth-child(1) {
  transform: translateZ(0px);
  z-index: 10;
}

.shuffle-card:nth-child(2) {
  transform: translateZ(-2px) translateY(2px);
  z-index: 9;
}

.shuffle-card:nth-child(3) {
  transform: translateZ(-4px) translateY(4px);
  z-index: 8;
}

.shuffle-card:nth-child(4) {
  transform: translateZ(-6px) translateY(6px);
  z-index: 7;
}

.shuffle-card:nth-child(5) {
  transform: translateZ(-8px) translateY(8px);
  z-index: 6;
}

/* Shuffle Keyframes */
@keyframes deckShuffle {
  0% {
    transform: translateX(0) rotate(0);
    z-index: 10;
  }

  25% {
    transform: translateX(-60px) rotate(-5deg) translateZ(20px);
    z-index: 10;
  }

  50% {
    transform: translateX(0) rotate(0) translateZ(-10px);
    z-index: 1;
  }

  100% {
    transform: translateX(0) rotate(0);
    z-index: 1;
  }
}

@keyframes deckShuffleAlt {
  0% {
    transform: translateX(0) rotate(0);
    z-index: 10;
  }

  25% {
    transform: translateX(60px) rotate(5deg) translateZ(20px);
    z-index: 10;
  }

  50% {
    transform: translateX(0) rotate(0) translateZ(-10px);
    z-index: 1;
  }

  100% {
    transform: translateX(0) rotate(0);
    z-index: 1;
  }
}

.shuffling .shuffle-card:nth-child(odd) {
  animation: deckShuffle 1.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.shuffling .shuffle-card:nth-child(even) {
  animation: deckShuffleAlt 1.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-delay: 0.6s;
}

.tarot-loader p {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fca5a5;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
  animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes pulseText {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* ── 3D Card ── */
.tarot-card {
  perspective: 800px;
  cursor: pointer;
}

.tarot-card.card-large {
  width: 160px;
  height: 272px;
  flex-shrink: 0;
}

.tarot-card.card-small {
  width: 95px;
  height: 161px;
  margin: auto;
}

.tarot-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tarot-card-inner.flipped {
  transform: rotateY(180deg);
}

.tarot-card-front,
.tarot-card-back {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}


.tarot-card-back {
  background: #0a051e url('assets/tarot_back.png') no-repeat center center;
  background-size: cover;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6), 0 4px 15px rgba(0, 0, 0, 0.5);
  border: none;
}

.tarot-card-back-pattern {
  font-size: 3rem;
  opacity: 0.15;
  text-shadow: 0 0 20px rgba(252, 165, 165, 0.5);
}

.tarot-card-front {
  transform: rotateY(180deg);
  padding: 8px 6px;
}

.tarot-card-front.is-reversed {
  transform: rotateY(180deg);
}

.tarot-card-front.is-reversed .tcf-art-area {
  transform: rotate(180deg);
}

.tarot-card-front-num {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.tarot-card-front-icon {
  font-size: 1.6rem;
}

.tarot-card-front-name {
  font-size: 0.62rem;
  color: #fff;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  padding: 0 4px;
}

.tarot-rev-indicator {
  font-size: 0.7rem;
  color: #f87171;
  font-weight: 700;
}

/* Reversed badge */
.tarot-reversed-badge {
  background: rgba(248, 113, 113, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #f87171;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
  margin-left: 6px;
}

/* ── Daily Card Layout ── */


.tarot-daily-label {
  font-size: 0.8rem;
  color: #fca5a5;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.tarot-daily-center {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.tarot-card-name-big {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.2rem;
}

.tarot-card-num-label {
  font-size: 0.78rem;
  color: #a78bfa;
  margin-bottom: 0.6rem;
}

.tarot-keywords {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.tarot-keywords span {
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: #c4b5fd;
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 0.72rem;
}

.tarot-interpretation {
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid rgba(252, 165, 165, 0.4);
  border-radius: 0 8px 8px 0;
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
}

.tarot-interp-text {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.tarot-domain-interps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.tarot-domain-row {
  display: flex;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

.tarot-domain-row strong {
  color: #fff;
}

.tarot-advice {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(167, 139, 250, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 10px;
  padding: 0.8rem;
}

.tarot-adv-title {
  font-size: 0.72rem;
  color: #fca5a5;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.tarot-adv-text {
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.tarot-meta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.tarot-meta-row span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2px 8px;
}

/* ── Spread Layouts ── */
.tarot-spread-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fca5a5;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tarot-spread-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.tarot-spread-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  margin-bottom: 2rem;
}

.tarot-deck-visual {
  position: relative;
  width: 80px;
  /* Match card-small */
  height: 136px;
  /* Match card-small */
  margin: 0 auto;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
  overflow: hidden;
}

.tarot-deck-visual:hover {
  transform: scale(1.05);
}

/* Shuffle animation container */
.tarot-deck-visual .shuffle-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shuffle-particle {
  position: absolute;
  width: 40px;
  height: 60px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  opacity: 0;
}

@keyframes shuffle-fly {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translate(var(--tx), var(--ty)) rotate(var(--tr));
    opacity: 0;
  }
}

/* Controls near deck */
.tarot-deck-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  width: 100%;
}

.tarot-deck-btns-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.tarot-deck-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  gap: 5px;
}

.tarot-deck-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #f9a8d4;
  transform: translateY(-2px);
}

.tarot-deck-btn i {
  font-size: 0.85rem;
}

/* Info box explaining the system */
.tarot-how-info {
  width: 100%;
  max-width: 320px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(249, 168, 212, 0.3);
  border-radius: 12px;
  padding: 12px;
  margin-top: 5px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  display: none;
  animation: slideInDown 0.3s ease;
  text-align: left;
}

.tarot-how-info.active {
  display: block;
}

.tarot-how-info h5 {
  margin: 0 0 6px 0;
  color: #f9a8d4;
  font-size: 0.85rem;
  font-weight: 600;
}

.tarot-how-info p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .tarot-deck-visual {
    width: 140px;
    height: 238px;
  }
}

.tarot-deck-visual.pulse-deck {
  animation: deckVibrate 2s infinite ease-in-out;
}

@keyframes deckVibrate {
  0% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 5px rgba(167, 139, 250, 0.2));
  }

  25% {
    transform: scale(1.02) rotate(1deg);
    filter: drop-shadow(0 0 15px rgba(167, 139, 250, 0.6));
  }

  50% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 5px rgba(167, 139, 250, 0.2));
  }

  75% {
    transform: scale(1.02) rotate(-1deg);
    filter: drop-shadow(0 0 15px rgba(167, 139, 250, 0.6));
  }

  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 5px rgba(167, 139, 250, 0.2));
  }
}

.tarot-deck-visual:hover .tarot-card-back {
  transform: translate(-5px, -5px) rotate(-5deg);
}

@media (min-width: 992px) {
  .tarot-deck-visual {
    display: block;
  }
}

.tarot-deck-visual .tarot-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}

.tarot-deck-visual .tarot-card-back:nth-child(1) {
  transform: translate(0px, 0px) rotate(-2deg);
}

.tarot-deck-visual .tarot-card-back:nth-child(2) {
  transform: translate(-2px, -3px) rotate(-1deg);
}

.tarot-deck-visual .tarot-card-back:nth-child(3) {
  transform: translate(-4px, -6px) rotate(0deg);
}

.tarot-deck-visual .tarot-card-back:nth-child(4) {
  transform: translate(-6px, -9px) rotate(1deg);
}

.tarot-deck-visual .tarot-card-back:nth-child(5) {
  transform: translate(-8px, -12px) rotate(2deg);
}

.tarot-deck-visual:hover .tarot-card-back:nth-child(1) {
  transform: translate(3px, 3px) rotate(-5deg);
}

.tarot-deck-visual:hover .tarot-card-back:nth-child(5) {
  transform: translate(-10px, -15px) rotate(4deg);
}

.standard-layout {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.zodiac-layout {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
  justify-items: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 500px) {
  .zodiac-layout {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }
}

.horseshoe-layout {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  justify-items: center;
  max-width: 1000px;
  margin: 1.5rem auto;
  align-items: start;
}

.horseshoe-layout .tarot-spread-slot:nth-child(1) {
  margin-top: 120px;
  transform: rotate(-8deg);
}

.horseshoe-layout .tarot-spread-slot:nth-child(2) {
  margin-top: 60px;
  transform: rotate(-4deg);
}

.horseshoe-layout .tarot-spread-slot:nth-child(3) {
  margin-top: 15px;
  transform: rotate(-2deg);
}

.horseshoe-layout .tarot-spread-slot:nth-child(4) {
  margin-top: 0px;
}

.horseshoe-layout .tarot-spread-slot:nth-child(5) {
  margin-top: 15px;
  transform: rotate(2deg);
}

.horseshoe-layout .tarot-spread-slot:nth-child(6) {
  margin-top: 60px;
  transform: rotate(4deg);
}

.horseshoe-layout .tarot-spread-slot:nth-child(7) {
  margin-top: 120px;
  transform: rotate(8deg);
}

@media (max-width: 800px) {
  .horseshoe-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .horseshoe-layout .tarot-spread-slot {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

.chakra-compat-layout-new {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  margin: 2rem auto;
  width: 100%;
}

.chakra-compat-row-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

@media (min-width: 1025px) {
  .chakra-compat-row-group {
    flex-wrap: nowrap;
  }
}

.chakra-compat-pair-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  gap: 10px;
  min-width: 180px;
}

.ck-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 3px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ck-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.ck-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ck-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.ck-desc-text {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chakra-compat-pair-cards {
  display: flex;
  gap: 10px;
}

@media (max-width: 1024px) {
  .chakra-compat-row-group {
    gap: 10px;
  }

  .chakra-compat-pair-box {
    padding: 8px;
    min-width: 160px;
  }

  .chakra-compat-pair-cards {
    gap: 8px;
  }
}

.tarot-spread-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  perspective: 1000px;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tarot-spread-slot.undrawn {
  opacity: 0;
  transform: scale(0.6) translateY(-50px);
  pointer-events: none;
}

.tarot-spread-slot:hover {
  transform: translateY(-4px);
}

.tarot-slot-position {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  font-weight: 600;
  max-width: 80px;
  line-height: 1.2;
}

.tarot-slot-pos-desc {
  font-size: 0.58rem;
  color: rgba(255, 200, 150, 0.5);
  text-align: center;
  font-style: italic;
  max-width: 90px;
  line-height: 1.3;
  margin-top: 2px;
}

.celtic-layout {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  /* On mobile they will stack elegantly */
}

/* Hide text from table for Celtic Layout */
.celtic-layout .tarot-slot-position,
.celtic-layout .tcf-bottom-bar,
.celtic-layout .tcf-top-bar {
  display: none !important;
}

/* Show position labels for the 2 overlapping center cards */
.celtic-cross-section .tarot-spread-slot:nth-child(1) .tarot-slot-position,
.celtic-cross-section .tarot-spread-slot:nth-child(2) .tarot-slot-position {
  display: block !important;
}

.celtic-cross-section {
  display: grid;
  grid-template-columns: 110px 110px 110px 110px;
  grid-template-rows: repeat(4, auto);
  column-gap: 2rem;
  row-gap: 1rem;
  justify-content: center;
  justify-items: center;
  align-items: center;
  overflow: visible;
}

.celtic-staff-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  padding-left: 0;
}

.celtic-cross-section .tarot-spread-slot:nth-child(1) {
  grid-area: 2 / 2 / 4 / 3;
  z-index: 1;
  position: relative;
}

.celtic-cross-section .tarot-spread-slot:nth-child(1) .tarot-slot-position {
  position: absolute;
  top: -30px;
  width: 200%;
  text-align: center;
}

.celtic-cross-section .tarot-spread-slot:nth-child(2) {
  grid-area: 2 / 3 / 4 / 4;
  position: relative;
  overflow: visible;
  justify-content: center;
  align-items: center;
  align-self: center;
  margin: 0 0.2rem;
}

/* Card 1 (now col 3, between center and right) — text on right */
.celtic-cross-section .tarot-spread-slot:nth-child(2) .cross-text-right {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 5;
}

/* Card 1 is rotated 90° — lying horizontal */
.celtic-cross-section .tarot-spread-slot:nth-child(2) .tarot-card {
  transform: rotate(-90deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.celtic-cross-section .tarot-spread-slot:nth-child(3) {
  grid-area: 4 / 2 / 5 / 3;
  /* Bottom - Baza */
  transform: translateY(20px);
  position: relative;
  overflow: visible;
}

/* Card 2 (bottom, data-idx=2) — text block absolutely to the RIGHT */
.celtic-cross-section .tarot-spread-slot:nth-child(3) .cross-text-right {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 5;
}

.celtic-cross-section .tarot-spread-slot:nth-child(4) {
  grid-area: 2 / 1 / 4 / 2;
  /* Left - Trecut */
}

.celtic-cross-section .tarot-spread-slot:nth-child(5) {
  grid-area: 1 / 2 / 2 / 3;
  /* Top - Viitor Posibil */
  flex-direction: column-reverse;
  align-items: center;
  transform: translateY(-20px);
  position: relative;
  overflow: visible;
}

/* Card 4 (top) — text block positioned absolutely to the RIGHT */
.celtic-cross-section .tarot-spread-slot:nth-child(5) .cross-text-right {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 5;
}

/* Text inside the right-block: keep original style, left-aligned */
.cross-text-right .tarot-slot-position {
  text-align: left !important;
  white-space: normal !important;
  max-width: 100px !important;
}
.cross-text-right .tarot-slot-pos-desc {
  text-align: left !important;
  white-space: normal !important;
  max-width: 100px !important;
}
.cross-card-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-align: left !important;
  max-width: 100px;
  white-space: normal;
  word-break: break-word;
  margin-bottom: 2px;
}

.celtic-cross-section .tarot-spread-slot:nth-child(6) {
  grid-area: 2 / 4 / 4 / 5;
  /* Right - Viitor Apropiat */
}

.celtic-staff-section .tarot-spread-slot {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  width: 100%;
  min-height: 80px;
}

.staff-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 110px;
  flex-shrink: 0;
  text-align: left;
  gap: 2px;
}

.celtic-staff-section .tarot-spread-slot .tarot-slot-position {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}

.celtic-staff-section .tarot-spread-slot .tarot-slot-pos-desc {
  font-size: 0.55rem;
  color: rgba(255, 200, 150, 0.45);
  font-style: italic;
  line-height: 1.2;
}

.celtic-staff-section .tarot-spread-slot .tarot-encyc-card-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  margin-top: 3px;
}

.celtic-staff-section .tarot-spread-slot .tarot-card {
  flex-shrink: 0;
}

/* Expanded card */
.tarot-expanded-card {
  background: rgba(10, 0, 20, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  padding: 1.2rem;
  margin-top: 1rem;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.tarot-exp-inner {
  position: relative;
}

.tarot-exp-close {
  position: absolute;
  right: 0;
  top: 0;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}

.tarot-exp-position {
  font-size: 0.78rem;
  color: #a78bfa;
  margin-bottom: 0.8rem;
  padding-right: 80px;
}

.tarot-exp-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
  align-items: flex-start;
}

.tarot-exp-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.tarot-exp-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.tarot-exp-sub {
  font-size: 0.78rem;
  color: #a78bfa;
  margin-bottom: 4px;
}

.tarot-exp-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.tarot-encyc-wrap {
  display: flex;
  gap: 20px;
  height: 80vh;
  overflow: hidden;
  position: relative;
  padding: 10px;
}

.tarot-encyc-grid-area {
  flex: 1;
  overflow-y: auto;
  padding-right: 15px;
  scrollbar-width: thin;
  scrollbar-color: var(--purple-mid) transparent;
}

.tarot-major-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .tarot-major-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  }
}

.tarot-encyc-card {
  background: linear-gradient(160deg, var(--card-color, #1a1a3e), #0d0d1a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.6rem 0.4rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.tarot-encyc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(252, 165, 165, 0.3);
}

.tarot-ec-icon {
  font-size: 1.3rem;
}

.tarot-ec-num {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.4);
}

.tarot-ec-name {
  font-size: 0.65rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  margin: 2px 0;
}

.tarot-ec-planet {
  font-size: 0.58rem;
  color: rgba(167, 139, 250, 0.7);
}

.tarot-minor-suits {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}



.tarot-suit-title {
  font-size: 0.78rem;
  color: #fca5a5;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.tarot-suit-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
}

@media (max-width: 600px) {
  .tarot-suit-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  }
}

.tarot-mini-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 4px;
  text-align: center;
  cursor: pointer;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s;
}

.tarot-mini-card:hover {
  border-color: rgba(252, 165, 165, 0.3);
  color: #fff;
}

.tarot-mc-name {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.35);
}

.tarot-encyc-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.tarot-encyc-card-wrapper:hover {
  transform: translateY(-5px);
}

.tarot-encyc-card-name {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-weight: 500;
  line-height: 1.2;
}

.all-cards-minor {
  grid-template-columns: repeat(7, 1fr);
}

@media (max-width: 600px) {
  .all-cards-minor {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  }
}

/* Modal — inline sticky panel that fits within its container */
/* Modal — now an inline element that appears below the clicked card row in the grid */
/* Side Panel Details */
.tarot-side-panel {
  flex: 0 0 350px;
  background: rgba(10, 5, 25, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 16px;
  padding: 20px;
  height: 100%;
  overflow-y: auto;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  display: none;
  /* Shown on click */
}

@media (max-width: 1200px) {
  .tarot-encyc-wrap {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .tarot-side-panel {
    flex: none;
    width: 100%;
    margin-top: 20px;
    height: auto;
  }

  .tarot-encyc-grid-area {
    height: auto;
    overflow: visible;
  }
}

.tarot-modal-inner {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  max-width: 100%;
  width: 100%;
  margin-bottom: 0;
  position: relative;
  box-shadow: none;
  transition: opacity 0.35s ease, transform 0.35s ease-out;
  opacity: 1;
  transform: translateY(0);
}

.tarot-modal-inner.updating {
  opacity: 0;
  transform: translateY(12px);
}

.tarot-modal-flex {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
}

.tarot-modal-left {
  flex: 0 0 240px;
  display: flex;
  justify-content: center;
}

.tarot-modal-left .tarot-card.card-large {
  width: 210px;
  height: 357px;
}

.tarot-modal-right {
  flex: 1;
  text-align: left;
  min-width: 0;
  max-height: 85vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.tarot-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 8px;
  padding: 5px 14px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  z-index: 10;
  transition: background 0.2s;
}

.tarot-modal-close:hover {
  background: rgba(239, 68, 68, 0.4);
}

.tarot-modal-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 0.3rem;
}

.tarot-modal-num {
  font-size: 0.85rem;
  color: #a78bfa;
  margin-bottom: 0.3rem;
}

.tarot-modal-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem;
}

.tarot-modal-section {
  margin-bottom: 0.8rem;
}

.tarot-ms-title {
  font-size: 0.72rem;
  color: #fca5a5;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.tarot-modal-section p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  margin: 0;
}

/* Responsive */
@media (max-width: 700px) {
  .tarot-modal-flex {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
  }

  .tarot-modal-right {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .tarot-major-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  }
}

/* ============================================================
   MANUAL TAROT READING MODULE
   ============================================================ */
.manual-wrap {
  padding-bottom: 1rem;
}

.manual-header {
  margin-bottom: 0.8rem;
}

.manual-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fca5a5;
  margin-bottom: 0.2rem;
}

.manual-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

/* Layout preset buttons */
.manual-layout-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.8rem;
}

.manual-layout-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
}

.manual-layout-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.72rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.manual-layout-btn.active,
.manual-layout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #fca5a5;
  color: #fff;
}

/* Shuffle & Reveal action buttons */
.manual-shuffle-btn,
.manual-reveal-btn {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(109, 40, 217, 0.15));
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: #c4b5fd;
  border-radius: 10px;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}

.manual-shuffle-btn:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(109, 40, 217, 0.35));
  border-color: #a78bfa;
  color: #fff;
  transform: scale(1.04);
}

.manual-reveal-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.12));
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.manual-reveal-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.45), rgba(5, 150, 105, 0.3));
  border-color: #34d399;
  color: #fff;
  transform: scale(1.04);
}

/* Manual header — flex layout */
.manual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* Face-down card back */
.manual-card-back {
  width: 100%;
  aspect-ratio: 2/3.5;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  border-radius: 10px;
  border: 2px solid rgba(139, 92, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.mdc-facedown .manual-card-back:hover {
  transform: scale(1.05);
}

.mdc-facedown {
  cursor: default;
}

/* Selected tray */
.manual-tray-label {
  font-size: 0.75rem;
  color: #fca5a5;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.manual-tray {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: 60px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 0.6rem;
  margin-bottom: 0.7rem;
  align-items: flex-start;
}

.manual-tray-empty {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.82rem;
  align-self: center;
  width: 100%;
  text-align: center;
}

.manual-tray-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(167, 139, 250, 0.12));
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
  min-width: 70px;
  text-align: center;
}

.manual-tc-position {
  font-size: 0.6rem;
  color: #fca5a5;
  font-weight: 700;
  text-transform: uppercase;
}

.manual-tc-icon {
  font-size: 1.1rem;
}

.manual-tc-name {
  font-size: 0.62rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}

.manual-tc-rev {
  margin-top: 3px;
}

.manual-rev-btn {
  font-size: 0.6rem;
  border-radius: 6px;
  padding: 2px 7px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: all 0.15s;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: #4ade80;
}

.manual-rev-btn.rev-active {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.35);
  color: #f87171;
}

.manual-remove-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  background: rgba(239, 68, 68, 0.8);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Interpret buttons */
.manual-interpret-btn {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(167, 139, 250, 0.4));
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fff;
  border-radius: 10px;
  padding: 9px 22px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  margin-right: 0.5rem;
}

.manual-interpret-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.manual-clear-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}

/* Search + filter */
.manual-search-row {
  margin-bottom: 0.7rem;
}

.manual-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}

.manual-search-input:focus {
  border-color: rgba(239, 68, 68, 0.4);
}

.manual-suit-filters {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.manual-suit-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.72rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.manual-suit-btn.active,
.manual-suit-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* Deck grid */
.manual-deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.manual-deck-grid::-webkit-scrollbar {
  width: 4px;
}

.manual-deck-grid::-webkit-scrollbar-track {
  background: transparent;
}

.manual-deck-grid::-webkit-scrollbar-thumb {
  background: rgba(239, 68, 68, 0.3);
  border-radius: 4px;
}

.manual-deck-card-wrap {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.manual-deck-card-wrap:hover:not(.mdc-disabled) {
  transform: translateY(-5px) scale(1.05);
  z-index: 10;
}

.mdc-selected .tarot-card-front,
.mdc-selected .tarot-card-back {
  border-color: #4ade80 !important;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}

.mdc-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

.mdc-check-overlay {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #4ade80;
  color: #000;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
  z-index: 15;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border: 2px solid #0a051e;
  animation: mdcScaleIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes mdcScaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.mdc-check {
  position: absolute;
  top: 2px;
  right: 4px;
  color: #4ade80;
  font-size: 0.7rem;
  font-weight: 900;
}

/* Interpretation panel */
.manual-interp-wrap {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(239, 68, 68, 0.2);
}

.manual-interp-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fca5a5;
  margin-bottom: 1rem;
  text-align: center;
}

.manual-interp-cards {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.manual-result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.12);
  border-radius: 14px;
  padding: 1rem;
}

.mrc-header {
  margin-bottom: 0.5rem;
}

.mrc-pos {
  font-size: 0.7rem;
  color: #fca5a5;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mrc-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mrc-sub {
  font-size: 0.72rem;
  color: #a78bfa;
  margin-top: 2px;
}

.mrc-interp {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 0 8px 8px 0;
  padding: 0.6rem 0.8rem;
  margin: 0.4rem 0;
}

/* Summary */
.manual-summary {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(167, 139, 250, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 12px;
  padding: 1rem;
}

.manual-summary-title {
  font-size: 0.78rem;
  color: #fca5a5;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.manual-summary-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
  .manual-deck-grid {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  }

  .manual-tray-card {
    min-width: 60px;
  }
}

/* ============================================================
   TAROT CARD — Classic Illustration Style (Rider-Waite Look)
   ============================================================ */

/* Override and standardize card sizes for proper tarot proportions (1:1.7 ratio) */
.tarot-card.card-large {
  width: 160px;
  height: 272px;
  flex-shrink: 0;
  cursor: pointer;
}

.tarot-card.card-small {
  width: 95px;
  height: 161px;
  margin: auto;
  cursor: pointer;
}

/* Larger cards specifically for Tiraj Manual */
.is-manual-draw .tarot-card.card-small {
  width: 95px;
  height: 161px;
}

.is-manual-draw .tarot-card.card-large {
  width: 160px;
  height: 272px;
}

/* ── Card Back — Ornate Tarot Style ── */
.tarot-card-back {
  background: #0a051e url('assets/tarot_back.png') no-repeat center center;
  background-size: cover;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  backface-visibility: hidden;
}

.tcb-outer-border {
  position: absolute;
  inset: 4px;
  border-radius: 7px;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
}

.tcb-inner-border {
  position: absolute;
  inset: 8px;
  border-radius: 5px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: repeating-linear-gradient(45deg,
      rgba(212, 175, 55, 0.03) 0px,
      rgba(212, 175, 55, 0.03) 1px,
      transparent 1px,
      transparent 10px);
}

.tcb-center-motif {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(212, 175, 55, 0.35);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  z-index: 2;
}

.tcb-diagonal-1 {
  position: absolute;
  inset: 12px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  transform: rotate(45deg);
}

.tcb-diagonal-2 {
  position: absolute;
  inset: 12px;
  border-left: 1px solid rgba(212, 175, 55, 0.15);
  border-right: 1px solid rgba(212, 175, 55, 0.15);
  transform: rotate(45deg);
}

/* ── Card Front — Gold Frame ── */
.tarot-card-front {
  background: #f5eedc;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), inset 0 0 0 3px rgba(212, 175, 55, 0.9);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
}

.tcf-gold-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-radius: 9px;
  background: #0a051e;
  overflow: hidden;
}

/* Inner decorative line */
.tcf-gold-frame::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 6px;
  pointer-events: none;
  z-index: 10;
}

.tcf-top-bar {
  background: linear-gradient(180deg, #d4af37, #b8962e);
  color: #fff;
  font-size: 0.45rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.12em;
  padding: 1px 0;
  min-height: 10px;
  font-family: Georgia, serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tcf-art-area {
  flex: 1;
  background: #e8dfc8;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top: 1px solid rgba(212, 175, 55, 0.4);
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}

/* Suit Specific Themes */
.suit-cupe .tcf-art-area, .suit-cups .tcf-art-area {
  background: radial-gradient(circle, #4d1010 0%, #1a0505 100%);
}

.suit-cupe .tcf-fallback-art, .suit-cups .tcf-fallback-art {
  background: transparent;
}

.suit-cupe .suit-svg, .suit-cups .suit-svg {
  filter: drop-shadow(0 0 10px rgba(255, 77, 77, 0.4));
}

.suit-bete .tcf-art-area, .suit-wands .tcf-art-area {
  background: radial-gradient(circle, #0d2b14 0%, #051408 100%);
}

.suit-bete .tcf-fallback-art, .suit-wands .tcf-fallback-art {
  background: transparent;
}

.suit-bete .suit-svg, .suit-wands .suit-svg {
  filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.4));
}

.suit-spada .tcf-art-area, .suit-swords .tcf-art-area {
  background: radial-gradient(circle, #101e4d 0%, #05081a 100%);
}

.suit-spada .tcf-fallback-art, .suit-swords .tcf-fallback-art {
  background: transparent;
}

.suit-spada .suit-svg, .suit-swords .suit-svg {
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.4));
}

.suit-monede .tcf-art-area, .suit-pentacles .tcf-art-area {
  background: radial-gradient(circle, #4d3a10 0%, #1a1405 100%);
}

.suit-monede .tcf-fallback-art, .suit-pentacles .tcf-fallback-art {
  background: transparent;
}

.suit-monede .suit-svg, .suit-pentacles .suit-svg {
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.4));
}

.tcf-rws-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tcf-fallback-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #e8dfc8, #d4c9a8);
  flex-direction: column;
  gap: 3px;
}

.suit-svg {
  width: 55%;
  height: 70%;
  max-width: 38px;
}

.card-big-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.tcf-bottom-bar {
  background: linear-gradient(0deg, #d4af37, #b8962e);
  min-height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px 3px;
  flex-shrink: 0;
}

.tcf-bottom-bar span {
  color: #fff;
  font-size: 0.42rem;
  font-weight: 900;
  text-align: center;
  line-height: 1.1;
  font-family: Georgia, serif;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

.tcf-rev-ribbon {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  font-size: 0.45rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 4px;
  z-index: 5;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* Proportional scaling for Large card */
.card-large .tcf-gold-frame {
  border-width: 1.5px;
  border-radius: 12px;
}

.card-large .tcf-gold-frame::after {
  inset: 6px;
  border-width: 1.5px;
  border-radius: 9px;
}

.card-large .tcf-top-bar {
  font-size: 0.7rem;
  min-height: 18px;
}

.card-large .tcf-bottom-bar {
  min-height: 21px;
}

.card-large .tcf-bottom-bar span {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
}

.card-large .card-big-icon {
  font-size: 3rem;
}

.card-large .suit-svg {
  max-width: 55px;
}

.card-large .tcf-rev-ribbon {
  bottom: 26px;
  font-size: 0.65rem;
  padding: 2px 10px;
}

/* Full images in Tiraj Manual */
.manual-deck-card-wrap .tcf-rws-img {
  display: block;
}


/* Card Zoom Overlay */
.tarot-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tarot-zoom-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.tarot-card-inner.zoomed {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(2.8) rotateY(0deg) !important;
  max-height: 85vh;
  z-index: 99999 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(251, 191, 36, 0.3) !important;
  margin: 0 !important;
  cursor: zoom-out !important;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s !important;
}

@media (max-width: 600px) {
  .tarot-card-inner.zoomed {
    transform: translate(-50%, -50%) scale(2.2) rotateY(0deg) !important;
  }
}

/* Zoom Clone Wrapper Style */
.zoomed-clone-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(2.8);
  width: 140px;
  height: 238px;
  background: #e6dfc8;
  /* Match card base color */
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(251, 191, 36, 0.25);
  padding: 0;
  /* Wrapper size is exact, frame handles internal padding */
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 99999;
}

.zoomed-clone-wrapper .tarot-card {
  width: 100%;
  height: 100%;
}

.zoomed-clone-wrapper .tcf-gold-frame {
  cursor: zoom-out !important;
  height: 100%;
  border-width: 2px;
}

@media (max-width: 800px) {
  .zoomed-clone-wrapper {
    transform: translate(-50%, -50%) scale(2.4);
  }
}

@media (max-width: 500px) {
  .zoomed-clone-wrapper {
    transform: translate(-50%, -50%) scale(2.0);
  }
}

/* --- Manual Draw UI Enhancement --- */
.is-manual-draw .tarot-card.card-small {
  width: 120px;
  height: 204px;
  /* Maintain 1.7 ratio: 120 * 1.7 = 204 */
}

/* Ensure no mirroring on static fronts */
.tarot-card-front[style*="transform:none"] {
  transform: none !important;
}

/* --- Tarot Spread Interpretations --- */
.tarot-spread-interpretations {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tarot-interp-block {
  background: rgba(30, 20, 50, 0.4);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateY(10px);
}

.tarot-interp-block.revealed {
  opacity: 1;
  transform: none;
  background: rgba(45, 20, 80, 0.5);
  border-color: rgba(168, 85, 247, 0.4);
}

.tarot-interp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tarot-interp-pos {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(168, 85, 247, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.tarot-interp-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
}

.tarot-interp-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* --- Manual Draw Column Layout --- */
.manual-deck-column-view {
  margin-top: 1.5rem;
}

.manual-wrap {
  display: flex;
  gap: 0;
  height: auto;
  min-height: 60vh;
  overflow: visible;
  width: 100%;
}

.manual-main-area {
  flex: 1;
  width: 100%;
  min-width: 0;
  overflow-y: visible;
  padding-right: 8px;
}

.manual-deck-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 40px;
}

.manual-suit-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px;
}

.manual-section-header {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(253, 224, 71, 0.1);
}

.manual-section-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.manual-deck-card-wrap {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.manual-card-name-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  line-height: 1.1;
  max-width: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-deck-card-wrap:hover {
  transform: translateY(-4px);
}




@media (max-width: 1200px) {
  .manual-wrap {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .manual-main-area {
    height: auto;
    overflow: visible;
  }
}

/* Custom scrollbar for horizontal columns */
.manual-columns-container::-webkit-scrollbar {
  height: 8px;
}

.manual-columns-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.manual-columns-container::-webkit-scrollbar-thumb {
  background: var(--purple-mid);
  border-radius: 10px;
}

/* ---- PDF Continuity Links ---- */
.pdf-continuity-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 8px 16px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 30px;
  color: var(--purple-bright);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  width: fit-content;
}

.pdf-continuity-link:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--purple-bright);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(147, 51, 234, 0.2);
}

.pdf-continuity-link::before {
  content: "📄";
  font-size: 0.9rem;
}

.pdf-continuity-link::after {
  content: " →";
  transition: transform 0.3s ease;
}

.pdf-continuity-link:hover::after {
  transform: translateX(4px);
}

/* Highlight effect for the target button */
@keyframes pdf-button-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.6);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 20px 10px rgba(255, 107, 107, 0);
    transform: scale(1.05);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    transform: scale(1);
  }
}

.highlight-pdf-btn {
  animation: pdf-button-pulse 1.5s ease-out 2;
}

/* ==========================================================================
   ASTROLOGY - HOROSCOPE.COM CLONE UI
   ========================================================================== */

/* ── Screen Management ── */
.horo-screen {
  animation: fadeIn 0.4s ease;
}

/* ── Selector Grid (Index) ── */
.horo-main-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: 1px;
}

.horo-zodiac-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

@media (max-width: 768px) {
  .horo-zodiac-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .horo-zodiac-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 10px;
  }
}

.horo-zodiac-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.horo-zodiac-item:hover {
  transform: translateY(-8px);
}

.horo-triangle-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Using CSS custom properties passed from JS */
.horo-zodiac-item:hover .horo-triangle-wrapper {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.08) translateY(-5px);
  box-shadow: 0 15px 35px var(--sign-color, rgba(255, 255, 255, 0.2)), inset 0 0 15px var(--sign-color, transparent);
  border-color: var(--sign-color, rgba(255, 255, 255, 0.4));
}

.horo-zodiac-icon {
  position: relative;
  z-index: 2;
  font-size: 2.8rem;
  transition: all 0.3s;
  color: #fff;
  text-shadow: 0 0 15px var(--sign-color, rgba(255, 255, 255, 0.5));
}

.horo-zodiac-item:hover .horo-zodiac-icon {
  transform: scale(1.1);
}

.horo-zodiac-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.horo-zodiac-dates {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}


/* ── Details Screen (Daily Horoscope) ── */
.horo-hero-banner {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  border-radius: 12px;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

/* Add some subtle stars to the banner */
.horo-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 2px),
    radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 1px);
  background-size: 100px 100px, 50px 50px;
  background-position: 0 0, 25px 25px;
  opacity: 0.3;
  pointer-events: none;
}

.horo-hero-content {
  position: relative;
  z-index: 2;
}

.horo-hero-subtitle {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.horo-hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #fff;
  margin: 0;
  font-weight: 400;
}

.horo-change-sign-dropdown select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 2;
}

.horo-change-sign-dropdown select option {
  background: #1a0a2e;
  color: #fff;
}


/* ── Clean Tabs ── */
.horo-clean-tabs {
  display: flex;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
  margin-bottom: 30px;
  padding-bottom: 10px;
  gap: 20px;
  overflow-x: auto;
}

.horo-tab-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 0 5px 5px;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.horo-category-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.horo-cat-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.horo-cat-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.horo-cat-btn.active {
  background: var(--purple-bright, #9d4edd);
  color: #fff;
  border-color: var(--purple-bright, #9d4edd);
  font-weight: 600;
}

.horo-tab-btn:hover {
  color: #fff;
}

.horo-tab-btn.active {
  color: #fff;
  font-weight: 600;
}

.horo-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--purple-bright);
  /* To match the purple underline from horoscope.com */
}

/* ── Content Area & Domains (White background style section) ── */
/* Since the main app is dark, we'll keep the text legible by using off-white text,
   OR we create a "light card" for the horoscope content to precisely match the clean look.
   Let's create a light theme content card. */

.horoscope-content {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  color: #222;
}

/* ── Domain Grid (Pastel Buttons) ── */
.horo-domain-btn-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.horo-domain-mini-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  transition: transform 0.2s;
  background-color: #eee;
  /* Default, overridden in JS */
}

.horo-domain-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.horo-tab-btn.active {
  color: #fff;
  font-weight: 600;
}

.horo-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--purple-bright);
  /* To match the purple underline from horoscope.com */
}

/* ── Content Area & Domains (White background style section) ── */
/* Since the main app is dark, we'll keep the text legible by using off-white text,
   OR we create a "light card" for the horoscope content to precisely match the clean look.
   Let's create a light theme content card. */

.horoscope-content {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  color: #222;
}

/* ── Domain Grid (Pastel Buttons) ── */
.horo-domain-btn-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.horo-domain-mini-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  transition: transform 0.2s;
  background-color: #eee;
  /* Default, overridden in JS */
}

.horo-domain-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ── DEBUG: card numbers ── REMOVE WHEN DONE ── */
.tarot-spread-slot[data-idx] {
  position: relative;
}
/* Card position badges removed */