:root {
  --bg: #070915;
  --bg-soft: #101528;
  --panel: rgba(18, 24, 46, 0.72);
  --panel-strong: rgba(13, 18, 35, 0.94);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(167, 131, 255, 0.32);
  --text: #f3f5ff;
  --muted: #b6bfd8;
  --accent: #a783ff;
  --accent-2: #6ae0ff;
  --accent-3: #ffb86a;
  --success: #7de6a3;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1240px;
  --tab-panel-offset: 112px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--tab-panel-offset);
}

html.is-viewport-zoomed {
  scroll-behavior: auto;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Inter, "Noto Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(105, 84, 205, 0.26), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(70, 182, 220, 0.18), transparent 24%),
    linear-gradient(180deg, #090c1a 0%, #06070f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 82%);
  pointer-events: none;
  opacity: 0.18;
}

html.is-viewport-zoomed body::before {
  display: none;
}

[hidden] {
  display: none !important;
}

.bg-grid,
.bg-blur {
  position: fixed;
  pointer-events: none;
  inset: auto;
  z-index: -1;
}

.bg-grid {
  inset: 0;
}

html.is-viewport-zoomed .bg-grid,
html.is-viewport-zoomed .bg-blur {
  display: none;
}

.bg-blur {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
}

.bg-blur-1 {
  top: 4%;
  right: 6%;
  background: rgba(111, 95, 246, 0.42);
}

.bg-blur-2 {
  bottom: 10%;
  left: 4%;
  background: rgba(80, 208, 255, 0.22);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

main,
.site-header,
.site-footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 13, 25, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

html.is-viewport-zoomed .site-header {
  position: static;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand strong {
  display: block;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  color: var(--muted);
  line-height: 1.1;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #1b1631;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 28px rgba(122, 101, 255, 0.36);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.section {
  padding: 92px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding-top: 58px;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.hero-text,
.section-heading p,
.info-card p,
.sphere-card p,
.faq-item p,
.footer-note,
.result-empty p,
.helper-text,
.muted {
  color: var(--muted);
}

.hero-text {
  max-width: 62ch;
  font-size: 1.08rem;
  margin: 18px 0 0;
}


.hero-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.step-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.step-card strong {
  font-size: 1rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #1a1730;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.eyebrow,
.panel-badge,
.result-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #d5c9ff;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.panel-badge::before,
.result-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(167, 131, 255, 0.14);
}

.hero-actions,
.form-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #13172c;
  font-weight: 700;
  background: linear-gradient(135deg, #fff1cc, #a7dfff);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.btn-secondary {
  color: var(--text);
  background: linear-gradient(135deg, rgba(122, 101, 255, 0.2), rgba(106, 224, 255, 0.12));
  border: 1px solid rgba(167, 131, 255, 0.36);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.hero-stats,
.mini-grid,
.info-grid,
.tool-grid,
.matrix-layout,
.sphere-grid,
.preview-grid {
  display: grid;
  gap: 18px;
}

.hero-stats {
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.mini-card,
.info-card,
.sphere-card,
.glass-card,
.glass-panel,
.code-card,
.faq-item {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.stat-card,
.mini-card {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.stat-card strong {
  display: block;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.stat-card span,
.mini-card span {
  color: var(--muted);
}

.hero-panel,
.info-card,
.form-card,
.result-card,
.code-card,
.faq-item,
.sphere-card {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.hero-panel {
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -40px -90px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 131, 255, 0.36), transparent 70%);
}

.feature-list,
.steps-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.feature-list li + li,
.steps-list li + li {
  margin-top: 10px;
}

.compact li + li {
  margin-top: 8px;
}

.mini-grid {
  margin-top: 18px;
  grid-template-columns: 1fr;
}

.mini-card {
  background: rgba(255, 255, 255, 0.03);
}

.mini-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}


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

.preview-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.preview-card h3,
.summary-card h4 {
  margin: 0;
}

.preview-card p,
.summary-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.preview-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d8ceff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 5px rgba(167, 131, 255, 0.12);
}

.preview-callout {
  margin-top: 20px;
}

.summary-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.summary-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 22px 20px 20px;
  border-radius: 22px;
  text-decoration: none;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(106, 224, 255, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(19, 24, 46, 0.96), rgba(12, 15, 30, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(4, 8, 20, 0.24);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(106, 224, 255, 0.72), rgba(167, 131, 255, 0.46), transparent 80%);
  pointer-events: none;
}

.summary-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -42px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 131, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.summary-card:hover,
.summary-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(167, 131, 255, 0.26);
  box-shadow: 0 24px 50px rgba(4, 8, 20, 0.34);
}

.summary-card:focus-visible {
  outline: none;
}

.summary-card h4 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.04rem, 1.8vw, 1.18rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-top: 0;
  max-width: 14ch;
}

.summary-card:hover h4,
.summary-card:focus-visible h4 {
  color: #ffffff;
}

.summary-card p {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  max-width: 28ch;
}

.guides-wave {
  position: relative;
  margin-top: 22px;
  padding: 30px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(110, 92, 255, 0.2), transparent 34%),
    radial-gradient(circle at bottom right, rgba(78, 214, 255, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(16, 21, 42, 0.98), rgba(9, 12, 27, 0.98));
  box-shadow: 0 26px 54px rgba(3, 7, 18, 0.28);
}

.guides-wave::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 29px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.guides-wave::after {
  content: "";
  position: absolute;
  inset: auto auto -82px -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 131, 255, 0.14), transparent 68%);
  pointer-events: none;
}

.guides-wave--deep {
  background:
    radial-gradient(circle at top right, rgba(106, 224, 255, 0.18), transparent 32%),
    radial-gradient(circle at bottom left, rgba(167, 131, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(14, 20, 39, 0.98), rgba(8, 11, 25, 0.98));
}

.guides-wave-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.guides-wave-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(167, 131, 255, 0.18);
}

.guides-wave-grid {
  position: relative;
  z-index: 1;
  gap: 18px;
  margin-top: 0;
}

.guides-wave-card {
  min-height: 220px;
  align-content: space-between;
  padding: 24px 22px 22px;
  background:
    linear-gradient(180deg, rgba(18, 24, 46, 0.98), rgba(10, 14, 30, 0.98));
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 20px 40px rgba(3, 7, 18, 0.2);
}

.guides-wave-card::before {
  height: 2px;
  background: linear-gradient(90deg, rgba(106, 224, 255, 0.9), rgba(167, 131, 255, 0.7), transparent 86%);
}

.guides-wave-card::after {
  content: "↗";
  right: 18px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 700;
  background:
    linear-gradient(135deg, rgba(106, 224, 255, 0.18), rgba(167, 131, 255, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 24px rgba(4, 8, 20, 0.24);
}

.guides-wave-card h4 {
  max-width: 12ch;
  margin-bottom: 4px;
}

.guides-wave-card p {
  max-width: none;
  padding-right: 44px;
  color: rgba(223, 226, 244, 0.82);
  line-height: 1.62;
}

.guides-wave-card:hover,
.guides-wave-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(106, 224, 255, 0.28);
  box-shadow: 0 26px 54px rgba(3, 7, 18, 0.32);
}

.guides-wave-card:hover::after,
.guides-wave-card:focus-visible::after {
  background:
    linear-gradient(135deg, rgba(106, 224, 255, 0.28), rgba(167, 131, 255, 0.34));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.narrow {
  max-width: 680px;
}

.spheres-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.spheres-intro .section-heading {
  max-width: none;
  margin-bottom: 0;
}

.spheres-matrix-card {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 100%;
  padding: 18px;
}

.spheres-matrix-card h3 {
  margin: 8px 0 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.spheres-matrix-card-copy p {
  margin: 0;
}

.spheres-matrix-title {
  color: #d8ceff;
}

.spheres-matrix-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(130, 102, 255, 0.18), transparent 58%),
    radial-gradient(circle at bottom, rgba(87, 205, 255, 0.12), transparent 48%),
    rgba(6, 10, 24, 0.72);
}

.spheres-matrix-frame::before {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1px solid rgba(167, 131, 255, 0.08);
  pointer-events: none;
}

.spheres-matrix-frame svg {
  width: min(100%, 390px);
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 390px;
  overflow: visible;
  flex: 0 0 auto;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.24));
}

.spheres-matrix-empty {
  display: grid;
  gap: 8px;
  max-width: 28ch;
  color: var(--muted);
  line-height: 1.55;
}

.spheres-matrix-empty strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.3;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading p {
  margin: 16px 0 0;
  max-width: 62ch;
}

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

.info-card h3,
.sphere-card h3,
.form-card h3,
.result-card h3,
.matrix-points h4,
.faq-item summary,
.code-card .code-header,
.tarot-reading h4 {
  margin: 0 0 10px;
}

.info-card p,
.sphere-card p,
.result-empty p,
.helper-text,
.faq-item p {
  margin: 0;
  line-height: 1.65;
}

.tool-grid {
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  align-items: start;
}

.form-card {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 10px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

select {
  color-scheme: dark;
  background-color: rgba(255, 255, 255, 0.03);
}

select option {
  background-color: #1a1730;
  color: var(--text);
}

select option:disabled {
  color: #93a0c7;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(182, 191, 216, 0.64);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(167, 131, 255, 0.56);
  box-shadow: 0 0 0 4px rgba(167, 131, 255, 0.16);
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.helper-text {
  font-size: 0.94rem;
}

.result-card {
  min-height: 560px;
}

.result-empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 14px;
  min-height: 510px;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(167, 131, 255, 0.3), rgba(106, 224, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.result-header h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.muted {
  margin: 0;
  line-height: 1.6;
}

.chip-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(167, 131, 255, 0.26);
  border-radius: 999px;
  color: #e5dcff;
  font-size: 0.9rem;
  background: rgba(167, 131, 255, 0.08);
}

.matrix-layout {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 22px;
}

.glass-panel {
  padding: 20px;
  border-radius: var(--radius-lg);
}

.matrix-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-height: 0;
  height: 100%;
}

.matrix-visual svg {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  flex-shrink: 0;
  overflow: visible;
}

.matrix-points {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
}

.matrix-post-accordion {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 960px;
  margin: 18px auto 0;
}

.matrix-post-accordion-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.matrix-post-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

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

.matrix-post-accordion-title {
  font-size: 0.98rem;
  font-weight: 700;
}

.matrix-post-accordion-summary::after {
  content: "+";
  flex-shrink: 0;
  color: #d8ceff;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.16s ease;
}

.matrix-post-accordion-item[open] .matrix-post-accordion-summary::after {
  transform: rotate(45deg);
}

.matrix-post-accordion-item[open] .matrix-post-accordion-summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.matrix-post-accordion-content {
  padding: 18px;
}

.matrix-post-accordion-content .matrix-insights {
  max-width: none;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.matrix-post-accordion-content .summary-grid {
  margin-top: 0;
}

.matrix-post-points {
  display: grid;
  gap: 0;
}

.matrix-insights {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 960px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.matrix-insights-head {
  display: grid;
  gap: 6px;
}

.matrix-insights-head strong {
  font-size: 1.02rem;
}

.matrix-insights-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

.matrix-insights-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d5c9ff;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.matrix-insights-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 5px rgba(167, 131, 255, 0.14);
}

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

.matrix-insight-card {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.matrix-insight-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.matrix-insight-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  width: auto;
  height: 42px;
  padding: 0 10px;
  border-radius: 14px;
  flex-shrink: 0;
  color: #13172c;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  background: linear-gradient(135deg, #fff1cc, #a7dfff);
}

.matrix-insight-label {
  display: inline-flex;
  color: #d9d1ff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matrix-insight-card strong,
.matrix-insight-card small {
  display: block;
}

.matrix-insight-card strong {
  margin-top: 4px;
  font-size: 0.96rem;
  line-height: 1.35;
}

.matrix-insight-card small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.matrix-insight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.matrix-points h4 {
  font-size: 1rem;
}

.points-list {
  display: grid;
  gap: 10px;
}

.point-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.point-item:last-child {
  border-bottom: 0;
}

.point-meta {
  min-width: 0;
}

.point-meta strong,
.point-value strong {
  display: block;
}

.point-meta span,
.point-value span {
  color: var(--muted);
  font-size: 0.92rem;
}

.point-value {
  flex-shrink: 0;
  text-align: right;
}

.action-row {
  margin-top: 18px;
}

.result-output {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  line-height: 1.7;
  white-space: pre-wrap;
}


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

.compatibility-card {
  min-height: 760px;
}

.compatibility-layout {
  align-items: stretch;
}

.compatibility-visual {
  min-height: 860px;
}

.compatibility-score {
  display: grid;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.compatibility-score-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.compatibility-score-top p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.compatibility-score-number {
  display: block;
  margin-top: 8px;
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.compatibility-score-tag,
.compatibility-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.compatibility-score-tag--high,
.compatibility-pill--positive {
  color: #d4ffe5;
  border-color: rgba(125, 230, 163, 0.42);
  background: rgba(125, 230, 163, 0.12);
}

.compatibility-score-tag--good {
  color: #eef6ff;
  border-color: rgba(106, 224, 255, 0.42);
  background: rgba(106, 224, 255, 0.12);
}

.compatibility-score-tag--medium,
.compatibility-pill--neutral {
  color: #ffe9bd;
  border-color: rgba(255, 214, 131, 0.4);
  background: rgba(255, 214, 131, 0.12);
}

.compatibility-score-tag--low,
.compatibility-pill--negative {
  color: #ffd6d6;
  border-color: rgba(255, 129, 129, 0.4);
  background: rgba(255, 129, 129, 0.12);
}

.compatibility-progress {
  overflow: hidden;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.compatibility-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(106, 224, 255, 0.18);
}

.compatibility-score-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.compatibility-breakdown-panel {
  height: 100%;
}

.compatibility-breakdown-panel h4 {
  margin: 0 0 8px;
}

.compatibility-breakdown-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.compatibility-post-accordion {
  margin-top: 20px;
}

.compatibility-post-accordion .compatibility-summary,
.compatibility-post-accordion .compatibility-ai-card {
  margin-top: 0;
}

.compatibility-post-accordion .compatibility-summary-grid,
.compatibility-post-accordion .compatibility-grid {
  margin-top: 16px;
}

.compatibility-post-accordion .compatibility-position-card {
  padding: 20px;
}

.compatibility-post-accordion .compatibility-ai-head p {
  max-width: none;
}

.compatibility-breakdown-item {
  align-items: center;
}

.compatibility-breakdown-item .point-meta span {
  line-height: 1.6;
}

.compatibility-breakdown-item--positive .point-value strong {
  color: var(--success);
}

.compatibility-breakdown-item--negative .point-value strong {
  color: #ffb6b6;
}

.compatibility-breakdown-item--neutral .point-value strong {
  color: #ffe9bd;
}

.compatibility-summary {
  margin-top: 20px;
}

.compatibility-summary-head {
  display: grid;
  gap: 8px;
}

.compatibility-summary-head strong {
  font-size: 1.06rem;
}

.compatibility-summary-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.compatibility-summary-grid,
.compatibility-grid {
  display: grid;
  gap: 18px;
}

.compatibility-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.compatibility-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.compatibility-position-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.compatibility-position-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.compatibility-position-head h4 {
  margin: 10px 0 8px;
  font-size: 1.18rem;
}

.compatibility-position-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.compatibility-formula-list {
  display: grid;
  gap: 10px;
}

.compatibility-formula {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.compatibility-formula strong {
  display: block;
  margin-bottom: 4px;
}

.compatibility-formula span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.compatibility-formula--result {
  background: rgba(167, 131, 255, 0.08);
  border-color: rgba(167, 131, 255, 0.24);
}

.compatibility-copy {
  display: grid;
  gap: 12px;
}

.compatibility-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.compatibility-ai-card {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.compatibility-ai-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.compatibility-ai-head h4 {
  margin: 8px 0 8px;
  font-size: 1.12rem;
}

.compatibility-ai-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 760px;
}

.compatibility-ai-status {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  line-height: 1.6;
}

.compatibility-ai-status--loading {
  border-color: rgba(167, 131, 255, 0.36);
}

.compatibility-ai-status--ready {
  border-color: rgba(106, 224, 255, 0.32);
  color: rgba(220, 245, 255, 0.95);
}

.compatibility-ai-status--error {
  border-color: rgba(255, 124, 141, 0.45);
  color: #ffd2db;
}

.compatibility-ai-answer {
  display: grid;
  gap: 14px;
}

.compatibility-ai-overview {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.compatibility-ai-overview h4 {
  margin: 0 0 10px;
  font-size: 1.03rem;
}

.compatibility-ai-overview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.compatibility-ai-overview p + p {
  margin-top: 10px;
}

.compatibility-ai-sections {
  display: grid;
  gap: 12px;
}

.compatibility-ai-section {
  display: grid;
  gap: 10px;
}

.compatibility-ai-section h4 {
  margin: 0;
  font-size: 1rem;
}

.compatibility-ai-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.compatibility-ai-section p + p {
  margin-top: 8px;
}

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

.matrix-ask-card {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding: 18px 20px;
}

.matrix-ask-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.matrix-ask-card label {
  gap: 8px;
}

.matrix-ask-card textarea {
  min-height: 108px;
}

.matrix-ask-card .form-actions {
  margin-top: 2px;
}

.matrix-question-answer {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.matrix-question-answer h4 {
  margin: 0;
  font-size: 0.96rem;
}

.matrix-question-answer p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.matrix-question-answer--loading {
  border-color: rgba(167, 131, 255, 0.36);
}

.matrix-question-answer--error {
  border-color: rgba(255, 124, 141, 0.45);
}

.sphere-card {
  display: grid;
  gap: 14px;
}

.sphere-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #19152e;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.sphere-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sphere-energy {
  flex-shrink: 0;
  min-width: 94px;
  padding: 10px 12px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.sphere-energy strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
}

.sphere-energy span {
  color: var(--muted);
  font-size: 0.8rem;
}

.sphere-pillars {
  display: grid;
  gap: 12px;
}

.pillar {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pillar strong {
  display: block;
  margin-bottom: 4px;
}

.pillar p {
  margin: 0;
  line-height: 1.6;
}

.placeholder-card {
  opacity: 0.88;
}

.matrix-accordion {
  grid-template-columns: 1fr;
  gap: 12px;
}

.matrix-accordion-item {
  padding: 0;
  overflow: hidden;
}

.matrix-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

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

.matrix-accordion-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.matrix-accordion-summary-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.matrix-accordion-combo-line {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.matrix-topic-meta {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.matrix-topic-meta-head {
  display: grid;
  gap: 4px;
}

.matrix-topic-meta-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d9ccff;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.matrix-topic-node-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.matrix-topic-node {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(167, 131, 255, 0.24);
  background: rgba(167, 131, 255, 0.08);
  color: #e7e0ff;
  font-size: 0.82rem;
  line-height: 1.35;
}

.matrix-accordion-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.matrix-accordion-status--loading {
  color: #ffe9bd;
  border-color: rgba(255, 214, 131, 0.4);
  background: rgba(255, 214, 131, 0.12);
}


.matrix-accordion-status--preview {
  color: #d9ccff;
  border-color: rgba(167, 131, 255, 0.34);
  background: rgba(167, 131, 255, 0.1);
}

.matrix-accordion-status--ready {
  color: #d4ffe5;
  border-color: rgba(125, 230, 163, 0.42);
  background: rgba(125, 230, 163, 0.12);
}

.matrix-accordion-status--error {
  color: #ffd5d5;
  border-color: rgba(255, 129, 129, 0.4);
  background: rgba(255, 129, 129, 0.12);
}

.matrix-accordion-body {
  padding: 0 20px 20px;
}

.matrix-accordion-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.matrix-accordion-body p + p {
  margin-top: 14px;
}

.matrix-accordion-body strong {
  color: var(--text);
}

.matrix-accordion-item[open] .matrix-accordion-summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tarot-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.tarot-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(167, 131, 255, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(13, 18, 35, 0.96), rgba(7, 10, 21, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.tarot-card::before,
.tarot-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tarot-card::after {
  inset: 24px;
  border-style: dashed;
  opacity: 0.34;
}

.tarot-card.reversed {
  transform: rotate(180deg);
}

.tarot-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}

.tarot-top,
.tarot-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.tarot-top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tarot-top span:first-child {
  max-width: none;
  min-width: 0;
  overflow-wrap: break-word;
}

.tarot-top span:last-child {
  max-width: 130px;
  text-align: center;
  align-self: center;
}

.tarot-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
  line-height: 1.35;
}

.tarot-bottom span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.tarot-bottom span:last-child {
  text-align: left;
  overflow-wrap: anywhere;
}

.tarot-core {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.tarot-symbol {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 2rem;
  color: #1b1631;
  background: linear-gradient(135deg, #ffefc3, #a7dfff);
}

.tarot-card h4 {
  margin: 0;
  font-size: 1.15rem;
}

.tarot-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  line-height: 1.2;
  white-space: normal;
}

.tarot-reading {
  margin-top: 20px;
}

.tarot-reading-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.reading-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.reading-item h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.reading-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.code-card {
  margin-top: 20px;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.code-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #13172c;
  font-size: 0.85rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-3), #fff3ce);
}

pre {
  margin: 18px 0 0;
  padding: 18px;
  overflow: auto;
  border-radius: var(--radius-lg);
  color: #eaf2ff;
  background: rgba(5, 7, 16, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

code {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding-right: 28px;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 0;
  right: 0;
  color: var(--accent-2);
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin-top: 12px;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 72px 0 40px;
}

.site-footer p {
  margin: 8px 0 0;
}

.footer-note {
  max-width: 540px;
  text-align: right;
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--text);
  background: rgba(9, 12, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.matrix-line {
  stroke: rgba(167, 131, 255, 0.4);
  stroke-width: 2.2;
}

.matrix-line--muted {
  stroke: rgba(106, 224, 255, 0.26);
}

.matrix-node {
  fill: rgba(9, 12, 24, 0.96);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 2;
}

.matrix-node--core {
  fill: rgba(25, 20, 48, 0.98);
  stroke: rgba(167, 131, 255, 0.56);
}

.matrix-node--accent {
  fill: rgba(15, 20, 38, 0.96);
  stroke: rgba(106, 224, 255, 0.4);
}

.matrix-value {
  fill: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
}

.matrix-label {
  fill: rgba(182, 191, 216, 0.84);
  font-size: 11px;
  font-family: "Segoe UI", "Noto Sans", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-anchor: middle;
}

.matrix-bubble {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.08);
}

.matrix-bubble-text {
  fill: rgba(243, 245, 255, 0.92);
  font-size: 13px;
  text-anchor: middle;
  dominant-baseline: middle;
}


.matrix-advanced-scene {
  isolation: isolate;
}

.matrix-orbit {
  fill: none;
}

.matrix-orbit--outer {
  stroke: rgba(123, 162, 255, 0.36);
  stroke-width: 2.4;
}

.matrix-orbit--inner {
  stroke: rgba(168, 139, 255, 0.16);
  stroke-width: 1.2;
}

.matrix-age-tick {
  stroke: rgba(224, 232, 255, 0.28);
  stroke-width: 1;
}

.matrix-age-tick--mid {
  stroke: rgba(224, 232, 255, 0.44);
  stroke-width: 1.25;
}

.matrix-age-tick--major {
  stroke: rgba(236, 243, 255, 0.78);
  stroke-width: 1.65;
}

.matrix-age-label,
.matrix-age-value,
.matrix-node-caption,
.matrix-line-label,
.matrix-icon {
  font-family: "Segoe UI", "Noto Sans", sans-serif;
  text-anchor: middle;
}

.matrix-age-label {
  fill: rgba(236, 241, 255, 0.86);
  font-size: 8.2px;
  letter-spacing: 0.04em;
  dominant-baseline: middle;
}

.matrix-age-label--major {
  fill: rgba(245, 248, 255, 0.98);
  font-size: 9px;
  font-weight: 700;
}

.matrix-age-value {
  fill: rgba(210, 220, 255, 0.82);
  font-size: 6.4px;
  dominant-baseline: middle;
}

.matrix-shell-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.matrix-shell-line--diamond {
  stroke: rgba(115, 156, 255, 0.44);
  stroke-width: 2.6;
}

.matrix-shell-line--square {
  stroke: rgba(210, 232, 255, 0.58);
  stroke-width: 2.2;
}

.matrix-shell-line--axis {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.5;
}

.matrix-shell-line--soft {
  stroke: rgba(167, 131, 255, 0.18);
  stroke-width: 1.4;
}

.matrix-shell-line--guide {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1.2;
}

.matrix-shell-line--relation {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
}

.matrix-arrow-line {
  fill: none;
  stroke-width: 2.3;
  stroke-linecap: round;
  opacity: 0.92;
}

.matrix-arrow-line--male {
  stroke: rgba(188, 134, 255, 0.95);
  marker-end: url(#matrixArrowMale);
}

.matrix-arrow-line--female {
  stroke: rgba(255, 104, 125, 0.95);
  marker-end: url(#matrixArrowFemale);
}

.matrix-node-wrap {
  pointer-events: none;
}

.matrix-node-caption {
  fill: rgba(217, 227, 255, 0.76);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.matrix-node-caption--center {
  fill: rgba(244, 248, 255, 0.9);
  font-size: 7.6px;
  letter-spacing: 0.12em;
}

.matrix-value--bold {
  font-weight: 800;
}

.matrix-line-label {
  fill: rgba(221, 228, 255, 0.78);
  font-size: 6.7px;
  font-weight: 600;
  letter-spacing: 0.02em;
  dominant-baseline: middle;
}

.matrix-line-label--female {
  fill: rgba(255, 206, 214, 0.82);
}

.matrix-icon {
  dominant-baseline: middle;
}

.matrix-icon--money {
  fill: #9cdc5b;
  font-size: 19px;
  font-weight: 700;
}

.matrix-icon--love {
  fill: #ff657c;
  font-size: 16px;
}

@media (max-width: 1120px) {
  .hero,
  .tool-grid,
  .matrix-layout,
  .info-grid,
  .sphere-grid,
  .summary-grid,
  .summary-grid--compact,
  .preview-grid,
  .compatibility-summary-grid,
  .compatibility-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    display: grid;
  }

  .footer-note {
    text-align: left;
  }

  .site-header {
    border-radius: 28px;
  }

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

@media (max-width: 860px) {
  :root {
    --tab-panel-offset: 168px;
  }

  .site-header {
    position: sticky;
    top: 0;
    align-items: flex-start;
    flex-direction: column;
    margin-top: 12px;
  }

  .site-nav {
    gap: 12px;
  }

  .guides-wave {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .hero-stats,
  .hero-steps,
  .info-grid,
  .spheres-intro,
  .sphere-grid,
  .preview-grid,
  .summary-grid,
  .summary-grid--compact,
  .matrix-post-accordion-content .summary-grid,
  .matrix-insights-grid,
  .pair-inputs,
  .compatibility-summary-grid,
  .compatibility-grid {
    grid-template-columns: 1fr;
  }

  .guides-wave-grid {
    grid-template-columns: 1fr;
  }

  .guides-wave-card {
    min-height: auto;
  }

  .result-header,
  .sphere-head,
  .site-footer,
  .compatibility-position-head,
  .compatibility-score-top,
  .compatibility-ai-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .chip-stack {
    justify-content: flex-start;
  }

  .matrix-visual {
    min-height: 0;
  }

  .matrix-visual svg {
    max-width: 720px;
  }

  .spheres-matrix-frame {
    min-height: 280px;
  }

  .spheres-matrix-frame svg {
    width: min(100%, 340px);
    height: auto;
    max-width: 340px;
  }

  .matrix-post-accordion-summary {
    padding: 14px 16px;
  }

  .matrix-post-accordion-content {
    padding: 16px;
  }
}

@media (max-width: 560px) {
  main,
  .site-header,
  .site-footer {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .section {
    padding-top: 72px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-copy h1 {
    font-size: 2.3rem;
  }

  .section-heading h2 {
    font-size: 1.85rem;
  }

  .hero-panel,
  .info-card,
  .form-card,
  .result-card,
  .code-card,
  .faq-item,
  .sphere-card,
  .glass-panel {
    padding: 18px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .form-actions,
  .action-row {
    flex-direction: column;
  }

  .tarot-cards {
    grid-template-columns: 1fr;
  }

  .step-card,
  .preview-card,
  .summary-card {
    padding: 18px;
  }

  .matrix-post-accordion-title {
    font-size: 0.94rem;
  }

  .tarot-card {
    min-height: 240px;
  }
}


.matrix-visual {
  position: relative;
}

.matrix-hover-tip {
  position: absolute;
  z-index: 5;
  min-width: 260px;
  max-width: min(320px, calc(100% - 24px));
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(167, 131, 255, 0.28);
  background: rgba(7, 10, 22, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  pointer-events: none;
}

.matrix-hover-tip.is-touch-dismissible {
  pointer-events: auto;
}

.matrix-hover-tip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.matrix-hover-tip-copy {
  min-width: 0;
  flex: 1;
}

.matrix-hover-tip strong,
.matrix-hover-tip span,
.matrix-hover-tip small {
  display: block;
}

.matrix-hover-tip span {
  margin-bottom: 6px;
  color: #d7cbff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matrix-hover-tip strong {
  margin-bottom: 8px;
  font-size: 0.98rem;
  line-height: 1.35;
}

.matrix-hover-tip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.91rem;
}

.matrix-hover-tip p + p {
  margin-top: 8px;
}

.matrix-hover-tip small {
  margin-top: 10px;
  color: #c6cff2;
  line-height: 1.45;
}

.matrix-hover-tip-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  appearance: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.matrix-hover-tip-close:hover,
.matrix-hover-tip-close:focus-visible {
  border-color: rgba(167, 131, 255, 0.34);
  background: rgba(167, 131, 255, 0.12);
}

.matrix-hover-tip-close:focus-visible {
  outline: none;
}

.matrix-node-wrap.matrix-node-interactive {
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.matrix-node-wrap.matrix-node-interactive:hover,
.matrix-node-wrap.matrix-node-interactive:focus-visible,
.matrix-node-wrap.matrix-node-interactive.is-active {
  filter: drop-shadow(0 0 12px rgba(167, 131, 255, 0.34));
}

.matrix-node-wrap.matrix-node-interactive:focus-visible {
  outline: none;
}

.matrix-point-group + .matrix-point-group {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.matrix-point-group h5 {
  margin: 0 0 12px;
  color: #ddd2ff;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matrix-point-group .point-item {
  align-items: flex-start;
}

.matrix-point-group .point-value strong {
  font-size: 0.92rem;
}

.matrix-point-group .point-value span {
  display: block;
  margin-top: 4px;
  max-width: 180px;
  line-height: 1.4;
}

.matrix-health-head,
.matrix-years-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.matrix-years-controls {
  margin-bottom: 16px;
}

.matrix-years-embedded {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.matrix-years-disclosure {
  display: block;
}

.matrix-years-summary {
  list-style: none;
  cursor: pointer;
}

.matrix-years-summary::-webkit-details-marker {
  display: none;
}

.matrix-years-summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ddd2ff;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.matrix-years-disclosure > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.matrix-years-disclosure > summary .matrix-years-head {
  flex: 1;
  margin-bottom: 0;
}

.matrix-years-disclosure[open] .matrix-years-summary::after {
  content: "−";
  transform: rotate(180deg);
  background: rgba(167, 131, 255, 0.12);
  border-color: rgba(167, 131, 255, 0.26);
}

.matrix-years-content {
  margin-top: 18px;
}

.matrix-years-select-label {
  max-width: 360px;
}

.matrix-years-select-label span {
  color: #ddd2ff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matrix-health-table-wrap {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.matrix-health-table {
  width: 100%;
  border-collapse: collapse;
}

.matrix-health-table th,
.matrix-health-table td {
  padding: 16px 14px;
  text-align: center;
  border-right: 2px solid rgba(255, 255, 255, 0.06);
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
}

.matrix-health-table th:last-child,
.matrix-health-table td:last-child {
  border-right: 0;
}

.matrix-health-table tbody tr:last-child td {
  border-bottom: 0;
}

.matrix-health-table thead th {
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
}

.matrix-health-table td:first-child,
.matrix-health-table th:first-child {
  text-align: left;
}

.matrix-health-table .matrix-health-label {
  font-weight: 700;
}

.matrix-health-table .matrix-health-sub {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  font-weight: 500;
}

.matrix-health-table .matrix-health-total td {
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.matrix-health-row--violet td:first-child { background: rgba(142, 85, 255, 0.9); }
.matrix-health-row--indigo td:first-child { background: rgba(71, 108, 255, 0.92); }
.matrix-health-row--cyan td:first-child { background: rgba(61, 210, 255, 0.92); }
.matrix-health-row--green td:first-child { background: rgba(97, 217, 79, 0.92); }
.matrix-health-row--lime td:first-child { background: rgba(225, 230, 130, 0.96); color: #1d1d18; }
.matrix-health-row--orange td:first-child { background: rgba(255, 171, 61, 0.94); }
.matrix-health-row--red td:first-child { background: rgba(255, 77, 121, 0.94); }
.matrix-health-total td:first-child { background: rgba(196, 196, 196, 0.28); }

.matrix-health-summary {
  margin-top: 18px;
}

.matrix-health-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.matrix-health-summary-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.matrix-health-summary-card strong,
.matrix-health-summary-card small {
  display: block;
}

.matrix-health-summary-card strong {
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.matrix-health-summary-card small {
  color: var(--muted);
  line-height: 1.5;
}

.matrix-years-focus-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.matrix-years-selected {
  margin-bottom: 18px;
}

.matrix-years-selected-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.matrix-years-selected-head h4 {
  margin: 6px 0 4px;
  font-size: 1.16rem;
}

.matrix-years-selected-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.matrix-years-selected-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.matrix-years-detail-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.matrix-years-detail-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.matrix-years-detail-card--primary {
  background: linear-gradient(135deg, rgba(122, 101, 255, 0.12), rgba(106, 224, 255, 0.08));
  border-color: rgba(167, 131, 255, 0.28);
}

.matrix-years-detail-card h5 {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.matrix-years-detail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.matrix-years-selected-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.matrix-years-selected-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.matrix-years-selected-card--primary {
  background: linear-gradient(135deg, rgba(122, 101, 255, 0.12), rgba(106, 224, 255, 0.08));
  border-color: rgba(167, 131, 255, 0.28);
}

.matrix-years-selected-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.96rem;
}

.matrix-years-selected-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.matrix-year-focus-card,
.matrix-year-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.matrix-year-focus-card strong,
.matrix-year-focus-card small,
.matrix-year-card strong,
.matrix-year-card small,
.matrix-year-card span {
  display: block;
}

.matrix-year-focus-card span,
.matrix-year-card span {
  color: #ddd2ff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matrix-year-focus-card strong,
.matrix-year-card strong {
  margin: 6px 0 4px;
  font-size: 0.98rem;
  line-height: 1.3;
}

.matrix-year-focus-card p,
.matrix-year-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.matrix-year-focus-card small,
.matrix-year-card small {
  margin-top: 6px;
  color: #c9d1f0;
  line-height: 1.38;
}

.matrix-year-focus-card--current,
.matrix-year-card--current {
  border-color: rgba(167, 131, 255, 0.34);
  background: linear-gradient(135deg, rgba(122, 101, 255, 0.14), rgba(106, 224, 255, 0.08));
}

.matrix-years-timeline {
  display: grid;
  gap: 16px;
}

.matrix-years-decade {
  overflow: hidden;
}

.matrix-years-decade > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.matrix-years-decade > summary::-webkit-details-marker {
  display: none;
}

.matrix-years-decade h4 {
  margin: 0;
  font-size: 1.06rem;
}

.matrix-years-decade p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.matrix-years-decade-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.matrix-year-card small.code-like {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
}

@media (max-width: 1024px) {
  .matrix-health-summary-grid,
  .matrix-years-detail-grid,
  .matrix-years-selected-grid,
  .matrix-years-focus-grid,
  .matrix-years-decade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .matrix-hover-tip {
    left: 12px !important;
    right: 12px;
    top: auto !important;
    bottom: 12px;
    max-width: none;
  }

  .matrix-health-table-wrap {
    overflow-x: auto;
  }

  .matrix-health-table {
    min-width: 640px;
  }

  .matrix-years-selected-head {
    flex-direction: column;
    align-items: stretch;
  }

  .matrix-years-select-label {
    max-width: none;
  }

  .matrix-health-summary-grid,
  .matrix-years-detail-grid,
  .matrix-years-selected-grid,
  .matrix-years-focus-grid,
  .matrix-years-decade-grid {
    grid-template-columns: 1fr;
  }
}


/* === Tabbed navigation workspace === */
.site-nav {
  flex: 1;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding-top: 2px;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.site-nav::-webkit-scrollbar {
  height: 6px;
}

.site-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(167, 131, 255, 0.32);
}

.site-nav a,
.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav-link:hover,
.site-nav-link:focus-visible {
  color: var(--text);
  border-color: rgba(167, 131, 255, 0.28);
  background: rgba(167, 131, 255, 0.1);
}

.site-nav a[aria-selected="true"],
.site-nav-link[aria-selected="true"],
.site-nav-link.is-active {
  color: var(--text);
  border-color: rgba(167, 131, 255, 0.42);
  background: linear-gradient(135deg, rgba(122, 101, 255, 0.2), rgba(106, 224, 255, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tab-panel {
  scroll-margin-top: var(--tab-panel-offset);
  outline: none;
  border: 0;
}

.tab-panel:focus,
.tab-panel:focus-visible {
  outline: none;
  box-shadow: none;
}

html.is-viewport-zoomed .tab-panel {
  scroll-margin-top: 0;
}

.tab-panel[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .site-nav {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 6px;
  }
}

@media (max-width: 560px) {
  :root {
    --tab-panel-offset: 156px;
  }

  .site-nav a,
  .site-nav-link {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.95rem;
  }

  .tab-panel {
    scroll-margin-top: var(--tab-panel-offset);
  }
}

.reading-item-main {
  border-color: rgba(167, 131, 255, 0.28);
  background: rgba(167, 131, 255, 0.08);
}

.page-links-section {
  position: relative;
  margin-top: clamp(52px, 7vw, 92px);
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(167, 131, 255, 0.12), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(106, 224, 255, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(14, 18, 36, 0.96), rgba(8, 10, 21, 0.98));
  box-shadow: 0 24px 60px rgba(2, 6, 18, 0.34);
  overflow: hidden;
  isolation: isolate;
}

.landing-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 26px;
  align-items: stretch;
}

.landing-link-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 100%;
  padding: 26px 24px 28px;
  border-radius: 24px;
  text-decoration: none;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(102, 216, 255, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(21, 26, 49, 0.96), rgba(11, 14, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 40px rgba(3, 6, 18, 0.3);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.landing-link-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(106, 224, 255, 0.65), rgba(167, 131, 255, 0.45), transparent 82%);
  pointer-events: none;
}

.landing-link-card::after {
  content: "\2197";
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: rgba(243, 245, 255, 0.92);
  font-size: 1rem;
  background: linear-gradient(135deg, rgba(167, 131, 255, 0.2), rgba(106, 224, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.landing-link-card:hover,
.landing-link-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(167, 131, 255, 0.34);
  box-shadow: 0 28px 60px rgba(3, 6, 18, 0.4);
}

.landing-link-card:focus-visible {
  outline: none;
}

.landing-link-card span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #dcd3ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-link-card strong {
  display: block;
  font-size: clamp(1.12rem, 2vw, 1.34rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.landing-link-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.96rem;
  max-width: 30ch;
}

@media (max-width: 980px) {
  .page-links-section {
    padding: 26px 22px;
  }
}

@media (max-width: 680px) {
  .landing-links-grid {
    grid-template-columns: 1fr;
  }

  .landing-link-card {
    padding: 20px 20px 24px;
    border-radius: 20px;
  }

  .page-links-section {
    border-radius: 24px;
    padding: 22px 18px;
  }

  .landing-link-card strong,
  .landing-link-card p {
    max-width: none;
  }
}

/* VIP Monetization Banner & Modal */
.vip-promo-banner {
  margin-top: 24px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(167, 131, 255, 0.12));
  border: 1px solid rgba(255, 215, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.vip-promo-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffd700, #ffaa00);
  color: #0d0c1d;
  margin-bottom: 8px;
}

.vip-promo-content h4 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: #fff;
}

.vip-promo-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 580px;
}

.btn-gold {
  background: linear-gradient(135deg, #ffd700, #ff9900) !important;
  color: #0d0c1d !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 215, 0, 0.45) !important;
}

/* Modal Overlay & Dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 7, 20, 0.78);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  border-radius: 28px;
  background: #14122b;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
  margin-bottom: 10px;
}

.modal-header h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.vip-tariffs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

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

.vip-tariff-card {
  position: relative;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vip-tariff-card.highlight {
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.08), rgba(167, 131, 255, 0.08));
  border-color: rgba(255, 215, 0, 0.35);
}

.tariff-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.highlight-tag {
  color: #ffd700;
}

.vip-tariff-card h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.tariff-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 12px;
}

.tariff-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.85);
}

.tariff-features li {
  margin-bottom: 6px;
  line-height: 1.4;
}

.btn-tariff {
  width: 100%;
  padding: 10px;
  font-size: 0.88rem;
}

.vip-order-form {
  display: grid;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.92rem;
}

.form-group input:focus {
  outline: none;
  border-color: #ffd700;
}

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

.form-disclaimer {
  font-size: 0.76rem;
  text-align: center;
  margin: 4px 0 0;
}
