input[type="date"] {
  -webkit-appearance: none;
}

/* FORCE MONTSERRAT ALTERNATES EVERYWHERE */
* {
  font-family: 'Montserrat Alternates', sans-serif !important;
  text-transform: none !important;
}

/* Starfield animations */
@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0%;
  }
  50% {
    background-position: 100%;
  }
  100% {
    background-position: 0%;
  }
}

.gradient-text {
  background: linear-gradient(90deg, 
    #ffb3b3, 
    #ffd9b3, 
    #ffff99, 
    #b3ffb3, 
    #b3b3ff, 
    #d9b3ff, 
    #ffb3b3);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes glow-twinkle {
  0%, 100% {
    opacity: 0.1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

@keyframes rotate-gradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes border-shimmer {
  0% {
    background-position: 0% 50%;
    opacity: 0.82;
  }
  50% {
    background-position: 100% 50%;
    opacity: 1;
  }
  100% {
    background-position: 0% 50%;
    opacity: 0.82;
  }
}

body {
  background-color: #0a0810;
  font-family: "Montserrat Alternates", sans-serif;
  color: #ffffff;
  font-style: normal;
  font-size: clamp(12px, 0.78vw, 17px);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url('../assets/img/arcana-bg.webp'),
    url('../assets/img/arcana-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0a0810;
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
}

header,
main,
footer {
  padding-left: clamp(16px, 4vw, 80px);
  padding-right: clamp(16px, 4vw, 80px);
}

.header {
  padding: 1.875em 0 1.875em 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 1.25em;
  text-transform: uppercase;
}

.logo-img {
  height: 50px;
  width: auto;
  display: inline-block;
  margin-right: 0.5em;
  vertical-align: middle;
}

.logo-text {
  display: inline-block;
  vertical-align: middle;
  font-size: 1.25em;
  font-weight: bold;
  color: #d8b8e8;
}

.header-right {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3em;
}

.hamburger {
  display: none;
}

.hamburger__span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: #ffffff;
}

.logo {
  display: none;
}

.footer {
  display: flex;
  justify-content: center;
}

.footer p {
  font-size: 0.9em;
  font-family: "Montserrat Alternates", sans-serif;
  text-transform: uppercase;
  margin-top: 0;
}

a {
  text-decoration: none;
  /* убираем линию подчеркивания */
  color: inherit;
  /* цвет ссылки равен цвету текста */
  outline: none;
  /* убираем подсветку при фокусировке */
  cursor: pointer;
}

li {
  list-style-type: none;
}

.birthday-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Montserrat Alternates", sans-serif;
  margin-bottom: 8em;
  padding: 4em 0;
}

.birthday-container p {
  margin: 0;
  font-size: 1.5em;
}

.birthday-container__inputs-wrapper {
  width: auto;
  margin-top: 3.1875em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "input1 input2"
    "button button";
  grid-gap: 20px;
  justify-items: center;
}

.birthday-container__inputs-wrapper-comp {
  width: auto;
  margin-top: 1.6875em;
  display: grid;
  grid-template-columns: auto auto;
  grid-auto-rows: auto;
  grid-column-gap: 0.5em;
  grid-row-gap: 0.3em;
}

label {
  padding-left: 1em;
  font-size: 1em;
}

.errorOutput,
.wrongDate {
  padding-top: 5em;
  font-size: 1.5em;
}

.input1-wrap,
.input2-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#date,
#name {
  width: 8.55em;
  height: 1.25em;
  background: rgba(26, 15, 46, 0.5) !important;
  color: #d8b8e8 !important;
  border: 1px #d8b8e8 solid !important;
}

#date_person1,
#date_person2 {
  width: 12em;
  height: 2.5em;
  background: rgba(26, 15, 46, 0.5) !important;
  color: #d8b8e8 !important;
  border: 1px #d8b8e8 solid !important;
}

/* Compatibility matrix inputs - First person (#d9b3ff) */
#date1,
#name1 {
  width: 8.55em;
  height: 1.25em;
  background: rgba(26, 15, 46, 0.5) !important;
  color: #d9b3ff !important;
  border: 1px #d9b3ff solid !important;
}

#date1::placeholder,
#name1::placeholder {
  color: #c994e8 !important;
  opacity: 0.7 !important;
}

/* Compatibility matrix inputs - Second person (#b3b3ff) */
#date2,
#name2 {
  width: 8.55em;
  height: 1.25em;
  background: rgba(26, 15, 46, 0.5) !important;
  color: #b3b3ff !important;
  border: 1px #b3b3ff solid !important;
}

#date2::placeholder,
#name2::placeholder {
  color: #9a9ae8 !important;
  opacity: 0.7 !important;
}

.input2-wrap {
  position: relative;
}

input {
  padding: 1.25em 3.25em 1.25em 3.25em;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 1.25em;
  background: rgba(26, 15, 46, 0.5);
  color: #d8b8e8;
  border: 1px #d8b8e8 solid;
  border-radius: 0.5em;
  transition: all 0.3s ease;
  box-shadow: none;
}

input:focus {
  box-shadow: 0 0 20px rgba(201, 168, 232, 0.2);
  border-color: #d8b8e8;
}

/* Prevent white background on input when text is entered */
input,
input:valid,
input:not(:placeholder-shown),
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  background: rgba(26, 15, 46, 0.5) !important;
  color: #d8b8e8 !important;
  -webkit-text-fill-color: #d8b8e8 !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(26, 15, 46, 0.5) inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* Override browser default input styles - First person (#d9b3ff) */
#date1,
#name1 {
  background: rgba(26, 15, 46, 0.5) !important;
  color: #d9b3ff !important;
  -webkit-text-fill-color: #d9b3ff !important;
}

/* Override browser default input styles - Second person (#b3b3ff) */
#date2,
#name2 {
  background: rgba(26, 15, 46, 0.5) !important;
  color: #b3b3ff !important;
  -webkit-text-fill-color: #b3b3ff !important;
}

/* Autofill styles - First person (#d9b3ff) */
#date1:-webkit-autofill,
#name1:-webkit-autofill,
#date1:-webkit-autofill:hover,
#name1:-webkit-autofill:hover,
#date1:-webkit-autofill:focus,
#name1:-webkit-autofill:focus {
  background: rgba(26, 15, 46, 0.5) !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(26, 15, 46, 0.5) inset !important;
  -webkit-text-fill-color: #d9b3ff !important;
  box-shadow: 0 0 0 1000px rgba(26, 15, 46, 0.5) inset !important;
}

/* Autofill styles - Second person (#b3b3ff) */
#date2:-webkit-autofill,
#name2:-webkit-autofill,
#date2:-webkit-autofill:hover,
#name2:-webkit-autofill:hover,
#date2:-webkit-autofill:focus,
#name2:-webkit-autofill:focus {
  background: rgba(26, 15, 46, 0.5) !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(26, 15, 46, 0.5) inset !important;
  -webkit-text-fill-color: #b3b3ff !important;
  box-shadow: 0 0 0 1000px rgba(26, 15, 46, 0.5) inset !important;
}

::-webkit-calendar-picker-indicator {
  display: none !important;
}

button {
  padding: 1.25em 2em 1.25em 2em;
  background: linear-gradient(135deg, #d8b8e8 0%, #dac4e0 100%);
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 1.25em;
  line-height: 125%;
  text-transform: uppercase;
  border-radius: 0.5em;
  border: none;
  z-index: 1;
  cursor: pointer;
  color: #1a0f2e;
  transition: all 0.3s ease;
  box-shadow: none;
}

button:not(.cosmic-btn-new):not(.sphere-button):hover {
  transform: translateY(-2px);
  box-shadow: none;
  color: #1a0f2e;
  background: linear-gradient(135deg, #dac4e0 0%, #e8d4f8 100%);
}

.cosmic-btn-new {
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  position: relative;
  overflow: hidden;
  background: rgba(20, 13, 35, 0.36) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 30px rgba(8, 5, 16, 0.28) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
  isolation: isolate;
}

.cosmic-btn-new::before {
  inset: 0 !important;
  padding: 2px;
  background: linear-gradient(90deg, #ffb3b3, #ffd9b3, #ffff99, #b3ffb3, #b3b3ff, #d9b3ff, #ffb3b3) !important;
  background-size: 220% 220% !important;
  animation: border-shimmer 6s ease-in-out infinite !important;
  z-index: -2 !important;
}

.cosmic-btn-new::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(118, 88, 170, 0.09) 45%, rgba(12, 10, 22, 0.32) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: -1;
  pointer-events: none;
}

.cosmic-btn-new:hover {
  background: rgba(24, 16, 42, 0.42) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 16px 38px rgba(8, 5, 16, 0.36), 0 0 28px rgba(201, 168, 232, 0.18) !important;
}

.purpose-card {
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  position: relative;
  overflow: hidden;
  background: rgba(20, 13, 35, 0.36) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 30px rgba(8, 5, 16, 0.28) !important;
  isolation: isolate;
}

.purpose-card::before {
  inset: 0 !important;
  padding: 2px;
  background: linear-gradient(90deg, #ffb3b3, #ffd9b3, #ffff99, #b3ffb3, #b3b3ff, #d9b3ff, #ffb3b3) !important;
  background-size: 220% 220% !important;
  animation: border-shimmer 6s ease-in-out infinite !important;
  z-index: -2 !important;
}

.purpose-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(118, 88, 170, 0.09) 45%, rgba(12, 10, 22, 0.32) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: -1;
  pointer-events: none;
}

.purpose-card #generalpurpose,
.purpose-card #perspurpose,
.purpose-card #socialpurpose {
  border: 2.5px solid transparent !important;
  background: linear-gradient(135deg, rgba(34, 16, 56, 0.95), rgba(22, 10, 42, 0.95)) padding-box,
    linear-gradient(135deg, #ffd6e5, #ffe3c9, #fff1b8, #d9f7c5, #cfe8ff, #e5d4ff, #ffd6e5) border-box !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 10px rgba(217, 179, 255, 0.24) !important;
}

#chakra_table .chakra-rainbow-wrap {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 12px;
  border: 2px solid transparent !important;
  background-image:
    linear-gradient(90deg, #ffb3b3, #ffd9b3, #ffff99, #b3ffb3, #b3b3ff, #d9b3ff, #ffb3b3),
    linear-gradient(180deg, rgba(20, 13, 35, 0.98), rgba(20, 13, 35, 0.98));
  background-origin: border-box, padding-box;
  background-clip: border-box, padding-box;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  box-shadow: 0 10px 30px rgba(8, 5, 16, 0.24), 0 0 18px rgba(201, 168, 232, 0.16) !important;
  isolation: isolate;
}

#chakra_table .chakra-rainbow-wrap::before {
  content: none !important;
}

#chakra_table .chakra-rainbow-wrap::after {
  content: none !important;
}

#chakra_table .chakra-table {
  position: relative;
  z-index: 1;
  border-radius: 10px;
  overflow: hidden;
}

#chakra_table .chakra-table th,
#chakra_table .chakra-table td {
  background-color: rgba(24, 14, 44, 0.94) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#chakra_table .chakra-gap-row td {
  height: 2px !important;
  padding: 0 !important;
  border: 0 !important;
  background: linear-gradient(90deg, #ffb3b3, #ffd9b3, #ffff99, #b3ffb3, #b3b3ff, #d9b3ff, #ffb3b3) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#get_the_answer,
#createChart {
  grid-area: button;
  align-self: baseline;
  cursor: pointer;
}

.star__wrap1 {
  position: absolute;
  top: 0em;
  left: -2em;
  font-size: 1.25em;
}

.star__wrap2 {
  position: absolute;
  top: -1.56em;
  right: -1.38em;
  font-size: 1.25em;
}

.star__wrap3 {
  position: absolute;
  bottom: -1.8em;
  right: -1.38em;
  font-size: 1.25em;
}

.star__wrap4 {
  position: absolute;
  top: -2.5em;
  right: -1em;
  font-size: 1.25em;
}

.star__wrap5 {
  position: absolute;
  top: 7em;
  right: -1.5em;
  font-size: 1.25em;
  opacity: 0.1;
}

.star__wrap6 {
  position: absolute;
  top: 10em;
  left: 9em;
  font-size: 1.25em;
}

.star__wrap7 {
  position: absolute;
  top: -1em;
  left: 6em;
  font-size: 1.25em;
  opacity: 0.1;
}

.star__wrap8 {
  position: absolute;
  top: 11em;
  right: 9em;
  font-size: 1.25em;
}

.star-size-m {
  width: 2.9em;
}

.star-size-s {
  width: 1.85em;
}

.star-size-l {
  width: 4.3em;
}

.center {
  display: flex;
  justify-content: center;
}

.desteny-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.26);
  text-align: center;
  padding: 12em 0 10em 0;
  margin: 0;
}

.desteny-container p {
  margin: 0;
  font-size: 3.75em;
}

.chakra-table {
  border-spacing: 0;
  border-radius: 10px;
  width: 100%;
  max-width: 50em;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, rgba(26, 15, 46, 0.6), rgba(45, 27, 78, 0.6));
  backdrop-filter: blur(10px);
  padding: 2em;
  box-shadow: 0 8px 32px rgba(201, 168, 232, 0.1);
}

.chakra-table td:first-child,
.chakra-table th:first-child {
  border-left: 1px solid rgba(201, 168, 232, 0.4);
}

.chakra-table tr:first-child th,
.chakra-table tr:last-child td {
  border-top: 1px solid rgba(201, 168, 232, 0.4);
}

.chakra-table td,
.chakra-table th {
  border-right: 1px solid rgba(201, 168, 232, 0.4);
  border-bottom: 1px solid rgba(201, 168, 232, 0.4);
}

.chakra-name__bottom td:first {
  border-bottom-left-radius: 10px;
}

.chakra-table__result {
  margin-top: 1em;
}

.info-txt {
  display: none;
}

.chakra-name {
  width: 16.25em;
  height: 3.0625em;
  /* border: 1px solid rgb(255, 255, 255); */
  padding: 0.3125em;
  text-align: center;
}

.chakra-name-left {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding-left: 0;
}

.chakra-name-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

#circle-sahastrara {
  color: #b653f7;
}

#circle-ajna {
  color: #3d54f5;
}

#circle-vishuddha {
  color: #74e0f8;
}

#circle-anahata {
  color: #b6fd57;
}

#circle-manipura {
  color: #fbe49d;
}

#circle-svadhishtana {
  color: #ed7233;
}

#circle-muladhara {
  color: #ea4631;
}

.chakra-td {
  padding: 0.3125em;
  text-align: center;
  width: 12.5em;
  /* size: 16px; */
}

.chakra-tr {
  font-family: "Montserrat Alternates", sans-serif;
  /* size: 20px; */
  text-align-last: center;
  padding: 0.3125em;
  text-align: center;
  background-color: rgba(26, 15, 46, 0.3);
  transition: all 0.3s ease;
}

.chakra-tr:hover {
  background-color: rgba(139, 71, 137, 0.2);
  box-shadow: inset 0 0 12px rgba(201, 168, 232, 0.1);
}

.chakra-name__bottom {
  box-shadow: none;
}

.chakra-name__radius-left {
  background: linear-gradient(135deg, rgba(139, 71, 137, 0.5), rgba(201, 168, 232, 0.15));
  border-top-left-radius: 10px;
  border-left: 2px solid rgba(201, 168, 232, 0.6);
}

.chakra-name__radius-right {
  background: linear-gradient(135deg, rgba(139, 71, 137, 0.5), rgba(201, 168, 232, 0.15));
  border-top-right-radius: 10px;
  border-right: 2px solid rgba(201, 168, 232, 0.6);
}

.chakra-name__radius-left-bottom {
  background: linear-gradient(135deg, rgba(139, 71, 137, 0.3), rgba(201, 168, 232, 0.1));
  border-bottom-left-radius: 10px;
  border-top-left-radius: 10px;
  border-left: 2px solid rgba(201, 168, 232, 0.6);
  border-bottom: 2px solid rgba(201, 168, 232, 0.6);
}

.chakra-name__radius-right-bottom {
  background: linear-gradient(135deg, rgba(139, 71, 137, 0.3), rgba(201, 168, 232, 0.1));
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-right: 2px solid rgba(201, 168, 232, 0.6);
  border-bottom: 2px solid rgba(201, 168, 232, 0.6);
}

.chakra-name__radius-right-bottom2 {
  border-bottom-right-radius: 10px;
}

.chakra-table-header> :nth-child(2),
.chakra-table-header> :nth-child(3) {
  background: linear-gradient(135deg, rgba(139, 71, 137, 0.5), rgba(201, 168, 232, 0.15));
  border-top: 2px solid rgba(201, 168, 232, 0.6);
  border-bottom: 2px solid rgba(201, 168, 232, 0.4);
}

.chakra-table-header {
  font-family: "Montserrat Alternates", sans-serif;
  /* size: 20px; */
  text-transform: uppercase;
}

.glow__wrap {
  /* positioning */
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  /* display */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: -1;
}

.glow {
  width: 50em;
  height: 1.875em;
  background: #d8b8e8;
  filter: blur(4.6875em);
  display: none;
}

.glow2 {
  position: absolute;
  width: 45em;
  height: 36em;
  background: #d8b8e8;
  filter: blur(4.6875em);
  z-index: -1;
  display: none;
}

.center_container {
  position: relative;
}

.glow-btn__wrap {
  /* positioning */
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  /* display */
  display: flex;
  justify-content: center;
  align-items: center;
}

.glow-btn {
  width: 49.375em;
  height: 1.875em;
  background: #d8b8e8;
  filter: blur(4.6875em);
  display: none;
}

.personal-calculator {
  display: flex;
  justify-content: center;
  font-size: 3.375em;
  display: flex;
  align-items: center;
  text-align: center;
  text-transform: uppercase;
}

.output-personal-date,
.output2 {
  text-align: center;
  font-size: 1.25em;
  font-family: "Montserrat Alternates", sans-serif;
}

.matrix-container .output-personal-date {
  margin-bottom: clamp(0.8rem, 2.5vw, 2rem);
}

.gray {
  color: #827d78;
}

.smoky-white {
  color: #f9f9f8;
}

.smoky-white2 {
  color: #d8b8e8;
}

.container__socialmedia {
  margin-bottom: 3em;
}

.socialmedia-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.socialmedia-wrapper_second {
  gap: 20px;
}

.socialmedia-wrapper:first-child {
  margin-bottom: 15px;
}

.socialmedia-wrapper_first .socialmedia-item img {
  max-width: 43px;
}

#youtube {
  max-width: 57px;
}

.socialmedia-wrapper_second .socialmedia-item img {
  max-width: 38px;
}

.socialmedia-item {
  margin-left: 0.5em;
  margin-right: 0.5em;
}

#decode-matrix-btn {
  max-width: 20em;
  margin-top: 6.5em;
  margin-bottom: 6.5em;
}

/* Matrix's styles */

.matrix-container,
.compatibility-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(0.35rem, 1vw, 0.9rem);
}

.pento {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Reserve space for labels/shadows rendered outside SVG viewBox */
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  box-sizing: border-box;
}

@media screen and (max-width: 810px) {
  .pento {
    padding-top: clamp(4.5rem, 14vw, 6.5rem);
    padding-bottom: clamp(3rem, 10vw, 5.25rem);
  }
}

.display-none {
  display: none;
}

#matrix {
  float: none;
  margin: 0 auto;
  width: 100%;
  max-width: 1000px;
  min-width: 0;
  display: block;
  height: auto;
  aspect-ratio: 680 / 600;
  overflow: visible;
}

#main-frame-circle,
#main-frame-circle-comp,
#main-frame-circle-p2 {
  shape-rendering: geometricPrecision;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: none !important;
  transform: none !important;
  filter: none !important;
}

@supports (-webkit-touch-callout: none) {
  #main-frame-circle,
  #main-frame-circle-comp,
  #main-frame-circle-p2 {
    /* Keep explicit Safari rule for resilience against inline style precedence quirks */
    filter: none !important;
  }
}

@media screen and (max-width: 1600px) {
  #matrix {
    width: min(100%, calc((100dvh - 280px) * 680 / 600));
    margin: 0 auto;
  }
}

@media screen and (max-width: 1200px) {
  #matrix {
    width: min(100%, calc((100dvh - 240px) * 680 / 600));
    margin: 0 auto;
  }
}

/* Tablet landscape (iPad-like): keep matrix fully visible without page zoom-out */
@media (hover: none) and (pointer: coarse) and (orientation: landscape) and (min-width: 900px) and (max-width: 1366px) {
  #matrix {
    width: min(94%, calc((100vh - 250px) * 680 / 600));
    width: min(94%, calc((100dvh - 250px) * 680 / 600));
    margin: 0 auto;
  }

  .output-personal-date,
  .output2 {
    margin-bottom: 0.9em;
  }
}

.matrix-svg {
  /* Already handled by #matrix */
}

:not(svg) {
  transform-origin: 0px 0px;
}

svg:not(:root) {
  overflow-clip-margin: content-box;
  overflow: visible;
}

text {
  cursor: default;
}

.cls-4 {
  stroke-dasharray: 0, 49, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
    41;
}

.cls-3,
.cls-4,
.cls-18 {
  stroke-width: 1.5px;
}

.cls-5,
.cls-7 {
  stroke-width: 1px;
}

.cls-18 {
  stroke-dasharray: 0, 25, 10, 50, 10, 50, 10, 25;
}

.cls-18,
.cls-3,
.cls-4 {
  stroke-miterlimit: 10;
  stroke: white;
  fill: none;
}

.cls-5,
.cls-6 {
  stroke: #d89fff;
  fill: #d89fff;
}

.cls-7,
.cls-8 {
  stroke: #e89a8a;
  fill: #e89a8a;
}

.cls-10 {
  fill: #d89fff;
}

.cls-13 {
  fill: #7b8fd8;
}

.cls-15 {
  fill: #a8ecf5;
}

.cls-19 {
  fill: #e89a8a;
}

.cls-22 {
  fill: #e9a577;
}

.cls-25 {
  fill: #fbe49d;
}

.cls-26 {
  fill: #d4f5a1;
}

.cls-15,
.cls-21,
.cls-22,
.cls-26 {
}

.cls-13,
.cls-23 {
}

.cls-10,
.cls-19,
.cls-24,
.cls-25 {
}

.cls-24,
.cls-21,
.cls-23,
.cls-53 {
  fill: #fffcf0;
}

.matrix-value-point {
  text-anchor: middle;
  alignment-baseline: middle;
}

/* Circle outlines for subtle definition */
.big-circle,
.medium-circle,
.small-circle {
  stroke: none;
  stroke-width: 0px;
}

/* 3D sphere effect with radial gradients */
.cls-10 { fill: url(#grad-purple) !important; }
.cls-13 { fill: url(#grad-blue) !important; }
.cls-15 { fill: url(#grad-cyan) !important; }
.cls-19 { fill: url(#grad-red) !important; }
.cls-22 { fill: url(#grad-orange) !important; }
.cls-26 { fill: url(#grad-green) !important; }
.cls-25 { fill: url(#grad-yellow) !important; }
.cls-21 { fill: url(#grad-white) !important; }
.cls-23 { fill: url(#grad-white) !important; }
.cls-24 { fill: url(#grad-white) !important; }
.cls-53 { fill: none !important; stroke: #fffcf0; stroke-width: 2px; }

.cls-28 {
  font-size: 12.9501px;
  line-height: 11px;
}

.cls-29 {
  font-size: 12.0251px;
  line-height: 10px;
}

.cls-33 {
  font-size: 12px;
  line-height: 81.9%;
}

.cls-43 {
  font-size: 5.76471px;
  line-height: 81.9%;
}

.cls-44 {
  font-size: 10.5587px;
  line-height: 81.9%;
}

.cls-54,
.cls-55,
.cls-56 {
  font-size: 29.7851px;
  line-height: 37px;
}

.cls-56 {
  font-size: 26.8px;
}

.cls-57,
.cls-58 {
  font-size: 17.2946px;
  line-height: 22px;
}

.cls-59,
.cls-60 {
  font-size: 21.1378px;
  line-height: 26px;
}

.cls-61 {
  font-size: 6px;
  line-height: 81.9%;
}

.cls-28,
.cls-29,
.cls-33,
.cls-43,
.cls-44 {
  fill: #f5f5f5;
}

.cls-54,
.cls-57,
.cls-59,
.cls-61 {
  fill: #000000;
}

.cls-55,
.cls-58,
.cls-60 {
  fill: #000000;
}

.cls-56 {
  fill: #a8e6a1;
}

/* health-map and purposes table styles */

tbody {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 1.25em;
}

tr {
  text-align: center;
}

.font-size16 {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 1em;
}

.table-padding {
  padding-bottom: 1.25em;
}

.table-padding-top {
  padding-top: 1.25em;
}

.font-size18 {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 1.125em;
}

#purposes {
  /* font-size: 70%; */
  margin-bottom: 1.25em;
}

#blom {
  padding-right: 6.25em;
}

#blom2 {
  padding-right: 6.25em;
}

.purposes-top {
  margin-top: 5em;
}

h3 {
  text-transform: uppercase;
}

#chakra_table {
  position: relative;
}

.base-circle {
  border: 1px solid white;
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
  display: inline-block;
  text-align: center;
  line-height: 1.5em;
}

.star__wrap9 {
  position: absolute;
  bottom: -2.65em;
  right: -2.05em;
}

.star__wrap10 {
  position: absolute;
  bottom: 4.9em;
  right: -10.5em;
  font-size: 1.25em;
}

.star__wrap11 {
  position: absolute;
  bottom: 11em;
  right: -4.625em;
  font-size: 1.25em;
  opacity: 0.1;
}

.star__wrap12 {
  position: absolute;
  bottom: 23em;
  right: -6.4em;
  font-size: 1.25em;
}

.star__wrap13 {
  position: absolute;
  bottom: 34.813em;
  right: -10.5em;
  font-size: 1.25em;
  opacity: 0.1;
}

.star__wrap14 {
  position: absolute;
  bottom: 36.813em;
  right: 2.5em;
  font-size: 1.25em;
}

.star__wrap15 {
  position: absolute;
  bottom: 27.813em;
  right: 48.5em;
  font-size: 1.25em;
}

.star__wrap16 {
  position: absolute;
  bottom: 21.5em;
  right: 43em;
  font-size: 1.25em;
  opacity: 0.1;
}

.star__wrap17 {
  position: absolute;
  bottom: 8.5em;
  right: 47em;
  font-size: 1.25em;
}

.star__wrap18 {
  position: absolute;
  bottom: -4em;
  right: 42em;
  font-size: 1.25em;
  opacity: 0.1;
}

.compatibility-table__adaptiv {
  display: none;
}

/* Hero Section Styles */
main {
  background: radial-gradient(circle at center, rgba(36, 8, 75, 0.669) 0%, rgba(60, 30, 100, 0.20) 60%, transparent 100%);
  border-radius: 20px;
  margin: 3em auto;
}

.hero-section {
  padding: 6em 0;
  text-align: center;
  background: transparent;
  border-radius: 20px;
  margin: 3em 0;
}

.hero-content {
  animation: fadeInDown 0.8s ease-out;
}

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

.benefits-section {
  padding: 6em 0;
  text-align: center;
  background: transparent;
  border-radius: 20px;
  margin: 3em 0;
}

/* Features Section */
.features-section {
  padding: 4em 0;
  margin: 3em 0;
}

.feature-card {
  background: linear-gradient(135deg, rgba(26, 15, 46, 0.6), rgba(45, 27, 78, 0.6));
  backdrop-filter: blur(10px);
  padding: 3em;
  border-radius: 15px;
  border: 1px solid rgba(201, 168, 232, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(201, 168, 232, 0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(201, 168, 232, 0.2);
  border-color: rgba(201, 168, 232, 0.4);
}

.feature-icon {
  font-size: 3.5em;
  margin-bottom: 1.5em;
}

.btn-primary {
  background: linear-gradient(135deg, #d8b8e8 0%, #dac4e0 100%);
  color: #1a0f2e;
  padding: 1em 2.5em;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(201, 168, 232, 0.3);
  transition: all 0.3s ease;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 1.1em;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201, 168, 232, 0.4);
}

.btn-large {
  font-size: 1.3em !important;
  padding: 1.2em 3em !important;
  box-shadow: 0 0 30px rgba(201, 168, 232, 0.4) !important;
  transition: all 0.3s ease;
}

.btn-large:hover {
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 0 50px rgba(201, 168, 232, 0.6) !important;
}

/* Info Section */
.info-section {
  padding: 5em 0;
  margin: 3em 0;
  background: linear-gradient(135deg, rgba(201, 168, 232, 0.05), rgba(0, 217, 255, 0.05));
  border-radius: 20px;
}

.info-section h2 {
  animation: fadeInDown 0.8s ease-out;
}

/*media desktop version */

@media screen and (max-width: 810px) {

  .logo {
    display: block;
    margin-bottom: 10px;
    font-family: "Montserrat Alternates", sans-serif;
    font-size: 22px;
    font-weight: 600;
  }

  header,
  main,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hamburger {
    display: block;
    padding: 13px 13px;
    cursor: pointer;
    position: fixed !important;
    background: transparent;
    border: none;
    border-radius: 0;
    top: 15px;
    right: 15px;
    z-index: 1200;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
    pointer-events: auto;
  }

  .hamburger.active {
    top: 15px;
    right: 15px;
    background: transparent;
  }

  .hamburger.active .hamburger__span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .hamburger__span:nth-child(1) {
    transform: translate(3px, -1.9px) rotate(45deg);
  }

  .hamburger.active .hamburger__span:nth-child(3) {
    transform: translate(1.8px, 1.6px) rotate(-45deg);
  }

  .header-left {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 15px;
    left: 15px;
    width: 48px;
    height: 48px;
    z-index: 1201;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201, 168, 232, 0.15) 0%, rgba(201, 168, 232, 0.03) 100%);
    border: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(201, 168, 232, 0.25);
    isolation: isolate;
  }

  .header-left::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ffb3b3, #ffd9b3, #ffff99, #b3ffb3, #b3b3ff, #d9b3ff, #ffb3b3);
    animation: rotate-gradient 15s linear infinite;
    z-index: -1;
    pointer-events: none;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 2px;
  }

  .header-left .logo-text {
    display: none;
  }

  .header-left .logo-img {
    height: 32px;
    margin-right: 0;
  }

  .header-right {
    margin: 0;
    padding-top: 45px;
    position: fixed;
    right: -400px;
    top: 0;
    gap: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background: rgba(14, 10, 24, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.35);
    width: 300px;
    height: 100vh;
    transition: 0.4s;
    z-index: 1190;
  }

  .header-right.active {
    right: 0;
  }

  .header-right li {
    font-size: 14px;
  }

  .header-right li:not(:last-child) {
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 640px) {
  .header-right {
    width: 250px;
  }

  .footer p {
    margin-bottom: 30px;
  }

  .socialmedia-wrapper:first-child {
    margin-bottom: 10px;
  }

  .socialmedia-wrapper_first .socialmedia-item img {
    max-width: 35px;
  }

  #youtube {
    max-width: 46px;
  }

  .socialmedia-wrapper_second .socialmedia-item img {
    max-width: 31px;
  }
}

@media screen and (max-width: 479px) {
  body {
    font-size: 12px;
  }

  .header-right {
    width: 230px;
  }

  .birthday-container__inputs-wrapper {
    width: 100%;
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas:
      "input1"
      "input2"
      "button";
    grid-gap: 10px;
    justify-items: center;
  }

  .birthday-container__inputs-wrapper-comp {
    width: 100%;
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    grid-row-gap: 10px;
    justify-items: center;
  }

  label {
    font-size: 14px;
  }


  #date,
  #name,
  #date_person1,
  #date_person2,
  #date1,
  #date2,
  #name1,
  #name2 {
    width: 138px;
    height: 38px;
    padding: 5px 30px;
    font-size: 16px;
  }

  #get_the_answer,
  #createChart {
    width: 200px;
    height: 50px;
    padding: 5px;
    font-size: 16px;
  }

  .desteny-container p,
  .personal-calculator {
    font-size: 28px;
    text-align: center;
  }

  .footer p {
    margin-bottom: 25px;
    font-size: 18px;
  }

  .desteny-container,
  .personal-calculator p {
    padding: 40px 0;
  }

  .birthday-container {
    margin-bottom: 0;
    padding: 2em 0 1em 0;
  }

  .birthday-container p {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 0.8em;
  }

  .birthday-container__inputs-wrapper {
    margin-top: 0.8em !important;
    gap: 0.6em !important;
  }

  .output-personal-date,
  .output2 {
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 1.5em;
  }

  .personal-calculator p {
    margin: 0;
  }

  tbody {
    font-size: 10px;
  }

  .chakra-table {
    max-width: 100%;
  }

  .errorOutput,
  .wrongDate {
    font-size: 16px;
  }

  .star__wrap1,
  .star__wrap2,
  .star__wrap3,
  .star__wrap4,
  .star__wrap5,
  .star__wrap6,
  .star__wrap7,
  .star__wrap8,
  .star__wrap9,
  .star__wrap10,
  .star__wrap11,
  .star__wrap12,
  .star__wrap13,
  .star__wrap14,
  .star__wrap15,
  .star__wrap16,
  .star__wrap17,
  .star__wrap18 {
    display: none;
  }

  #decode-matrix-btn {
    margin: 2.5em 0 2.5em 0;
    width: 300px;
    height: 70px;
    padding: 5px;
    font-size: 16px;
  }

  .cls-54,
  .cls-55,
  .cls-56 {
    font-size: 32px;
  }

  .cls-57,
  .cls-58 {
    font-size: 20px;
  }

  .cls-59,
  .cls-60 {
    font-size: 22px;
  }

  #blom {
    padding-right: 2.625em;
  }

  #blom2 {
    padding-right: 2.625em;
  }

  .glow2 {
    position: absolute;
    width: 49em;
    height: 52em;
    background: #d8b8e8;
    filter: blur(14.6875em);
    z-index: -1;
  }

  .glow {
    width: 50em;
    height: 3.4em;
    background: #d8b8e8;
    filter: blur(4.6875em);
  }

  .glow-btn {
    width: 60em;
    height: 7.5em;
    background: #d8b8e8;
    filter: blur(4.6875em);
  }

  .compatibility-table {
    display: none;
  }

  .compatibility-table__adaptiv {
    display: block;
  }

  .socialmedia-wrapper {
    gap: 7px;
  }

  /* Hero Section Styles */
  .hero-section {
    padding: 6em 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(201, 168, 232, 0.08), transparent);
    border-radius: 20px;
    margin: 3em 0;
  }

  /* Hero Section Styles */
  .hero-section {
    padding: 3em 0;
  }

  .hero-content {
    animation: fadeInDown 0.8s ease-out;
  }

  /* Features Section */
  .features-section {
    padding: 2em 0;
  }

  .features-section > div {
    grid-template-columns: 1fr;
  }

  .info-section > div > div {
    grid-template-columns: 1fr;
  }
}
  .socialmedia-wrapper_second {
    gap: 14px;
  }

  .socialmedia-wrapper:first-child {
    margin-bottom: 8px;
  }

  .socialmedia-wrapper_first .socialmedia-item img {
    max-width: 25px;
  }

  #youtube {
    max-width: 34px;
  }

  .socialmedia-wrapper_second .socialmedia-item img {
    max-width: 22px;
  }
}

/* Twinkling effect for frame circle points */
#frame-circle-container circle {
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
/* Life Spheres Section Styles */
.life-spheres-section {
  width: 100%;
  max-width: 900px;
  margin: 4em auto 3em;
  padding: 0 20px;
  box-sizing: border-box;
}

.spheres-title {
  text-align: center;
  font-size: 2.5em;
  color: #d8b8e8;
  margin-bottom: 0.8em;
  font-weight: 700;
}

.sphere-group {
  background: rgba(20, 14, 34, 0.34);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
  border-radius: 15px;
  border: 1px solid rgba(201, 168, 232, 0.2);
  overflow: hidden;
  padding: 1.5em 0;
  isolation: isolate;
}

.group-title {
  padding: 1em 2em;
  font-size: 1.5em;
  color: #d8b8e8;
  border-bottom: 2px solid rgba(201, 168, 232, 0.3);
  margin: 0;
  font-weight: 600;
  font-family: 'Montserrat Alternates', sans-serif !important;
  text-transform: none !important;
}

.sphere-button {
  width: 100%;
  padding: 1.5em 2em;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201, 168, 232, 0.15);
  color: #ffffff;
  font-size: 1.1em;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  font-family: 'Montserrat Alternates', sans-serif !important;
  font-weight: 500;
  text-transform: none !important;
}

.sphere-button:hover {
  color: #ffffff;
}

.sphere-button:last-of-type {
  border-bottom: none;
}

.button-text {
  flex: 1;
  display: inline-block;
  transition: transform 0.3s ease;
  font-family: 'Montserrat Alternates', sans-serif !important;
  text-transform: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .sphere-button:hover .button-text {
    transform: translateX(0.5em);
  }
}

.button-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: #d8b8e8;
  font-weight: bold;
  margin-left: 1em;
  line-height: 1;
  transform-origin: center;
}

.sphere-button.active .button-toggle {
  transform: scaleY(-1);
}

.sphere-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(20, 14, 34, 0.42);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
}

.sphere-content.open {
  max-height: 5000px;
}

.content-inner {
  padding: 1.5em 2em;
  color: #ffffff;
  line-height: 1.8;
  font-family: 'Montserrat Alternates', sans-serif !important;
}

.content-inner p {
  margin: 0 0 1em 0;
  opacity: 0.9;
}

.content-inner strong {
  color: #d8b8e8;
}

.description-placeholder {
  padding: 1.5em;
  background: rgba(201, 168, 232, 0.05);
  border-left: 3px solid #d8b8e8;
  border-radius: 5px;
  color: #b0b0b0;
  font-style: italic;
  margin-top: 1em;
}

.year-forecast-table-wrap {
  padding: 0 0.3em 1.2em;
  overflow-x: auto;
}

.year-forecast-energy-line {
  padding: 1em;
  font-size: 1.05em;
  font-weight: 700;
}

.year-forecast-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid rgba(201, 168, 232, 0.25);
}

.year-forecast-table th:nth-child(1),
.year-forecast-table td:nth-child(1),
.year-forecast-table th:nth-child(3),
.year-forecast-table td:nth-child(3),
.year-forecast-table th:nth-child(5),
.year-forecast-table td:nth-child(5) {
  width: 22%;
}

.year-forecast-table th:nth-child(2),
.year-forecast-table td:nth-child(2),
.year-forecast-table th:nth-child(4),
.year-forecast-table td:nth-child(4),
.year-forecast-table th:nth-child(6),
.year-forecast-table td:nth-child(6) {
  width: 11%;
  background: rgba(216, 184, 232, 0.1);
}

.forecast-mobile-break {
  display: none;
}

.year-forecast-table th,
.year-forecast-table td {
  border: 1px solid rgba(201, 168, 232, 0.2);
  padding: 0.35em 0.5em;
  vertical-align: top;
  text-align: left;
}

.year-forecast-table th {
  color: #d8b8e8;
  background: rgba(22, 33, 62, 0.6);
  font-weight: 600;
  font-size: 0.88em;
}

.year-forecast-table td {
  color: #ffffff;
  min-height: 46px;
  position: relative;
}

.forecast-period-cell {
  display: table-cell;
}

.forecast-period-content {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.forecast-period-age {
  order: 2;
  color: rgba(216, 184, 232, 0.72);
  font-weight: 500;
  font-size: 0.75em;
  line-height: 1.25;
  white-space: normal;
}

.forecast-period-dates {
  order: 1;
  color: rgb(233, 213, 245);
  font-size: 0.78em;
  font-weight: 600;
  margin-top: 0;
  line-height: 1.2;
  white-space: normal;
}

.forecast-energy-cell {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.74em;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center !important;
  vertical-align: middle !important;
}

.forecast-current-pair-left::after,
.forecast-current-pair-right::after {
  content: '';
  position: absolute;
  top: 1px;
  bottom: 1px;
  padding: 0.75px;
  background: linear-gradient(
    135deg,
    #ffd6e8 0%,
    #ffd9c7 18%,
    #fff1c9 36%,
    #dbf7d6 54%,
    #d7f2ff 72%,
    #e4dcff 88%,
    #f0d8ff 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.forecast-current-pair-left {
  border-right: none !important;
}

.forecast-current-pair-right {
  border-left: none !important;
}

.forecast-current-pair-left::after {
  left: 1px;
  right: -3px;
  border-radius: 8px 0 0 8px;
  clip-path: inset(0 2px 0 0);
}

.forecast-current-pair-right::after {
  left: -3px;
  right: 1px;
  border-radius: 0 8px 8px 0;
  clip-path: inset(0 0 0 2px);
}

/* Tab Navigation Styles */
.sphere-tabs-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.8em;
  margin-bottom: 2em;
  width: 100%;
  padding-bottom: 1.5em;
  border-bottom: 2px solid rgba(201, 168, 232, 0.3);
}

.sphere-tab-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.8em 1.5em;
  background: rgba(22, 33, 62, 0.8);
  border: 2px solid rgba(201, 168, 232, 0.3);
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95em;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-align: center;
  font-family: 'Montserrat Alternates', sans-serif !important;
  text-transform: none !important;
}

.sphere-tab-btn:hover {
  background: rgba(73, 45, 125, 0.6);
  border-color: #c9a8e8;
  color: #ffffff;
  transform: translateY(-2px);
}

.sphere-tab-btn.active {
  background: rgba(73, 45, 125, 0.4);
  border-color: #c9a8e8;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(201, 168, 232, 0.2);
}

/* Mobile styles for sphere tabs */
@media (max-width: 768px) {
  .life-spheres-section {
    padding: 0 !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
  }

  .sphere-tabs-nav {
    flex-wrap: wrap !important;
    gap: 0.5em !important;
    padding: 0 20px 0.8em 20px !important;
    margin-bottom: 1.2em !important;
    border-bottom: 2px solid rgba(201, 168, 232, 0.3) !important;
  }

  .sphere-tab-btn {
    padding: 0.5em 0.8em !important;
    font-size: 0.8em !important;
    flex: 1 1 calc(50% - 0.25em) !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .sphere-group {
    margin: 0 20px 1.2em 20px !important;
    border-radius: 12px !important;
  }

  .sphere-button {
    padding: 1em 1.2em !important;
    font-size: 0.95em !important;
    border-bottom: 1px solid rgba(201, 168, 232, 0.15) !important;
  }

  .sphere-button:hover {
    color: #ffffff;
  }

  .group-title {
    padding: 0.8em 1.2em !important;
    font-size: 1.15em !important;
  }

  .content-inner {
    padding: 1.2em !important;
    font-size: 0.95em !important;
  }

  .content-inner p {
    margin: 0 0 0.8em 0 !important;
  }

  .year-forecast-table-wrap {
    padding: 0 0.12em 0.9em;
  }

  .year-forecast-table {
    width: 100% !important;
    min-width: 0 !important;
  }

  .year-forecast-table th,
  .year-forecast-table td {
    padding: 0.24em 0.28em;
    font-size: 0.76em;
  }

  .forecast-mobile-break {
    display: block;
  }

  .year-forecast-table th:nth-child(1),
  .year-forecast-table td:nth-child(1),
  .year-forecast-table th:nth-child(3),
  .year-forecast-table td:nth-child(3),
  .year-forecast-table th:nth-child(5),
  .year-forecast-table td:nth-child(5) {
    width: 9.8% !important;
  }

  .year-forecast-table th:nth-child(2),
  .year-forecast-table td:nth-child(2),
  .year-forecast-table th:nth-child(4),
  .year-forecast-table td:nth-child(4),
  .year-forecast-table th:nth-child(6),
  .year-forecast-table td:nth-child(6) {
    width: 10.2% !important;
  }

  .year-forecast-table th {
    font-size: 0.68em;
  }

  .forecast-period-age {
    font-size: 0.72em;
  }

  .forecast-period-dates {
    font-size: 0.66em;
  }

  .forecast-energy-cell {
    font-size: 0.56em;
    padding-left: 0.2em !important;
    padding-right: 0.2em !important;
  }

  .forecast-current-pair-left::after {
    top: -1px;
    bottom: -1px;
    left: -1px;
    right: -4px;
    border-radius: 5px 0 0 5px;
  }

  .forecast-current-pair-right::after {
    top: -1px;
    bottom: -1px;
    left: -4px;
    right: -1px;
    border-radius: 0 5px 5px 0;
  }
}

/* Tab Content Styles */
.sphere-tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.sphere-tab-content.active {
  display: block;
}

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

/* Talent Items Styling */
.talent-item {
  margin-bottom: 1.5em;
  padding: 1.2em;
  background: rgba(201, 168, 232, 0.08);
  border-left: 4px solid #d8b8e8;
  border-radius: 6px;
}

.talent-item:last-child {
  margin-bottom: 0;
}

.talent-label {
  font-weight: 600;
  color: #d8b8e8;
  margin: 0 0 0.6em 0;
  font-size: 0.95em;
}

.talent-element {
  color: #b0b0b0;
  margin: 0;
  font-size: 0.9em;
}

/* Force Quicksand font for sphere sections */
.sphere-group,
.sphere-group *,
.sphere-tabs-nav,
.sphere-tabs-nav * {
  font-family: 'Montserrat Alternates', sans-serif !important;
  text-transform: none !important;
}

/* ABSOLUTELY FORCE QUICKSAND EVERYWHERE - FINAL OVERRIDE */
html, body, main, header, footer, nav, section, article, aside, 
div, span, p, h1, h2, h3, h4, h5, h6, a, button, input, textarea, 
form, label, ul, ol, li, table, tr, td, th, strong, em, i, b {
  font-family: 'Montserrat Alternates', sans-serif !important;
  text-transform: none !important;
}

/* Override for specific problematic elements */
*::before, *::after {
  font-family: 'Montserrat Alternates', sans-serif !important;
}
/* Mobile styles for Sphere Accordion */
@media (max-width: 768px) {
  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  main {
    flex: 1 0 auto;
    min-width: 0;
  }

  header,
  main,
  footer {
    width: 100%;
    box-sizing: border-box;
  }

  footer,
  .footer {
    margin-top: auto;
    flex-shrink: 0;
  }

  .footer p {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    font-size: 0 !important;
    white-space: normal !important;
    margin: 0 0 1em 0 !important;
    line-height: 1 !important;
    padding: 0.3em 0;
  }

  .footer p::before {
    content: "Arcana \A9 2026";
    font-size: 12px !important;
    display: block;
    color: inherit;
    font-family: 'Montserrat Alternates', sans-serif;
    text-transform: uppercase;
  }

  .footer p a {
    font-size: 12px !important;
    display: block !important;
    text-align: center;
    white-space: normal !important;
    line-height: 1.4 !important;
  }

  .footer p a[href$="terms-of-service.html"]::after,
  .footer p a[href$="privacy-policy.html"]::after {
    content: none;
  }

  .life-spheres-section {
    padding: 0 !important;
    margin: 1rem auto 1.5rem !important;
    width: 100% !important;
  }

  .sphere-tabs-nav {
    padding: 0 0 0.8em 0 !important;
    box-sizing: border-box;
  }

  .sphere-group {
    margin: 0 !important;
  }

  .group-title {
    padding: 0.8em 0.8em !important;
    font-size: 1.1em !important;
  }

  .sphere-button {
    padding: 0.8em 0.8em !important;
    font-size: 0.9em !important;
  }

  .sphere-button:hover {
    color: #ffffff;
  }

  .button-toggle {
    margin-left: 0.4em !important;
    font-size: 1.2em !important;
  }

  .content-inner {
    padding: 0.8em 0.8em !important;
    font-size: 0.85em !important;
    line-height: 1.6 !important;
  }

  .content-inner p {
    margin: 0 0 0.6em 0 !important;
  }

  /* Purpose Card Mobile Fixes */
  .purpose-card {
    margin-top: 1em !important;
  }

  .purpose-card-title {
    margin-bottom: 0.5em !important;
  }

  .base-circle {
    flex-shrink: 0;
  }
}