/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

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

body {
  background-color: #050215;
  font-family: "GFS Didot";
  color: #ffffff;
  font-style: normal;
  font-size: 1vw;
}

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

header,
main,
footer {
  padding-left: 12.9em;
  padding-right: 12.9em;
}

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

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

.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: 3em;
  font-family: "GFS Didot";
  text-transform: uppercase;
  margin-top: 0;
}

a {
  text-decoration: none;
  /* remove underline */
  color: inherit;
  /* link color matches text color */
  outline: none;
  /* remove highlight on focus */
  cursor: pointer;
}

li {
  list-style-type: none;
}

.birthday-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Inter";
  margin-bottom: 5em;
}

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

.birthday-container__inputs-wrapper {
  width: 83%;
  margin-top: 3.1875em;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "input1 input2 button";
  grid-gap: 1.875em;
}

.birthday-container__inputs-wrapper-comp {
  width: 83%;
  margin-top: 1.6875em;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 0.2fr 1fr;
  grid-template-areas:
    "label-partner1 label-partner2 0"
    "input1 input2 button";
  grid-column-gap: 1.875em;
  grid-row-gap: 0.3em;
}

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

.label-partner1 {
  grid-area: label-partner1;
}

.label-partner2 {
  grid-area: label-partner2;
}

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

.input1-wrap,
.input2-wrap {
  position: relative;
}

.input1-wrap {
  grid-area: input1;
}

#date,
#name,
#date_person1,
#date_person2 {
  width: 8.55em;
  height: 1.25em;
}

.input2-wrap {
  grid-area: input2;
}

input {
  padding: 1.25em 3.25em 1.25em 3.25em;
  font-family: "Inter";
  font-size: 1.25em;
  background-color: #050215;
  color: #fff8db;
  border: 1px #fff8db solid;
  border-radius: 0.5em;
}

::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

button {
  padding: 1.25em 2em 1.25em 2em;
  background-color: #fff8db;
  font-family: "Inter";
  font-size: 1.25em;
  line-height: 125%;
  text-transform: uppercase;
  border-radius: 0.5em;
  border: 1px #fff8db solid;
  z-index: 1;
  cursor: pointer;
  color: #050215;
}

button:hover {
  color: #fff8db;
  background-color: #050215;
  border: 1px #fff8db solid;
}

#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: 9.25em 0 8.5em 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;
  display: block;
}

.chakra-table td:first-child,
.chakra-table th:first-child {
  border-left: 1px solid white;
}

.chakra-table tr:first-child th,
.chakra-table tr:last-child td {
  border-top: 1px solid white;
}

.chakra-table td,
.chakra-table th {
  border-right: 1px solid white;
  border-bottom: 1px solid white;
}

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

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

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

.chakra-name-left {
  /* display: flex; */
  justify-content: center;
  flex-direction: column-reverse;
  align-items: flex-start;
  padding-left: 2.9375em;
}

.chakra-name-flex {
  display: flex;
  align-items: baseline;
}

#circle-sahastrara:before {
  font-family: "GFS Didot";
  font-size: 1.375em;
  content: "7";
  width: 1.25em;
  border-radius: calc(50%);
  height: 1.25em;
  display: inline-flex;
  background: #b653f7;
  justify-content: center;
  margin-right: 1.25em;
  box-shadow: 0 0 0.625em 0.625em #b653f7;
}

#circle-ajna:before {
  font-family: "GFS Didot";
  font-size: 1.375em;
  content: "6";
  width: 1.25em;
  border-radius: calc(50%);
  height: 1.25em;
  display: inline-flex;
  background: #3d54f5;
  justify-content: center;
  margin-right: 1.25em;
  box-shadow: 0 0 0.625em 0.625em #3d54f5;
}

#circle-vishuddha:before {
  font-family: "GFS Didot";
  font-size: 1.375em;
  content: "5";
  width: 1.25em;
  border-radius: calc(50%);
  height: 1.25em;
  display: inline-flex;
  color: #000000;
  background: #74e0f8;
  justify-content: center;
  margin-right: 1.25em;
  box-shadow: 0 0 0.625em 0.625em #74e0f8;
}

#circle-anahata:before {
  font-family: "GFS Didot";
  font-size: 1.375em;
  content: "4";
  width: 1.25em;
  border-radius: calc(50%);
  height: 1.25em;
  display: inline-flex;
  color: #000000;
  background: #b6fd57;
  justify-content: center;
  margin-right: 1.25em;
  box-shadow: 0 0 0.625em 0.625em #b6fd57;
}

#circle-manipura:before {
  font-family: "GFS Didot";
  font-size: 1.375em;
  content: "3";
  width: 1.25em;
  border-radius: calc(50%);
  height: 1.25em;
  display: inline-flex;
  color: #000000;
  background: #fbe49d;
  justify-content: center;
  margin-right: 1.25em;
  box-shadow: 0 0 0.625em 0.625em #fbe49d;
}

#circle-svadhishtana:before {
  font-family: "GFS Didot";
  font-size: 1.375em;
  content: "2";
  width: 1.25em;
  border-radius: calc(50%);
  height: 1.25em;
  display: inline-flex;
  color: #f5f5f5;
  background: #ed7233;
  justify-content: center;
  margin-right: 1.25em;
  box-shadow: 0 0 0.625em 0.625em #ed7233;
}

#circle-muladhara:before {
  font-family: "GFS Didot";
  font-size: 1.375em;
  content: "1";
  width: 1.25em;
  border-radius: calc(50%);
  height: 1.25em;
  display: inline-flex;
  color: #f5f5f5;
  background: #ea4631;
  justify-content: center;
  margin-right: 1.25em;
  box-shadow: 0 0 0.625em 0.625em #ea4631;
}

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

.chakra-tr {
  font-family: "Inter";
  /* size: 20px; */
  text-align-last: center;
  padding: 0.3125em;
  text-align: center;
  background-color: #050215;
}

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

.chakra-name__radius-left {
  background-color: #827d78;
  border-top-left-radius: 10px;
}

.chakra-name__radius-right {
  background-color: #827d78;
  border-top-right-radius: 10px;
}

.chakra-name__radius-left-bottom {
  background-color: #050215;
  border-bottom-left-radius: 10px;
  border-top-left-radius: 10px;
}

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

.chakra-name__radius-right-bottom {
  background-color: #050215;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

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

.chakra-table-header> :nth-child(2),
.chakra-table-header> :nth-child(3) {
  background-color: #827d78;
}

.chakra-table-header {
  font-family: "Inter";
  /* 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: #fff8db;
  filter: blur(4.6875em);
}

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

.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: #fff8db;
  filter: blur(4.6875em);
}

.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: Inter;
}

.gray {
  color: #827d78;
}

.smoky-white {
  color: #f9f9f8;
}

.smoky-white2 {
  color: #fff8db;
}

.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;
}

.pento {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
}

.display-none {
  display: none;
}

#matrix {
  float: none;
  margin: 10% 0 10% 0;
  width: 100%;
  max-width: 800px;
  min-width: 300px;
}

: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: #b653f7;
  fill: #b653f7;
}

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

.cls-10 {
  fill: #b653f7;
}

.cls-13 {
  fill: #3d54f5;
}

.cls-15 {
  fill: #74e0f8;
}

.cls-19 {
  fill: #ea4631;
}

.cls-22 {
  fill: #ed7233;
}

.cls-25 {
  fill: #fbe49d;
}

.cls-26 {
  fill: #b6fd57;
}

.cls-15,
.cls-21,
.cls-22,
.cls-26 {
  filter: blur(2.90323px);
}

.cls-13,
.cls-23 {
  filter: blur(3.54839px);
}

.cls-10,
.cls-19,
.cls-24,
.cls-25 {
  filter: blur(5px);
}

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

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

.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: 11.5587px;
  line-height: 81.9%;
}

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

.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,
.cls-54,
.cls-57,
.cls-59,
.cls-61 {
  fill: #f5f5f5;
}

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

.cls-56 {
  fill: #d2b154;
}

/* health-map and purposes table styles */

tbody {
  font-family: "Inter";
  font-size: 1.25em;
}

tr {
  text-align: center;
}

.font-size16 {
  font-family: "Inter";
  font-size: 1em;
}

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

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

.font-size18 {
  font-family: "Inter";
  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: 2.5em;
  height: 2.5em;
  display: inline-block;
  text-align: center;
  line-height: 2.5em;
}

/* star__wrap9-18 removed */

.compatibility-table__adaptiv {
  display: none;
}

/*media desktop version */

@media screen and (min-width: 1920px) {
  body {
    font-size: 19.2px;
  }
}

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

  .logo {
    display: block;
    margin-bottom: 10px;
    font-family: 'GFS Didot', Arial, 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;
    background-color: #13131394;
    border-radius: 50%;
    top: 15px;
    right: 15px;
    z-index: 10;
  }

  .hamburger.active {
    top: 5px;
    right: 5px;
    background-color: 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: none;
  }

  .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-color: #111111;
    width: 300px;
    height: 100vh;
    transition: 0.4s;
    z-index: 2;
  }

  .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: 14px;
  }

  .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-template-rows: 0.2fr 1fr 0.2fr 1fr 1fr;
    grid-template-areas:
      "label-partner1"
      "input1"
      "label-partner2"
      "input2"
      "button";
    grid-row-gap: 10px;
    justify-items: center;
  }

  label {
    font-size: 14px;
  }


  #date,
  #name,
  #date_person1,
  #date_person2 {
    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;
  }

  .birthday-container p,
  .output-personal-date,
  .output2 {
    font-size: 16px;
    text-align: center;
  }

  .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: #fff8db;
    filter: blur(14.6875em);
    z-index: -1;
  }

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

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

  .compatibility-table {
    display: none;
  }

  .compatibility-table__adaptiv {
    display: block;
  }

  .socialmedia-wrapper {
    gap: 7px;
  }

  .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;
  }
}

/* ===== VIEW SYSTEM ===== */
.view { display: none; }
.view.active { display: block; }

/* ===== HOME SCREEN ===== */
.home-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 8em;
}
.home-cards {
  display: flex;
  gap: 3em;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0;
}
.home-card {
  position: relative;
  width: 26em;
  padding: 3em 2.5em 2.5em;
  border: 1px solid rgba(255,248,219,0.18);
  background: rgba(255,248,219,0.03);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2em;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  overflow: hidden;
}
.home-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,248,219,0.07) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.home-card:hover { border-color: rgba(255,248,219,0.5); background: rgba(255,248,219,0.07); transform: translateY(-5px); }
.home-card:hover::after { opacity: 1; }
.home-card__icon { width: 8em; height: 8em; position: relative; z-index: 1; }
.home-card__icon svg { width: 100%; height: 100%; }
.home-card__title { font-family: "GFS Didot", serif; font-size: 1.5em; color: #fff8db; text-align: center; text-transform: uppercase; letter-spacing: 0.06em; position: relative; z-index: 1; margin: 0; }
.home-card__desc { font-family: "Inter", sans-serif; font-size: 0.9em; color: rgba(255,248,219,0.5); text-align: center; line-height: 1.65; position: relative; z-index: 1; margin: 0; }
.home-card__btn { position: relative; z-index: 1; margin-top: 0.6em; padding: 0.75em 2.2em; background: transparent !important; border: 1px solid rgba(255,248,219,0.35) !important; color: #fff8db !important; font-family: "Inter", sans-serif; font-size: 0.85em; cursor: pointer; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 0.3em; transition: background 0.2s, border-color 0.2s; }
.home-card:hover .home-card__btn { background: rgba(255,248,219,0.1) !important; border-color: rgba(255,248,219,0.6) !important; }

/* ===== BACK BUTTON ===== */
.back-btn { display: inline-flex; align-items: center; gap: 0.5em; font-family: "Inter", sans-serif; font-size: 1em; color: rgba(255,248,219,0.5); cursor: pointer; background: none !important; border: none !important; padding: 1.5em 12.9em 0; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; line-height: 1; }
.back-btn:hover { color: #fff8db !important; background: none !important; border: none !important; }
.back-btn svg { width: 1.1em; height: 1.1em; vertical-align: middle; }

@media screen and (max-width: 810px) {
  .home-cards { flex-direction: column; align-items: center; }
  .home-card { width: min(26em, 88vw); }
  .back-btn { padding: 1.5em 20px 0; }
}

/* =====================================================
   NEW DESIGN - Input sections & page backgrounds
   ===================================================== */

/* --- Nền tổng thể cho các view --- */
#view-personal main,
#view-compat main {
  position: relative;
  overflow: hidden;
  padding-bottom: 8rem;
}
#view-personal main::before,
#view-compat main::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(182,83,247,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(61,84,245,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 40%, rgba(255,248,219,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Header tiêu đề trang (desteny-container) --- */
.desteny-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5em 0 3em;
  z-index: 1;
}
.desteny-container p {
  margin: 0;
  font-size: 3em;
  font-family: "GFS Didot", serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff8db;
  text-shadow: 0 0 60px rgba(255,248,219,0.25);
}
.desteny-container .sub-label {
  font-family: "Inter", sans-serif;
  font-size: 0.85em;
  color: rgba(255,248,219,0.35);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.6em;
}

/* --- Input card wrapper --- */
.birthday-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4em;
}
.birthday-container > p {
  font-family: "Inter", sans-serif;
  font-size: 0.85em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,248,219,0.4);
  margin: 0 0 2em;
}

/* --- Input glass card --- */
.input-glass-card {
  background: rgba(255,248,219,0.03);
  border: 1px solid rgba(255,248,219,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 2px;
  padding: 3em 4em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
  position: relative;
  width: 100%;
  max-width: 700px;
}
.input-glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,248,219,0.3), transparent);
}

/* --- Input row bên trong card --- */
.input-row {
  display: flex;
  gap: 1.2em;
  width: 100%;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
}
.input-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  flex: 1;
  min-width: 160px;
}
.input-field-wrap label,
.input-label {
  font-family: "Inter", sans-serif;
  font-size: 0.7em;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,248,219,0.45);
  padding-left: 0;
}
#date, #name, #date_person1, #date_person2 {
  width: 100%;
  height: auto;
  padding: 0.9em 1.2em;
  font-family: "Inter", sans-serif;
  font-size: 0.85em;
  background: rgba(5,2,21,0.6);
  color: #fff8db;
  border: 1px solid rgba(255,248,219,0.15);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.05em;
  box-sizing: border-box;
}
#date:focus, #name:focus, #date_person1:focus, #date_person2:focus {
  border-color: rgba(255,248,219,0.4);
  box-shadow: 0 0 0 1px rgba(255,248,219,0.1), 0 0 20px rgba(255,248,219,0.05);
}

/* --- Submit button trong card --- */
.input-submit-btn {
  padding: 0.9em 2.5em;
  background: rgba(255,248,219,0.07);
  border: 1px solid rgba(255,248,219,0.25) !important;
  color: #fff8db !important;
  font-family: "Inter", sans-serif;
  font-size: 0.85em;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
  flex-shrink: 0;
  height: fit-content;
}
.input-submit-btn:hover {
  background: rgba(255,248,219,0.13) !important;
  border-color: rgba(255,248,219,0.5) !important;
  box-shadow: 0 0 25px rgba(255,248,219,0.08);
  color: #fff8db !important;
}

#view-compat .input-row {
  align-items: flex-end;
}

#view-compat .input-field-wrap {
  min-width: 0;
  flex: 1 1 0;
}

.input-btn-wrap .input-label {
  visibility: hidden;
}

#createChart.input-submit-btn {
  width: 100%;
  padding: 0.9em 1.2em;
}

.compatibility-summary {
  margin: 2rem auto 0;
  width: 100%;
}

.compatibility-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.compatibility-block h3 {
  margin: 0 0 0.8rem;
  font-family: "Inter", sans-serif;
  font-size: 1.65rem;
  text-transform: none;
}

.compatibility-block p {
  margin: 0 0 1.2rem;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(255, 248, 219, 0.92);
}

.compatibility-formula {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.compatibility-formula-side {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.compatibility-formula-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Inter", sans-serif;
  font-size: 1.15rem;
}

@media screen and (max-width: 1100px) {
  .compatibility-summary-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .compatibility-block h3 {
    font-size: 1.45rem;
  }

  .compatibility-block p {
    font-size: 0.92rem;
  }

  .compatibility-formula-row {
    font-size: 1.05rem;
  }
}

/* Ẩn star decorations cũ trong input section */
.birthday-container .star__wrap1,
.birthday-container .star__wrap2,
.birthday-container .star__wrap3,
.birthday-container .star__wrap4,
.birthday-container .star__wrap5,
.birthday-container .star__wrap6,
.birthday-container .star__wrap7,
.birthday-container .star__wrap8 {
  display: none;
}

/* --- Error / output text --- */
.errorOutput, .wrongDate {
  font-family: "Inter", sans-serif;
  font-size: 0.8em;
  color: rgba(234,70,49,0.85);
  padding-top: 0.8em;
  text-align: center;
  letter-spacing: 0.05em;
}

/* --- Result section heading (Personal calculation / Your compatibility) --- */
.personal-calculator {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  font-size: 2em;
  align-items: center;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "GFS Didot", serif;
  padding: 1em 0 0.3em;
}
.output-personal-date, .output2 {
  text-align: center;
  font-size: 1em;
  font-family: "Inter", sans-serif;
  color: rgba(255,248,219,0.55);
  letter-spacing: 0.1em;
  padding-bottom: 0.5em;
  position: relative;
  z-index: 1;
}

/* --- Matrix container nền --- */
.matrix-container,
.compatibility-container {
  position: relative;
  z-index: 1;
}

/* Divider line trước matrix */
.matrix-divider {
  width: 100%;
  max-width: 800px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,248,219,0.15), transparent);
  margin: 0 auto 0;
}

.purpose-summary {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.generation-lines {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.generation-label {
  font-family: "Inter", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.generation-values {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-start;
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.purpose-card h3 {
  margin: 0 0 0.8rem;
  text-transform: none;
  font-family: "Inter", sans-serif;
  font-size: 1.65rem;
}

.purpose-card p {
  margin: 0 0 1.25rem;
  color: rgba(255, 248, 219, 0.9);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
}

.purpose-formula {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.purpose-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.purpose-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Inter", sans-serif;
  font-size: 1.15rem;
}

.purpose-eq svg {
  opacity: 0.95;
}

.purpose-single {
  margin-top: 1rem;
}

/* Uniform smaller circles for summary sections */
.purpose-summary .base-circle,
.compatibility-summary .base-circle {
  width: 2.1em;
  height: 2.1em;
  line-height: 2.1em;
  font-size: 0.8em;
}

/* ═══ AI READER — Thiết kế mới ═══ */
.ai-reader {
  margin-top: 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(14,10,26,.97) 0%, rgba(8,5,18,.97) 100%);
  border: 1px solid rgba(255,248,219,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(255,248,219,.04),
              inset 0 1px 0 rgba(255,248,219,.08);
  position: relative;
}
.ai-reader::before {
  content: '';
  position: absolute;
  inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 35% at 85% 5%, rgba(182,83,247,.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 5% 90%, rgba(255,248,219,.05) 0%, transparent 55%);
}

/* Header */
.ai-reader-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px 0;
  position: relative;
  z-index: 1;
}
.ai-reader-avatar {
  width: 46px; height: 46px;
  border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(80,40,10,.9), rgba(160,120,20,.7), rgba(255,248,219,.35));
  border: 1px solid rgba(255,248,219,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff8db;
  box-shadow: 0 0 20px rgba(255,248,219,.2), 0 4px 14px rgba(0,0,0,.4);
}
.ai-reader-info { flex: 1; min-width: 0; }
.ai-reader-title {
  font-family: "Inter", sans-serif;
  font-size: 15px; font-weight: 700;
  color: #fff8db; letter-spacing: .04em;
}
.ai-reader-subtitle {
  font-size: 12px; color: rgba(255,248,219,.45);
  margin-top: 4px; font-style: italic; line-height: 1.5;
}
.ai-reader-badge {
  flex-shrink: 0;
  font-family: "Inter", sans-serif; font-size: 9px;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,248,219,.55);
  background: rgba(255,248,219,.06);
  border: 1px solid rgba(255,248,219,.15);
  border-radius: 6px; padding: 4px 9px;
}

/* Divider */
.ai-reader-divider {
  margin: 16px 24px 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,248,219,.15), rgba(255,248,219,.08), transparent);
  position: relative; z-index: 1;
}

/* Action row */
.ai-reader-action {
  padding: 18px 24px 0;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.ai-main-btn {
  display: inline-flex !important;
  align-items: center; gap: 8px;
  background: rgba(255,248,219,.07) !important;
  border: 1px solid rgba(255,248,219,.22) !important;
  color: #fff8db !important;
  font-family: "Inter", sans-serif;
  font-size: 13px !important; letter-spacing: .12em;
  padding: 11px 24px !important;
  border-radius: 10px !important; cursor: pointer;
  transition: background .25s, border-color .25s, box-shadow .25s;
  text-transform: uppercase;
}
.ai-main-btn:hover {
  background: rgba(255,248,219,.13) !important;
  border-color: rgba(255,248,219,.45) !important;
  box-shadow: 0 0 24px rgba(255,248,219,.08);
}
.ai-main-btn:disabled {
  opacity: .4; cursor: not-allowed;
}
.ai-btn-sparkle {
  font-size: 10px; opacity: .7;
  animation: sparkSpin 4s linear infinite;
}
@keyframes sparkSpin {
  0%,100%{transform:rotate(0deg) scale(1);opacity:.7}
  50%{transform:rotate(180deg) scale(1.3);opacity:1}
}

/* Status text */
.ai-status {
  font-family: "Inter", sans-serif;
  font-size: 12px; color: rgba(255,248,219,.55);
  letter-spacing: .04em; font-style: italic;
  min-height: 1.4em; flex: 1;
}

/* Output box */
.ai-output {
  margin: 16px 24px 24px;
  padding: 18px 20px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,248,219,.08);
  border-radius: 10px;
  font-size: 14.5px; line-height: 1.85;
  color: rgba(255,248,219,.82);
  white-space: pre-wrap;
  font-family: "Inter", sans-serif;
  min-height: 3em;
  position: relative; z-index: 1;
  transition: border-color .3s;
  max-height: 600px; overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,248,219,.15) transparent;
}
.ai-output::-webkit-scrollbar { width: 4px; }
.ai-output::-webkit-scrollbar-thumb { background: rgba(255,248,219,.15); border-radius: 4px; }
.ai-output.ai-loading {
  border-color: rgba(255,248,219,.18);
}
.ai-output.ai-loading::after {
  content: '';
  display: block; width: 100%;
  height: 2px; margin-top: 12px;
  background: linear-gradient(90deg, transparent, rgba(255,248,219,.4), transparent);
  animation: aiScan 1.6s ease-in-out infinite;
}
@keyframes aiScan {
  0%{background-position:-100% 0}
  100%{background-position:200% 0}
}

/* Error box */
.ai-err-box {
  background: rgba(224,70,49,.07);
  border: 1px solid rgba(224,70,49,.2);
  border-radius: 8px; padding: 12px 16px;
  font-size: 13px; color: rgba(224,100,80,.9);
  font-style: italic;
}

/* Markdown render */
.ai-md-h1, .ai-md-h2 {
  margin: 1rem 0 .4rem;
  color: #fff8db; font-weight: 700;
  letter-spacing: .02em; font-family: "Inter", sans-serif;
}
.ai-md-h1 { font-size: 1.05rem; }
.ai-md-h2 { font-size: .98rem; color: rgba(255,248,219,.88); }
.ai-md-bold { color: #fff8db; font-weight: 700; }
.ai-md-italic { color: rgba(200,200,255,.85); font-style: italic; }

@media screen and (max-width: 1100px) {
  .generation-lines {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .generation-label {
    font-size: 1.3rem;
  }

  .purpose-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .purpose-card h3 {
    font-size: 1.45rem;
  }

  .purpose-card p {
    font-size: 0.92rem;
  }

  .purpose-row {
    font-size: 1.05rem;
  }

  .ai-reader-controls {
    grid-template-columns: 1fr;
  }
}

/* --- Ẩn glow cũ phía dưới --- */
.glow__wrap, .glow, .glow2, .glow-btn__wrap, .glow-btn {
  /* giữ các element này nhưng tinh chỉnh */
}

/* --- OLD input styles override (force hide) --- */
.birthday-container__inputs-wrapper,
.birthday-container__inputs-wrapper-comp {
  display: none !important;
}

@media screen and (max-width: 810px) {
    .input-glass-card {
        padding: 1.5em 1.2em;
    }

    .input-row {
        flex-direction: column;
        gap: 0.8em;
    }

    .input-field-wrap {
        min-width: unset;
        width: 100%;
    }

    .input-submit-btn {
        width: 100%;
        text-align: center;
    }

    #date,
    #name,
    #date_person1,
    #date_person2 {
        width: 100%;
        padding: 0.75em 1em;
        font-size: 15px;
        height: 48px;
        box-sizing: border-box;
    }

    #get_the_answer,
    #createChart {
        padding: 0;
        font-size: 15px;
        height: 48px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .input-label {
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    #get_the_answer {
        width: 100%;
    }

    /* Fix iOS date placeholder — handled by JS span overlay */
        .personal-calculator {
            font-size: 22px;
        }
    
        .output-personal-date,
        .output2 {
            font-size: 13px;
        }
    .desteny-container p {
        font-size: 2em;
    }

    .desteny-container {
        padding: 3em 0 2em;
    }

    .base-circle {
        width: 34px !important;
        height: 34px !important;
        line-height: 34px !important;
        font-size: 13px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
}

@media screen and (max-width: 479px) {
    .desteny-container p {
        font-size: 28px;
    }

    .base-circle {
        width: 34px !important;
        height: 34px !important;
        line-height: 34px !important;
        font-size: 13px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
}
/* ===================================================
   MOBILE OPTIMIZATIONS — chỉ ảnh hưởng mobile
   =================================================== */

/* --- Fix home view padding trên mobile --- */
@media screen and (max-width: 810px) {
  #view-home .container {
    padding: 0 20px !important;
  }

  /* Home cards: chữ to hơn, dễ đọc */
  .home-card__title {
    font-size: 1.3rem !important;
    letter-spacing: 0.04em;
  }
  .home-card__desc {
    font-size: 0.9rem !important;
    line-height: 1.6;
    color: rgba(255,248,219,0.6);
  }
  .home-card__btn {
    font-size: 0.85rem !important;
    padding: 0.7em 1.8em !important;
  }
  .home-card {
    width: min(90vw, 380px);
    padding: 2.2em 1.8em 2em;
    gap: 1em;
  }
  .home-card__icon {
    width: 5.5em;
    height: 5.5em;
  }

  /* desteny-container tiêu đề */
  .desteny-container p {
    font-size: 2rem !important;
    letter-spacing: 0.05em;
  }

  /* Back button */
  .back-btn {
    padding: 1.2em 20px 0 !important;
    font-size: 0.85rem !important;
  }

  /* Input glass card */
  .input-glass-card {
    padding: 1.8em 1.2em !important;
    max-width: 100%;
  }

  /* Input row: stack dọc */
  .input-row {
    flex-direction: column !important;
    gap: 1em !important;
    width: 100%;
  }
  .input-field-wrap {
    width: 100% !important;
    min-width: unset !important;
  }

  /* Label của input */
  .input-label,
  .input-field-wrap label {
    font-size: 0.75rem !important;
    letter-spacing: 0.12em;
  }

  /* Input fields: to rõ, dễ chạm */
  #date,
  #name,
  #date_person1,
  #date_person2 {
    width: 100% !important;
    height: 48px !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    box-sizing: border-box;
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
  }

  /* Submit button: full width, cao đủ chạm */
  .input-submit-btn {
    width: 100% !important;
    height: 48px !important;
    font-size: 14px !important;
    letter-spacing: 0.12em;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
  }

  /* Ẩn hidden label của button wrap trong compat */
  .input-btn-wrap .input-label {
    display: none !important;
  }

  /* Result section headings */
  .personal-calculator {
    font-size: 1.4rem !important;
    padding: 1.2em 0 0.4em !important;
  }
  .output-personal-date,
  .output2 {
    font-size: 0.82rem !important;
    letter-spacing: 0.06em;
  }

  /* birthday-container mô tả */
  .birthday-container > p {
    font-size: 0.75rem !important;
    letter-spacing: 0.12em;
  }

  /* generation label */
  .generation-label {
    font-size: 1.1rem !important;
  }

  /* purpose / compatibility cards */
  .purpose-card h3,
  .compatibility-block h3 {
    font-size: 1.2rem !important;
  }
  .purpose-card p,
  .compatibility-block p {
    font-size: 0.88rem !important;
  }
  .purpose-row,
  .compatibility-formula-row {
    font-size: 0.95rem !important;
  }

  /* AI reader */
  .ai-reader-title {
    font-size: 14px !important;
  }
  .ai-output {
    font-size: 13.5px !important;
  }
}

/* --- iOS date placeholder fix: handled by span overlay + JS --- */

/* --- Extra small phones (< 380px) --- */
@media screen and (max-width: 380px) {
  .home-card__title {
    font-size: 1.1rem !important;
  }
  .home-card__desc {
    font-size: 0.82rem !important;
  }
  .desteny-container p {
    font-size: 1.7rem !important;
  }
  .personal-calculator {
    font-size: 1.2rem !important;
  }
}

/* ===== DATE INPUT — iOS placeholder overlay ===== */
.date-wrap {
  position: relative;
  width: 100%;
}
.date-wrap input[type="date"] {
  width: 100%;
  box-sizing: border-box;
}
/* Span overlay hiển thị placeholder — hoạt động trên mọi browser kể cả iOS Safari */
.date-placeholder {
  display: none; /* ẩn mặc định trên desktop */
}
@media screen and (max-width: 810px) {
  .date-placeholder {
    display: block;
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 15px;
    font-family: "Inter", sans-serif;
    color: rgba(255, 248, 219, 0.38);
    pointer-events: none;
    z-index: 2;
    letter-spacing: 0.05em;
    transition: opacity 0.15s;
  }
  .date-placeholder.hidden {
    display: none;
  }
}
