/* Pré-Raio-X MAXY (popup em etapas) */
.rx { --rx-accent: #d4b5e5; --rx-ink: #120f15; --rx-line: rgba(255, 255, 255, .1); position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; font-family: 'DM Sans', Arial, sans-serif; color: #f3eff6; }
.rx[hidden] { display: none; }
.rx-backdrop { position: absolute; inset: 0; background: rgba(4, 3, 6, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .22s ease; }
.rx-panel { position: relative; width: min(720px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 38px 40px 34px; background: radial-gradient(120% 80% at 100% 0, rgba(140, 88, 196, .14), transparent 55%), #0c0a0f; border: 1px solid rgba(255, 255, 255, .1); border-radius: 26px; box-shadow: 0 40px 120px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .22s ease, transform .22s ease; outline: none; }
.rx.is-open .rx-backdrop, .rx.is-open .rx-panel { opacity: 1; }
.rx.is-open .rx-panel { transform: none; }
html.rx-lock { overflow: hidden; }

.rx-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.rx-kicker { margin: 0; color: #a99fb1; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.rx-count { min-height: 18px; margin: 6px 0 0; color: #cfc6d6; font-size: 13px; }
.rx-close { padding: 6px 0; color: #b9b1c0; font: inherit; font-size: 13.5px; background: none; border: 0; cursor: pointer; }
.rx-close:hover { color: #fff; }
.rx-bar { height: 2px; margin: 16px 0 34px; background: var(--rx-line); border-radius: 2px; overflow: hidden; }
.rx-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #a77bd6, var(--rx-accent)); transition: width .3s ease; }

.rx-step { animation: rx-in .25s ease; }
@keyframes rx-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.rx-title { margin: 0 0 18px; font: 400 clamp(40px, 6vw, 58px)/1 'Instrument Serif', Georgia, serif; letter-spacing: -.02em; }
.rx-q { max-width: 24ch; margin: 0 0 12px; font-size: clamp(25px, 3.6vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
.rx-hint { max-width: 56ch; margin: 0 0 24px; color: #b9b1c0; font-size: 15.5px; line-height: 1.65; }
.rx-q + .rx-opts { margin-top: 26px; }

.rx-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rx-opt { min-height: 58px; padding: 14px 18px; color: #f1ecf5; font: inherit; font-size: 15.5px; font-weight: 500; text-align: left; background: #120f16; border: 1px solid rgba(255, 255, 255, .11); border-radius: 14px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.rx-opt:hover { border-color: rgba(212, 181, 229, .45); background: #17131c; }
.rx-opt.is-on { color: var(--rx-ink); background: var(--rx-accent); border-color: var(--rx-accent); }

.rx-in { display: block; width: 100%; padding: 16px 18px; color: #fff; font: inherit; font-size: 17px; background: #120f16; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; outline: none; resize: vertical; transition: border-color .15s ease; }
.rx-in:focus { border-color: var(--rx-accent); box-shadow: 0 0 0 3px rgba(212, 181, 229, .14); }
.rx-in[aria-invalid="true"] { border-color: #ff8f8f; }
.rx-in::placeholder { color: #6f6776; }
.rx-err { min-height: 20px; margin: 8px 0 0; color: #ffadad; font-size: 13.5px; }
.rx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 18px; }
.rx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; color: var(--rx-ink); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; background: var(--rx-accent); border: 0; border-radius: 999px; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.rx-btn:hover { background: #e6cdf3; transform: translateY(-1px); }
.rx-skip { padding: 8px 0; color: #b9b1c0; font: inherit; font-size: 14.5px; background: none; border: 0; cursor: pointer; }
.rx-skip:hover { color: #fff; }
.rx-back { display: inline-block; margin-top: 26px; padding: 6px 0; color: #9e95a6; font: inherit; font-size: 13.5px; background: none; border: 0; cursor: pointer; }
.rx-back:hover { color: #fff; }
.rx-panel :focus-visible { outline: 2px solid #ead7f5; outline-offset: 3px; }

.rx-sum { display: grid; gap: 0; margin: 0 0 8px; padding: 0; list-style: none; border-top: 1px solid var(--rx-line); }
.rx-sum li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 11px 0; font-size: 14.5px; border-bottom: 1px solid var(--rx-line); }
.rx-sum span { color: #9e95a6; }
.rx-sum b { font-weight: 500; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .rx { align-items: end; padding: 0; }
  .rx-panel { width: 100%; max-height: 92dvh; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; transform: translateY(40px); }
  .rx-bar { margin: 14px 0 26px; }
  .rx-opts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rx-opt { min-height: 54px; }
  .rx-actions .rx-btn { width: 100%; }
  .rx-sum li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .rx-backdrop, .rx-panel, .rx-bar i, .rx-btn { transition: none; }
  .rx-step { animation: none; }
}
