:root {
  --aura-bg: #fbf7ef;
  --aura-paper: rgba(255, 253, 247, 0.62);
  --aura-ink: #171514;
  --aura-muted: #776f66;
  --aura-gold: #b9935a;
  --aura-gold-deep: #9f773f;
  --aura-gold-light: #dec9a8;
  --aura-line: rgba(185, 147, 90, 0.36);
  --aura-shadow-soft: 0 12px 28px rgba(120, 88, 48, 0.06);
  --aura-shadow-gold: 0 14px 28px rgba(159, 119, 63, 0.22);
  --font-serif: "Cormorant Garamond", "Bodoni 72", "Didot", Georgia, serif;
  --font-sans: "Avenir Next", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #f7f1e8;
  color: var(--aura-ink);
  font-family: var(--font-sans);
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

[hidden] {
  display: none !important;
}

svg {
  display: block;
}

.aura-page {
  min-height: 100dvh;
  color: var(--aura-ink);
  font-family: var(--font-sans);
}

.aura-screen {
  --screen-w: min(100vw, 430px);

  position: relative;
  width: var(--screen-w);
  height: calc(var(--screen-w) * 896 / 414);
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
  isolation: isolate;
  transform: none;
  backface-visibility: hidden;
}

.aura-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--aura-bg-image);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  transform: none;
  backface-visibility: hidden;
  pointer-events: none;
}

.page-index .aura-screen {
  --aura-bg-image: url("/assets/bg/index-bg.png");
}

.page-payment .aura-screen {
  --aura-bg-image: url("/assets/bg/payment-bg.png");
}

.page-success .aura-screen {
  --aura-bg-image: url("/assets/bg/success-bg.png");
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.overlay-form,
.payment-overlay,
.success-whatsapp-card {
  position: absolute;
  z-index: 2;
}

.page-index .overlay-form {
  left: calc(var(--screen-w) * 50 / 414);
  right: auto;
  top: calc(var(--screen-w) * 448 / 414);
  width: calc(var(--screen-w) * 314 / 414);
  z-index: 2;
}

.aura-field,
.payment-option,
.success-whatsapp-card {
  border: 1px solid var(--aura-line);
  border-radius: 14px;
  background: var(--aura-paper);
  box-shadow: var(--aura-shadow-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--aura-ink);
}

.aura-field {
  position: relative;
  display: flex;
  width: 100%;
  height: clamp(48px, 6dvh, 52px);
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 16px;
}

.aura-field input,
.aura-field select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--aura-ink);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
}

.aura-field input::placeholder {
  color: rgba(119, 111, 102, 0.72);
}

.aura-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.aura-field select:required:invalid {
  color: rgba(119, 111, 102, 0.72);
}

.aura-field option {
  color: var(--aura-ink);
  background: #fffdf7;
}

.aura-icon,
.payment-option-icon {
  flex: 0 0 auto;
  fill: none;
  stroke: var(--aura-gold-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.aura-icon {
  width: 21px;
  height: 21px;
}

.aura-chevron,
.card-chevron {
  flex: 0 0 auto;
  fill: none;
  stroke: rgba(159, 119, 63, 0.78);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.aura-chevron {
  width: 16px;
  height: 16px;
}

.aura-primary-btn {
  display: inline-flex;
  width: 100%;
  height: clamp(54px, 6.8dvh, 58px);
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fffdf7;
  background: linear-gradient(180deg, #c8a16a 0%, #a77a3d 100%);
  box-shadow: var(--aura-shadow-gold);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.start-reading-btn {
  margin-top: 6px;
}

.page-index .aura-field {
  height: calc(var(--screen-w) * 40 / 414);
  margin-bottom: calc(var(--screen-w) * 7 / 414);
  padding: 0 calc(var(--screen-w) * 13 / 414);
  border-radius: calc(var(--screen-w) * 13 / 414);
}

.page-index .aura-field input,
.page-index .aura-field select,
.page-index .question-trigger {
  font-size: calc(var(--screen-w) * 12.5 / 414);
}

.page-index .aura-field svg {
  width: calc(var(--screen-w) * 15 / 414);
  height: calc(var(--screen-w) * 15 / 414);
}

.page-index .question-field {
  z-index: 8;
}

.page-index .question-field.is-open {
  z-index: 20;
}

.question-trigger {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  outline: 0;
  color: rgba(119, 111, 102, 0.72);
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.question-trigger.has-value {
  color: var(--aura-ink);
}

.question-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.question-chevron {
  stroke: var(--aura-gold-deep);
  transition: transform 160ms ease;
}

.question-field.is-open .question-chevron {
  transform: rotate(180deg);
}

.question-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  overflow: hidden;
  border: 1px solid rgba(185, 147, 90, 0.34);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 18px 42px rgba(120, 88, 48, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.question-field.is-open .question-menu {
  opacity: 1;
  transform: translateY(0);
}

.question-option {
  position: relative;
  display: flex;
  width: 100%;
  height: calc(var(--screen-w) * 40 / 414);
  min-height: 36px;
  align-items: center;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid rgba(185, 147, 90, 0.12);
  color: var(--aura-ink);
  background: transparent;
  cursor: pointer;
  font-size: calc(var(--screen-w) * 13 / 414);
  text-align: left;
}

.question-option:last-child {
  border-bottom: 0;
}

.question-option:hover,
.question-option:focus-visible {
  color: var(--aura-gold-deep);
  background: rgba(185, 147, 90, 0.10);
}

.question-option.is-selected {
  color: var(--aura-gold-deep);
  background: rgba(185, 147, 90, 0.14);
  font-weight: 600;
}

.question-option.is-selected::after {
  content: "";
  position: absolute;
  right: 16px;
  width: 7px;
  height: 12px;
  border-right: 1.4px solid var(--aura-gold-deep);
  border-bottom: 1.4px solid var(--aura-gold-deep);
  transform: rotate(42deg);
}

.birth-time-field.is-invalid {
  border-color: rgba(159, 119, 63, 0.75);
  box-shadow: 0 0 0 3px rgba(185, 147, 90, 0.12), var(--aura-shadow-soft);
}

.birth-time-trigger {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  outline: 0;
  color: rgba(119, 111, 102, 0.72);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: calc(var(--screen-w) * 12.5 / 414);
  text-align: left;
}

.birth-time-trigger.has-value {
  color: var(--aura-ink);
}

.birth-time-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.birth-time-chevron {
  stroke: var(--aura-gold-deep);
}

.birth-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(23, 21, 20, 0.18);
}

.birth-picker-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 100;
  width: min(100%, 430px);
  padding: 16px 16px 20px;
  border: 1px solid rgba(185, 147, 90, 0.24);
  border-bottom: 0;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 -18px 46px rgba(120, 88, 48, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.birth-picker-sheet.is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.birth-picker-header {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.birth-picker-header h2 {
  margin: 0;
  color: var(--aura-ink);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}

.birth-picker-text-btn {
  border: 0;
  color: var(--aura-muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.birth-picker-text-btn.is-primary {
  color: var(--aura-gold-deep);
}

.birth-wheel {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr 1.2fr;
  gap: 8px;
  height: 190px;
}

.birth-wheel-highlight {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 36px;
  border: 1px solid rgba(185, 147, 90, 0.18);
  border-radius: 14px;
  background: rgba(185, 147, 90, 0.08);
  transform: translateY(-50%);
  pointer-events: none;
}

.birth-wheel-column {
  position: relative;
  z-index: 1;
  overflow-y: auto;
  padding: 72px 0;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.birth-wheel-column::-webkit-scrollbar {
  display: none;
}

.birth-wheel-option {
  display: flex;
  width: 100%;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  color: var(--aura-muted);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  scroll-snap-align: center;
}

.birth-wheel-option.is-selected {
  color: var(--aura-gold-deep);
  background: rgba(185, 147, 90, 0.12);
  font-weight: 600;
}

.page-index .start-reading-btn {
  height: calc(var(--screen-w) * 48 / 414);
  margin-top: calc(var(--screen-w) * 9 / 414);
  border-radius: 999px;
  font-size: calc(var(--screen-w) * 15.5 / 414);
}

.aura-primary-btn:hover {
  filter: brightness(1.02);
}

.aura-primary-btn:active {
  transform: scale(0.99);
}

.aura-primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.notice {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(185, 147, 90, 0.28);
  border-radius: 14px;
  color: var(--aura-muted);
  background: rgba(255, 253, 247, 0.78);
  box-shadow: var(--aura-shadow-soft);
  font-size: 12px;
  line-height: 1.4;
}

.notice.is-error {
  border-color: rgba(153, 74, 51, 0.28);
  color: #8a4331;
  background: rgba(255, 245, 239, 0.82);
}

.page-payment .payment-overlay {
  left: 8.5%;
  right: 8.5%;
  top: 64%;
}

.method-list {
  display: grid;
  gap: 11px;
}

.payment-option {
  display: flex;
  width: 100%;
  height: clamp(56px, 7dvh, 60px);
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  cursor: pointer;
  text-align: left;
}

.payment-option.active,
.payment-option.is-active {
  border-color: rgba(159, 119, 63, 0.52);
  background: rgba(255, 253, 247, 0.74);
}

.payment-option-icon {
  width: 31px;
  height: 31px;
  padding: 4px;
}

.usdt-icon {
  color: #2f8c64;
  stroke: currentColor;
}

.payment-option-copy {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.payment-option-title,
.payment-option-subtitle {
  display: block;
}

.payment-option-title {
  color: var(--aura-ink);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
}

.payment-option-subtitle {
  margin-top: 3px;
  color: var(--aura-muted);
  font-size: 11px;
  line-height: 1.2;
}

.method-radio {
  position: relative;
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex: 0 0 auto;
  border: 1px solid rgba(23, 21, 20, 0.58);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.62);
}

.payment-option.active .method-radio::after,
.payment-option.is-active .method-radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--aura-ink);
}

.pay-button {
  margin-top: 19px;
}

.page-success .success-whatsapp-card {
  left: calc(var(--screen-w) * 76 / 414);
  right: auto;
  top: calc(var(--screen-w) * 492 / 414);
  width: calc(var(--screen-w) * 262 / 414);
  height: auto;
  min-height: calc(var(--screen-w) * 90 / 414);
}

.page-success .whatsapp-card {
  display: flex;
  align-items: center;
  gap: calc(var(--screen-w) * 14 / 414);
  padding: calc(var(--screen-w) * 14 / 414) calc(var(--screen-w) * 16 / 414);
  border: 1px solid rgba(185, 147, 90, 0.28);
  border-radius: calc(var(--screen-w) * 14 / 414);
  background: rgba(255, 253, 247, 0.72);
  box-shadow: 0 10px 24px rgba(120, 88, 48, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--aura-ink);
  text-decoration: none;
  box-sizing: border-box;
}

.page-success .whatsapp-icon {
  display: grid;
  width: calc(var(--screen-w) * 40 / 414);
  height: calc(var(--screen-w) * 40 / 414);
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(185, 147, 90, 0.28);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.56);
}

.page-success .whatsapp-icon svg {
  width: calc(var(--screen-w) * 20 / 414);
  height: calc(var(--screen-w) * 20 / 414);
  fill: none;
  stroke: var(--aura-gold-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.page-success .whatsapp-copy {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.page-success .whatsapp-title,
.page-success .whatsapp-subtitle {
  display: block;
}

.page-success .whatsapp-title {
  color: var(--aura-ink);
  font-family: var(--font-serif);
  font-size: calc(var(--screen-w) * 15.5 / 414);
  font-weight: 600;
  line-height: 1.1;
}

.page-success .whatsapp-subtitle {
  margin-top: calc(var(--screen-w) * 4 / 414);
  color: var(--aura-muted);
  font-size: calc(var(--screen-w) * 12 / 414);
  line-height: 1.25;
}

.page-success .whatsapp-chevron {
  width: 12px;
  height: 12px;
  margin-left: auto;
  color: var(--aura-gold-deep);
  stroke: var(--aura-gold-deep);
  opacity: 0.65;
}

.whatsapp-notice {
  position: absolute;
  left: calc(var(--screen-w) * 76 / 414);
  right: auto;
  top: calc(var(--screen-w) * 590 / 414);
  width: calc(var(--screen-w) * 262 / 414);
  z-index: 3;
}

.site-canvas {
  min-height: 100vh;
  padding: 18px;
}

.app-shell,
.document-shell {
  width: min(100%, 720px);
  margin: 0 auto;
}

.topbar {
  margin-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--aura-gold-deep);
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-symbol {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--aura-line);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.52);
}

.brand-symbol::before,
.brand-symbol::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 1px;
  height: 18px;
  background: var(--aura-gold-deep);
  transform: translateX(-50%);
}

.brand-symbol::after {
  transform: translateX(-50%) rotate(90deg);
}

.document-card {
  padding: 22px;
  border: 1px solid var(--aura-line);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.78);
  box-shadow: var(--aura-shadow-soft);
}

.document-card h1,
.document-card h2 {
  margin: 0;
  color: var(--aura-ink);
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0;
}

.document-card h1 {
  margin-bottom: 14px;
  font-size: 40px;
}

.document-card h2 {
  margin: 20px 0 8px;
  font-size: 24px;
}

.document-card p {
  margin: 0;
  color: var(--aura-muted);
  font-size: 15px;
  line-height: 1.55;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--aura-gold-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 374px) {
  .aura-field {
    padding: 0 14px;
  }

  .payment-option {
    padding: 0 14px;
  }
}

@media (max-height: 780px) and (max-width: 430px) {
  .pay-button {
    height: 54px;
  }

  .page-payment .payment-overlay {
    top: 63.5%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
