@font-face { font-family: "Comfortaa"; font-style: normal; font-weight: 500; font-display: swap; src: url("./fonts/comfortaa-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Comfortaa"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/comfortaa-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Comfortaa"; font-style: normal; font-weight: 700; font-display: swap; src: url("./fonts/comfortaa-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Comfortaa"; font-style: normal; font-weight: 500; font-display: swap; src: url("./fonts/comfortaa-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Comfortaa"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/comfortaa-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Comfortaa"; font-style: normal; font-weight: 700; font-display: swap; src: url("./fonts/comfortaa-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/roboto-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("./fonts/roboto-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("./fonts/roboto-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/roboto-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("./fonts/roboto-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("./fonts/roboto-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand-blue: #6A98FF;
  --brand-pink: #FFA6CF;
  --brand-lilac: #B99FE5;
  --brand-gold: #FFDF87;
  --brand-mint: #EAF8EF;
  --ink: #26325D;
  --ink-soft: rgba(38, 50, 93, 0.68);
  --ink-faint: rgba(38, 50, 93, 0.46);
  --surface: rgba(255, 255, 255, 0.28);
  --surface-strong: rgba(255, 255, 255, 0.46);
  --surface-soft: rgba(255, 255, 255, 0.22);
  --border: rgba(255, 223, 135, 0.34);
  --danger: #d95f84;
  --shadow: 0 22px 58px rgba(91, 85, 145, 0.18);
  --radius: 24px;
  --page-bg: url("./assets/brand/bg-clouds-dream.jpg");
  --hero-bg: url("./assets/brand/bg-clouds-dream.jpg");
  --page-bg-position: 50% 50%;
  --hero-bg-position: 50% 50%;
}

@supports (background-image: image-set(url("./assets/brand/bg-clouds-dream.webp") type("image/webp") 1x)) {
  :root {
    --page-bg: image-set(
      url("./assets/brand/bg-clouds-dream.webp") type("image/webp") 1x,
      url("./assets/brand/bg-clouds-dream.jpg") type("image/jpeg") 1x
    );
    --hero-bg: var(--page-bg);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #FDF6ED;
}

body.page-loading {
  --page-bg: url("./assets/brand/bg-gold-veil.jpg");
  --hero-bg: url("./assets/brand/bg-gold-veil.jpg");
  --page-bg-position: 50% 46%;
  --hero-bg-position: 50% 44%;
}

body.page-result {
  --page-bg: url("./assets/brand/bg-result-cloud-matrix.jpg");
  --hero-bg: url("./assets/brand/bg-clouds-dream.jpg");
  --page-bg-position: 50% 42%;
}

body[data-mode="compatibility"].page-form,
body[data-mode="compatibility"].page-result {
  --page-bg: url("./assets/brand/bg-compatibility-moon.jpg");
  --hero-bg: url("./assets/brand/bg-compatibility-moon.jpg");
  --page-bg-position: 50% 36%;
  --hero-bg-position: 50% 38%;
}

body[data-mode="compatibility"].page-loading {
  --page-bg: url("./assets/brand/bg-gold-veil.jpg");
  --hero-bg: url("./assets/brand/bg-gold-veil.jpg");
  --page-bg-position: 50% 48%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 247, 237, 0.66)),
    var(--page-bg);
  background-size: cover;
  background-position: center, var(--page-bg-position);
  background-repeat: no-repeat;
  transition: opacity 0.28s ease, background-image 0.28s ease;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 223, 135, 0.36), transparent 18%),
    radial-gradient(circle at 88% 14%, rgba(255, 166, 207, 0.28), transparent 24%),
    linear-gradient(135deg, rgba(106, 152, 255, 0.18), transparent 38%),
    linear-gradient(315deg, rgba(255, 166, 207, 0.20), transparent 42%),
    radial-gradient(circle at 52% 8%, rgba(255, 223, 135, 0.34), transparent 26%);
  mix-blend-mode: screen;
}

body.page-result::before {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 249, 239, 0.76)),
    var(--page-bg);
}

body.page-loading::before {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 247, 237, 0.36)),
    var(--page-bg);
}

body {
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #FDF6ED;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 247, 237, 0.70)),
    var(--hero-bg);
  background-size: cover;
  background-position: center, 50% 50%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.page-loading .app-shell {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 247, 237, 0.40)),
    url("./assets/brand/bg-gold-veil.jpg");
  background-position: center, 50% 44%;
}

body.page-result .app-shell {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 249, 239, 0.78)),
    url("./assets/brand/bg-result-cloud-matrix.jpg");
  background-position: center, 50% 42%;
}

body[data-mode="compatibility"].page-form .app-shell,
body[data-mode="compatibility"].page-result .app-shell {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 247, 237, 0.72)),
    url("./assets/brand/bg-compatibility-moon.jpg");
  background-position: center, 50% 38%;
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: fixed;
  z-index: 1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(1px);
}

.app-shell::before {
  width: 170px;
  height: 170px;
  right: -58px;
  top: 86px;
  background: radial-gradient(circle, rgba(255, 223, 135, 0.32), rgba(255, 166, 207, 0.14) 48%, transparent 70%);
}

.app-shell::after {
  width: 210px;
  height: 210px;
  left: -92px;
  bottom: 90px;
  background: radial-gradient(circle, rgba(106, 152, 255, 0.22), rgba(185, 159, 229, 0.14) 52%, transparent 72%);
}

.container {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 16px 34px;
}

.card {
  position: relative;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.18) 54%, rgba(255, 223, 135, 0.14)),
    linear-gradient(180deg, var(--surface-strong), var(--surface));
  backdrop-filter: blur(30px) saturate(1.18);
  -webkit-backdrop-filter: blur(30px) saturate(1.18);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 34%, rgba(255, 223, 135, 0.18)),
    radial-gradient(circle at 18% 0%, rgba(106, 152, 255, 0.16), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(255, 166, 207, 0.12), transparent 30%);
  opacity: 0.84;
}

.card > * {
  position: relative;
  z-index: 1;
}

.result .card,
.result details.card {
  margin-bottom: 14px;
}

.hero {
  min-height: 270px;
  padding: 22px;
  display: grid;
  align-content: end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.56)),
    var(--hero-bg);
  background-size: cover;
  background-position: var(--hero-bg-position);
  border-color: rgba(255, 223, 135, 0.46);
  box-shadow:
    0 26px 72px rgba(91, 85, 145, 0.20),
    inset 0 0 0 1px rgba(255, 223, 135, 0.16);
}

.hero::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -52px;
  width: 154px;
  height: 154px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 42%, rgba(255, 255, 255, 0.72), rgba(255, 223, 135, 0.26) 38%, transparent 64%);
  opacity: 0.82;
  pointer-events: none;
}

.hero-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.hero-top > div:last-child,
.section-title {
  min-width: 0;
}

.logo-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 166, 207, 0.24)),
    radial-gradient(circle at 24% 18%, rgba(255, 223, 135, 0.36), transparent 52%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 14px 32px rgba(106, 152, 255, 0.18),
    0 0 28px rgba(255, 223, 135, 0.26);
  flex: 0 0 auto;
}

.brand-logo {
  width: 58px;
  height: auto;
}

.eyebrow {
  font-family: "Comfortaa", "Roboto", sans-serif;
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 5px;
}

h1,
h2,
h3,
p,
summary {
  margin: 0;
}

h1,
h2,
h3 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1,
h2,
h3,
.mode-pill,
.primary-btn,
.secondary-btn,
.ghost-btn,
.tab-btn,
.score-label,
.score-title,
.stat-value {
  font-family: "Comfortaa", "Roboto", sans-serif;
}

h1 {
  font-size: 31px;
  line-height: 1.14;
  color: var(--ink);
}

h2 {
  font-size: 23px;
  line-height: 1.2;
  color: var(--ink);
}

h3 {
  font-size: 19px;
  line-height: 1.25;
  color: var(--ink);
}

.hero-text,
.section-title p,
.rich-text p,
#adviceList li,
#summaryText,
#birthDateLabel,
#birthMetaLabel {
  color: var(--ink-soft);
}

.hero-text {
  font-size: 15px;
  line-height: 1.62;
  margin-bottom: 16px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badge-btn {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 223, 135, 0.38);
  color: #4B4E92;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  box-shadow:
    0 8px 22px rgba(106, 152, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.hero-badge-btn:active {
  transform: scale(0.98);
}

.hero-badge-btn:focus-visible {
  outline: 2px solid rgba(106, 152, 255, 0.35);
  outline-offset: 2px;
}

.section-title {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(106, 152, 255, 0.18), rgba(255, 166, 207, 0.20)),
    rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 223, 135, 0.34);
  color: #5651A2;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-title p {
  font-size: 14px;
  line-height: 1.5;
}

.input-wrap {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.input-wrap label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

input,
select {
  width: 100%;
  height: 56px;
  border: 1px solid rgba(106, 152, 255, 0.20);
  outline: none;
  border-radius: 18px;
  padding: 0 18px;
  font-size: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 10px 26px rgba(106, 152, 255, 0.06);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

select {
  appearance: none;
}

input:focus,
select:focus {
  border-color: rgba(106, 152, 255, 0.62);
  background: rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 0 4px rgba(106, 152, 255, 0.11),
    0 0 30px rgba(255, 223, 135, 0.20);
}

input:disabled,
select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

input::placeholder {
  color: rgba(38, 50, 93, 0.32);
}

.checkbox-wrap {
  margin: -4px 0 14px;
}

.compatibility-fields {
  display: grid;
  gap: 2px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand-blue);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.tab-btn {
  border-radius: 18px;
  min-height: 54px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.primary-btn:active,
.secondary-btn:active,
.ghost-btn:active,
.tab-btn:active {
  transform: translateY(1px) scale(0.995);
}

.primary-btn {
  width: 100%;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(90deg, var(--brand-blue), var(--brand-lilac) 52%, var(--brand-pink)),
    radial-gradient(circle at 20% 0%, rgba(255, 223, 135, 0.45), transparent 46%);
  box-shadow:
    0 14px 28px rgba(106, 152, 255, 0.28),
    0 0 28px rgba(255, 166, 207, 0.20);
  padding: 12px 16px;
}

.secondary-btn,
.ghost-btn {
  width: 100%;
  border: 1px solid rgba(255, 223, 135, 0.30);
  color: #444C88;
  background: rgba(255, 255, 255, 0.24);
  padding: 12px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.18);
}

.cta-note {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.cta-note-item {
  max-width: 420px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  text-align: center;
}

.error-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 166, 207, 0.24);
  border: 1px solid rgba(217, 95, 132, 0.22);
  color: #8A2E58;
  font-size: 14px;
  line-height: 1.45;
}

.loading-card {
  text-align: center;
  padding-top: 28px;
  padding-bottom: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.10) 56%, rgba(255, 223, 135, 0.16)),
    radial-gradient(circle at 50% 8%, rgba(255, 223, 135, 0.28), transparent 38%);
  border-color: rgba(255, 223, 135, 0.52);
  backdrop-filter: blur(34px) saturate(1.22);
  -webkit-backdrop-filter: blur(34px) saturate(1.22);
  box-shadow:
    0 28px 76px rgba(91, 85, 145, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.50),
    inset 0 0 0 1px rgba(255, 223, 135, 0.12);
}

.loading-card::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%, rgba(255, 223, 135, 0.18)),
    radial-gradient(circle at 50% 0%, rgba(255, 166, 207, 0.14), transparent 40%);
  opacity: 0.64;
}

.loader-logo {
  position: relative;
  width: 104px;
  height: 84px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.loader-logo::before {
  content: "";
  position: absolute;
  inset: 0 -18px -10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 47% 43%, rgba(255, 255, 255, 0.48), transparent 18%),
    radial-gradient(circle at 46% 48%, rgba(255, 223, 135, 0.72), rgba(255, 166, 207, 0.26) 34%, rgba(106, 152, 255, 0.13) 58%, transparent 76%);
  filter: blur(11px);
  opacity: 0.9;
  animation: loaderAuraPulse 2.8s ease-in-out infinite;
}

.loader-logo img {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 62px;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 20px rgba(95, 85, 186, 0.16))
    drop-shadow(0 0 18px rgba(255, 223, 135, 0.30));
  animation: loaderLogoFloat 1.9s ease-in-out infinite;
}

@keyframes loaderAuraPulse {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.58;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
}

@keyframes loaderLogoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.045);
  }
}

.loading-card h2 {
  margin-bottom: 16px;
}

.loading-steps {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  text-align: left;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 223, 135, 0.28);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  opacity: 0.56;
  transform: translateY(0);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    background 0.24s ease,
    border-color 0.24s ease;
}

.loading-step.is-active {
  opacity: 1;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 223, 135, 0.48);
  box-shadow: 0 12px 28px rgba(255, 166, 207, 0.12);
}

.loading-step.is-done {
  opacity: 0.78;
}

.step-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: rgba(106, 152, 255, 0.28);
}

.loading-step.is-active .step-dot,
.loading-step.is-done .step-dot {
  background: var(--brand-pink);
  box-shadow: 0 0 14px rgba(255, 166, 207, 0.55);
}

.image-card {
  padding: 12px;
}

.image-card img {
  width: 100%;
  max-height: 720px;
  border-radius: 20px;
  object-fit: contain;
  border: 1px solid rgba(255, 223, 135, 0.28);
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
}

.score-grid {
  display: grid;
  gap: 12px;
}

.score-item {
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.14)),
    rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 223, 135, 0.22);
  scroll-margin-top: 92px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.score-item.is-focused {
  transform: translateY(-1px);
  border-color: rgba(106, 152, 255, 0.48);
  box-shadow: 0 0 0 1px rgba(106, 152, 255, 0.18), 0 16px 36px rgba(106, 152, 255, 0.16);
}

.score-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.score-label {
  font-size: 15px;
  color: var(--ink);
  font-weight: 700;
}

.score-gems {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-gem {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(106, 152, 255, 0.15);
  border: 1px solid rgba(106, 152, 255, 0.16);
}

.score-gem.is-filled {
  background: linear-gradient(180deg, var(--brand-gold), var(--brand-pink));
  border-color: rgba(255, 166, 207, 0.55);
  box-shadow: 0 0 12px rgba(255, 166, 207, 0.34);
}

.score-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.score-reason {
  font-size: 14px;
  line-height: 1.58;
  color: var(--ink-soft);
}

.summary-card p {
  font-size: 17px;
  line-height: 1.66;
  color: rgba(38, 50, 93, 0.76);
}

.tabs-nav {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  width: auto;
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 223, 135, 0.24);
  background: rgba(255, 255, 255, 0.20);
  color: #5651A2;
  flex: 0 0 auto;
}

.tab-btn.is-active {
  background:
    linear-gradient(90deg, rgba(106, 152, 255, 0.26), rgba(255, 166, 207, 0.24), rgba(255, 223, 135, 0.18));
  border-color: rgba(255, 223, 135, 0.42);
  color: var(--ink);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.result.is-access-limited .tab-panel:not(#tab-overview).is-active {
  position: relative;
  min-height: 640px;
  max-height: 700px;
  padding-bottom: 370px;
  overflow: hidden;
  cursor: pointer;
}

.result.is-access-limited .tab-panel:not(#tab-overview).is-active > :not(.locked-paywall) {
  user-select: none;
}

.result.is-access-limited .tab-panel:not(#tab-overview).is-active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 82px;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.72) 18%, rgba(255, 250, 244, 0.94) 46%, rgba(255, 248, 236, 0.98)),
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.74), transparent 28%),
    radial-gradient(circle at 82% 47%, rgba(255, 223, 135, 0.42), transparent 34%),
    radial-gradient(circle at 16% 42%, rgba(185, 159, 229, 0.26), transparent 42%);
  backdrop-filter: blur(15px) saturate(0.92);
  -webkit-backdrop-filter: blur(15px) saturate(0.92);
  mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.12) 8px, rgba(0, 0, 0, 0.78) 34px, #000 72px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.12) 8px, rgba(0, 0, 0, 0.78) 34px, #000 72px);
}

.locked-paywall {
  display: none;
}

.result.is-access-limited .tab-panel:not(#tab-overview).is-active .locked-paywall {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  left: 18px;
  right: 18px;
  top: 206px;
  z-index: 3;
  display: grid;
  justify-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: #444C88;
  font-family: "Comfortaa", "Roboto", sans-serif;
  text-align: center;
  cursor: pointer;
}

.lock-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 18px;
}

.lock-star {
  font-size: 34px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 0 12px rgba(255, 223, 135, 0.86),
    0 0 26px rgba(255, 166, 207, 0.46);
}

.lock-orb {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.92), transparent 26%),
    radial-gradient(circle at 68% 76%, rgba(255, 166, 207, 0.52), transparent 36%),
    linear-gradient(135deg, rgba(106, 152, 255, 0.72), rgba(185, 159, 229, 0.64) 45%, rgba(255, 223, 135, 0.70));
  border: 3px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    0 0 0 1px rgba(255, 223, 135, 0.34),
    0 18px 42px rgba(91, 85, 145, 0.22),
    0 0 36px rgba(255, 223, 135, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.lock-orb::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  background:
    radial-gradient(circle, rgba(255, 223, 135, 0.30), rgba(255, 166, 207, 0.12) 42%, transparent 68%);
  filter: blur(10px);
  z-index: -1;
}

.lock-icon {
  position: relative;
  display: block;
  width: 34px;
  height: 31px;
  margin-top: 8px;
  border-radius: 8px;
  background: #17162F;
  box-shadow:
    inset 0 -4px 0 rgba(0, 0, 0, 0.18),
    0 10px 18px rgba(40, 40, 90, 0.22);
}

.lock-icon::before {
  content: "";
  position: absolute;
  left: 7px;
  top: -20px;
  width: 20px;
  height: 24px;
  border: 6px solid #17162F;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-sizing: border-box;
}

.lock-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 5px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  transform: translateX(-50%);
}

.lock-title {
  margin-bottom: 9px;
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 700;
  line-height: 1.18;
  color: #26325D;
}

.lock-subtitle {
  margin-bottom: 26px;
  font-size: clamp(17px, 4.5vw, 23px);
  line-height: 1.35;
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  color: rgba(38, 50, 93, 0.78);
}

.lock-cta {
  width: min(100%, 560px);
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 16px 18px;
  border-radius: 22px;
  color: #26325D;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 700;
  background:
    linear-gradient(90deg, rgba(255, 223, 135, 0.98), rgba(255, 248, 224, 0.94) 42%, rgba(185, 159, 229, 0.76) 100%),
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.70), transparent 48%);
  border: 1px solid rgba(255, 223, 135, 0.86);
  box-shadow:
    0 14px 30px rgba(255, 223, 135, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.lock-note {
  margin-top: 22px;
  font-size: clamp(13px, 3.5vw, 18px);
  line-height: 1.4;
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 400;
  color: rgba(38, 50, 93, 0.54);
}

.rich-text {
  display: grid;
  gap: 14px;
}

.rich-text p {
  line-height: 1.72;
  font-size: 16px;
  color: rgba(38, 50, 93, 0.78);
}

.advice-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.advice-list li {
  line-height: 1.7;
  font-size: 15px;
  color: rgba(38, 50, 93, 0.78);
}

.accordion-card {
  padding: 0;
  overflow: hidden;
}

.accordion-card summary {
  list-style: none;
  cursor: pointer;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
}

.accordion-card summary::-webkit-details-marker {
  display: none;
}

.summary-arrow {
  transition: transform 0.18s ease;
}

.accordion-card[open] .summary-arrow {
  transform: rotate(180deg);
}

.accordion-card.is-open .summary-arrow {
  transform: rotate(180deg);
}

.accordion-card:not(.is-open) .accordion-body {
  display: none;
}

.accordion-body {
  padding: 0 18px 18px;
}

.accordion-body .card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.13)),
    rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 223, 135, 0.22);
  min-height: 90px;
}

.stat-card.wide {
  grid-column: 1 / -1;
}

.stat-label {
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.stat-value {
  font-size: 21px;
  font-weight: 700;
  color: #4D56A7;
  line-height: 1.25;
  word-break: break-word;
}

.actions-card,
.top-actions-card,
.bottom-actions-card {
  display: grid;
  gap: 10px;
}

html.legacy-webview .hero-badge-btn {
  margin: 0 8px 8px 0;
}

html.legacy-webview .loading-step .step-dot {
  margin-right: 10px;
}

html.legacy-webview .tabs-nav .tab-btn + .tab-btn {
  margin-left: 8px;
}

html.legacy-webview .score-top .score-gems {
  margin-left: 12px;
}

@media (min-width: 700px) {
  .top-actions-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 480px) {
  .container {
    padding: 14px 12px 26px;
  }

  .hero {
    min-height: 250px;
    padding: 18px;
  }

  h1 {
    font-size: 25px;
  }

  h2 {
    font-size: 20px;
  }

  .card {
    border-radius: 22px;
    padding: 16px;
  }

  .hero-top {
    gap: 12px;
  }

  .logo-mark {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }

  .brand-logo {
    width: 48px;
  }

  .accordion-card {
    padding: 0;
  }

  .accordion-card summary {
    padding: 16px;
  }

  .accordion-body {
    padding: 0 16px 16px;
  }

  .stat-value {
    font-size: 20px;
  }

  .loading-step {
    padding: 11px 12px;
  }

  .score-top {
    align-items: flex-start;
    flex-direction: column;
  }

  html.legacy-webview .score-top .score-gems {
    margin-left: 0;
    margin-top: 8px;
  }

  .top-actions-card {
    grid-template-columns: 1fr;
  }
}

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

  .hero-badges {
    gap: 6px;
  }

  .hero-badge-btn {
    font-size: 12px;
    padding: 9px 12px;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn {
    font-size: 15px;
    min-height: 54px;
  }

  .stat-value {
    font-size: 19px;
  }
}
