/* ==========================================================================
   A9X LABS — AUTH CORE v2  (register + login)
   Cinematic entry: live ember eclipse (WebGL, from the old gate), orbital
   rings + floating studio chips (from forgot-password), premium capsule
   fields with floating labels, holographic terminal card.
   Self-contained: no app.css. JS contracts preserved (auth-live.js + lux.js).
   ========================================================================== */

/* ---------- fonts ---------- */
@font-face {
    font-family: "Auth UI";
    src: url("../../fonts/inter-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Auth AR";
    src: url("../../fonts/cairo-arabic.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Auth Mono";
    src: url("../../fonts/jbmono-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@property --au-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

/* ---------- tokens ---------- */
:root {
    color-scheme: dark;
    --au-bg: #03050c;
    --au-ink: #eef3ff;
    --au-ink2: #a8b6d9;
    --au-ink3: #6b7899;
    --au-line: rgba(126, 158, 255, .13);
    --au-line2: rgba(126, 158, 255, .3);
    --au-violet: #7c5cff;
    --au-violet-hi: #a78bfa;
    --au-cyan: #22d3ee;
    --au-magenta: #e879f9;
    --au-green: #4ade80;
    --au-red: #ff7a7a;
    --au-amber: #ffb86b;
    --au-grad: linear-gradient(100deg, #22d3ee 0%, #7c5cff 52%, #e879f9 100%);
    --au-ui: "Auth UI", "Segoe UI", system-ui, sans-serif;
    --au-mono: "Auth Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
    --au-ease: cubic-bezier(.22, .61, .36, 1);
    --au-expo: cubic-bezier(.16, 1, .3, 1);
}

html[lang="ar"] {
    --au-ui: "Auth AR", "Auth UI", Tahoma, sans-serif;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 0;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: var(--au-bg);
    color: var(--au-ink);
    font-family: var(--au-ui);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

h1,
h2,
h3,
p,
ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

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

button,
input,
summary {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

::selection {
    background: rgba(124, 92, 255, .35);
    color: #fff;
}

:focus-visible {
    outline: 2px solid #b9a8ff;
    outline-offset: 3px;
    border-radius: 6px;
}

/* ==========================================================================
   LIVE EMBER ECLIPSE + STAGE
   ========================================================================== */
.ember-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
}

.ember-bg canvas,
.ember-bg-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.ember-bg-fallback {
    display: none;
    background:
        radial-gradient(120% 90% at 50% 100%, rgba(124, 58, 237, .22) 0%, rgba(37, 99, 235, .18) 38%, rgba(7, 11, 22, 0) 72%),
        linear-gradient(180deg, #070b16 0%, #08122b 55%, #0a1633 100%);
}

.ember-bg-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(3, 5, 12, .55) 0%, rgba(3, 5, 12, .18) 28%,
            rgba(3, 5, 12, .16) 68%, rgba(3, 5, 12, .6) 100%);
}

html.no-webgl .ember-bg-fallback {
    display: block;
}

html.no-webgl .ember-bg-canvas {
    display: none;
}

.au-stage {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(900px 520px at 74% 0%, rgba(124, 92, 255, .13), transparent 62%),
        radial-gradient(760px 480px at 4% 10%, rgba(34, 211, 238, .07), transparent 64%),
        radial-gradient(900px 520px at 20% 108%, rgba(232, 121, 249, .07), transparent 66%);
}

.au-stage__grid {
    position: absolute;
    inset: -1px;
    background-image:
        linear-gradient(rgba(126, 158, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 158, 255, .055) 1px, transparent 1px);
    background-size: 68px 68px;
    -webkit-mask-image: radial-gradient(1000px 760px at 50% 26%, #000 16%, transparent 82%);
    mask-image: radial-gradient(1000px 760px at 50% 26%, #000 16%, transparent 82%);
}

.au-stage__scan {
    position: absolute;
    inset: 0;
    opacity: .28;
    background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(0, 0, 0, .22) 3px 4px);
    mix-blend-mode: multiply;
}

.au-stage__noise {
    position: absolute;
    inset: 0;
    opacity: .045;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.au-stage__vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 50% 40%, transparent 48%, rgba(2, 4, 10, .55) 100%),
        linear-gradient(180deg, rgba(2, 4, 10, .4) 0%, transparent 22%, transparent 78%, rgba(2, 4, 10, .7) 100%);
}

/* ==========================================================================
   ORBIT STAGE (from the old gate, refined)
   ========================================================================== */
.au-sky {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.au-orbit {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: -18%;
    width: min(980px, 118vmin);
    aspect-ratio: 1;
    transform: translateY(-50%);
}

.au-orbit__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 30deg,
            transparent 0 40%,
            rgba(34, 211, 238, .55) 47%,
            rgba(124, 92, 255, .65) 52%,
            rgba(232, 121, 249, .45) 57%,
            transparent 64% 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.4px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.4px));
    opacity: .65;
    animation: au-spin 34s linear infinite;
}

.au-orbit__ring--dash {
    inset: 9%;
    background: none;
    -webkit-mask: none;
    mask: none;
    border: 1px dashed rgba(126, 158, 255, .16);
    opacity: .7;
    animation: au-spin 54s linear infinite reverse;
}

.au-orbit__sat {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: au-spin 20s linear infinite;
}

.au-orbit__sat::before {
    content: "";
    position: absolute;
    inset-block-start: -4px;
    inset-inline-start: calc(50% - 4px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--au-cyan);
    box-shadow: 0 0 16px rgba(34, 211, 238, .95), 0 0 5px #fff;
}

.au-orbit__sat--b {
    animation-duration: 27s;
    animation-direction: reverse;
}

.au-orbit__sat--b::before {
    background: var(--au-violet-hi);
    box-shadow: 0 0 16px rgba(167, 139, 250, .95), 0 0 5px #fff;
}

.au-orbit__sat--c {
    animation-duration: 36s;
}

.au-orbit__sat--c::before {
    background: var(--au-magenta);
    box-shadow: 0 0 16px rgba(232, 121, 249, .95), 0 0 5px #fff;
}

.au-orbit__chip {
    position: absolute;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(126, 158, 255, .22);
    background: rgba(7, 10, 22, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 34px -16px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
    font-family: var(--au-mono);
    font-size: .54rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #9fdcef;
    white-space: nowrap;
    animation: au-bob 7s ease-in-out infinite alternate;
}

.au-orbit__chip::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-inline-end: 7px;
    border-radius: 50%;
    vertical-align: middle;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.au-orbit__chip--a {
    inset-block-start: 20%;
    inset-inline-start: 8%;
    color: #9fdcef;
}

.au-orbit__chip--b {
    inset-block-end: 22%;
    inset-inline-start: 2%;
    color: #c9bdf7;
    animation-delay: 1.4s;
}

.au-orbit__chip--c {
    inset-block-start: 38%;
    inset-inline-start: 2%;
    color: #f5d0fe;
    animation-delay: 2.6s;
}

html[dir="rtl"] .au-orbit__chip {
    letter-spacing: .1em;
}

.au-seam {
    position: absolute;
    inset-inline-start: 50%;
    bottom: 7%;
    transform: translateX(-50%);
    width: min(720px, 82%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .4) 30%,
            rgba(124, 92, 255, .5) 70%, transparent);
    box-shadow: 0 10px 50px rgba(124, 92, 255, .35);
}

[dir="rtl"] .au-seam {
    transform: translateX(50%);
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.au-top {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1420px;
    margin-inline: auto;
    padding: clamp(16px, 2.4vh, 26px) clamp(18px, 4vw, 56px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.au-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    justify-self: start;
}

.au-brand .deck-emblem {
    width: 46px;
    height: 40px;
    flex: none;
    filter: drop-shadow(0 0 20px rgba(124, 92, 255, .55));
}

.au-brand .emblem-orbit {
    transform-origin: 45px 37px;
    animation: au-spin 44s linear infinite;
}

.au-brand__word {
    display: grid;
    line-height: .9;
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: .14em;
}

.au-brand__word small {
    margin-block-start: 5px;
    font-family: var(--au-mono);
    font-size: .5rem;
    font-weight: 500;
    letter-spacing: .42em;
    color: var(--au-ink3);
}

.au-top__label {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--au-mono);
    font-size: .54rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(168, 182, 217, .62);
    white-space: nowrap;
}

.au-top__label i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--au-green);
    box-shadow: 0 0 9px 2px rgba(74, 222, 128, .55);
    animation: au-blink 2.6s ease-in-out infinite;
}

.au-top__right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.au-lang {
    position: relative;
}

.au-lang summary {
    list-style: none;
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 38px;
    padding-inline: 10px;
    border-radius: 999px;
    border: 1px solid var(--au-line);
    background: rgba(8, 11, 22, .5);
    font-family: var(--au-mono);
    font-size: .62rem;
    letter-spacing: .08em;
    color: var(--au-ink2);
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}

.au-lang summary::-webkit-details-marker {
    display: none;
}

.au-lang summary:hover {
    color: #fff;
    border-color: var(--au-line2);
    background: rgba(255, 255, 255, .05);
}

.au-lang > div {
    position: absolute;
    inset-block-start: calc(100% + 10px);
    inset-inline-end: 0;
    min-width: 150px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--au-line2);
    background: rgba(6, 9, 20, .98);
    box-shadow: 0 28px 70px -24px #000, 0 0 0 1px rgba(124, 92, 255, .1);
    backdrop-filter: blur(18px);
    z-index: 12;
}

.au-lang > div a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding-inline: 12px;
    border-radius: 9px;
    font-size: .82rem;
    color: var(--au-ink2);
}

.au-lang > div a:hover {
    background: rgba(124, 92, 255, .16);
    color: #fff;
}

.au-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding-inline: 14px;
    border-radius: 999px;
    border: 1px solid var(--au-line);
    background: rgba(8, 11, 22, .5);
    font-size: .76rem;
    font-weight: 600;
    color: var(--au-ink2);
    transition: color .2s, border-color .2s, background .2s, transform .25s var(--au-expo);
}

.au-back .icon {
    width: 14px;
    height: 14px;
    transform: rotate(180deg);
    transition: transform .25s var(--au-expo);
}

[dir="rtl"] .au-back .icon {
    transform: none;
}

.au-back:hover {
    color: #fff;
    border-color: var(--au-line2);
    background: rgba(124, 92, 255, .1);
    transform: translateY(-1px);
}

.au-back:hover .icon {
    transform: rotate(180deg) translateX(3px);
}

[dir="rtl"] .au-back:hover .icon {
    transform: translateX(-3px) scaleX(-1);
}

/* ==========================================================================
   MAIN
   ========================================================================== */
.au-main {
    position: relative;
    z-index: 2;
    flex: 1;
    width: 100%;
    max-width: 1420px;
    margin-inline: auto;
    padding: clamp(6px, 1.4vh, 16px) clamp(18px, 4vw, 56px) clamp(16px, 2.6vh, 30px);
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    align-items: center;
    gap: clamp(28px, 5vw, 76px);
}

/* ---------- HERO / story ---------- */
.au-hero {
    position: relative;
    max-width: 600px;
    isolation: isolate;
}

.au-wm {
    position: absolute;
    z-index: -1;
    inset-block-start: -18%;
    inset-inline-start: -4%;
    font-size: clamp(150px, 21vw, 300px);
    font-weight: 900;
    line-height: .8;
    letter-spacing: -.07em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(126, 158, 255, .13);
    opacity: .9;
    user-select: none;
    pointer-events: none;
}

.au-hero > *:not(.au-wm) {
    animation: au-rise .85s var(--au-expo) both;
}

.au-hero > *:nth-child(2) {
    animation-delay: .04s;
}

.au-hero > *:nth-child(3) {
    animation-delay: .1s;
}

.au-hero > *:nth-child(4) {
    animation-delay: .17s;
}

.au-hero > *:nth-child(5) {
    animation-delay: .24s;
}

.au-hero > *:nth-child(6) {
    animation-delay: .31s;
}

.au-hero > *:nth-child(7) {
    animation-delay: .38s;
}

.au-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid rgba(124, 92, 255, .32);
    background: linear-gradient(100deg, rgba(124, 92, 255, .16), rgba(34, 211, 238, .07));
    box-shadow: 0 0 30px -10px rgba(124, 92, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
    font-family: var(--au-mono);
    font-size: .58rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #dcd4ff;
}

.au-kicker i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--au-cyan);
    box-shadow: 0 0 12px 2px rgba(34, 211, 238, .75);
    animation: au-blink 2.4s ease-in-out infinite;
}

.au-hero__title {
    margin-block: clamp(14px, 2.2vh, 22px) 0;
    font-size: clamp(2.3rem, 4vw, 3.9rem);
    font-weight: 900;
    line-height: .97;
    letter-spacing: -.045em;
    text-wrap: balance;
}

html[lang="ar"] .au-hero__title {
    line-height: 1.18;
    letter-spacing: -.01em;
    font-weight: 800;
}

.au-hero__title span {
    display: block;
    background: var(--au-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.au-hero__sub {
    margin-block-start: 14px;
    max-width: 46ch;
    font-size: .96rem;
    line-height: 1.8;
    color: var(--au-ink2);
}

.au-perks {
    display: grid;
    gap: 9px;
    margin-block-start: clamp(18px, 2.8vh, 26px);
}

.au-perk {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border-radius: 15px;
    border: 1px solid rgba(126, 158, 255, .11);
    background: linear-gradient(150deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    transition: border-color .25s, background .25s, transform .3s var(--au-expo), box-shadow .3s;
}

.au-perk:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 92, 255, .38);
    background: linear-gradient(150deg, rgba(124, 92, 255, .12), rgba(255, 255, 255, .02));
    box-shadow: 0 18px 44px -24px rgba(124, 92, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.au-perk__ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    color: var(--au-violet-hi);
    background: radial-gradient(circle at 30% 15%, rgba(124, 92, 255, .36), rgba(124, 92, 255, .07) 72%);
    border: 1px solid rgba(124, 92, 255, .26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px -12px rgba(124, 92, 255, .9);
}

.au-perk__ico svg {
    width: 20px;
    height: 20px;
}

.au-perk b {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.au-perk small {
    display: block;
    margin-block-start: 1px;
    font-size: .76rem;
    color: var(--au-ink3);
}

.au-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-start: clamp(16px, 2.4vh, 22px);
}

.au-chips span {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--au-line);
    background: rgba(8, 11, 22, .55);
    font-family: var(--au-mono);
    font-size: .5rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--au-ink3);
    backdrop-filter: blur(6px);
}

.au-chips b {
    font-family: var(--au-ui);
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--au-ink);
}

/* system readout strip */
.au-readout {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-block-start: clamp(16px, 2.4vh, 22px);
    padding: 9px 13px;
    border-radius: 12px;
    border: 1px solid rgba(126, 158, 255, .1);
    background: rgba(6, 9, 18, .5);
    backdrop-filter: blur(8px);
    max-width: 430px;
}

.au-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 18px;
    flex: none;
}

.au-eq i {
    width: 3px;
    height: 40%;
    border-radius: 2px;
    background: linear-gradient(180deg, #22d3ee, #7c5cff);
    animation: au-eq 1.2s ease-in-out infinite alternate;
}

.au-eq i:nth-child(2n) {
    animation-duration: .9s;
    animation-delay: .12s;
}

.au-eq i:nth-child(3n) {
    animation-duration: 1.5s;
    animation-delay: .24s;
}

.au-readout span {
    font-family: var(--au-mono);
    font-size: .5rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(168, 182, 217, .7);
}

.au-readout b {
    color: #c9bdf7;
    font-weight: 500;
}

/* connector between story and terminal */
.au-flow {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 44%;
    width: clamp(40px, 6vw, 96px);
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, .05), rgba(124, 92, 255, .45), rgba(34, 211, 238, .05));
}

.au-flow i {
    position: absolute;
    inset-block-start: -2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--au-cyan);
    box-shadow: 0 0 12px 2px rgba(34, 211, 238, .8);
    animation: au-travel 4.2s var(--au-ease) infinite;
}

/* ==========================================================================
   TERMINAL CARD
   ========================================================================== */
.au-side {
    width: 100%;
    max-width: 500px;
    justify-self: end;
    animation: au-rise .95s var(--au-expo) both .12s;
}

.ax-column.au-card {
    position: relative;
    border-radius: 28px;
    padding: clamp(15px, 1.7vw, 21px);
    border: 1px solid rgba(126, 158, 255, .15);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(124, 92, 255, .16), transparent 56%),
        linear-gradient(178deg, rgba(10, 14, 28, .93), rgba(4, 7, 16, .97));
    box-shadow:
        0 70px 150px -70px rgba(0, 0, 0, .98),
        0 0 0 1px rgba(255, 255, 255, .015),
        inset 0 1px 0 rgba(255, 255, 255, .075),
        0 0 90px -40px rgba(124, 92, 255, .6);
    backdrop-filter: blur(26px) saturate(135%);
    -webkit-backdrop-filter: blur(26px) saturate(135%);
    overflow: hidden;
}

/* holographic rotating hairline */
.ax-column.au-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.2px;
    background: conic-gradient(from var(--au-angle, 0deg),
            rgba(34, 211, 238, 0) 0%, rgba(34, 211, 238, .65) 12%, rgba(124, 92, 255, .75) 26%,
            rgba(232, 121, 249, .5) 38%, rgba(34, 211, 238, 0) 52% 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: au-angle 12s linear infinite;
    pointer-events: none;
}

/* inner top glow */
.ax-column.au-card::after {
    content: "";
    position: absolute;
    inset-inline-start: 12%;
    top: -34%;
    width: 76%;
    height: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, .18), transparent 70%);
    filter: blur(34px);
    pointer-events: none;
}

.au-card__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-block-end: 12px;
    font-family: var(--au-mono);
    font-size: .5rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--au-ink3);
}

.au-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9fe8c9;
}

.au-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--au-green);
    box-shadow: 0 0 9px 2px rgba(74, 222, 128, .55);
    animation: au-blink 2.6s ease-in-out infinite;
}

.au-card__code {
    color: rgba(159, 220, 239, .65);
}

/* tabs */
.ax-tabs.au-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 3px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--au-line);
    background: rgba(0, 0, 0, .38);
    margin-block-end: 14px;
}

.ax-tabs.au-tabs .ax-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding-inline: 12px;
    border-radius: 999px;
    font-size: .79rem;
    font-weight: 650;
    color: var(--au-ink3);
    transition: color .2s, background .25s var(--au-ease), box-shadow .3s;
}

.ax-tabs.au-tabs .ax-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.ax-tabs.au-tabs .ax-tab.active {
    color: #fff;
    background: linear-gradient(120deg, rgba(124, 92, 255, .95), rgba(34, 211, 238, .6));
    box-shadow: 0 12px 30px -14px rgba(124, 92, 255, 1), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.ax-tabs.au-tabs.is-busy {
    opacity: .6;
    pointer-events: none;
}

.au-title {
    position: relative;
    z-index: 1;
    font-size: clamp(1.45rem, 2vw, 1.75rem);
    font-weight: 850;
    letter-spacing: -.03em;
    line-height: 1.12;
}

html[lang="ar"] .au-title {
    line-height: 1.35;
    letter-spacing: -.01em;
}

.au-sub {
    position: relative;
    z-index: 1;
    margin-block: 5px 0;
    font-size: .8rem;
    line-height: 1.6;
    color: var(--au-ink3);
}

.au-sub b {
    color: var(--au-ink2);
    font-weight: 600;
}

/* card footer */
.au-card__foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-block-start: 12px;
    padding-block-start: 10px;
    border-top: 1px solid rgba(126, 158, 255, .09);
    font-family: var(--au-mono);
    font-size: .46rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(140, 170, 205, .55);
}

.au-card__foot span + span::before {
    content: "·";
    margin-inline-end: 8px;
    color: rgba(124, 92, 255, .7);
}

/* ==========================================================================
   FORM — premium capsules with floating labels
   ========================================================================== */
.au-form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 9px;
    margin-block-start: 13px;
}

.au-field {
    min-width: 0;
}

.au-capsule {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 9px 12px;
    border-radius: 17px;
    border: 1px solid rgba(126, 158, 255, .14);
    background:
        radial-gradient(130% 160% at 8% -30%, rgba(124, 92, 255, .1), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .014));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 26px -22px rgba(0, 0, 0, .9);
    overflow: hidden;
    transition: border-color .25s var(--au-ease), background .3s var(--au-ease),
        box-shadow .3s var(--au-ease);
}

/* animated gradient rim on focus */
.au-capsule::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--au-angle, 0deg),
            rgba(34, 211, 238, .1), rgba(34, 211, 238, .85) 18%, rgba(124, 92, 255, .9) 34%,
            rgba(232, 121, 249, .7) 48%, rgba(34, 211, 238, .1) 64% 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    transition: opacity .3s;
    animation: au-angle 6s linear infinite;
    pointer-events: none;
}

/* bottom light beam */
.au-capsule::after {
    content: "";
    position: absolute;
    inset-inline: 12px;
    bottom: 0;
    height: 1.5px;
    border-radius: 2px;
    background: var(--au-grad);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .5s var(--au-expo);
}

[dir="rtl"] .au-capsule::after {
    transform-origin: 100% 50%;
}

.au-capsule:hover {
    border-color: rgba(126, 158, 255, .26);
}

.au-field:focus-within .au-capsule {
    border-color: rgba(124, 92, 255, .45);
    background:
        radial-gradient(130% 160% at 8% -30%, rgba(124, 92, 255, .2), transparent 58%),
        linear-gradient(180deg, rgba(124, 92, 255, .07), rgba(255, 255, 255, .02));
    box-shadow: 0 0 0 1px rgba(124, 92, 255, .2), 0 22px 54px -30px rgba(124, 92, 255, .95);
}

.au-field:focus-within .au-capsule::before {
    opacity: .9;
}

.au-field:focus-within .au-capsule::after {
    transform: scaleX(1);
}

.au-field.is-ok .au-capsule {
    border-color: rgba(74, 222, 128, .45);
    background:
        radial-gradient(130% 160% at 8% -30%, rgba(74, 222, 128, .1), transparent 58%),
        linear-gradient(180deg, rgba(74, 222, 128, .05), rgba(255, 255, 255, .015));
}

.au-field.is-bad .au-capsule {
    border-color: rgba(255, 122, 122, .5);
    background:
        radial-gradient(130% 160% at 8% -30%, rgba(255, 122, 122, .1), transparent 58%),
        linear-gradient(180deg, rgba(255, 122, 122, .05), rgba(255, 255, 255, .015));
}

/* icon tile */
.au-ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--au-violet-hi);
    background: radial-gradient(circle at 30% 18%, rgba(124, 92, 255, .38), rgba(124, 92, 255, .08) 72%);
    border: 1px solid rgba(124, 92, 255, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
    transition: color .25s, border-color .25s, box-shadow .3s, background .3s;
}

.au-ico svg {
    width: 21px;
    height: 21px;
}

.au-field:focus-within .au-ico {
    color: #fff;
    border-color: rgba(167, 139, 250, .75);
    background: radial-gradient(circle at 30% 18%, rgba(124, 92, 255, .55), rgba(34, 211, 238, .18) 78%);
    box-shadow: 0 0 24px -4px rgba(124, 92, 255, 1), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.au-field.is-ok .au-ico {
    color: #9fe8c9;
    border-color: rgba(74, 222, 128, .42);
    background: radial-gradient(circle at 30% 18%, rgba(74, 222, 128, .3), rgba(74, 222, 128, .06) 74%);
}

.au-field.is-bad .au-ico {
    color: #ffb1b1;
    border-color: rgba(255, 122, 122, .42);
    background: radial-gradient(circle at 30% 18%, rgba(255, 122, 122, .3), rgba(255, 122, 122, .06) 74%);
}

/* floating label box */
.au-box {
    position: relative;
    display: block;
    min-width: 0;
    padding-block-start: 15px;
}

.au-box input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: var(--au-ui);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--au-ink);
    outline: none;
}

.au-box input::placeholder {
    color: transparent;
}

.au-box input:-webkit-autofill {
    -webkit-text-fill-color: var(--au-ink);
    -webkit-box-shadow: 0 0 0 40px #0a0e1c inset;
    caret-color: var(--au-ink);
}

.au-float {
    position: absolute;
    inset-inline-start: 1px;
    inset-block-start: 50%;
    transform: translateY(-50%);
    font-family: var(--au-mono);
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(168, 182, 217, .7);
    pointer-events: none;
    transition: inset-block-start .28s var(--au-expo), font-size .28s var(--au-expo),
        color .25s, letter-spacing .28s;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

html[dir="rtl"] .au-float {
    letter-spacing: .06em;
}

.au-box input:focus ~ .au-float,
.au-box input:not(:placeholder-shown) ~ .au-float {
    inset-block-start: 1px;
    transform: none;
    font-size: .48rem;
    letter-spacing: .19em;
    color: #c9bdf7;
}

html[dir="rtl"] .au-box input:focus ~ .au-float,
html[dir="rtl"] .au-box input:not(:placeholder-shown) ~ .au-float {
    letter-spacing: .1em;
}

.au-field:focus-within .au-float {
    color: #ddd3ff;
}

.au-field.is-ok .au-float {
    color: #9fe8c9;
}

.au-field.is-bad .au-float {
    color: #ffb1b1;
}

/* state lamp */
.au-lamp {
    position: relative;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: var(--au-green);
}

.au-lamp svg {
    position: absolute;
    width: 18px;
    height: 18px;
    opacity: 0;
    transform: scale(.4);
    transition: opacity .25s var(--au-ease), transform .32s var(--au-expo);
}

.au-field.is-ok .au-lamp__ok {
    opacity: 1;
    transform: scale(1);
}

.au-field.is-bad .au-lamp__no {
    opacity: 1;
    transform: scale(1);
    color: var(--au-red);
}

/* eye */
.au-eye {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid transparent;
    color: var(--au-ink3);
    transition: color .2s, background .2s, border-color .2s;
}

.au-eye svg {
    width: 19px;
    height: 19px;
}

.au-eye:hover {
    color: var(--au-ink);
    background: rgba(255, 255, 255, .05);
}

.au-eye.on {
    color: var(--au-cyan);
    border-color: rgba(34, 211, 238, .32);
    background: rgba(34, 211, 238, .08);
    box-shadow: 0 0 20px -8px rgba(34, 211, 238, .9);
}

/* notes + meter live under the capsule */
.au-note {
    display: block;
    margin-block-start: 6px;
    margin-inline: 3px;
    font-family: var(--au-mono);
    font-size: .5rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(107, 120, 153, .9);
    transition: color .2s;
}

.au-note.is-ok {
    color: #9fe8c9;
}

.au-note.is-bad {
    color: #ffb1b1;
}

.au-field .ax-meter {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-block-start: 7px;
    margin-inline: 3px;
}

#au .ax-meter__track {
    flex: 1;
    min-width: 0;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    overflow: hidden;
}

#au .ax-meter__fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c5cff, #22d3ee);
    transition: width .4s var(--au-ease), background .3s;
}

#au .ax-meter__fill.is-s1 {
    background: #ff7a7a;
}

#au .ax-meter__fill.is-s2 {
    background: #ffb86b;
}

#au .ax-meter__fill.is-s3 {
    background: #7c5cff;
}

#au .ax-meter__fill.is-s4 {
    background: linear-gradient(90deg, #22d3ee, #4ade80);
}

#au .ax-meter__label {
    font-family: var(--au-mono);
    font-size: .46rem;
    font-style: normal;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--au-ink3);
    white-space: nowrap;
}

#au .ax-meter__label.is-s1 {
    color: #ffb1b1;
}

#au .ax-meter__label.is-s2 {
    color: #ffd39a;
}

#au .ax-meter__label.is-s3 {
    color: #c9bdf7;
}

#au .ax-meter__label.is-s4 {
    color: #9fe8c9;
}

/* terms */
.au-terms {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    margin-block-start: 2px;
    padding: 12px 13px;
    border-radius: 15px;
    border: 1px solid rgba(126, 158, 255, .13);
    background: linear-gradient(160deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .012));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    cursor: pointer;
    transition: border-color .25s, background .25s, box-shadow .3s;
}

.au-terms:hover {
    border-color: rgba(126, 158, 255, .3);
    background: rgba(255, 255, 255, .04);
}

.au-terms.is-ok {
    border-color: rgba(74, 222, 128, .45);
    background: linear-gradient(160deg, rgba(74, 222, 128, .08), rgba(255, 255, 255, .02));
}

.au-terms.is-bad {
    border-color: rgba(255, 122, 122, .55);
    background: rgba(255, 122, 122, .07);
}

.au-terms.is-shake {
    animation: au-shake .55s var(--au-ease);
}

.au-terms__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.au-terms__box {
    position: relative;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    margin-block-start: 1px;
    border-radius: 7px;
    border: 1px solid rgba(126, 158, 255, .34);
    background: rgba(255, 255, 255, .04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: background .25s, border-color .25s, box-shadow .3s;
}

.au-terms__box svg {
    width: 13px;
    height: 13px;
    color: #04121f;
    opacity: 0;
    transform: scale(.4);
    transition: opacity .2s, transform .3s var(--au-expo);
}

.au-terms__input:checked + .au-terms__box {
    border-color: transparent;
    background: linear-gradient(135deg, #22d3ee, #7c5cff);
    box-shadow: 0 0 22px -4px rgba(124, 92, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.au-terms__input:checked + .au-terms__box svg {
    opacity: 1;
    transform: scale(1);
}

.au-terms__input:focus-visible + .au-terms__box {
    outline: 2px solid #b9a8ff;
    outline-offset: 3px;
}

.au-terms__text {
    font-size: .73rem;
    line-height: 1.65;
    color: var(--au-ink3);
}

.au-terms__text a {
    color: #c9bdf7;
    border-bottom: 1px solid rgba(167, 139, 250, .4);
    transition: color .2s, border-color .2s;
}

.au-terms__text a:hover {
    color: #fff;
    border-color: rgba(34, 211, 238, .8);
}

/* ==========================================================================
   PLASMA BUTTON
   ========================================================================== */
.au-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    margin-block-start: 5px;
    border-radius: 17px;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .01em;
    color: #fff;
    isolation: isolate;
    overflow: hidden;
    transition: transform .3s var(--au-expo), box-shadow .35s var(--au-ease), opacity .25s;
    box-shadow: 0 22px 56px -24px rgba(124, 92, 255, .95);
}

.au-btn::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--au-angle, 0deg),
            #22d3ee 0%, #7c5cff 32%, #e879f9 58%, #7c5cff 80%, #22d3ee 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: au-angle 5.5s linear infinite;
}

.au-btn::after {
    content: "";
    position: absolute;
    inset: 1.5px;
    z-index: -1;
    border-radius: inherit;
    background:
        radial-gradient(120% 180% at 12% -20%, rgba(124, 92, 255, .65), transparent 58%),
        radial-gradient(100% 160% at 96% 130%, rgba(34, 211, 238, .34), transparent 60%),
        linear-gradient(180deg, #0d1126, #070a16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13);
    transition: background .3s;
}

.au-btn__label {
    position: relative;
    z-index: 2;
}

.au-btn__orb {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #05070f;
    background: var(--au-grad);
    box-shadow: 0 0 22px -2px rgba(124, 92, 255, 1);
    transition: transform .35s var(--au-expo);
}

.au-btn__orb svg {
    width: 15px;
    height: 15px;
}

[dir="rtl"] .au-btn__orb svg {
    transform: scaleX(-1);
}

.au-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 70px -24px rgba(124, 92, 255, 1);
}

.au-btn:hover .au-btn__orb {
    transform: translateX(4px) rotate(-8deg);
}

[dir="rtl"] .au-btn:hover .au-btn__orb {
    transform: translateX(-4px) rotate(8deg);
}

.au-btn.is-locked {
    opacity: .9;
    box-shadow: none;
    cursor: not-allowed;
}

.au-btn.is-locked .au-btn__label {
    color: #dfe6ff;
}

.au-btn.is-locked::before {
    background: conic-gradient(from 0deg, rgba(126, 158, 255, .35), rgba(255, 255, 255, .12), rgba(126, 158, 255, .35));
    animation: none;
}

.au-btn.is-locked .au-btn__orb {
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .4);
    box-shadow: none;
}

/* verification code + ghost actions */
.au-vcode {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-block-start: 16px;
}

.au-vcode__cell {
    min-width: 0;
    height: 58px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(126, 158, 255, .16);
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .014));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    color: var(--au-ink);
    font-family: var(--au-mono);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: border-color .25s, background .25s, box-shadow .3s, transform .2s var(--au-expo);
}

.au-vcode__cell:focus {
    border-color: rgba(124, 92, 255, .7);
    background: rgba(124, 92, 255, .12);
    box-shadow: 0 0 0 1px rgba(124, 92, 255, .25), 0 16px 40px -24px rgba(124, 92, 255, .9);
    transform: translateY(-2px);
}

.au-vcode__cell:not(:placeholder-shown) {
    border-color: rgba(124, 92, 255, .55);
    background: rgba(124, 92, 255, .1);
}

.au-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-block-start: 10px;
}

.au-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding-inline: 12px;
    border-radius: 14px;
    border: 1px solid var(--au-line);
    background: rgba(255, 255, 255, .03);
    font-size: .8rem;
    font-weight: 650;
    color: var(--au-ink2);
    transition: color .2s, border-color .2s, background .2s, transform .25s var(--au-expo);
}

.au-ghost:hover {
    color: #fff;
    border-color: var(--au-line2);
    background: rgba(124, 92, 255, .1);
    transform: translateY(-1px);
}

.au-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}

.au-btn:disabled::before {
    background: conic-gradient(from 0deg, rgba(126, 158, 255, .28), rgba(255, 255, 255, .1), rgba(126, 158, 255, .28));
    animation: none;
}

.au-btn:disabled .au-btn__orb {
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .35);
    box-shadow: none;
}

.au-form + .au-form {
    margin-block-start: 10px;
}
/* ==========================================================================
   LINKS / ALERTS / LOGIN EXTRAS
   ========================================================================== */
.au-switchline {
    position: relative;
    z-index: 1;
    margin-block-start: 13px;
    text-align: center;
    font-size: .77rem;
    color: var(--au-ink3);
}

.au-switchline a,
.au-link {
    color: #c9bdf7;
    font-weight: 650;
    border-bottom: 1px solid rgba(167, 139, 250, .4);
    padding-block-end: 1px;
    transition: color .2s, border-color .2s;
}

.au-switchline a:hover,
.au-link:hover {
    color: #fff;
    border-color: rgba(34, 211, 238, .8);
}

.au-alert {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-block-end: 12px;
    padding: 11px 13px;
    border-radius: 15px;
    border: 1px solid rgba(255, 122, 122, .35);
    background: rgba(255, 122, 122, .07);
    font-size: .77rem;
    line-height: 1.6;
    color: #ffd2d2;
}

.au-alert svg {
    width: 17px;
    height: 17px;
    margin-block-start: 2px;
    color: #ff9a9a;
}

.au-alert--ok {
    border-color: rgba(74, 222, 128, .35);
    background: rgba(74, 222, 128, .07);
    color: #c9f7dd;
}

.au-alert--ok svg {
    color: var(--au-green);
}

.au-alert--warn {
    border-color: rgba(255, 184, 107, .4);
    background: rgba(255, 184, 107, .07);
    color: #ffe1bd;
}

.au-alert--warn svg {
    color: var(--au-amber);
}

.au-alert b {
    display: block;
    font-weight: 750;
    color: #fff;
    margin-block-end: 2px;
}

.au-alert small {
    display: block;
    font-size: .69rem;
    color: rgba(255, 255, 255, .6);
}

.au-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-block: 1px;
}

.au-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .77rem;
    color: var(--au-ink2);
    cursor: pointer;
}

.au-remember input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.au-switch {
    position: relative;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(126, 158, 255, .26);
    background: rgba(255, 255, 255, .05);
    transition: background .25s, border-color .25s, box-shadow .3s;
}

.au-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    inset-inline-start: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #cfd8ff;
    transition: transform .3s var(--au-expo), background .25s;
}

.au-remember input:checked + .au-switch {
    border-color: transparent;
    background: linear-gradient(135deg, #22d3ee, #7c5cff);
    box-shadow: 0 0 20px -4px rgba(124, 92, 255, .95);
}

.au-remember input:checked + .au-switch::after {
    transform: translateX(16px);
    background: #fff;
}

[dir="rtl"] .au-remember input:checked + .au-switch::after {
    transform: translateX(-16px);
}

.au-remember input:focus-visible + .au-switch {
    outline: 2px solid #b9a8ff;
    outline-offset: 3px;
}

/* ==========================================================================
   MOTION
   ========================================================================== */
@keyframes au-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes au-angle {
    to {
        --au-angle: 360deg;
    }
}

@keyframes au-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

@keyframes au-rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes au-bob {
    from {
        translate: 0 -5px;
    }

    to {
        translate: 0 6px;
    }
}

@keyframes au-eq {
    from {
        height: 22%;
        opacity: .55;
    }

    to {
        height: 100%;
        opacity: 1;
    }
}

@keyframes au-travel {
    0% {
        inset-inline-start: 0;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        inset-inline-start: 100%;
        opacity: 0;
    }
}

@keyframes au-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    18% {
        transform: translateX(-6px);
    }

    38% {
        transform: translateX(5px);
    }

    58% {
        transform: translateX(-3px);
    }

    78% {
        transform: translateX(2px);
    }
}

/* soft-swap hooks used by auth-live.js */
.ax-column.ax-swap-out {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .12s ease, transform .12s ease;
}

.ax-column.ax-swap-in {
    animation: au-rise .4s var(--au-expo);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
    .au-main {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: clamp(22px, 3.6vh, 36px);
    }

    .au-hero {
        max-width: 660px;
        width: 100%;
        text-align: center;
    }

    .au-wm {
        inset-inline-start: 50%;
        transform: translateX(-50%);
        opacity: .55;
    }

    [dir="rtl"] .au-wm {
        transform: translateX(50%);
    }

    .au-hero__sub {
        margin-inline: auto;
    }

    .au-perks {
        max-width: 480px;
        margin-inline: auto;
        text-align: start;
    }

    .au-chips {
        justify-content: center;
    }

    .au-readout {
        margin-inline: auto;
    }

    .au-side {
        justify-self: center;
    }

    .au-flow {
        display: none;
    }

    .au-orbit {
        inset-inline-end: 50%;
        transform: translate(50%, -50%);
        opacity: .6;
    }

    [dir="rtl"] .au-orbit {
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 640px) {
    .au-top {
        grid-template-columns: 1fr auto;
        padding-block: 14px;
    }

    .au-top__label {
        display: none;
    }

    .au-back span {
        display: none;
    }

    .au-back {
        width: 38px;
        min-height: 38px;
        padding-inline: 0;
        justify-content: center;
    }

    .au-hero__title {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .au-hero__sub {
        font-size: .88rem;
    }

    .au-perk small {
        display: none;
    }

    .au-perks {
        gap: 8px;
    }

    .au-readout {
        max-width: none;
    }

    .au-wm {
        font-size: 42vw;
        inset-block-start: -8%;
    }

    .au-side {
        max-width: 100%;
    }

    .ax-column.au-card {
        padding: 15px;
        border-radius: 24px;
    }

    .au-capsule {
        min-height: 68px;
        padding: 9px 10px;
        gap: 9px;
    }

    .au-ico {
        width: 35px;
        height: 35px;
    }

    .au-ico svg {
        width: 18px;
        height: 18px;
    }

    .au-terms {
        padding: 11px;
    }

    .au-btn {
        height: 54px;
    }

    .au-card__foot {
        font-size: .42rem;
        letter-spacing: .12em;
    }

    .au-orbit {
        opacity: .4;
    }

    .au-orbit__chip {
        display: none;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .au-orbit__ring,
    .au-orbit__sat,
    .au-orbit__chip,
    .au-brand .emblem-orbit,
    .au-kicker i,
    .au-status i,
    .au-eq i,
    .au-flow i,
    .ax-column.au-card::before,
    .au-btn::before,
    .au-capsule::before,
    .au-hero > *,
    .au-side,
    .au-terms.is-shake {
        animation: none !important;
    }

    .au-eq i {
        height: 60% !important;
    }

    .ax-column.ax-swap-in,
    .ax-column.ax-swap-out {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    * {
        transition-duration: .001ms !important;
    }
}

html[data-a9x-motion="reduced"] .au-orbit__ring,
html[data-a9x-motion="reduced"] .au-orbit__sat,
html[data-a9x-motion="reduced"] .au-orbit__chip,
html[data-a9x-motion="reduced"] .au-brand .emblem-orbit,
html[data-a9x-motion="reduced"] .au-kicker i,
html[data-a9x-motion="reduced"] .au-eq i,
html[data-a9x-motion="reduced"] .au-flow i,
html[data-a9x-motion="reduced"] .ax-column.au-card::before,
html[data-a9x-motion="reduced"] .au-btn::before,
html[data-a9x-motion="reduced"] .au-capsule::before,
html[data-a9x-motion="reduced"] .au-terms.is-shake {
    animation: none !important;
}

/* ==========================================================================
   L154 — PREMIUM AUTH HEADER LOGO (owner: bigger, clearer, glowing, luxury)
   ========================================================================== */
.au-brand {
    position: relative;
    gap: 14px;
    padding: 6px 12px 6px 6px;
    border-radius: 20px;
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.au-brand:hover { transform: translateY(-1px); }

/* animated aurora halo behind the mark */
.au-brand__halo {
    position: absolute;
    inset: -24% -8%;
    border-radius: 999px;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 30% 48%, rgba(124, 92, 255, .5), transparent 58%),
        radial-gradient(circle at 68% 42%, rgba(56, 189, 248, .32), transparent 62%),
        radial-gradient(circle at 55% 80%, rgba(240, 185, 90, .22), transparent 66%);
    filter: blur(15px);
    opacity: .85;
    animation: au-brand-pulse 5.5s ease-in-out infinite;
}

.au-brand .deck-emblem {
    position: relative;
    z-index: 1;
    width: clamp(58px, 6.2vw, 82px);
    height: auto;
    filter:
        drop-shadow(0 0 16px rgba(124, 92, 255, .9))
        drop-shadow(0 0 44px rgba(56, 189, 248, .38));
    transition: filter .3s ease, transform .3s ease;
}
.au-brand:hover .deck-emblem {
    transform: scale(1.04);
    filter:
        drop-shadow(0 0 22px rgba(240, 185, 90, .6))
        drop-shadow(0 0 56px rgba(124, 92, 255, .6));
}

.au-brand__word {
    position: relative;
    z-index: 1;
    font-size: clamp(1.36rem, 2.3vw, 1.74rem);
    letter-spacing: .16em;
    color: #fff;
    text-shadow: 0 0 26px rgba(124, 92, 255, .4);
}
.au-brand__word b {
    background: linear-gradient(100deg, #ffffff, #cfdcff 46%, #f0b95a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.au-brand__word small {
    margin-block-start: 6px;
    font-size: .56rem;
    letter-spacing: .5em;
    color: #bccbf0;
    text-shadow: 0 0 16px rgba(125, 211, 252, .4);
}

/* slim gold/cyan glow underline */
.au-brand::after {
    content: '';
    position: absolute;
    inset-inline: 10px;
    bottom: 1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 185, 90, .8), rgba(56, 189, 248, .55), transparent);
    opacity: .5;
    transition: opacity .28s ease, transform .28s ease;
}
.au-brand:hover::after { opacity: 1; transform: scaleX(1.02); }

.au-brand__live {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: 2px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(74, 222, 128, .34);
    background: rgba(74, 222, 128, .1);
    font-family: var(--au-mono);
    font-size: .48rem;
    font-weight: 700;
    letter-spacing: .16em;
    color: #a7f3d0;
    box-shadow: 0 0 16px -6px rgba(74, 222, 128, .7);
}
.au-brand__live i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 9px 2px rgba(52, 211, 153, .65);
    animation: au-brand-blink 2.4s ease-in-out infinite;
}

@keyframes au-brand-pulse {
    0%, 100% { opacity: .62; transform: scale(.97); }
    50% { opacity: 1; transform: scale(1.05); }
}
@keyframes au-brand-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

@media (max-width: 760px) {
    .au-brand { gap: 10px; padding: 4px 8px 4px 4px; }
    .au-brand .deck-emblem { width: clamp(46px, 11vw, 60px); }
    .au-brand__word { font-size: 1.18rem; letter-spacing: .12em; }
    .au-brand__word small { font-size: .48rem; letter-spacing: .36em; }
    .au-brand__live { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .au-brand__halo, .au-brand__live i { animation: none !important; }
}
