/* Numerologia Pitagorejska — style wtyczki */
/* Wersja: 1.0.0 | dundeni.com */

:root {
  --void: #06040f;
  --deep: #0d0820;
  --surface: #130f28;
  --card: #1a1535;
  --border: #2a2050;
  --violet: #7c3aed;
  --violet-light: #a855f7;
  --magenta: #c026d3;
  --magenta-light: #e879f9;
  --indigo: #312e81;
  --gold: #d4af72;
  --gold-light: #f0d090;
  --silver: #94a3b8;
  --text: #f0ecfa;
  --text-dim: #c8b8e8;
  --text-muted: #8b7aaa;
  --karmic: #ff6b6b;
  --master: #ffd700;
  --glow-violet: 0 0 40px rgba(124,58,237,0.3);
  --glow-magenta: 0 0 40px rgba(192,38,211,0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.numerologia-wrap {
  font-family: 'Cormorant Garamond', serif;
  background: var(--void);
  color: var(--text);
  min-height: 100vh;
  overflow: hidden;
  line-height: 1.7;
  position: relative;
  box-sizing: border-box;
  text-align: left;
  font-size: 16px;
  /* Szerokość ustalana przez JS po załadowaniu */
  width: 100%;
  max-width: none !important;
}

/* Izolacja od globalnych stylów WP */
.numerologia-wrap *,
.numerologia-wrap *::before,
.numerologia-wrap *::after {
  box-sizing: border-box;
}

/* Zapobieganie dziedziczeniu czcionki z motywu WP */
.numerologia-wrap input,
.numerologia-wrap button,
.numerologia-wrap select,
.numerologia-wrap textarea {
  font-family: 'Cormorant Garamond', serif;
}

/* ===== ANIMATED CELESTIAL BACKGROUND ===== */
#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Nebula layers */
.nebula-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.nebula-1 {
  background: radial-gradient(ellipse 80% 60% at 20% 10%, rgba(124,58,237,0.14) 0%, transparent 60%);
  animation: nebulaDrift1 18s ease-in-out infinite alternate;
}
.nebula-2 {
  background: radial-gradient(ellipse 60% 50% at 80% 80%, rgba(192,38,211,0.11) 0%, transparent 60%);
  animation: nebulaDrift2 22s ease-in-out infinite alternate;
}
.nebula-3 {
  background: radial-gradient(ellipse 50% 45% at 55% 45%, rgba(49,46,129,0.12) 0%, transparent 70%);
  animation: nebulaDrift3 28s ease-in-out infinite alternate;
}
.nebula-4 {
  background: radial-gradient(ellipse 35% 30% at 10% 70%, rgba(192,38,211,0.07) 0%, transparent 70%);
  animation: nebulaDrift1 35s ease-in-out infinite alternate-reverse;
}

@keyframes nebulaDrift1 {
  0%   { transform: translate(0,0) scale(1); opacity: 0.8; }
  50%  { transform: translate(3%, 2%) scale(1.05); opacity: 1; }
  100% { transform: translate(-2%, 4%) scale(0.97); opacity: 0.7; }
}
@keyframes nebulaDrift2 {
  0%   { transform: translate(0,0) scale(1); opacity: 0.9; }
  50%  { transform: translate(-4%, -2%) scale(1.08); opacity: 0.75; }
  100% { transform: translate(2%, 3%) scale(0.95); opacity: 1; }
}
@keyframes nebulaDrift3 {
  0%   { transform: translate(0,0) scale(1); opacity: 0.6; }
  100% { transform: translate(5%, -3%) scale(1.12); opacity: 0.9; }
}

/* SVG Mystical elements */
#mystical-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

/* Floating orbs */
.float-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}
.orb-1 {
  width: 300px; height: 300px;
  left: -80px; top: 10%;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  animation: orbFloat1 20s ease-in-out infinite;
  filter: blur(40px);
}
.orb-2 {
  width: 400px; height: 400px;
  right: -120px; top: 30%;
  background: radial-gradient(circle, rgba(192,38,211,0.10) 0%, transparent 70%);
  animation: orbFloat2 25s ease-in-out infinite;
  filter: blur(50px);
}
.orb-3 {
  width: 250px; height: 250px;
  left: 40%; bottom: 15%;
  background: radial-gradient(circle, rgba(212,175,114,0.08) 0%, transparent 70%);
  animation: orbFloat3 30s ease-in-out infinite;
  filter: blur(35px);
}
.orb-4 {
  width: 180px; height: 180px;
  right: 20%; top: 10%;
  background: radial-gradient(circle, rgba(124,58,237,0.09) 0%, transparent 70%);
  animation: orbFloat1 16s ease-in-out infinite reverse;
  filter: blur(30px);
}

@keyframes orbFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  25%  { transform: translate(20px,-30px) scale(1.05); }
  50%  { transform: translate(-10px,20px) scale(0.95); }
  75%  { transform: translate(30px,10px) scale(1.02); }
}
@keyframes orbFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%  { transform: translate(-25px,15px) scale(1.08); }
  66%  { transform: translate(15px,-20px) scale(0.93); }
}
@keyframes orbFloat3 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%  { transform: translate(35px,-25px) scale(1.1); }
  80%  { transform: translate(-20px,30px) scale(0.9); }
}

/* Particle canvas */
#particle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* Header animations */
.site-title { padding-top: 30px; }

@keyframes sigilPulse {
  0%,100% { opacity: 0.5; text-shadow: 0 0 8px rgba(192,38,211,0.3), 0 0 20px rgba(124,58,237,0.15); }
  50%      { opacity: 1;   text-shadow: 0 0 16px rgba(192,38,211,0.8), 0 0 40px rgba(124,58,237,0.5), 0 0 70px rgba(212,175,114,0.2); }
}
.header-sigil { animation: sigilPulse 3s ease-in-out infinite; }

/* Animated divider line in header */
@keyframes lineSweep {
  0%   { background-position: -200px center; }
  100% { background-position: 400px center; }
}
.site-header::after {
  animation: headerLineBreath 3s ease-in-out infinite;
}
@keyframes headerLineBreath {
  0%,100% { width: 180px; opacity: 0.7; }
  50%      { width: 260px; opacity: 1; }
}

/* Animated calc card */
@keyframes cardGlowPulse {
  0%,100% { box-shadow: 0 20px 80px rgba(0,0,0,0.5), 0 0 40px rgba(124,58,237,0.2); }
  50%      { box-shadow: 0 20px 80px rgba(0,0,0,0.5), 0 0 60px rgba(124,58,237,0.35), 0 0 100px rgba(192,38,211,0.15); }
}
.calc-card { animation: cardGlowPulse 5s ease-in-out infinite; }

/* Animated top border of calc card */
.calc-card::before {
  animation: borderShimmer 3s linear infinite;
  background-size: 200% 100%;
}
@keyframes borderShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Input focus ripple */
.form-input { transition: all 0.4s cubic-bezier(0.4,0,0.2,1); }

/* Pulsing button */
@keyframes btnPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(192,38,211,0); }
  50%      { box-shadow: 0 0 0 8px rgba(192,38,211,0.15); }
}
.btn-calculate { animation: btnPulse 2.5s ease-in-out infinite; }

/* Badge hover lift */
.portrait-badge {
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

/* Section number badge rotation on hover */
.section-number-badge {
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.section-header:hover .section-number-badge {
  transform: rotate(5deg) scale(1.08);
  box-shadow: 0 0 30px rgba(124,58,237,0.4);
}

/* Timeline dot pulse */
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(124,58,237,0); }
}
.timeline-dot { animation: dotPulse 2.5s ease-in-out infinite; }
.timeline-dot.master { animation: dotPulseMaster 2s ease-in-out infinite; }
.timeline-dot.karmic { animation: dotPulseKarmic 2s ease-in-out infinite; }
@keyframes dotPulseMaster {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(255,215,0,0); }
}
@keyframes dotPulseKarmic {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,107,107,0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(255,107,107,0); }
}

/* Phase card hover */
.phase-card { transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.phase-card:hover { transform: translateY(-6px) scale(1.02); }

/* Personal now card */
.personal-now-card { transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.personal-now-card:hover { transform: translateY(-4px); }

/* Current NOW card animated ring */
@keyframes ringPulse {
  0%,100% { box-shadow: 0 0 40px rgba(192,38,211,0.3), 0 0 0 0 rgba(192,38,211,0.2); }
  50%      { box-shadow: 0 0 60px rgba(192,38,211,0.5), 0 0 0 10px rgba(192,38,211,0); }
}
.personal-now-card.current { animation: ringPulse 3s ease-in-out infinite; }

/* Tab btn hover */
.tab-btn { transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.tab-btn:hover { transform: translateY(-1px); }
.tab-btn.active { animation: tabActiveGlow 3s ease-in-out infinite; }
@keyframes tabActiveGlow {
  0%,100% { box-shadow: 0 4px 20px rgba(124,58,237,0.3); }
  50%      { box-shadow: 0 4px 30px rgba(192,38,211,0.5); }
}

/* Number section open animation */
.section-body { animation: none; }
.number-section.open .section-body {
  animation: sectionReveal 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes sectionReveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Matrix cell hover */
.matrix-cell {
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.matrix-cell:hover {
  transform: scale(1.08);
  border-color: var(--violet);
  background: rgba(124,58,237,0.12);
  box-shadow: 0 0 20px rgba(124,58,237,0.25);
}

/* Matrix dots stagger animation */
@keyframes dotReveal {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}

/* Portrait badge master shimmer */
.portrait-badge.master {
  animation: masterShimmer 3s ease-in-out infinite;
}
@keyframes masterShimmer {
  0%,100% { border-color: rgba(255,215,0,0.3); box-shadow: 0 0 20px rgba(255,215,0,0.1); }
  50%      { border-color: rgba(255,215,0,0.7); box-shadow: 0 0 35px rgba(255,215,0,0.25); }
}

/* Portrait badge karmic flicker */
.portrait-badge.karmic {
  animation: karmicGlow 2.5s ease-in-out infinite;
}
@keyframes karmicGlow {
  0%,100% { box-shadow: 0 0 15px rgba(255,107,107,0.1); }
  50%      { box-shadow: 0 0 30px rgba(255,107,107,0.3); }
}

/* Cycle card hover */
.cycle-card {
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.cycle-card:hover { transform: translateY(-5px) scale(1.02); }

/* Summary card appear */
.portrait-summary-card {
  animation: summaryReveal 0.8s cubic-bezier(0.4,0,0.2,1);
}
@keyframes summaryReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Read more link */
.read-more-link {
  transition: all 0.3s ease;
  position: relative;
}
.read-more-link::after {
  content: '→';
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.3s ease;
}
.read-more-link:hover::after { transform: translateX(4px); }

/* Forecast table row hover */
.forecast-table tr { transition: background 0.2s ease; }

/* Section header hover glow */
.section-header {
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.section-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(124,58,237,0.04) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.section-header:hover::after { transform: translateX(100%); }

/* Star twinkle keyframe */
@keyframes twinkle {
  0%,100% { opacity: 0.2; transform: scale(0.8); }
  50%      { opacity: 1; transform: scale(1.2); }
}

/* Geometric sacred element - flower of life ring */
.sacred-ring {
  position: fixed;
  border-radius: 50%;
  border: 1px solid;
  pointer-events: none;
  z-index: 0;
}

/* Scroll-based section entrance */
.tab-content > * {
  animation: fadeInUp 0.5s ease forwards;
}

/* Enhanced badge number hover */
.section-number-badge.master { animation: masterBadgePulse 3s infinite; }
@keyframes masterBadgePulse {
  0%,100% { box-shadow: 0 0 20px rgba(255,215,0,0.2), 0 0 0 0 rgba(255,215,0,0.3); }
  50%      { box-shadow: 0 0 35px rgba(255,215,0,0.4), 0 0 0 8px rgba(255,215,0,0); }
}
.section-number-badge.karmic { animation: karmicBadgePulse 2.5s infinite; }
@keyframes karmicBadgePulse {
  0%,100% { box-shadow: 0 0 20px rgba(255,107,107,0.2); }
  50%      { box-shadow: 0 0 35px rgba(255,107,107,0.45); }
}

.container { position: relative; z-index: 1; }

/* ===== HEADER ===== */
.site-header {
  text-align: center;
  padding: 70px 20px 50px;
  position: relative;
}

.site-header::after {
  content: '';
  display: block;
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--magenta), var(--violet), transparent);
  margin: 30px auto 0;
}

.numerologia-wrap .header-sigil {
  font-size: 12px !important;
  letter-spacing: 6px !important;
  color: var(--magenta) !important;
  text-transform: uppercase !important;
  font-family: 'Cinzel', serif !important;
  margin-bottom: 20px !important;
  opacity: 0.8;
}

/* Reset h1 WP — WordPress nadpisuje h1 swoimi globalnymi stylami */
.numerologia-wrap h1 {
  font-size: 42px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.numerologia-wrap .site-title,
.numerologia-wrap h1.site-title {
  font-family: 'Cinzel', serif !important;
  font-size: 42px !important;
  font-weight: 400 !important;
  color: var(--text) !important;
  letter-spacing: 4px !important;
  line-height: 1.2 !important;
  background: linear-gradient(135deg, var(--text) 0%, var(--magenta-light) 40%, var(--gold) 70%, var(--text) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  margin: 0 !important;
}

.site-subtitle {
  font-size: 16px;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-top: 12px;
  font-style: italic;
}

/* ===== CALCULATOR SECTION ===== */
#calculator-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

.calc-card {
  background: linear-gradient(135deg, var(--card) 0%, rgba(26,21,53,0.8) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 50px 50px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5), var(--glow-violet);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.calc-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--magenta), var(--gold), var(--magenta), var(--violet), transparent);
  background-size: 200% 100%;
  animation: borderShimmer 3s linear infinite;
}

.calc-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  text-align: center;
  color: var(--text);
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.calc-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 15px;
  font-style: italic;
  margin-bottom: 40px;
}

.numerologia-wrap .form-group { margin-bottom: 28px !important; }

.numerologia-wrap .form-label {
  display: block !important;
  font-family: 'Cinzel', serif !important;
  font-size: 11px !important;
  letter-spacing: 3px !important;
  color: var(--violet-light) !important;
  text-transform: uppercase !important;
  margin-bottom: 10px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  float: none !important;
  width: auto !important;
}

.numerologia-wrap .date-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 12px !important;
}
.form-input {
  width: 100% !important;
  background: rgba(13,8,32,0.7) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  color: var(--text) !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 18px !important;
  transition: all 0.3s ease;
  outline: none !important;
  box-shadow: none !important;
  display: block !important;
  -webkit-appearance: none;
  appearance: none;
  margin: 0 !important;
}

.form-input:focus {
  border-color: var(--violet) !important;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.2), inset 0 0 20px rgba(124,58,237,0.05) !important;
  outline: none !important;
}

.form-input::placeholder { color: var(--text-muted); font-style: italic; }

.date-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.btn-calculate {
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--magenta) 50%, var(--violet) 100%);
  background-size: 200% 100%;
  border: none;
  border-radius: 14px;
  color: white;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}

.btn-calculate:hover {
  background-position: 100% 0;
  box-shadow: 0 10px 40px rgba(192,38,211,0.4);
  transform: translateY(-2px);
}

.btn-calculate:active { transform: translateY(0); }

.calc-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
  font-style: italic;
  letter-spacing: 1px;
}

/* ===== RESULTS SECTION ===== */
#results-section {
  display: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 80px;
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== PERSON HEADER ===== */
.person-header {
  text-align: center;
  padding: 50px 20px;
  position: relative;
}

.person-name-display {
  font-family: 'Cinzel', serif;
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: 5px;
  background: linear-gradient(135deg, var(--gold-light), var(--magenta-light), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.person-birth-display {
  color: var(--text-dim);
  font-size: 16px;
  letter-spacing: 3px;
  font-style: italic;
}

.portrait-numbers {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

a.portrait-badge,
.portrait-badge {
  background: rgba(26,21,53,0.8);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 24px;
  text-align: center;
  min-width: 90px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none !important;
  color: var(--text) !important;
}
.portrait-badge-link {
  display: block;
  padding: 16px 24px;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}
.portrait-badge-link:hover,
.portrait-badge-link:visited {
  color: inherit !important;
  text-decoration: none !important;
}

.portrait-badge:hover {
  border-color: var(--violet);
  box-shadow: var(--glow-violet);
  transform: translateY(-3px);
}

.portrait-badge.master {
  border-color: rgba(255,215,0,0.4);
  box-shadow: 0 0 20px rgba(255,215,0,0.15);
}

.portrait-badge.karmic {
  border-color: rgba(255,107,107,0.4);
  box-shadow: 0 0 20px rgba(255,107,107,0.15);
}

.badge-number {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.portrait-badge.master .badge-number { color: var(--master); }
.portrait-badge.karmic .badge-number { color: var(--karmic); }

.badge-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ===== TABS ===== */
.tabs-container { margin-top: 30px; }

.tabs-nav {
  display: flex;
  gap: 4px;
  background: rgba(13,8,32,0.85);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  position: sticky;
  top: 10px;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.tab-btn {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  background: none;
  border: none;
  border-radius: 12px;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-btn:hover { color: var(--text-dim); background: rgba(124,58,237,0.1); }

.tab-btn.active {
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  color: white;
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp 0.4s ease; }

/* ===== NUMBER SECTION CARD ===== */
.number-section {
  background: linear-gradient(135deg, var(--card) 0%, rgba(19,15,40,0.9) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.number-section:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.4); }

.section-header {
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.section-header:hover { background: rgba(124,58,237,0.06); }

.section-number-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface), var(--card));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Cinzel', serif;
  font-size: 22px;
  color: var(--text);
  position: relative;
}

.section-number-badge.master {
  border-color: var(--master);
  color: var(--master);
  box-shadow: 0 0 20px rgba(255,215,0,0.2);
}

.section-number-badge.karmic {
  border-color: var(--karmic);
  color: var(--karmic);
  box-shadow: 0 0 20px rgba(255,107,107,0.2);
}

.section-number-badge::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(135deg, var(--violet), var(--magenta)) border-box;
  opacity: 0.4;
}

.section-header-text { flex: 1; }

.section-type-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--violet-light);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section-number-name {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: var(--text);
  letter-spacing: 1px;
}

.section-formula {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
}

.section-toggle {
  color: var(--text-muted);
  font-size: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.number-section.open .section-toggle { transform: rotate(180deg); }

.section-body {
  display: none;
  padding: 0 36px 36px;
}

.number-section.open .section-body { display: block; }

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin-bottom: 30px;
}

/* MASTER / KARMIC tags */
.master-tag {
  display: inline-block;
  background: rgba(255,215,0,0.15);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--master);
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.karmic-tag {
  display: inline-block;
  background: rgba(255,107,107,0.15);
  border: 1px solid rgba(255,107,107,0.3);
  color: var(--karmic);
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.number-description {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 24px;
}

.number-description p { margin-bottom: 14px; }

.read-more-link {
  display: inline-block;
  color: var(--violet-light);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 1px;
  text-decoration: none;
  border-bottom: 1px solid rgba(168,85,247,0.3);
  transition: all 0.3s ease;
  margin-top: 4px;
}

.read-more-link:hover {
  color: var(--magenta-light);
  border-bottom-color: var(--magenta-light);
}

/* SUMMARY BOX */
.summary-box {
  background: rgba(13,8,32,0.6);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 14px;
  padding: 24px;
  margin-top: 20px;
}

.summary-box h4 {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--violet-light);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.summary-items { display: flex; flex-direction: column; gap: 8px; }

.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-dim);
}

.summary-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  flex-shrink: 0;
  margin-top: 8px;
}

.summary-item.warning .summary-dot { background: var(--karmic); }
.summary-item.lesson .summary-dot { background: var(--gold); }

/* ===== MATRIX / PYTHAGOREAN SQUARE ===== */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 360px;
  margin: 0 auto 30px;
}

.matrix-cell {
  aspect-ratio: 1;
  background: rgba(13,8,32,0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: all 0.3s ease;
}

.matrix-cell:hover {
  border-color: var(--violet);
  background: rgba(124,58,237,0.1);
}

.matrix-cell-number {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.matrix-cell-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  max-width: 50px;
  min-height: 20px;
}

.matrix-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.matrix-dot.d1 { background: var(--violet); }
.matrix-dot.d2 { background: var(--magenta); }
.matrix-dot.d3 { background: #34d399; }
.matrix-dot.d4 { background: var(--gold); }
.matrix-dot.d5 { background: #60a5fa; }
.matrix-dot.d6 { background: #f97316; }
.matrix-dot.d7 { background: #a78bfa; }
.matrix-dot.d8 { background: var(--karmic); }
.matrix-dot.d9 { background: #c084fc; }

.matrix-cell-count {
  font-size: 18px;
  color: var(--text);
  font-family: 'Cinzel', serif;
  margin-top: 4px;
}

.matrix-empty { color: var(--text-muted); font-size: 12px; font-style: italic; }

.matrix-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 360px;
  margin: 0 auto 30px;
  font-size: 12px;
}

.legend-item { display: flex; align-items: center; gap: 6px; color: var(--text-dim); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Matrix axis labels */
.matrix-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto 40px;
}

.matrix-axis-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

/* ===== TIMELINE ===== */
.timeline-section {
  position: relative;
  padding: 20px 0;
}

.timeline-axis {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--violet), var(--magenta), var(--violet));
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 28px;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--violet);
  transition: all 0.3s ease;
}

.timeline-dot.master { border-color: var(--master); box-shadow: 0 0 10px rgba(255,215,0,0.3); }
.timeline-dot.karmic { border-color: var(--karmic); box-shadow: 0 0 10px rgba(255,107,107,0.3); }

.timeline-period {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: var(--violet-light);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.timeline-label {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.6;
}

.timeline-number {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--violet-light);
  margin-left: 8px;
}

.timeline-number.master-num {
  background: rgba(255,215,0,0.15);
  border-color: rgba(255,215,0,0.3);
  color: var(--master);
}

.timeline-number.karmic-num {
  background: rgba(255,107,107,0.15);
  border-color: rgba(255,107,107,0.3);
  color: var(--karmic);
}

/* ===== PINNACLES & CHALLENGES ===== */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.phase-card {
  background: rgba(13,8,32,0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.phase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.phase-card.pinnacle::before { background: linear-gradient(90deg, var(--violet), var(--magenta)); }
.phase-card.challenge::before { background: linear-gradient(90deg, var(--magenta), var(--gold)); }

.phase-card:hover { box-shadow: var(--glow-violet); border-color: rgba(124,58,237,0.4); }

.phase-card.master { border-color: rgba(255,215,0,0.3); }
.phase-card.master::before { background: linear-gradient(90deg, var(--gold), var(--master)); }

.phase-card.karmic { border-color: rgba(255,107,107,0.3); }
.phase-card.karmic::before { background: linear-gradient(90deg, var(--karmic), var(--magenta)); }

.phase-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.phase-period {
  font-size: 12px;
  color: var(--violet-light);
  font-style: italic;
  margin-bottom: 8px;
}

.phase-number {
  font-family: 'Cinzel', serif;
  font-size: 40px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.phase-card.master .phase-number { color: var(--master); }
.phase-card.karmic .phase-number { color: var(--karmic); }

.phase-name { font-size: 14px; color: var(--text-dim); }
.phase-desc { font-size: 13px; color: var(--text-muted); margin-top: 10px; font-style: italic; line-height: 1.6; }

/* ===== CYCLES CARDS ===== */
.cycles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

/* ============================================================
   RESPONSIVE — kompletny system breakpointów
   ============================================================ */

/* ── 768px: tablety i małe laptopy ── */
@media (max-width: 768px) {
  /* Kalkulator */
  #calculator-section { padding: 16px 16px 60px; }
  .calc-card { padding: 30px 24px; }
  .date-row { grid-template-columns: 1fr; }

  /* Nagłówek strony */
  .site-subtitle { font-size: 13px; }

  /* Portret — odznaki liczb */
  .portrait-numbers { gap: 10px; }
  .portrait-badge { padding: 12px 16px; min-width: 75px; }
  .badge-number { font-size: 20px; }

  /* Sekcje akordeonowe */
  .section-header { padding: 18px 20px; }
  .section-body { padding: 0 20px 24px; }

  /* Siatka faz (Punkty Zwrotne, Wyzwania) */
  .phases-grid { grid-template-columns: 1fr 1fr; }

  /* Tabs */
  .tab-btn { min-width: 90px; font-size: 10px; padding: 10px 12px; letter-spacing: 1px; white-space: normal; text-align: center; line-height: 1.3; }

  /* Actions bar */
  .actions-bar { flex-direction: column; align-items: flex-start; }

  /* Prognoza — karty */
  .personal-now-grid { grid-template-columns: 1fr; }

  /* Cykle */
  .cycles-grid { grid-template-columns: 1fr; }
}

/* ── 480px: telefony ── */
@media (max-width: 480px) {
  /* Nagłówek */
  .site-subtitle { font-size: 12px; letter-spacing: 1px; }

  /* Kalkulator */
  .calc-card { padding: 24px 16px; border-radius: 16px; }
  .calc-title { font-size: 18px; }

  /* Portret nagłówek */
  .portrait-name { font-size: 26px; }
  .portrait-numbers { gap: 8px; }
  .portrait-badge { padding: 10px 12px; min-width: 65px; }
  .badge-number { font-size: 18px; }
  .badge-label { font-size: 7px; letter-spacing: 1px; }

  /* Tabs — zawijają się na dwie linie */
  .tabs-nav { gap: 3px; padding: 4px; border-radius: 12px; }
  .tab-btn { min-width: calc(50% - 6px); font-size: 9px; padding: 9px 8px; letter-spacing: 0.5px; flex: none; white-space: normal; text-align: center; line-height: 1.3; }

  /* Sekcje akordeonowe */
  .section-header { padding: 14px 16px; }
  .section-body { padding: 0 16px 20px; }
  .section-number-name { font-size: 16px; }
  .number-display { font-size: 56px; }

  /* Fazy — jedna kolumna na telefonie */
  .phases-grid { grid-template-columns: 1fr; }

  /* Matryca — dopasowana do małego ekranu */
  .matrix-grid { max-width: 280px; }

  /* Oś czasu — ukryta na mobile (treść powtórzona w kartach) */
  .tl-container { display: none; }

  /* Cykle i prognoza */
  .cycles-grid { grid-template-columns: 1fr; }
  .personal-now-grid { grid-template-columns: 1fr; }

  /* Karty cykli i faz */
  .cycle-card, .phase-card { padding: 20px 16px; }
  .cycle-number { font-size: 36px; }

  /* Formularz */
  .input-group input { font-size: 15px; }
  .btn-calculate { font-size: 12px; padding: 16px 24px; letter-spacing: 2px; }

  /* Historia */
  .history-wrap { padding: 0 8px; }
  .history-badges { display: none; }

  /* Linki czytaj więcej */
  .read-more-link { font-size: 11px; }
}

/* ── bardzo małe ekrany (360px i mniej) ── */
@media (max-width: 360px) {
  .tab-btn { font-size: 8px; padding: 8px 6px; white-space: normal; }
  .portrait-name { font-size: 22px; }
  .number-display { font-size: 48px; }
  .matrix-grid { max-width: 240px; }
}

.cycle-card {
  background: rgba(13,8,32,0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cycle-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cycle-card:hover { border-color: rgba(124,58,237,0.4); }
.cycle-card:hover::after { opacity: 1; }

.cycle-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cycle-period { font-size: 12px; color: var(--violet-light); font-style: italic; margin-bottom: 10px; }
.cycle-number { font-family: 'Cinzel', serif; font-size: 42px; color: var(--text); line-height: 1; margin-bottom: 8px; }
.cycle-name { font-size: 14px; color: var(--text-dim); }
.cycle-desc { font-size: 13px; color: var(--text-muted); margin-top: 10px; line-height: 1.6; }

/* ===== FORECAST / PERSONAL YEAR TABLE ===== */
.forecast-table-wrap { overflow-x: auto; }

.forecast-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.forecast-table th {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.forecast-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-dim);
  background: rgba(13,8,32,0.4);
}

.forecast-table tr td:first-child { border-radius: 10px 0 0 10px; }
.forecast-table tr td:last-child { border-radius: 0 10px 10px 0; }

.forecast-table tr:hover td { background: rgba(124,58,237,0.08); }

.year-badge {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: var(--text);
}

.year-badge.master { color: var(--master); }
.year-badge.karmic { color: var(--karmic); }
.year-badge.current { color: var(--magenta-light); }

.current-indicator {
  background: rgba(192,38,211,0.2);
  border: 1px solid rgba(192,38,211,0.3);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--magenta-light);
  text-transform: uppercase;
}

/* ===== PORTRAIT SUMMARY ===== */
.portrait-summary-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(192,38,211,0.08));
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
}

.summary-section-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--violet-light);
  text-transform: uppercase;
  margin-bottom: 16px;
  margin-top: 28px;
}

.summary-section-title:first-child { margin-top: 0; }

.portrait-desc-text {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 12px;
}

.strength-list, .weakness-list, .rare-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.strength-item { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text-dim); }
.strength-icon { color: var(--violet-light); flex-shrink: 0; font-style: normal; }
.weakness-icon { color: var(--karmic); flex-shrink: 0; font-style: normal; }
.rare-icon { color: var(--gold); flex-shrink: 0; font-style: normal; }

/* ===== PERSONAL DAY/MONTH SECTION ===== */
.personal-now-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}



.personal-now-card {
  background: rgba(13,8,32,0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.personal-now-card.current {
  border-color: rgba(192,38,211,0.4);
  box-shadow: var(--glow-magenta);
}

.personal-now-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(124,58,237,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.now-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.now-number {
  font-family: 'Cinzel', serif;
  font-size: 52px;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text), var(--magenta-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.now-name { font-size: 15px; color: var(--text-dim); margin-bottom: 12px; }
.now-formula { font-size: 11px; color: var(--text-muted); font-style: italic; margin-bottom: 14px; }
.now-desc { font-size: 14px; color: var(--text-dim); line-height: 1.65; }

/* ===== FORMULA BOX ===== */
.formula-box {
  background: rgba(13,8,32,0.8);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.formula-box strong { color: var(--violet-light); }

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-credit {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.footer-credit a {
  color: var(--violet-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(168,85,247,0.3);
  transition: color 0.3s ease;
}

.footer-credit a:hover { color: var(--magenta-light); }

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 12px;
}

.btn-back:hover { border-color: var(--violet); color: var(--violet-light); }

.actions-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }

/* ===== RESPONSIVE ===== */

/* ===== HORIZONTAL LAYERED TIMELINE ===== */
.tl-container {
  background: linear-gradient(135deg, var(--card) 0%, rgba(19,15,40,0.95) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 28px 20px;
  margin: 8px 0 24px;
  overflow: hidden;
}

.tl-header { margin-bottom: 20px; }
.tl-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--text);
  margin-bottom: 4px;
}
.tl-subtitle { font-size: 12px; color: var(--text-muted); font-style: italic; }

/* Ruler layer — wyrównany z blokami */
.tl-ruler-layer {
  margin-bottom: 4px;
  align-items: flex-end;
}
.tl-ruler-spacer {
  width: 90px;
  flex-shrink: 0;
}
.tl-ruler-layer .tl-ruler {
  flex: 1;
  position: relative;
  height: 28px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(124,58,237,0.2);
}
.tl-ruler-mark {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tl-ruler-line {
  width: 1px;
  height: 8px;
  background: rgba(124,58,237,0.4);
}
.tl-ruler-label {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  margin-top: 3px;
}
/* Highlighted breakpoints matching punkt zwrotny transitions */
.tl-ruler-mark.tl-ruler-break .tl-ruler-line {
  height: 12px;
  background: rgba(192,38,211,0.7);
  width: 2px;
}
.tl-ruler-mark.tl-ruler-break .tl-ruler-label {
  color: var(--magenta-light);
  font-size: 11px;
}
/* Cycle boundary markers */
.tl-ruler-mark.tl-ruler-cycle-break .tl-ruler-line {
  height: 10px;
  background: rgba(212,175,114,0.6);
  width: 1px;
}
.tl-ruler-mark.tl-ruler-cycle-break .tl-ruler-label {
  color: var(--gold);
  font-size: 10px;
}
/* Sub-markers (extra breakpoints, smaller) */
.tl-ruler-mark.tl-ruler-sub .tl-ruler-line {
  height: 8px;
  width: 1px;
  opacity: 0.7;
}
.tl-ruler-mark.tl-ruler-sub .tl-ruler-label {
  font-size: 9px;
  opacity: 0.8;
}

/* Layer */
.tl-layer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.tl-layer-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
  width: 90px;
  flex-shrink: 0;
  padding-top: 12px;
  text-align: right;
}
.tl-layer-track {
  flex: 1;
  position: relative;
  height: 44px;
}

/* Bars */
.tl-bar {
  position: absolute;
  top: 4px;
  height: 36px;
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: visible;
  z-index: 1;
  box-sizing: border-box;
}
.tl-bar:hover { transform: translateY(-2px); filter: brightness(1.2); z-index: 10; }
.tl-bar.tl-master { border-style: solid; }
.tl-bar.tl-karmic { border-style: solid; }

.tl-bar-cycle   { border-radius: 8px; }
.tl-bar-punkt zwrotny { border-radius: 8px; top: 4px; }
.tl-bar-challenge { border-radius: 8px; top: 4px; background: rgba(192,38,211,0.15) !important; border-color: rgba(192,38,211,0.5) !important; }
.tl-bar-challenge-main {
  top: 4px; height: 36px;
  border-radius: 8px;
  background: rgba(192,38,211,0.18) !important;
  border: 1px dashed rgba(192,38,211,0.6) !important;
  z-index: 1;
}
.tl-bar-lp { top: 2px; height: 18px; border-radius: 6px; }
.tl-bar-maturity { top: 22px; height: 18px; border-radius: 6px; }

.tl-bar-inner {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.tl-bar-lp .tl-bar-inner,
.tl-bar-maturity .tl-bar-inner { padding: 0 6px; }

.tl-bar-num {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--text);
  flex-shrink: 0;
}
.tl-bar-name {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-bar-age {
  font-size: 9px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: auto;
}
.tl-bar-lp .tl-bar-num, .tl-bar-maturity .tl-bar-num { font-size: 11px; }
.tl-bar-lp .tl-bar-name, .tl-bar-maturity .tl-bar-name { font-size: 9px; }
.tl-bar-lp .tl-bar-age, .tl-bar-maturity .tl-bar-age { display: none; }

/* Info panel above timeline - replaces popup */
.tl-info-panel {
  background: rgba(13,8,32,0.85);
  border: 1px solid var(--violet);
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 20px;
  min-height: 80px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.tl-info-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--magenta), var(--violet), transparent);
}
.tl-info-panel-empty {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-size: 14px;
  padding: 12px 0;
}
.tl-info-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  color: var(--text);
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.tl-info-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tl-info-period {
  font-size: 12px;
  color: var(--violet-light);
  letter-spacing: 1px;
}
.tl-info-formula {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}
.tl-info-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 14px;
}
.tl-info-link {
  font-size: 12px;
  color: var(--violet-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(168,85,247,0.3);
  font-style: italic;
  transition: color 0.2s;
}
.tl-info-link:hover { color: var(--magenta-light); }

/* Popup — now hidden, data only used for panel */
.tl-bar-popup { display: none !important; }
.tl-bar.tl-open { z-index: 10; }
.tl-bar.tl-open .tl-bar-inner { opacity: 1; }

/* Active bar highlight */
.tl-bar.tl-open {
  filter: brightness(1.3);
  box-shadow: 0 0 12px rgba(124,58,237,0.5);
}

.tl-popup-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.tl-popup-period {
  font-size: 11px;
  color: var(--violet-light);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.tl-popup-formula {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.tl-popup-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 12px;
}
.tl-popup-link {
  font-size: 12px;
  color: var(--violet-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(168,85,247,0.3);
  font-style: italic;
  transition: color 0.2s;
}
.tl-popup-link:hover { color: var(--magenta-light); }

/* Legend */
.tl-legend {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.tl-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.tl-leg-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Responsive: on narrow screens hide some labels */

.ornament {
  text-align: center;
  color: var(--text-muted);
  font-size: 20px;
  letter-spacing: 8px;
  margin: 30px 0;
  opacity: 0.5;
}

.section-intro-text {
  font-size: 16px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  line-height: 1.8;
}

/* highlight */
.highlight-master { color: var(--master); font-weight: 500; }
.highlight-karmic { color: var(--karmic); font-weight: 500; }
.highlight-violet { color: var(--violet-light); }

/* loading */
.calculating {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
  font-style: italic;
  font-size: 18px;
}

.calculating::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  margin: 20px auto 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; width: 40px; }
  50% { opacity: 1; width: 80px; }
}

.karmic-matrix-note {
  font-size: 13px;
  color: var(--karmic);
  font-style: italic;
  margin-top: 6px;
}

/* ===== LETTER GRID ===== */
.letter-grid-wrap {
  margin: 8px 0 4px;
}

.lg-word-group {
  margin-bottom: 24px;
}

.lg-word-label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.lg-cells {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.lg-cell {
  text-align: center;
  border-radius: 8px;
  padding: 7px 10px;
  min-width: 36px;
  transition: transform 0.2s ease;
}
.lg-cell:hover { transform: translateY(-2px); }

.lg-vowel {
  background: rgba(192,38,211,0.15);
  border: 1px solid rgba(192,38,211,0.4);
}
.lg-cons {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.3);
}

.lg-letter {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.lg-vowel .lg-letter { color: var(--magenta-light); }
.lg-cons  .lg-letter { color: var(--violet-light); }

.lg-value {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
}

/* Word partial sums */
.lg-word-sums {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: rgba(13,8,32,0.5);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.lg-sum-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

.lg-sum-label {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.5px;
}
.lg-sum-raw {
  color: var(--text-dim);
  font-family: 'Cinzel', serif;
  font-size: 13px;
}
.lg-sum-arrow { color: var(--text-muted); font-size: 11px; }
.lg-sum-reduced {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 500;
}

.lg-sum-all  .lg-sum-reduced { color: var(--text); }
.lg-sum-vow  .lg-sum-reduced { color: var(--magenta-light); }
.lg-sum-cons .lg-sum-reduced { color: var(--violet-light); }

/* Total row */
.lg-total-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(192,38,211,0.08));
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 14px;
  margin-top: 4px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.lg-total-row::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--magenta), transparent);
}

.lg-total-item {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 160px;
}

.lg-total-label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.lg-total-raw {
  color: var(--text-dim);
  font-family: 'Cinzel', serif;
  font-size: 15px;
}
.lg-total-reduced {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 500;
}
.lg-total-reduced.master { color: var(--master); }
.lg-total-reduced.karmic { color: var(--karmic); }
.lg-sum-all  .lg-total-reduced { color: var(--text); }
.lg-sum-vow  .lg-total-reduced { color: var(--magenta-light); }
.lg-sum-cons .lg-total-reduced { color: var(--violet-light); }

/* Legend */
.lg-legend {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 6px;
}
.lg-legend-vow { color: var(--magenta-light); }
.lg-legend-cons { color: var(--violet-light); }

/* ============================================================
   ANIMACJE NUMEROLOGICZNE
   ============================================================ */

/* ── Overlay kalkulacyjny ─────────────────────────────────── */
#calc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center,
    rgba(10,6,24,0.97) 0%,
    rgba(6,4,15,0.99) 100%);
}
#calc-overlay.active {
  pointer-events: all;
  animation: overlayIn 0.4s ease forwards;
}
#calc-overlay.done {
  animation: overlayOut 0.6s ease forwards;
}
@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes overlayOut {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* ── Koło numerologiczne ──────────────────────────────────── */
#num-wheel-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  margin-bottom: 40px;
}
#num-wheel {
  width: 100%;
  height: 100%;
}
.num-wheel-ring {
  fill: none;
  stroke-width: 1;
  transform-origin: center;
}
.num-wheel-ring-1 {
  stroke: rgba(124,58,237,0.5);
  animation: spinCW 8s linear infinite;
}
.num-wheel-ring-2 {
  stroke: rgba(192,38,211,0.4);
  stroke-dasharray: 6 12;
  animation: spinCCW 12s linear infinite;
}
.num-wheel-ring-3 {
  stroke: rgba(212,175,114,0.3);
  stroke-dasharray: 2 8;
  animation: spinCW 20s linear infinite;
}
@keyframes spinCW  { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes spinCCW { from { transform: rotate(0deg); }   to { transform: rotate(-360deg); } }

.num-wheel-digit {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  fill: rgba(168,85,247,0.9);
  text-anchor: middle;
  dominant-baseline: central;
  animation: digitGlow 1.5s ease-in-out infinite alternate;
}
@keyframes digitGlow {
  from { opacity: 0.4; font-size: 16px; }
  to   { opacity: 1;   font-size: 20px; }
}
.num-wheel-center-text {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  fill: var(--text-dim, #c8b8e8);
  text-anchor: middle;
  dominant-baseline: central;
  letter-spacing: 2px;
}
.num-wheel-center-num {
  font-family: 'Cinzel', serif;
  font-size: 48px;
  fill: white;
  text-anchor: middle;
  dominant-baseline: central;
  filter: drop-shadow(0 0 12px rgba(192,38,211,0.8));
}

/* ── Licznik cyfr (ticker) ────────────────────────────────── */
#calc-ticker {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.ticker-digit {
  width: 44px;
  height: 56px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 24px;
  color: var(--violet-light, #a855f7);
  overflow: hidden;
  position: relative;
}
.ticker-digit.master {
  border-color: rgba(255,215,0,0.6);
  color: #ffd700;
  box-shadow: 0 0 20px rgba(255,215,0,0.3);
}
.ticker-digit.karmic {
  border-color: rgba(255,107,107,0.6);
  color: #ff6b6b;
  box-shadow: 0 0 20px rgba(255,107,107,0.3);
}
.ticker-roll {
  animation: tickerRoll 0.12s ease-out;
}
@keyframes tickerRoll {
  0%   { transform: translateY(-60px); opacity: 0; }
  100% { transform: translateY(0);     opacity: 1; }
}

/* ── Status tekst ─────────────────────────────────────────── */
#calc-status {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text-muted, #8b7aaa);
  text-transform: uppercase;
  text-align: center;
  height: 20px;
}

/* ── Linia postępu ────────────────────────────────────────── */
#calc-progress-bar {
  width: 240px;
  height: 2px;
  background: rgba(124,58,237,0.15);
  border-radius: 2px;
  margin-top: 16px;
  overflow: hidden;
}
#calc-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--violet, #7c3aed), var(--magenta, #c026d3));
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ── Rezultaty: animacja wejścia zakładek ─────────────────── */
#results-section {
  animation: none;
}
#results-section.results-enter .tabs-container {
  animation: resultsSlideUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}
#results-section.results-enter #person-header-area {
  animation: resultsSlideUp 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes resultsSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Pulsujące liczby mistrzowskie w wynikach ─────────────── */
@keyframes masterPulseStrong {
  0%,100% {
    text-shadow: 0 0 10px rgba(255,215,0,0.4), 0 0 20px rgba(255,215,0,0.2);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 20px rgba(255,215,0,0.8), 0 0 40px rgba(255,215,0,0.4), 0 0 60px rgba(255,215,0,0.2);
    transform: scale(1.04);
  }
}
@keyframes karmicPulseStrong {
  0%,100% {
    text-shadow: 0 0 10px rgba(255,107,107,0.4);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 20px rgba(255,107,107,0.8), 0 0 40px rgba(255,107,107,0.3);
    transform: scale(1.03);
  }
}

.badge-number.animate-master { animation: masterPulseStrong 2.5s ease-in-out infinite; }
.badge-number.animate-karmic { animation: karmicPulseStrong 2s ease-in-out infinite; }

/* ── Floating numerology symbols (calc screen) ────────────── */
.float-num {
  position: absolute;
  font-family: 'Cinzel', serif;
  color: rgba(124,58,237,0.25);
  pointer-events: none;
  user-select: none;
  animation: floatNum linear infinite;
}
@keyframes floatNum {
  0%   { transform: translateY(0) scale(1) rotate(0deg);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100vh) scale(0.5) rotate(20deg); opacity: 0; }
}

/* ── Wejście kalkulatora ──────────────────────────────────── */
.calc-card {
  animation: calcCardIn 0.8s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes calcCardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Input focus spark ────────────────────────────────────── */
.form-input:focus::after { display: none; }
.input-spark {
  position: absolute;
  pointer-events: none;
  border-radius: 12px;
  inset: 0;
  animation: inputSpark 0.4s ease forwards;
}
@keyframes inputSpark {
  0%   { box-shadow: 0 0 0 0 rgba(124,58,237,0.5); }
  50%  { box-shadow: 0 0 0 8px rgba(124,58,237,0.2); }
  100% { box-shadow: 0 0 0 4px rgba(124,58,237,0); }
}

/* ── Badge wejście ────────────────────────────────────────── */
.portrait-badge {
  animation: badgeIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.portrait-badge:nth-child(1) { animation-delay: 0.1s; }
.portrait-badge:nth-child(2) { animation-delay: 0.18s; }
.portrait-badge:nth-child(3) { animation-delay: 0.26s; }
.portrait-badge:nth-child(4) { animation-delay: 0.34s; }
.portrait-badge:nth-child(5) { animation-delay: 0.42s; }
@keyframes badgeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Karta sekcji hover ───────────────────────────────────── */
.number-section {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.number-section:hover {
  transform: translateY(-2px);
}

.matrix-working-numbers {
  background: rgba(13,8,32,0.7);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 18px;
  padding: 28px 30px;
  margin: 16px 0 24px;
  position: relative;
  overflow: hidden;
}
.matrix-working-numbers::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--magenta), transparent);
}
.mwn-title {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--violet-light);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.mwn-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.mwn-arrow { color: var(--text-muted); font-size: 20px; padding-top: 28px; flex-shrink: 0; }
.mwn-item {
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 150px;
  flex: 1;
}
.mwn-item.mwn-L1 { border-color: rgba(168,85,247,0.35); background: rgba(168,85,247,0.08); }
.mwn-item.mwn-L2 { border-color: rgba(212,175,114,0.35); background: rgba(212,175,114,0.06); }
.mwn-item.mwn-L3 { border-color: rgba(192,38,211,0.35); background: rgba(192,38,211,0.08); }
.mwn-item.mwn-L4 { border-color: rgba(232,121,249,0.35); background: rgba(232,121,249,0.06); }
.mwn-label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.mwn-value {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.mwn-L1 .mwn-value { color: var(--violet-light); }
.mwn-L2 .mwn-value { color: var(--gold); }
.mwn-L3 .mwn-value { color: var(--magenta-light); }
.mwn-L4 .mwn-value { color: var(--text-dim); }
.mwn-formula { font-size: 12px; color: var(--text-muted); font-style: italic; line-height: 1.5; }
.mwn-digits { display: flex; gap: 3px; flex-wrap: wrap; margin-bottom: 8px; }
.mwn-digit {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: var(--text);
  padding: 3px 6px;
  background: rgba(124,58,237,0.12);
  border-radius: 5px;
  border: 1px solid rgba(124,58,237,0.25);
}
.mwn-digit.mwn-zero {
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
  opacity: 0.45;
}
.mwn-summary {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}
.mwn-sum-label { color: var(--text-muted); font-size: 11px; letter-spacing: 1px; flex-shrink: 0; }
.mwn-sum-digits { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.mwn-group {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: 'Cinzel', serif;
}
.mwn-sep { color: var(--text-muted); font-size: 14px; }

/* ===== HISTORY ===== */
.history-wrap {
  max-width: 700px;
  margin: 28px auto 0;
  padding: 0 20px;
}
.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.history-title {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.history-clear-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.history-clear-btn:hover { border-color: var(--karmic); color: var(--karmic); }
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  padding: 20px 0;
}
.history-item {
  background: linear-gradient(135deg, var(--card), rgba(19,15,40,0.8));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.history-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--violet), var(--magenta));
}
.history-item:hover {
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}
.history-item-name { flex: 1; min-width: 0; }
.history-name {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 1px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-birth {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}
.history-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.history-badge {
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 20px;
  padding: 2px 9px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  color: var(--violet-light);
  white-space: nowrap;
}
.history-badge.hb-master {
  background: rgba(255,215,0,0.12);
  border-color: rgba(255,215,0,0.3);
  color: var(--master);
}
.history-badge.hb-karmic {
  background: rgba(255,107,107,0.12);
  border-color: rgba(255,107,107,0.3);
  color: var(--karmic);
}
.history-timestamp {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.history-del {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}
.history-del:hover { color: var(--karmic); background: rgba(255,107,107,0.1); }

/* ===== POPRAWKI MOBILNE ===== */
@media (max-width: 768px) {

  /* === OGÓLNY WRAPPER — pełna szerokość, 5px od krawędzi === */
  .numerologia-wrap {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  #calculator-section,
  #results-section {
    padding: 10px 5px 40px !important;
    max-width: 100% !important;
  }

  /* === NAGŁÓWEK STRONY === */
  .site-header { padding: 24px 10px 18px; }
  .numerologia-wrap h1.site-title { font-size: 28px !important; }

  /* === KALKULATOR === */
  .calc-card {
    padding: 20px 14px;
    overflow: visible;
    border-radius: 16px;
  }

  /* Pola daty — trzy kolumny w rzędzie */
  .numerologia-wrap .date-row {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 6px !important;
  }
  .numerologia-wrap .form-input {
    padding: 12px 8px !important;
    font-size: 15px !important;
  }

  /* === NAGŁÓWEK OSOBY === */
  .person-header { padding: 18px 10px; }

  /* === SEKCJE AKORDEONOWE — kluczowa poprawka === */
  /* Header: kółko + tekst obok siebie, ale mniejsze */
  .section-header {
    padding: 14px 10px;
    gap: 12px;
  }
  /* Zmniejsz kółko z liczbą żeby tekst miał miejsce */
  .section-number-badge {
    width: 48px !important;
    height: 48px !important;
    font-size: 17px !important;
    flex-shrink: 0 !important;
  }
  .section-number-badge::after { inset: -4px; }

  /* Tytuł sekcji — zeruj letter-spacing żeby nie łamał liter pionowo */
  .section-number-name {
    font-size: 15px !important;
    letter-spacing: 0.5px !important;
    word-break: break-word;
  }
  .section-type-label {
    letter-spacing: 1px !important;
    font-size: 9px !important;
  }
  .section-formula {
    font-size: 11px !important;
  }

  /* Treść sekcji */
  .section-body { padding: 0 10px 16px; }

  /* === KARTA PODSUMOWANIA === */
  .portrait-summary-card { padding: 16px 10px; }

  /* === HISTORIA === */
  .history-wrap { padding: 0 5px; margin-top: 16px; }
  .history-item { padding: 12px 10px; gap: 8px; }
  .history-timestamp { display: none; }

  /* === FOOTER === */
  .site-footer { padding: 20px 10px; }

  /* === OBLICZANIE === */
  .calculating { padding: 24px 10px; }
}

@media (max-width: 480px) {
  /* Jeszcze ciaśniejszy ekran — agresywniejsze wartości */
  #calculator-section,
  #results-section {
    padding: 6px 5px 30px !important;
  }

  .site-header { padding: 16px 8px 14px; }
  .calc-card { padding: 16px 10px; }

  .numerologia-wrap .date-row { gap: 4px !important; }
  .numerologia-wrap .form-input { padding: 10px 6px !important; font-size: 14px !important; }

  .person-header { padding: 14px 8px; }

  .section-header { padding: 12px 8px; gap: 10px; }
  .section-number-badge {
    width: 42px !important;
    height: 42px !important;
    font-size: 15px !important;
  }
  .section-number-name { font-size: 14px !important; letter-spacing: 0 !important; }
  .section-body { padding: 0 8px 14px; }

  .portrait-summary-card { padding: 14px 8px; }
  .history-wrap { padding: 0 5px; }
  .history-item { padding: 10px 8px; }
  .site-footer { padding: 16px 8px; }
}
/* Liczba Urodzenia — nota o redukcji */
.bd-reduce-note {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(124, 58, 237, 0.07);
  border-left: 3px solid var(--violet-light, #a78bfa);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.bd-reduce-note strong {
  color: var(--violet-light, #a78bfa);
  font-weight: 600;
}
.bd-reduce-link {
  color: var(--violet-light, #a78bfa);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.bd-reduce-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════
   LIGHT MODE — html[data-theme="light"]
   Synchronizacja z artykułami dundeni.com
   ═══════════════════════════════════════════════════════════ */

html[data-theme="dark"],
html[data-theme="dark"] :root {
  --void: #06040f;
  --deep: #0d0820;
  --surface: #130f28;
  --card: #1a1535;
  --border: #2a2050;
  --violet: #7c3aed;
  --violet-light: #a855f7;
  --magenta: #c026d3;
  --magenta-light: #e879f9;
  --gold: #d4af72;
  --gold-light: #f0d090;
  --silver: #94a3b8;
  --text: #f0ecfa;
  --text-dim: #c8b8e8;
  --text-muted: #8b7aaa;
  --karmic: #ff6b6b;
  --master: #ffd700;
  --glow-violet: 0 0 40px rgba(124,58,237,0.3);
  --glow-magenta: 0 0 40px rgba(192,38,211,0.3);
}

html[data-theme="light"],
html[data-theme="light"] :root {
  --void: #FDFAF6;
  --deep: #F5F0EA;
  --surface: #ffffff;
  --card: #ffffff;
  --border: rgba(180,140,60,0.22);
  --violet: #6b35c4;
  --violet-light: #8b52e0;
  --magenta: #b01ec0;
  --magenta-light: #c860d8;
  --gold: #9a7028;
  --gold-light: #b89040;
  --silver: #6b6070;
  --text: #1a1520;
  --text-dim: #2e2440;
  --text-muted: #7a6e86;
  --karmic: #c03030;
  --master: #8a6000;
  --glow-violet: 0 4px 20px rgba(107,53,196,0.10);
  --glow-magenta: 0 4px 20px rgba(176,30,192,0.08);
}

/* ── Tło strony ────────────────────────────────────────────── */
html[data-theme="dark"] body,
html[data-theme="dark"] #Wrapper,
html[data-theme="dark"] #Content,
html[data-theme="dark"] .content_wrapper,
html[data-theme="dark"] .sections_group,
html[data-theme="dark"] .the_content_wrapper,
html[data-theme="dark"] .mcb-section {
  background-color: #06040f !important;
  background-image: none !important;
  color: #f0ecfa !important;
  transition: background 0.4s ease, color 0.4s ease;
}

html[data-theme="light"] body,
html[data-theme="light"] #Wrapper,
html[data-theme="light"] #Content,
html[data-theme="light"] .content_wrapper,
html[data-theme="light"] .sections_group,
html[data-theme="light"] .the_content_wrapper,
html[data-theme="light"] .mcb-section {
  background-color: #FDFAF6 !important;
  background-image: none !important;
  color: #1a1520 !important;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ── Nebule, orby, gwiazdy — ukryte w jasnym ──────────────── */
html[data-theme="light"] .nebula-layer,
html[data-theme="light"] .float-orb,
html[data-theme="light"] #bg-canvas,
html[data-theme="light"] #particle-canvas { opacity: 0 !important; transition: opacity 0.5s ease; }

html[data-theme="light"] .numerologia-wrap {
  background: var(--void);
  color: var(--text);
}

/* Delikatny warm gradient w tle light */
html[data-theme="light"] .numerologia-wrap::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 20%, rgba(192,120,64,.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 85% 70%, rgba(107,53,196,.04) 0%, transparent 58%);
}

/* ── Header ───────────────────────────────────────────────── */
html[data-theme="light"] .site-header {
  background: linear-gradient(180deg, rgba(253,250,246,0.98) 0%, rgba(245,240,234,0.95) 100%);
  border-bottom-color: rgba(180,140,60,0.2);
}
html[data-theme="light"] .site-header::after {
  background: linear-gradient(90deg, transparent, rgba(154,112,40,0.4), rgba(176,30,192,0.3), rgba(154,112,40,0.4), transparent);
}
html[data-theme="light"] .header-sigil {
  filter: none;
  text-shadow: 0 0 10px rgba(154,112,40,0.3);
}

/* ── Kalkulator ────────────────────────────────────────────── */
html[data-theme="light"] .calc-card {
  background: linear-gradient(135deg, #ffffff 0%, rgba(245,240,234,0.9) 100%);
  border-color: rgba(180,140,60,0.2);
  box-shadow: 0 12px 60px rgba(0,0,0,0.08), 0 4px 20px rgba(107,53,196,0.07);
}
html[data-theme="light"] .calc-title {
  background: linear-gradient(135deg, #9a7028, #b01ec0, #9a7028);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
html[data-theme="light"] .form-group label { color: var(--text-dim); }
html[data-theme="light"] .form-input {
  background: #ffffff !important;
  border-color: rgba(180,140,60,0.25) !important;
  color: var(--text) !important;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.06);
}
html[data-theme="light"] .form-input:focus {
  border-color: rgba(107,53,196,0.4) !important;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.06), 0 0 0 3px rgba(107,53,196,0.08) !important;
}
html[data-theme="light"] .form-input::placeholder { color: #b0a8b8; font-style: italic; }
html[data-theme="light"] .calc-btn {
  background: linear-gradient(135deg, #6b35c4 0%, #b01ec0 50%, #6b35c4 100%);
  box-shadow: 0 6px 24px rgba(107,53,196,0.25);
}

/* ── Sekcja wyników ───────────────────────────────────────── */
html[data-theme="light"] .person-header {
  background: linear-gradient(135deg, rgba(245,240,234,0.95) 0%, rgba(253,250,246,0.9) 100%);
  border-bottom-color: rgba(180,140,60,0.15);
}
html[data-theme="light"] .number-section {
  background: #ffffff;
  border-color: rgba(180,140,60,0.18);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
html[data-theme="light"] .number-section:hover {
  border-color: rgba(107,53,196,0.25);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
html[data-theme="light"] .section-header { background: transparent; }
html[data-theme="light"] .section-header:hover { background: rgba(245,240,234,0.6); }
html[data-theme="light"] .section-number-name { color: var(--text); }
html[data-theme="light"] .section-formula { color: var(--text-muted); }
html[data-theme="light"] .section-body { border-top-color: rgba(180,140,60,0.12); }
html[data-theme="light"] .section-body p,
html[data-theme="light"] .section-body li { color: var(--text-dim); }

/* ── Badge liczb ──────────────────────────────────────────── */
html[data-theme="light"] .section-number-badge {
  background: radial-gradient(circle, rgba(107,53,196,0.08) 0%, rgba(245,240,234,0.95) 100%);
  border-color: rgba(107,53,196,0.25);
  color: var(--text);
}
html[data-theme="light"] .section-number-badge.master {
  border-color: rgba(154,112,40,0.5);
  background: radial-gradient(circle, rgba(154,112,40,0.08) 0%, #fff 100%);
  color: #8a6000;
}
html[data-theme="light"] .section-number-badge.karmic {
  border-color: rgba(192,48,48,0.35);
  background: radial-gradient(circle, rgba(192,48,48,0.06) 0%, #fff 100%);
  color: #c03030;
}

/* ── Portrait summary ─────────────────────────────────────── */
html[data-theme="light"] .portrait-summary-card {
  background: #ffffff;
  border-color: rgba(180,140,60,0.2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
html[data-theme="light"] .portrait-badge {
  background: rgba(245,240,234,0.8);
  border-color: rgba(180,140,60,0.2);
}
html[data-theme="light"] .portrait-badge.master { border-color: rgba(154,112,40,0.4); }
html[data-theme="light"] .portrait-badge.karmic { border-color: rgba(192,48,48,0.3); }

/* ── Timeline / cykle ─────────────────────────────────────── */
html[data-theme="light"] .tl-bar-track { background: rgba(180,140,60,0.12); }
html[data-theme="light"] .tl-period-wrap { background: #ffffff; border-color: rgba(180,140,60,0.15); }
html[data-theme="light"] .tl-label { color: var(--text-muted); }

/* ── Rok osobisty ─────────────────────────────────────────── */
html[data-theme="light"] .year-item {
  background: #ffffff;
  border-color: rgba(180,140,60,0.15);
}
html[data-theme="light"] .year-item:hover {
  border-color: rgba(107,53,196,0.3);
  box-shadow: 0 4px 16px rgba(107,53,196,0.08);
}
html[data-theme="light"] .year-item.current {
  border-color: rgba(176,30,192,0.4);
  background: rgba(176,30,192,0.03);
}
html[data-theme="light"] .cycle-period { color: var(--violet); }
html[data-theme="light"] .cycle-row-wrap { background: #ffffff; border-color: rgba(180,140,60,0.15); }

/* ── Historia ─────────────────────────────────────────────── */
html[data-theme="light"] .history-item {
  background: #ffffff;
  border-color: rgba(180,140,60,0.15);
}
html[data-theme="light"] .history-item:hover {
  border-color: rgba(107,53,196,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
html[data-theme="light"] .history-badge {
  background: rgba(107,53,196,0.08);
  border-color: rgba(107,53,196,0.2);
  color: var(--violet-light);
}
html[data-theme="light"] .history-badge.hb-master {
  background: rgba(154,112,40,0.08);
  border-color: rgba(154,112,40,0.25);
  color: #8a6000;
}
html[data-theme="light"] .history-badge.hb-karmic {
  background: rgba(192,48,48,0.06);
  border-color: rgba(192,48,48,0.2);
  color: #c03030;
}
html[data-theme="light"] .history-del:hover { color: #c03030; background: rgba(192,48,48,0.08); }

/* ── Tabele macierzy ──────────────────────────────────────── */
html[data-theme="light"] .matrix-table td {
  background: #ffffff;
  border-color: rgba(180,140,60,0.15);
  color: var(--text);
}
html[data-theme="light"] .matrix-cell-filled { background: rgba(107,53,196,0.06) !important; }

/* ── bd-reduce-note ───────────────────────────────────────── */
html[data-theme="light"] .bd-reduce-note {
  background: rgba(107,53,196,0.05);
  border-left-color: var(--violet-light);
}

/* ── Footer ───────────────────────────────────────────────── */
html[data-theme="light"] .site-footer {
  background: rgba(245,240,234,0.9);
  border-top-color: rgba(180,140,60,0.2);
  color: var(--text-muted);
}

/* ── Calculating overlay ──────────────────────────────────── */
html[data-theme="light"] .calculating { color: var(--text-dim); }

/* ─── PRZEŁĄCZNIK MOTYWU ──────────────────────────────────── */
/* ═══ PRZEŁĄCZNIK MOTYWU — identyczny z blogiem dundeni.com ══ */
.num-theme-toggle {
  position: fixed; bottom: 28px; left: 28px; z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; border: none; background: none !important;
  padding: 0; outline: none;
  -webkit-tap-highlight-color: transparent;
}
.num-theme-toggle:hover,
.num-theme-toggle:focus,
.num-theme-toggle:active { background: none !important; outline: none; box-shadow: none; }

/* Etykieta "JASNY" / "CIEMNY" */
.num-toggle-lbl {
  font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase;
  font-family: 'Cinzel', serif; font-weight: 500;
  user-select: none;
  padding: 5px 10px; border-radius: 100px;
  backdrop-filter: blur(10px);
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}

/* Dark mode etykieta */
html[data-theme="dark"] .num-toggle-lbl {
  color: #8b7aaa;
  background: #1a1535;
  border: 1px solid rgba(212,175,114,0.2);
}

/* Light mode etykieta */
html[data-theme="light"] .num-toggle-lbl {
  color: #B0A8BC;
  background: #ffffff;
  border: 1px solid rgba(232,200,112,0.18);
}

/* Track (sam toggle) */
.num-toggle-track {
  position: relative; width: 48px; height: 26px;
  border-radius: 13px; padding: 2px;
  transition: all 0.35s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* Dark: ciepły gradient złoto→różowo→fiolet */
html[data-theme="dark"] .num-toggle-track {
  background: linear-gradient(160deg, #faf0d0 0%, #d4af72 40%, #c026d3 80%);
}

/* Light: żywszy gradient (jak na screenshocie) */
html[data-theme="light"] .num-toggle-track {
  background: linear-gradient(160deg, #F0DFA0 0%, #E8C070 18%, #E8709A 55%, #A875F0 100%);
}

/* Kółko (thumb) */
.num-toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* W jasnym motywie — kółko przesunięte w prawo */
html[data-theme="light"] .num-toggle-thumb { transform: translateX(22px); }


/* ══════════════════════════════════════════════════════════
   LIGHT MODE — POPRAWKI V2 (na podstawie screenshota)
   ══════════════════════════════════════════════════════════ */

/* ── PERSON-NAME GRADIENT — jasny ────────────────────────── */
html[data-theme="light"] .person-name-display {
  background: linear-gradient(135deg, #9a7028, #b01ec0, #9a7028);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[data-theme="light"] .person-birth-display {
  color: var(--text-muted);
}

/* ── PORTRAIT BADGES (górne kółka z liczbami) ─────────────── */
html[data-theme="light"] a.portrait-badge,
html[data-theme="light"] .portrait-badge {
  background: #ffffff;
  border-color: rgba(180,140,60,0.25);
  color: var(--text) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
html[data-theme="light"] .portrait-badge:hover {
  border-color: rgba(107,53,196,0.4);
  box-shadow: 0 6px 24px rgba(107,53,196,0.12);
}
html[data-theme="light"] .badge-number { color: var(--text); }
html[data-theme="light"] .badge-label  { color: var(--text-muted); }
html[data-theme="light"] .portrait-badge.master .badge-number { color: #8a6000; }
html[data-theme="light"] .portrait-badge.karmic .badge-number { color: #c03030; }
html[data-theme="light"] .portrait-badge.master {
  border-color: rgba(154,112,40,0.45);
  box-shadow: 0 0 16px rgba(154,112,40,0.12);
  animation: none;
}
html[data-theme="light"] .portrait-badge.karmic {
  border-color: rgba(192,48,48,0.3);
  box-shadow: 0 0 16px rgba(192,48,48,0.08);
  animation: none;
}

/* ── TABS NAV ─────────────────────────────────────────────── */
html[data-theme="light"] .tabs-nav {
  background: rgba(245,240,234,0.95);
  border-color: rgba(180,140,60,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(16px);
}
html[data-theme="light"] .tab-btn {
  color: var(--text-muted);
}
html[data-theme="light"] .tab-btn:hover {
  color: var(--violet);
  background: rgba(107,53,196,0.07);
}
html[data-theme="light"] .tab-btn.active {
  background: linear-gradient(135deg, #6b35c4, #b01ec0);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(107,53,196,0.28);
}

/* ── SECTION NUMBER BADGE (kółka w akordeonach) ─────────────── */
html[data-theme="light"] .section-number-badge {
  background: linear-gradient(135deg, #f5f0ea, #ffffff);
  border-color: rgba(107,53,196,0.3);
  color: var(--text);
}
/* pseudoelement — usunięcie ciemnego gradientu */
html[data-theme="light"] .section-number-badge::after {
  background: linear-gradient(#ffffff, #ffffff) padding-box,
              linear-gradient(135deg, rgba(107,53,196,0.5), rgba(176,30,192,0.4)) border-box;
  opacity: 0.6;
}
html[data-theme="light"] .section-type-label { color: var(--violet); }
html[data-theme="light"] .section-toggle     { color: var(--text-muted); }
html[data-theme="light"] .section-header:hover { background: rgba(107,53,196,0.04); }

/* ── BACK BUTTON ──────────────────────────────────────────── */
html[data-theme="light"] .btn-back {
  border-color: rgba(107,53,196,0.3);
  color: var(--text-muted);
  background: rgba(245,240,234,0.6);
}
html[data-theme="light"] .btn-back:hover {
  border-color: var(--violet);
  color: var(--violet);
  background: rgba(107,53,196,0.05);
}

/* ── ACTIONS BAR ──────────────────────────────────────────── */
html[data-theme="light"] .actions-bar { border: none; }

/* ── FORECAST TABLE ───────────────────────────────────────── */
html[data-theme="light"] .forecast-table th {
  background: rgba(245,240,234,0.9);
  color: var(--text-muted);
  border-bottom-color: rgba(180,140,60,0.15);
}
html[data-theme="light"] .forecast-table td {
  background: #ffffff;
  color: var(--text-dim);
  border-bottom-color: rgba(180,140,60,0.08);
}
html[data-theme="light"] .forecast-table tr:hover td {
  background: rgba(107,53,196,0.04);
}

/* ── TIMELINE/TL CONTAINER ────────────────────────────────── */
html[data-theme="light"] .tl-container {
  background: linear-gradient(135deg, #ffffff 0%, rgba(245,240,234,0.9) 100%);
  border-color: rgba(180,140,60,0.18);
}
html[data-theme="light"] .tl-period-wrap,
html[data-theme="light"] .tl-card {
  background: #ffffff;
  border-color: rgba(180,140,60,0.15);
}
html[data-theme="light"] .tl-label { color: var(--text-muted); }
html[data-theme="light"] .tl-legend-item { color: var(--text-muted); }

/* ── MASTER/KARMIC TAGS ───────────────────────────────────── */
html[data-theme="light"] .master-tag {
  background: rgba(154,112,40,0.1);
  border-color: rgba(154,112,40,0.3);
  color: #8a6000;
}
html[data-theme="light"] .karmic-tag {
  background: rgba(192,48,48,0.08);
  border-color: rgba(192,48,48,0.25);
  color: #c03030;
}

/* ── PORTRAIT SUMMARY CARD — dodatkowe ───────────────────── */
html[data-theme="light"] .portrait-desc-text { color: var(--text-dim); }
html[data-theme="light"] .portrait-summary-card h3,
html[data-theme="light"] .portrait-summary-card strong { color: var(--text); }

/* ── SECTION BODY TEXT ────────────────────────────────────── */
html[data-theme="light"] .section-body { color: var(--text-dim); }
html[data-theme="light"] .section-body h3,
html[data-theme="light"] .section-body h4 { color: var(--text); }
html[data-theme="light"] .section-body strong { color: var(--text); }
html[data-theme="light"] .section-body em { color: #C0507A; }
html[data-theme="light"] .section-divider {
  background: linear-gradient(90deg, transparent, rgba(180,140,60,0.3), transparent);
}

/* ── CHIP / CHIP-LIKE ELEMENTS ────────────────────────────── */
html[data-theme="light"] .lu-chip,
html[data-theme="light"] .chip {
  background: rgba(107,53,196,0.08);
  border-color: rgba(107,53,196,0.2);
  color: var(--violet);
}
html[data-theme="light"] .lu-chip:hover,
html[data-theme="light"] .chip:hover {
  background: rgba(107,53,196,0.15);
}

/* ── REDUCING LIGHT ANIMATIONS in light mode ─────────────── */
html[data-theme="light"] .section-number-badge.master { animation: none; }
html[data-theme="light"] .section-number-badge.karmic { animation: none; }
html[data-theme="light"] .portrait-badge.master       { animation: none; }
html[data-theme="light"] .portrait-badge.karmic       { animation: none; }


/* ══ PORTRAIT BADGES — nawigacja do sekcji ══════════════════ */
a.portrait-badge {
  cursor: pointer;
  text-decoration: none !important;
  position: relative;
}

/* Strzałka-hint przy hover */
a.portrait-badge::after {
  content: '↓';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 11px;
  color: var(--violet-light);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  font-style: normal;
  font-family: sans-serif;
}

a.portrait-badge:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

a.portrait-badge:hover {
  border-color: var(--violet);
  box-shadow: var(--glow-violet);
  transform: translateY(-4px);
}

/* Light mode overrides */
html[data-theme="light"] a.portrait-badge {
  background: #ffffff !important;
  border-color: rgba(180,140,60,0.25) !important;
  color: #1a1520 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07) !important;
}
html[data-theme="light"] a.portrait-badge:hover {
  border-color: rgba(107,53,196,0.4) !important;
  box-shadow: 0 8px 24px rgba(107,53,196,0.13) !important;
}
html[data-theme="light"] a.portrait-badge::after {
  color: #6b35c4;
}

/* ══ PORTRAIT BADGES — linki do artykułów ═══════════════════ */
a.portrait-badge::after { display: none; }
