/* Lucky X4 registration — premium global experience */
.rx-register-page {
    --rx-navy-950: #031025;
    --rx-navy-900: #071b3f;
    --rx-blue-700: #174fc5;
    --rx-blue-500: #2f7cff;
    --rx-cyan-400: #51d5ff;
    --rx-gold-500: #f5c34b;
    --rx-gold-300: #ffe498;
    --rx-white: #ffffff;
    --rx-ink: #10264f;
    --rx-muted: #70809e;
    position: relative;
    isolation: isolate;
    min-height: 100dvh;
    width: 100%;
    overflow-x: hidden;
    padding: 28px;
    color: var(--rx-ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(47, 124, 255, .30), transparent 26%),
        radial-gradient(circle at 88% 14%, rgba(245, 195, 75, .18), transparent 22%),
        linear-gradient(125deg, #020b1e 0%, #071b3f 43%, #eaf3ff 43.2%, #f8fbff 100%);
}

.rx-register-page *,
.rx-register-page *::before,
.rx-register-page *::after {
    box-sizing: border-box;
}

.rx-register-aurora,
.rx-register-grid,
.rx-register-orb {
    position: absolute;
    pointer-events: none;
}

.rx-register-aurora {
    inset: 0;
    z-index: -4;
    background:
        conic-gradient(from 215deg at 22% 50%, rgba(52, 132, 255, .28), transparent 22%, rgba(81, 213, 255, .10), transparent 52%),
        radial-gradient(ellipse at 28% 76%, rgba(23, 79, 197, .28), transparent 48%);
    filter: saturate(120%);
}

.rx-register-grid {
    inset: 0;
    z-index: -3;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .18) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.85) 42%, transparent 72%);
}

.rx-register-orb {
    z-index: -2;
    border-radius: 50%;
    filter: blur(4px);
    animation: rxFloat 9s ease-in-out infinite;
}

.rx-register-orb-one {
    width: 230px;
    height: 230px;
    left: -70px;
    bottom: 2%;
    background: radial-gradient(circle at 32% 28%, rgba(106, 191, 255, .72), rgba(25, 91, 218, .18) 58%, transparent 72%);
}

.rx-register-orb-two {
    width: 170px;
    height: 170px;
    right: 2%;
    top: -50px;
    animation-delay: -3s;
    background: radial-gradient(circle at 35% 30%, rgba(255, 229, 145, .64), rgba(245, 195, 75, .10) 60%, transparent 74%);
}

.rx-register-shell {
    width: min(1420px, 100%);
    min-height: calc(100dvh - 56px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(580px, 1.06fr);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 36px;
    background: rgba(255,255,255,.92);
    box-shadow:
        0 42px 110px rgba(1, 18, 55, .30),
        0 0 0 1px rgba(255,255,255,.44) inset,
        0 18px 42px rgba(27, 78, 170, .12);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.rx-register-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 760px;
    padding: 54px 54px 42px;
    color: #fff;
    background:
        linear-gradient(165deg, rgba(11, 45, 105, .20), rgba(1, 12, 37, .74)),
        radial-gradient(circle at 82% 16%, rgba(81, 213, 255, .22), transparent 30%),
        linear-gradient(145deg, #0c2b64 0%, #071b3f 48%, #020b1f 100%);
}

.rx-register-hero::before {
    content: "";
    position: absolute;
    inset: -30%;
    opacity: .55;
    background: conic-gradient(from 200deg, transparent 0 26%, rgba(63, 145, 255, .23) 31%, transparent 39% 66%, rgba(245, 195, 75, .16) 72%, transparent 80%);
    animation: rxSpin 26s linear infinite;
}

.rx-register-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(115deg, transparent 0 46%, rgba(255,255,255,.13) 46.2% 46.8%, transparent 47%),
        radial-gradient(circle at 18% 75%, rgba(255,255,255,.12) 0 1px, transparent 2px);
    background-size: auto, 28px 28px;
}

.rx-hero-top,
.rx-hero-content,
.rx-hero-bottom {
    position: relative;
    z-index: 2;
}

.rx-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.rx-brand-mark {
    position: relative;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 18px;
    color: #08265d;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -.04em;
    background:
        radial-gradient(circle at 28% 22%, #fffbdc, transparent 30%),
        linear-gradient(145deg, #ffe998, #f5c34b 55%, #cf8e16);
    border: 1px solid rgba(255,255,255,.68);
    box-shadow: 0 16px 34px rgba(245, 195, 75, .24), inset 0 1px 0 rgba(255,255,255,.78);
}

.rx-brand-mark::after {
    content: "";
    position: absolute;
    inset: -45% -120%;
    transform: rotate(25deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.78), transparent);
    animation: rxShine 4.5s ease-in-out infinite;
}

.rx-brand-name {
    display: block;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .02em;
}

.rx-brand-caption {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,.62);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.rx-hero-content {
    margin: 64px 0 54px;
}

.rx-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 15px;
    border-radius: 999px;
    color: #ffe69a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255, 224, 131, .25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.rx-hero-kicker .mud-icon-root {
    font-size: 17px !important;
    color: #f5c34b !important;
}

.rx-hero-title {
    max-width: 620px;
    margin: 23px 0 18px;
    font-size: clamp(44px, 4.6vw, 78px);
    line-height: .98;
    font-weight: 800;
    letter-spacing: -.045em;
}

.rx-hero-title span {
    display: block;
    margin-top: 8px;
    color: transparent;
    background: linear-gradient(92deg, #fff2bb 0%, #f5c34b 45%, #79ddff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 10px 26px rgba(245,195,75,.15));
}

.rx-hero-copy {
    max-width: 600px;
    margin: 0;
    color: rgba(228, 239, 255, .72);
    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
}

.rx-feature-list {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.rx-feature-item {
    display: flex;
    align-items: center;
    gap: 13px;
    width: fit-content;
    min-height: 46px;
    padding: 7px 16px 7px 8px;
    border-radius: 16px;
    color: rgba(255,255,255,.88);
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,.065);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
}

.rx-feature-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(61, 137, 255, .34), rgba(81, 213, 255, .12));
    border: 1px solid rgba(108, 193, 255, .22);
}

.rx-feature-icon .mud-icon-root {
    font-size: 18px !important;
    color: #8bddff !important;
}

.rx-premium-card {
    position: relative;
    max-width: 470px;
    min-height: 196px;
    margin-top: 38px;
    padding: 25px;
    overflow: hidden;
    border-radius: 26px;
    background:
        linear-gradient(128deg, rgba(255,255,255,.18), rgba(255,255,255,.055)),
        linear-gradient(145deg, rgba(34, 101, 223, .60), rgba(3, 16, 45, .82));
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 24px 54px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.20);
    backdrop-filter: blur(18px);
    transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
}

.rx-premium-card::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    right: -90px;
    bottom: -130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,195,75,.38), transparent 68%);
}

.rx-card-top,
.rx-card-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rx-card-chip {
    width: 43px;
    height: 32px;
    border-radius: 9px;
    background:
        linear-gradient(90deg, transparent 47%, rgba(88,64,11,.25) 48% 52%, transparent 53%),
        linear-gradient(0deg, transparent 47%, rgba(88,64,11,.25) 48% 52%, transparent 53%),
        linear-gradient(145deg, #ffe99c, #d89f28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
}

.rx-card-level {
    color: #ffe8a2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
}

.rx-card-number {
    position: relative;
    z-index: 2;
    margin: 35px 0 28px;
    color: rgba(255,255,255,.92);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(18px, 2vw, 25px);
    letter-spacing: .18em;
    text-shadow: 0 2px 12px rgba(0,0,0,.24);
}

.rx-card-bottom span {
    color: rgba(255,255,255,.48);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rx-card-bottom strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 13px;
    letter-spacing: .04em;
}

.rx-hero-bottom {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255,255,255,.52);
    font-size: 11px;
    font-weight: 600;
}

.rx-trust-dots {
    display: flex;
    align-items: center;
}

.rx-trust-dots span {
    width: 28px;
    height: 28px;
    margin-left: -7px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    background: linear-gradient(145deg, #2f7cff, #0f347e);
    border: 2px solid #071b3f;
}

.rx-trust-dots span:first-child {
    margin-left: 0;
}

.rx-register-form-side {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 30px 46px 40px;
    background:
        radial-gradient(circle at 100% 0%, rgba(47,124,255,.10), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,249,255,.98));
}

.rx-form-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
}

.rx-back-btn {
    min-width: auto !important;
    padding: 0 8px !important;
    color: #627391 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

.rx-back-btn .mud-icon-root {
    color: #174fc5 !important;
}

.rx-secure-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    color: #174a9d;
    font-size: 11px;
    font-weight: 700;
    background: #edf5ff;
    border: 1px solid rgba(47,124,255,.14);
}

.rx-secure-pill .mud-icon-root {
    font-size: 16px !important;
    color: #2f7cff !important;
}

.rx-mobile-brand {
    display: none;
}

.rx-form-content {
    width: min(700px, 100%);
    margin: 22px auto 0;
}

.rx-form-eyebrow {
    color: #2f7cff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.rx-form-title {
    margin: 7px 0 7px;
    color: #0a214c;
    font-size: clamp(31px, 3vw, 46px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.035em;
}

.rx-form-subtitle {
    margin: 0;
    color: #7786a1;
    font-size: 14px;
    line-height: 1.65;
}

.rx-stepper {
    display: grid;
    grid-template-columns: 1fr 36px 1fr;
    align-items: center;
    margin: 24px 0 20px;
}

.rx-step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #647593;
    font-size: 12px;
    font-weight: 700;
}

.rx-step-number {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #174fc5;
    font-size: 12px;
    font-weight: 800;
    background: #edf5ff;
    border: 1px solid rgba(47,124,255,.18);
}

.rx-step.active {
    color: #173765;
}

.rx-step.active .rx-step-number {
    color: #fff;
    background: linear-gradient(145deg, #3c8cff, #174fc5);
    border-color: transparent;
    box-shadow: 0 9px 18px rgba(47,124,255,.22);
}

.rx-step-line {
    height: 1px;
    background: linear-gradient(90deg, rgba(47,124,255,.35), rgba(47,124,255,.10));
}

.rx-register-form {
    display: grid;
    gap: 16px;
}

.rx-form-section {
    position: relative;
    padding: 19px 20px 20px;
    border-radius: 22px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(37, 94, 177, .12);
    box-shadow: 0 14px 34px rgba(16, 58, 126, .07), inset 0 1px 0 #fff;
}

.rx-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.rx-section-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #edf5ff, #dcecff);
    border: 1px solid rgba(47,124,255,.14);
}

.rx-section-icon .mud-icon-root {
    font-size: 20px !important;
    color: #286ee4 !important;
}

.rx-section-heading strong {
    display: block;
    color: #14315f;
    font-size: 14px;
    line-height: 1.2;
}

.rx-section-heading span {
    display: block;
    margin-top: 4px;
    color: #8a97ad;
    font-size: 10px;
    font-weight: 500;
}

.rx-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rx-field-grid-three {
    grid-template-columns: .75fr 1.125fr 1.125fr;
}

.rx-field-full {
    grid-column: 1 / -1;
}

.rx-register-page .rx-field {
    margin: 0 !important;
}

.rx-register-page .rx-field .mud-input-control {
    margin-top: 0 !important;
}

.rx-register-page .rx-field .mud-input-outlined-border {
    border-radius: 14px !important;
    border-color: rgba(43, 91, 164, .18) !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease !important;
}

.rx-register-page .rx-field .mud-input-root,
.rx-register-page .rx-field .mud-input {
    min-height: 50px !important;
    color: #10264f !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    background: linear-gradient(180deg, #ffffff, #fbfdff) !important;
    border-radius: 14px !important;
}

.rx-register-page .rx-field .mud-input:focus-within .mud-input-outlined-border,
.rx-register-page .rx-field .mud-input-root:focus-within .mud-input-outlined-border {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .11), 0 9px 20px rgba(37, 94, 177, .08) !important;
}

.rx-register-page .rx-field .mud-input-label {
    color: #73819a !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.rx-register-page .rx-field .mud-input-adornment,
.rx-register-page .rx-field .mud-input-adornment .mud-icon-button,
.rx-register-page .rx-field .mud-input-adornment .mud-svg-icon {
    color: #3477e8 !important;
}

.rx-register-page .rx-field .mud-input-helper-text {
    color: #97a2b5 !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    margin: 4px 2px 0 !important;
}

.rx-bank-note {
    display: flex;
    gap: 12px;
    margin-top: 13px;
    padding: 12px 14px;
    border-radius: 15px;
    color: #735214;
    font-size: 11px;
    line-height: 1.55;
    font-weight: 600;
    background: linear-gradient(135deg, #fffaf0, #fff4d7);
    border: 1px solid rgba(222, 166, 43, .22);
}

.rx-bank-note .mud-icon-root {
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: 19px !important;
    color: #d79b1f !important;
}

.rx-action-area {
    display: grid;
    gap: 10px;
}

.rx-register-submit {
    position: relative !important;
    min-height: 56px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    color: #08255a !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: .02em !important;
    text-transform: none !important;
    background:
        radial-gradient(circle at 24% 15%, #fff7c9, transparent 34%),
        linear-gradient(125deg, #ffe083 0%, #f5c34b 54%, #d79a20 100%) !important;
    border: 1px solid rgba(183, 121, 14, .14) !important;
    box-shadow: 0 17px 34px rgba(215,154,32,.24), inset 0 1px 0 rgba(255,255,255,.72) !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
}

.rx-register-submit::after {
    content: "";
    position: absolute;
    inset: -40% -120%;
    transform: rotate(20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.70), transparent);
    transition: transform .6s ease;
}

.rx-register-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(215,154,32,.31), 0 10px 24px rgba(47,124,255,.08) !important;
}

.rx-register-submit:hover:not(:disabled)::after {
    transform: translateX(145%) rotate(20deg);
}

.rx-register-submit:disabled {
    opacity: .66 !important;
}

.rx-terms {
    text-align: center;
    color: #98a3b5;
    font-size: 10px;
    line-height: 1.5;
}

.rx-terms strong {
    color: #526786;
}

@keyframes rxFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(12px, -14px, 0) scale(1.04); }
}

@keyframes rxSpin {
    to { transform: rotate(360deg); }
}

@keyframes rxShine {
    0%, 58% { transform: translateX(-20%) rotate(25deg); opacity: 0; }
    68% { opacity: 1; }
    86%, 100% { transform: translateX(160%) rotate(25deg); opacity: 0; }
}

@media (max-width: 1180px) {
    .rx-register-page {
        padding: 18px;
    }

    .rx-register-shell {
        min-height: calc(100dvh - 36px);
        grid-template-columns: minmax(390px, .82fr) minmax(540px, 1.18fr);
        border-radius: 30px;
    }

    .rx-register-hero {
        padding: 42px 38px 34px;
    }

    .rx-hero-title {
        font-size: clamp(40px, 5vw, 62px);
    }

    .rx-register-form-side {
        padding: 26px 30px 34px;
    }
}

@media (max-width: 960px) {
    .rx-register-page {
        padding: 0;
        background: linear-gradient(180deg, #071b3f 0%, #113f91 23%, #eaf3ff 23.2%, #f8fbff 100%);
    }

    .rx-register-shell {
        display: block;
        width: 100%;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .rx-register-hero {
        min-height: auto;
        padding: 28px 28px 76px;
        border-radius: 0 0 38px 38px;
    }

    .rx-hero-content {
        margin: 34px 0 0;
    }

    .rx-hero-title {
        max-width: 680px;
        margin-top: 18px;
        font-size: clamp(38px, 8vw, 62px);
    }

    .rx-hero-copy {
        max-width: 680px;
    }

    .rx-feature-list,
    .rx-premium-card,
    .rx-hero-bottom {
        display: none;
    }

    .rx-register-form-side {
        width: min(820px, calc(100% - 28px));
        margin: -44px auto 20px;
        padding: 24px 28px 32px;
        border-radius: 28px;
        box-shadow: 0 26px 66px rgba(12, 43, 98, .18);
    }

    .rx-form-content {
        margin-top: 12px;
    }
}

@media (max-width: 620px) {
    .rx-register-aurora,
    .rx-register-grid,
    .rx-register-orb {
        display: none;
    }

    .rx-register-hero {
        padding: 22px 18px 66px;
        border-radius: 0 0 28px 28px;
    }

    .rx-brand-mark {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        border-radius: 15px;
        font-size: 18px;
    }

    .rx-brand-name {
        font-size: 18px;
    }

    .rx-brand-caption {
        font-size: 9px;
    }

    .rx-hero-content {
        margin-top: 26px;
    }

    .rx-hero-kicker {
        min-height: 30px;
        padding: 0 12px;
        font-size: 10px;
    }

    .rx-hero-title {
        margin: 15px 0 12px;
        font-size: clamp(34px, 11vw, 48px);
    }

    .rx-hero-copy {
        font-size: 13px;
        line-height: 1.65;
    }

    .rx-register-form-side {
        width: calc(100% - 18px);
        margin-top: -38px;
        padding: 18px 14px 26px;
        border-radius: 24px;
    }

    .rx-secure-pill {
        min-height: 30px;
        padding: 0 10px;
        font-size: 9px;
    }

    .rx-form-title {
        font-size: 30px;
    }

    .rx-form-subtitle {
        font-size: 12px;
    }

    .rx-stepper {
        grid-template-columns: 1fr 24px 1fr;
        margin: 19px 0 15px;
    }

    .rx-step {
        gap: 7px;
        font-size: 10px;
    }

    .rx-step-number {
        width: 28px;
        height: 28px;
        border-radius: 9px;
        font-size: 10px;
    }

    .rx-form-section {
        padding: 15px 12px 16px;
        border-radius: 18px;
    }

    .rx-section-heading {
        margin-bottom: 12px;
    }

    .rx-field-grid,
    .rx-field-grid-three {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rx-field-full {
        grid-column: auto;
    }

    .rx-register-page .rx-field .mud-input-root,
    .rx-register-page .rx-field .mud-input {
        min-height: 48px !important;
    }

    .rx-register-submit {
        min-height: 53px !important;
        border-radius: 14px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rx-register-page *,
    .rx-register-page *::before,
    .rx-register-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
