:root {
    --bg: #0b022c;
    --bg-alt: #12083f;
    --card: rgba(16, 12, 44, 0.96);
    --text: #f3f1ff;
    --text-muted: rgba(243, 241, 255, 0.7);
    --accent: #7d64ff;
    --accent-bright: #35d3ff;
    --accent-soft: rgba(125, 100, 255, 0.3);
    --glow: rgba(53, 211, 255, 0.4);
    --app-safe-area-top: env(safe-area-inset-top, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
    background:
        radial-gradient(600px 320px at 20% -10%, rgba(125, 100, 255, 0.45), transparent 70%),
        radial-gradient(520px 320px at 90% 10%, rgba(53, 211, 255, 0.3), transparent 70%),
        radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.06), transparent 55%),
        var(--bg);
}

html.is-standalone-webapp body {
    min-height: 100dvh;
}

html.is-standalone-webapp.is-mobile body {
    background: var(--bg);
}

.webapp-statusbar {
    display: none;
}

html.is-standalone-webapp.is-mobile .webapp-statusbar {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--app-safe-area-top);
    z-index: 2147483647;
    pointer-events: none;
    background: var(--bg);
}

body.is-loading {
    overflow: hidden;
}

.global-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 3, 22, 0.7);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
    z-index: 9999;
}

.global-loader__box {
    display: grid;
    gap: 12px;
    justify-items: center;
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(16, 12, 44, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 35px rgba(5, 5, 18, 0.5);
}

.global-loader__spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--accent-bright);
    animation: loader-spin 0.9s linear infinite;
}

.global-loader__text {
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

body.is-loading .global-loader {
    opacity: 1;
    pointer-events: all;
}

html.tg-auto-login-pending body {
    overflow: hidden;
}

html.tg-auto-login-pending body .page-transition {
    opacity: 0;
    pointer-events: none;
}

html.tg-auto-login-pending body .global-loader {
    opacity: 1;
    pointer-events: all;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.page-transition {
    opacity: 1;
    transform: scale(0.985);
    transform-origin: 50% 20%;
    transition: opacity 140ms ease, transform 140ms ease;
}

body.is-ready .page-transition {
    opacity: 1;
    transform: scale(1);
}

body.is-exiting .page-transition {
    opacity: 0;
    transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
    .page-transition {
        opacity: 1;
        transform: none;
        transition: none;
    }

    body.is-exiting .page-transition {
        opacity: 1;
        transform: none;
    }
}

.onboarding {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
}

.screen {
    width: min(430px, 100%);
    min-height: 88vh;
    padding: 36px 24px 32px;
    border-radius: 36px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.04), transparent 55%),
        radial-gradient(circle at 70% 30%, rgba(97, 79, 254, 0.12), transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(24, 15, 64, 0.8), transparent 65%),
        var(--card);
    box-shadow: 0 24px 40px rgba(4, 4, 16, 0.55);
    position: relative;
    overflow: hidden;
}

.screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180" viewBox="0 0 180 180"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" /></filter><rect width="180" height="180" filter="url(%23n)" opacity="0.35" /></svg>');
    opacity: 0.35;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.screen__header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.screen__header h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    flex: 1;
    text-align: center;
}

.screen__subtitle {
    text-align: center;
    font-size: 15px;
    color: #d2d5de;
    margin-top: 12px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.screen--name .screen__subtitle {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.5;
}

.screen__copy {
    text-align: center;
    font-size: 16px;
    color: #d2d5de;
    line-height: 1.5;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.screen__back {
    width: auto;
    height: auto;
    border-radius: 0;
    border: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screen__back svg {
    width: 26px;
    height: 26px;
}

.screen__back:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.progress {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.progress__bar {
    height: 8px;
    flex: 1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.progress__bar--active {
    background: #614ffe;
    box-shadow: 0 0 10px rgba(97, 79, 254, 0.5);
}

.progress__label {
    font-size: 14px;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.gender-orbit {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.gender-orbit__ring {
    width: 210px;
    max-width: 100%;
    height: auto;
    opacity: 0.9;
}

.gender-orbit__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 160px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.gender-orbit__svg {
    --orbit-ty: -50%;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: auto;
    opacity: 0;
    transform: translate(-50%, var(--orbit-ty)) scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.gender-orbit__svg--female,
.gender-orbit__svg--male {
    width: 35px;
}

.gender-orbit__svg--other {
    width: 58px;
}

.gender-orbit__svg.is-active {
    opacity: 1;
    transform: translate(-50%, var(--orbit-ty)) scale(1);
}

.screen--gender {
    display: flex;
    flex-direction: column;
}

.screen--gender .gender-orbit {
    flex: 1;
    min-height: 220px;
}

.screen--gender .screen__subtitle {
    margin-top: 0;
}

.wheel {
    margin: 26px auto 18px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.zodiac-wheel {
    --zodiac-rotation: 0deg;
    --sign-radius: clamp(120px, 36vw, 170px);
    --sign-offset-y: 8px;
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
}

.zodiac-wheel__viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, rgba(0, 0, 0, 0.4) 92%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 78%, rgba(0, 0, 0, 0.4) 92%, transparent 100%);
}

.zodiac-wheel__disc {
    position: absolute;
    left: 50%;
    top: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.08), transparent 58%),
        radial-gradient(circle at 50% 50%, rgba(97, 79, 254, 0.2), transparent 62%),
        radial-gradient(circle at 50% 50%, rgba(115, 233, 254, 0.18), transparent 72%);
    box-shadow:
        inset 0 0 24px rgba(12, 10, 28, 0.6),
        inset 0 0 50px rgba(96, 72, 255, 0.25),
        0 24px 45px rgba(8, 6, 22, 0.55);
}

.zodiac-wheel__disc::after {
    content: '';
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background:
        radial-gradient(2px 2px at 12% 22%, rgba(255, 255, 255, 0.5) 0 100%, transparent 110%),
        radial-gradient(1.5px 1.5px at 28% 18%, rgba(255, 255, 255, 0.4) 0 100%, transparent 110%),
        radial-gradient(1.8px 1.8px at 42% 28%, rgba(255, 255, 255, 0.35) 0 100%, transparent 110%),
        radial-gradient(1.6px 1.6px at 55% 16%, rgba(255, 255, 255, 0.45) 0 100%, transparent 110%),
        radial-gradient(2px 2px at 66% 28%, rgba(255, 255, 255, 0.4) 0 100%, transparent 110%),
        radial-gradient(1.4px 1.4px at 78% 20%, rgba(255, 255, 255, 0.4) 0 100%, transparent 110%),
        radial-gradient(1.6px 1.6px at 20% 42%, rgba(255, 255, 255, 0.3) 0 100%, transparent 110%),
        radial-gradient(1.2px 1.2px at 34% 46%, rgba(255, 255, 255, 0.35) 0 100%, transparent 110%),
        radial-gradient(1.8px 1.8px at 48% 40%, rgba(255, 255, 255, 0.45) 0 100%, transparent 110%),
        radial-gradient(1.4px 1.4px at 62% 44%, rgba(255, 255, 255, 0.3) 0 100%, transparent 110%),
        radial-gradient(1.6px 1.6px at 74% 40%, rgba(255, 255, 255, 0.35) 0 100%, transparent 110%),
        radial-gradient(1.3px 1.3px at 18% 62%, rgba(255, 255, 255, 0.4) 0 100%, transparent 110%),
        radial-gradient(1.8px 1.8px at 30% 68%, rgba(255, 255, 255, 0.45) 0 100%, transparent 110%),
        radial-gradient(1.2px 1.2px at 46% 64%, rgba(255, 255, 255, 0.35) 0 100%, transparent 110%),
        radial-gradient(1.6px 1.6px at 58% 70%, rgba(255, 255, 255, 0.4) 0 100%, transparent 110%),
        radial-gradient(1.5px 1.5px at 72% 66%, rgba(255, 255, 255, 0.35) 0 100%, transparent 110%);
    opacity: 0.6;
    pointer-events: none;
}

.zodiac-wheel__rings {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, transparent 58%, rgba(255, 255, 255, 0.2) 59%, transparent 60%),
        radial-gradient(circle at 50% 50%, transparent 70%, rgba(255, 255, 255, 0.16) 71%, transparent 72%),
        radial-gradient(circle at 50% 50%, transparent 82%, rgba(255, 255, 255, 0.18) 83%, transparent 84%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 65%);
    box-shadow:
        inset 0 0 18px rgba(255, 255, 255, 0.08),
        0 0 22px rgba(115, 233, 254, 0.2);
}

.zodiac-wheel__grid {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 180deg,
        rgba(255, 255, 255, 0.18) 0 1deg,
        transparent 1deg 30deg
    );
    -webkit-mask: radial-gradient(circle at 50% 50%, transparent 0 60%, #000 60% 100%);
    mask: radial-gradient(circle at 50% 50%, transparent 0 60%, #000 60% 100%);
    opacity: 0.6;
}

.zodiac-wheel__glow {
    position: absolute;
    inset: 30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(252, 61, 211, 0.5), transparent 70%);
    filter: blur(12px);
    opacity: 0.7;
}

.zodiac-wheel__rotor {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) rotate(var(--zodiac-rotation));
    transform-origin: center;
    transition: transform 0.7s cubic-bezier(0.3, 0.8, 0.2, 1);
}

.zodiac-wheel__signs {
    position: absolute;
    inset: 0;
}

.zodiac-wheel__sign {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 54px;
    transform:
        translate(-50%, -50%)
        rotate(var(--sign-angle))
        translateY(calc(var(--sign-radius) * -1 + var(--sign-offset-y)));
    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
    white-space: nowrap;
    opacity: 0.82;
    filter: drop-shadow(0 0 12px rgba(252, 61, 211, 0.18));
}

.zodiac-wheel__sign-label {
    font-family: 'Nunito', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    color: #73e9fe;
    text-align: center;
}

.zodiac-wheel__sign-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}

.zodiac-wheel__sign-icon .zodiac-inline-icon {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.zodiac-wheel__sign.is-active {
    opacity: 1;
    filter:
        drop-shadow(0 0 22px rgba(255, 233, 141, 0.28))
        drop-shadow(0 0 24px rgba(252, 61, 211, 0.4));
    transform:
        translate(-50%, -50%)
        rotate(var(--sign-angle))
        translateY(calc(var(--sign-radius) * -1 + var(--sign-offset-y)))
        scale(1.08);
}

.zodiac-wheel__sign.is-active .zodiac-wheel__sign-label {
    color: #9bf1ff;
}

.zodiac-wheel__sign:nth-child(1) { --sign-angle: -90deg; }
.zodiac-wheel__sign:nth-child(2) { --sign-angle: -60deg; }
.zodiac-wheel__sign:nth-child(3) { --sign-angle: -30deg; }
.zodiac-wheel__sign:nth-child(4) { --sign-angle: 0deg; }
.zodiac-wheel__sign:nth-child(5) { --sign-angle: 30deg; }
.zodiac-wheel__sign:nth-child(6) { --sign-angle: 60deg; }
.zodiac-wheel__sign:nth-child(7) { --sign-angle: 90deg; }
.zodiac-wheel__sign:nth-child(8) { --sign-angle: 120deg; }
.zodiac-wheel__sign:nth-child(9) { --sign-angle: 150deg; }
.zodiac-wheel__sign:nth-child(10) { --sign-angle: 180deg; }
.zodiac-wheel__sign:nth-child(11) { --sign-angle: 210deg; }
.zodiac-wheel__sign:nth-child(12) { --sign-angle: 240deg; }

.zodiac-wheel__pointer {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 2px;
    background: transparent;
}

.zodiac-wheel__pointer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: calc(var(--sign-radius) * 1.25);
    height: calc(var(--sign-radius) + 120px);
    transform: translateX(-50%);
    background: radial-gradient(60% 70% at 50% 100%, rgba(255, 255, 255, 0.52), rgba(252, 61, 211, 0.38) 45%, rgba(115, 233, 254, 0.2) 70%, transparent 100%);
    clip-path: polygon(50% 100%, 68% 0%, 32% 0%);
    opacity: 0.8;
    filter: blur(1px);
    mix-blend-mode: screen;
    pointer-events: none;
}

.zodiac-wheel__spark {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 70%);
    filter: blur(1px);
    opacity: 0.85;
}

.zodiac-wheel__spark--one {
    width: 20px;
    height: 20px;
    top: 18%;
    left: 22%;
}

.zodiac-wheel__spark--two {
    width: 28px;
    height: 28px;
    top: 34%;
    right: 20%;
}

.zodiac-wheel__spark--three {
    width: 16px;
    height: 16px;
    bottom: 22%;
    left: 48%;
}

.screen__copy {
    text-align: center;
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.screen a {
    color: var(--accent-bright);
    text-decoration: none;
    transition: color 0.2s ease;
}

.screen a:hover {
    color: #8fe8ff;
}

.success,
.error {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.success {
    background: rgba(25, 164, 99, 0.18);
    color: #aef3d1;
    border: 1px solid rgba(25, 164, 99, 0.35);
}

.error {
    background: rgba(220, 76, 76, 0.18);
    color: #ffb5b5;
    border: 1px solid rgba(220, 76, 76, 0.35);
}

.picker {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
}

.screen--name .picker {
    margin-top: 22px;
}

.screen--auth .picker {
    margin-top: 20px;
}

.picker__row {
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.picker__row--columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.picker__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.picker__field--placeholder {
    position: relative;
}

.is-mobile .picker__field--placeholder::after {
    content: attr(data-placeholder);
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(210, 213, 222, 0.7);
    font-size: 16px;
    letter-spacing: 0.02em;
    text-transform: none;
    pointer-events: none;
}

.is-mobile .picker__field--placeholder:focus-within::after,
.is-mobile .picker__field--placeholder[data-has-value="true"]::after {
    opacity: 0;
}

.picker__field input {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(9, 8, 24, 0.65);
    color: var(--text);
    font-size: 15px;
}


.name-input {
    height: 54px;
    border-radius: 16px;
    background: rgba(15, 12, 32, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 18px;
    padding-left: 18px;
}

.name-input::placeholder {
    color: rgba(210, 213, 222, 0.7);
}

.date-input {
    color-scheme: dark;
}

.time-input {
    color-scheme: dark;
}

.picker__field--wheel select {
    height: 190px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(9, 8, 24, 0.65);
    color: var(--text);
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.9;
    text-align: center;
    appearance: none;
}

.picker__field--wheel option {
    padding: 6px 0;
    background: rgba(9, 8, 24, 0.7);
    color: var(--text-muted);
}

.picker__field--wheel option:checked {
    color: var(--text);
    background: rgba(125, 100, 255, 0.35);
}

.picker__highlight {
    position: absolute;
    left: 0;
    right: 0;
    top: 60%;
    height: 42px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 0;
}

.gender-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
}

.gender-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(9, 8, 24, 0.6);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.gender-card input {
    display: none;
}

.gender-card__radio {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 4px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
    z-index: 1;
}

.gender-card__dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #614ffe;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gender-card__content {
    display: flex;
    align-items: center;
    flex: 1;
    z-index: 1;
}

.gender-card__title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.gender-card:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 100, 255, 0.6);
}

.gender-card input:checked + .gender-card__radio .gender-card__dot {
    opacity: 1;
}

.gender-card input:checked + .gender-card__radio {
    border-color: #614ffe;
}

.gender-card input:checked ~ .gender-card__content .gender-card__title {
    color: #fff;
    font-weight: 700;
}

.gender-card input:checked ~ .gender-card__glow {
    opacity: 1;
}

.gender-card__glow {
    display: block;
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(120deg, #ffe98d 0%, #fed694 10%, #fc3dd3 91%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 0;
}

.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.actions .button {
    width: 100%;
}

.actions--single {
    grid-template-columns: 1fr;
}

.screen--name .actions {
    justify-items: center;
}

.actions--single .button {
    width: min(390px, 100%);
    height: 48px;
    padding: 14px 8px;
    border-radius: 16px;
    border: 2px solid #614ffe;
    background: #614ffe;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 16px;
    line-height: 20px;
    text-transform: none;
    letter-spacing: 0;
    backdrop-filter: blur(10.5px);
    box-shadow: none;
}

.actions--single .button:hover {
    transform: none;
    box-shadow: none;
}

.button {
    padding: 14px 0;
    border-radius: 999px;
    border: none;
    background: linear-gradient(120deg, var(--accent), var(--accent-bright));
    color: var(--text);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(53, 211, 255, 0.25);
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(53, 211, 255, 0.3);
}

.actions .button:not(.button--ghost) {
    height: 48px;
    padding: 14px 8px;
    border-radius: 16px;
    border: 2px solid #614ffe;
    background: #614ffe;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 16px;
    line-height: 20px;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}

.actions .button:not(.button--ghost):hover {
    transform: none;
    box-shadow: none;
}

.button--ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 14px 8px;
    background: rgba(255, 255, 255, 0.01);
    border: 2px solid #614ffe;
    border-radius: 16px;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 16px;
    line-height: 20px;
    text-transform: none;
    letter-spacing: 0;
    backdrop-filter: blur(10.5px);
    box-shadow: none;
    justify-self: stretch;
}

.button--ghost:visited,
.button--ghost:hover,
.button--ghost:active {
    color: #ffffff;
}

.auth-links {
    margin-top: 18px;
    margin-bottom: 12px;
}

.telegram-login {
    margin-top: 16px;
    padding: 16px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 8, 24, 0.55);
    text-align: center;
    position: relative;
    z-index: 1;
}

.telegram-login h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

@media (max-width: 520px) {
    .onboarding {
        align-items: stretch;
        justify-content: stretch;
        padding: 0;
    }

    .screen {
        min-height: 100vh;
        padding: 24px 20px 28px;
        border-radius: 0;
        box-shadow: none;
        width: 100%;
        flex: 1;
    }

    html.is-standalone-webapp .screen {
        min-height: 100dvh;
        padding-top: max(24px, var(--app-safe-area-top));
    }

    .picker__row--columns {
        grid-template-columns: 1fr;
    }

    .picker__highlight {
        top: 64%;
    }

    .gender-grid {
        grid-template-columns: 1fr;
    }

    .actions {
        grid-template-columns: 1fr;
    }

    .actions.actions--split {
        grid-template-columns: 1fr 1fr;
    }

    .zodiac-wheel {
        --sign-offset-y: -5px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
