/* Astrology page — empty state + compatibility report */

.page-astrology {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
}

.page-astrology--picker {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: url('../images/astrology_match_bg.png') no-repeat center center / cover;
}

.page-astrology--report {
  background: #fff;
}

.page-astrology--empty {
  background: #fff;
}

.page-astrology--empty .page-astrology__inner {
  align-items: center;
}

.page-astrology__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40vh;
  font-size: 15px;
  color: var(--color-muted);
}

.page-astrology__inner {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
}

/* ——— Unsupported gender ——— */

.astrology-unsupported {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: min(60vh, 560px);
}

.astrology-unsupported__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(25, 92, 147, 0.15);
}

.astrology-unsupported__back,
.astrology-unsupported__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 99px;
  height: 46px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: #f7fdff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.2s ease;
}

.astrology-unsupported__back {
  color: #1b1b1b;
}

.astrology-unsupported__back:hover,
.astrology-unsupported__info:hover {
  background: rgba(52, 120, 155, 0.08);
}

.astrology-unsupported__back img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.astrology-unsupported__info {
  margin-left: auto;
  color: var(--color-primary);
}

.astrology-unsupported__info-icon {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.astrology-unsupported__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding-top: 24px;
  padding-bottom: 48px;
}

.astrology-unsupported__icon {
  margin-bottom: 28px;
}

.astrology-unsupported__svg {
  display: block;
}

.astrology-unsupported__title {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

.astrology-unsupported__text {
  margin: 0;
  max-width: 460px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-muted);
}

/* ——— Picker (select match) ——— */

.astrology-picker {
  position: relative;
  width: 100%;
  margin: 0 auto;
  min-height: min(70vh, 720px);
  overflow: hidden;
}

.astrology-picker > .astrology-picker__info {
  position: absolute;
  top: 8px;
  right: 0;
  z-index: 2;
}

.astrology-picker__info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 99px;
  height: 46px;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  background: #F7FDFF;
  box-shadow: 0 4px 14px rgba(53, 120, 155, 0.12);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary, #ff207a);
  cursor: pointer;
}

.astrology-picker__info-icon {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 50%;
}

.astrology-picker__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(92vw, 720px);
  padding: 32px 12px 40px;
  overflow: visible;
}

.astrology-picker__wheel {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 145vh;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.astrology-picker__wheel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.95;
  pointer-events: none;
  user-select: none;
  animation: astrology-wheel-spin 80s linear infinite;
}

@keyframes astrology-wheel-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .astrology-picker__wheel-img {
    animation: none;
  }
}

.astrology-picker__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.astrology-picker__plus {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #F7FDFF;
  line-height: 0;
}

.astrology-picker__plus::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #F7FDFF;
  filter: blur(6px);
  z-index: 0;
}

.astrology-picker__plus-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.astrology-picker__carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.astrology-picker__carousel--one {
  justify-content: center;
}

.astrology-picker__carousel--two {
  width: min(100%, 720px);
  align-items: center;
}

.astrology-picker__carousel--many {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto minmax(0, 1fr) 38px;
  align-items: center;
  gap: 20px;
  width: min(100%, 710px);
}

.astrology-picker__carousel--many > .astrology-picker__nav--prev {
  grid-column: 1;
  justify-self: center;
}

.astrology-picker__carousel--many > .astrology-picker__track {
  display: contents;
}

.astrology-picker__carousel--many > .astrology-picker__nav--next {
  grid-column: 5;
  justify-self: center;
}

.astrology-picker__carousel--many .astrology-picker__slot--left {
  grid-column: 2;
  justify-self: end;
  align-self: center;
}

.astrology-picker__carousel--many .astrology-picker__slot--center {
  grid-column: 3;
  justify-self: center;
  align-self: center;
  z-index: 1;
}

.astrology-picker__carousel--many .astrology-picker__slot--right {
  grid-column: 4;
  justify-self: start;
  align-self: center;
  padding-left: 0;
}

.astrology-picker__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-width: 0;
}

.astrology-picker__track--one {
  justify-content: center;
}

.astrology-picker__track--two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 640px;
}

.astrology-picker__track--two .astrology-picker__slot--balancer {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 1px;
  padding-right: 8px;
}

.astrology-picker__track--two .astrology-picker__slot--center {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  z-index: 1;
}

.astrology-picker__track--two .astrology-picker__slot--right {
  grid-column: 3;
  justify-self: start;
  align-self: center;
  padding-left: 8px;
}

.astrology-picker__nav {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: url('../images/arrow_background.png') no-repeat center / contain;
  box-shadow: none;
  cursor: pointer;
}

.astrology-picker__nav:hover {
  opacity: 0.85;
}

.astrology-picker__nav-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.astrology-picker__nav-spacer {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.astrology-picker__cta {
  margin-top: 10px;
  min-width: 240px;
  min-height: 48px;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  background: var(--color-primary);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 32, 122, 0.28);
  transition: background 0.15s ease;
}

.astrology-picker__cta:hover:not(:disabled) {
  background: #e01b6c;
}

.astrology-picker__cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.astrology-picker__error {
  margin: 0;
  max-width: 320px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #d92d20;
  text-align: center;
}

/* Person cards (picker) — pink/blue frame + name bar */

.astrology-person-card {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 200px;
  height: 230px;
  border: none;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 10px 28px rgba(27, 27, 27, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.astrology-person-card--button {
  padding: 0;
  border: none;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
  color: inherit;
}

/* Image block: inset top + left + right so accent frame shows */
.astrology-person-card__media {
  position: relative;
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-height: 0;
  margin: -4px 5px 0 -4px;
  overflow: hidden;
  border-radius: 20px;
  background: #e8eef2;
}

.astrology-person-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.astrology-person-card__badge {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 23px;
  padding: 0;
  border-radius: 999px;
  background: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #1b1b1b;
}

.astrology-person-card__name {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 19px 7px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
}

.astrology-person-card--pink {
  background: var(--color-primary, #ff207a);
}

.astrology-person-card--blue {
  background: #5b7f94;
}

.astrology-person-card--lg {
  width: 200px;
  height: 230px;
}

.astrology-person-card--lg .astrology-person-card__media {
  flex: 1 1 0;
  height: 0;
  min-height: 0;
}

.astrology-person-card--sm {
  width: 179px;
  height: 203px;
  border-radius: 20px;
  opacity: 0.96;
  transform: scale(0.96);
}

.astrology-person-card--sm .astrology-person-card__media {
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  margin: -8px 4px 0 -8px;
  border-radius: 20px;
}

/* Carousel: center large, sides use sm size */
.astrology-picker__track .astrology-person-card--lg,
.astrology-picker__slot--center .astrology-person-card {
  width: 200px;
  height: 230px;
  opacity: 1;
  transform: none;
  border-radius: 20px;
}

.astrology-picker__track .astrology-person-card--sm,
.astrology-picker__slot--left .astrology-person-card,
.astrology-picker__slot--right .astrology-person-card {
  width: 175px;
  height: 200px;
  opacity: 0.96;
  transform: none;
  border-radius: 20px;
}

.astrology-picker__track .astrology-person-card--lg .astrology-person-card__media,
.astrology-picker__slot--center .astrology-person-card__media {
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  margin: -4px 5px 0 -4px;
  border-radius: 20px;
}

.astrology-picker__track .astrology-person-card--sm .astrology-person-card__media,
.astrology-picker__slot--left .astrology-person-card__media,
.astrology-picker__slot--right .astrology-person-card__media {
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  margin: -4px 4px 0 -4px;
  border-radius: 20px;
}

.astrology-picker__track .astrology-person-card--lg .astrology-person-card__name,
.astrology-picker__slot--center .astrology-person-card__name {
  font-size: 16px;
  padding: 7px 19px 7px;
}

.astrology-picker__track .astrology-person-card--sm .astrology-person-card__name,
.astrology-picker__slot--left .astrology-person-card__name,
.astrology-picker__slot--right .astrology-person-card__name {
  font-size: 14px;
  padding: 10px 12px 12px;
}

.astrology-person-card--sm .astrology-person-card__name {
  font-size: 14px;
  padding: 10px 12px 12px;
}

.astrology-person-card--sm .astrology-person-card__badge {
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 500;
}

.astrology-person-card.is-selected {
  transform: scale(1.05);
  box-shadow: 0 14px 36px rgba(27, 27, 27, 0.2);
  z-index: 1;
}

.astrology-picker__track .astrology-person-card.is-selected,
.astrology-picker__slot .astrology-person-card.is-selected {
  transform: none;
  box-shadow: 0 10px 28px rgba(27, 27, 27, 0.16);
}

.astrology-picker__content > .astrology-person-card--lg {
  width: 200px;
  height: 230px;
}

.astrology-picker__content > .astrology-person-card--lg .astrology-person-card__media {
  width: 200px;
  height: 195px;
  flex: 0 0 auto;
  min-height: 195px;
}

/* ——— Empty state ——— */

.page-astrology__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  text-align: center;
}

.page-astrology__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 400px;
  height: 400px;
  margin: 0 auto 30px;
  overflow: hidden;
  border-radius: 50%;
}

.page-astrology__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-astrology__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text, #1b1b1b);
}

.page-astrology__text {
  margin: 0 0 30px;
  max-width: 480px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-muted, #73686a);
}

.page-astrology__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  background: var(--color-primary, #ff207a);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.page-astrology__cta:hover,
.page-astrology__cta:focus {
  background: #e01b6c;
  color: #fff;
  text-decoration: none;
}

/* ——— Report toolbar ——— */

.astrology-report {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: 0;
}

.astrology-report__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(25, 92, 147, 0.15);
}

.astrology-report__back,
.astrology-report__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 99px;
  height: 46px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: #f7fdff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.2s ease;
}

.astrology-report__back {
  color: #1b1b1b;
}

.astrology-report__back:hover,
.astrology-report__info:hover {
  background: rgba(52, 120, 155, 0.08);
}

.astrology-report__back img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.astrology-report__info {
  margin-left: auto;
  color: var(--color-primary);
}

.astrology-report__info-icon {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.astrology-report__body {
  flex: 1;
  width: 100%;
  padding-bottom: 2.5rem;
}

.astrology-report__layout {
  width: 100%;
  max-width: 100%;
  margin: 0;
  align-items: start;
}

.astrology-report__sidebar-col,
.astrology-report__details-col {
  min-width: 0;
}

/* ——— Sidebar ——— */

.astrology-report__sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.astrology-report__pair {
  display: flex;
  align-items: center;
  gap: 10px;
}

.astrology-report__pair .astrology-person-card {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: auto;
  aspect-ratio: 200 / 230;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(27, 27, 27, 0.16);
}

.astrology-report__pair .astrology-person-card__media {
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  margin: -4px 5px 0 -4px;
  border-radius: 20px;
}

.astrology-report__pair .astrology-person-card__name {
  padding: 7px 12px 10px;
  font-size: 14px;
  font-weight: 600;
}

.astrology-report__plus {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F7FDFF;
}

.astrology-report__plus-icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.astrology-score-card {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid #e6ebef;
  background: #fff;
  box-shadow: 0 2px 10px rgba(27, 27, 27, 0.04);
}

.astrology-score-card__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.astrology-score-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.astrology-score-card__value {
  margin: 0;
  line-height: 1;
}

.astrology-score-card__score {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-text);
}

.astrology-score-card__max {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-muted);
}

.astrology-gauge {
  display: block;
  flex: 0 0 auto;
  width: 120px;
  height: auto;
  max-width: 42%;
  object-fit: contain;
}

.astrology-report__share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: var(--color-primary);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.astrology-report__share-btn:hover {
  background: #e01b6c;
}

/* ——— Factors accordion ——— */

.astrology-report__details {
  min-width: 0;
  height: 100%;
}

.astrology-factors {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 0.5px solid #195C93;
  border-radius: 14px;
  background: #F7FDFF;
  box-shadow: 0 2px 10px rgba(27, 27, 27, 0.04);
}

.astrology-factor {
  padding: 0px 15px;
  border-bottom: 0.5px solid #195C93;
}

.astrology-factor:last-child {
  border-bottom: none;
}

.astrology-factor__header {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 4px;
  border: none;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--color-text);
}

.astrology-factor.is-open .astrology-factor__header {
  padding-bottom: 10px;
}

.astrology-factor__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  font-size: 20px;
  line-height: 1;
}

.astrology-factor__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

.astrology-factor__percent {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.astrology-factor__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9aa3ab;
}

.astrology-factor__body {
  padding: 0 4px 18px 44px;
}

.astrology-factor__koota {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}

.astrology-factor__detail {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-muted);
}

.astrology-factor__detail strong {
  font-weight: 600;
  color: var(--color-text);
}

/* ——— Share / info dialog ——— */

.astrology-share-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.astrology-share-dialog__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(27, 27, 27, 0.45);
  cursor: pointer;
}

.astrology-share-dialog__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 28px 28px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(27, 27, 27, 0.18);
  text-align: center;
}

.astrology-share-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.astrology-share-dialog__icon {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;
}

.astrology-share-dialog__svg {
  display: block;
}

.astrology-share-dialog__title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
}

.astrology-share-dialog__text {
  margin: 0 0 28px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-muted);
  text-align: center;
}

.astrology-share-dialog__error {
  margin: -12px 0 20px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #d92d20;
  text-align: center;
}

.astrology-share-dialog__actions {
  display: flex;
  justify-content: flex-end;
}

.astrology-share-dialog__btn {
  min-width: 110px;
  min-height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: 10px;
  background: var(--color-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.astrology-share-dialog__btn:hover:not(:disabled) {
  background: #e01b6c;
}

.astrology-share-dialog__btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ——— Information modal ——— */

.astrology-info-dialog {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.astrology-info-dialog__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(27, 27, 27, 0.45);
  cursor: pointer;
}

.astrology-info-dialog__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  max-height: min(80vh, 720px);
  padding: 24px 28px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(27, 27, 27, 0.18);
  text-align: left;
}

.astrology-info-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex: 0 0 auto;
}

.astrology-info-dialog__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
}

.astrology-info-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}

.astrology-info-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 20px;
}

.astrology-info-dialog__heading {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

.astrology-info-dialog__text {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: #4a4a4a;
}

.astrology-info-dialog__subheading {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

.astrology-info-dialog__methods {
  margin: 0;
  padding-left: 1.25rem;
}

.astrology-info-dialog__method {
  margin-bottom: 8px;
}

.astrology-info-dialog__method-text {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: #4a4a4a;
}

.astrology-info-dialog__factors {
  margin: 0 0 0 0.25rem;
  padding-left: 1.15rem;
  list-style: disc;
}

.astrology-info-dialog__factors li {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #4a4a4a;
}

.astrology-info-dialog__factors strong {
  font-weight: 600;
  color: var(--color-text);
}

.astrology-info-dialog__actions {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.astrology-info-dialog__btn {
  min-width: 120px;
  min-height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: 10px;
  background: var(--color-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.astrology-info-dialog__btn:hover {
  background: #e01b6c;
}

.astrology-info-dialog__btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@keyframes astrology-info-sheet-up {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* ——— Birth details modal ——— */

.astrology-birth-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.astrology-birth-dialog__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(27, 27, 27, 0.45);
  cursor: pointer;
}

.astrology-birth-dialog__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: 24px 28px 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(27, 27, 27, 0.18);
  overflow: visible;
}

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

.astrology-birth-dialog__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
}

.astrology-birth-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}

.astrology-birth-dialog__close:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.astrology-birth-dialog__subtitle {
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-muted);
}

.astrology-birth-dialog__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.astrology-birth-dialog__form .profile-setup-form__field {
  margin: 0;
}

.astrology-birth-dialog__form .profile-setup-dropdown__panel,
.astrology-birth-dialog__form .profile-setup-time__panel {
  z-index: 1300;
}

.astrology-birth-dialog__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.astrology-birth-dialog__error {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #d92d20;
}

.astrology-birth-dialog__btn {
  min-width: 120px;
  min-height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: 10px;
  background: var(--color-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.astrology-birth-dialog__btn:hover:not(:disabled) {
  background: #e01b6c;
}

.astrology-birth-dialog__btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 991.98px) {
  .astrology-report__sidebar {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 599.98px) {
  body:has(.page-astrology) .site-navbar {
    display: none !important;
  }

  .astrology-picker {
    min-height: auto;
    overflow: visible;
  }

  .page-astrology--picker {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-astrology--picker .page-astrology__inner {
    flex: 1 0 auto;
    min-height: 100%;
  }

  .astrology-picker > .astrology-picker__info {
    top: 12px;
    right: 12px;
  }

  .astrology-picker__info {
    width: 42px;
    height: 42px;
    padding: 9px;
    border-radius: 10px;
    background-color: #fff;
    gap: 0;
  }

  .astrology-picker__info span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .astrology-picker__info-icon {
    width: 24px;
    height: 24px;
  }

  .astrology-picker__stage {
    min-height: auto;
    padding: 48px 0 calc(88px + env(safe-area-inset-bottom, 0px));
    align-items: flex-start;
    justify-content: center;
  }

  .astrology-picker__wheel {
    height: min(110vw, 560px);
  }

  .astrology-picker__content {
    gap: 12px;
    width: 100%;
  }

  .astrology-picker__plus {
    width: 42px;
    height: 42px;
    margin-bottom: 2px;
  }

  .astrology-picker__carousel {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    gap: 0;
    padding: 0;
    box-sizing: border-box;
    justify-content: center;
    overflow: hidden;
  }

  .astrology-picker__carousel--two,
  .astrology-picker__carousel--many {
    width: 100vw;
    max-width: 100vw;
    display: flex;
    justify-content: center;
    grid-template-columns: none;
  }

  .astrology-picker__carousel--many > .astrology-picker__track {
    display: flex;
  }

  .astrology-picker__track {
    gap: 12px;
    align-items: center;
    width: max-content;
    max-width: none;
    justify-content: center;
    margin: 0 auto;
  }

  .astrology-picker__track--many,
  .astrology-picker__track--two {
    display: flex;
    width: max-content;
    max-width: none;
    justify-content: center;
    gap: 20px;
    grid-template-columns: none;
  }

  .astrology-picker__slot--balancer {
    display: none;
  }

  .astrology-picker__slot--center {
    display: block;
    z-index: 1;
    flex: 0 0 auto;
    grid-column: auto;
  }

  .astrology-picker__slot--left,
  .astrology-picker__slot--right {
    display: block;
    flex: 0 0 auto;
    justify-self: unset;
    padding-left: 0;
    grid-column: auto;
  }

  .astrology-picker__nav {
    display: none;
  }

  .astrology-picker__content > .astrology-person-card--lg .astrology-person-card__media {
    width: 200px;
    height: 195px;
    flex: 0 0 auto;
    min-height: 195px;
  }

  .astrology-person-card--lg {
    border-radius: 20px;
  }

  .astrology-person-card--lg .astrology-person-card__media {
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    margin: -4px 5px 0 -4px;
    border-radius: 20px;
  }

  .astrology-person-card--lg .astrology-person-card__name {
    padding: 8px 16px 10px;
    font-size: 16px;
  }

  /* Center large; sides smaller (sm); viewport clips peeks */
  .astrology-picker__track .astrology-person-card--lg,
  .astrology-picker__slot--center .astrology-person-card {
    display: flex;
    width: 200px;
    height: 230px;
    border-radius: 20px;
    opacity: 1;
    transform: none;
  }

  .astrology-picker__track .astrology-person-card--sm,
  .astrology-picker__slot--left .astrology-person-card,
  .astrology-picker__slot--right .astrology-person-card {
    display: flex;
    width: 175px;
    height: 200px;
    border-radius: 16px;
    opacity: 0.96;
    transform: none;
  }

  .astrology-picker__track .astrology-person-card--lg .astrology-person-card__media,
  .astrology-picker__slot--center .astrology-person-card__media {
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    margin: -4px 5px 0 -4px;
    border-radius: 20px;
  }

  .astrology-picker__track .astrology-person-card--sm .astrology-person-card__media,
  .astrology-picker__slot--left .astrology-person-card__media,
  .astrology-picker__slot--right .astrology-person-card__media {
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    margin: -4px 4px 0 -4px;
    border-radius: 16px;
  }

  .astrology-picker__track .astrology-person-card--lg .astrology-person-card__name,
  .astrology-picker__slot--center .astrology-person-card__name {
    padding: 8px 16px 10px;
    font-size: 16px;
  }

  .astrology-picker__track .astrology-person-card--sm .astrology-person-card__name,
  .astrology-picker__slot--left .astrology-person-card__name,
  .astrology-picker__slot--right .astrology-person-card__name {
    padding: 8px 8px 10px;
    font-size: 12px;
  }

  .astrology-person-card.is-selected {
    transform: none;
  }

  .astrology-picker__cta {
    width: calc(100% - 48px);
    max-width: none;
    min-height: 50px;
    margin-top: 16px;
    border-radius: 14px;
    font-size: 16px;
  }

  .astrology-unsupported__title {
    font-size: 22px;
  }

  .astrology-unsupported__text {
    font-size: 14px;
  }

  .page-astrology__visual {
    width: min(100%, 400px);
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 20px;
  }

  .page-astrology__title {
    font-size: 20px;
  }

  .page-astrology__text {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .page-astrology__cta {
    width: 100%;
    max-width: 320px;
  }

  .astrology-score-card__score {
    font-size: 34px;
  }

  .astrology-factor__header {
    padding: 16px 2px;
    gap: 10px;
  }

  .astrology-factor__body {
    padding: 0 2px 16px 40px;
  }

  .astrology-share-dialog__panel {
    padding: 24px 20px 20px;
  }

  .astrology-share-dialog__actions {
    justify-content: stretch;
  }

  .astrology-share-dialog__btn {
    width: 100%;
  }

  .astrology-info-dialog {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  body.astrology-info-open .mobile-bottom-nav {
    display: none !important;
  }

  body.astrology-info-open .page-shell {
    padding-bottom: 0;
  }

  .astrology-info-dialog__panel {
    width: 100%;
    max-width: none;
    max-height: min(88vh, 720px);
    padding: 12px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px 24px 0 0;
    animation: astrology-info-sheet-up 0.3s ease;
  }

  .astrology-info-dialog__panel::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: rgba(27, 27, 27, 0.15);
  }

  .astrology-info-dialog__title {
    font-size: 20px;
  }

  .astrology-info-dialog__actions {
    justify-content: stretch;
  }

  .astrology-info-dialog__btn {
    width: 100%;
  }

  .astrology-birth-dialog__panel {
    padding: 20px 18px 16px;
    border-radius: 16px;
  }

  .astrology-birth-dialog__title {
    font-size: 20px;
  }

  .astrology-birth-dialog__actions {
    justify-content: stretch;
  }

  .astrology-birth-dialog__btn {
    width: 100%;
  }
}
