/* BlueNova Pilot Auth - login, register, rules */

body.pilot-auth-layout {
    background: #040810;
}

body.pilot-auth-layout .pilot-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 100;
    background: rgba(4, 8, 16, 0.82);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

body.pilot-auth-layout .pilot-header__inner--auth {
    max-width: none;
    width: 100%;
    padding: 0 40px;
}

body.pilot-auth-layout .pilot-brand__tag {
    color: rgba(255, 255, 255, 0.5);
}

body.pilot-auth-layout .pilot-footer__disclaimer {
    display: none;
}

body.pilot-auth-layout .pilot-footer__meta {
    color: rgba(255, 255, 255, 0.35);
}

body.pilot-auth-layout .alert {
    position: relative;
    z-index: 110;
}

body.pilot-auth-layout .alert .container {
    max-width: none;
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

.pilot-auth-shell--rules {
    grid-template-columns: minmax(280px, 0.34fr) minmax(0, 0.66fr);
}

.pilot-auth-shell--rules .pilot-auth-panel {
    position: sticky;
    top: 72px;
    align-self: start;
    min-height: calc(100vh - 72px);
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
}

.pilot-auth-shell--rules .pilot-auth-panel__content {
    max-width: min(100%, 340px);
    margin-inline: auto;
}

.pilot-auth-shell--rules .pilot-auth-panel__back {
    margin-bottom: 18px;
}

.pilot-auth-shell--rules .pilot-auth-panel__brand {
    align-items: center;
    margin-bottom: 16px;
}

.pilot-auth-shell--rules .pilot-auth-panel__title {
    text-align: center;
    margin-bottom: 8px;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.pilot-auth-shell--rules .pilot-auth-panel__lead {
    text-align: center;
    margin-inline: auto;
    margin-bottom: 16px;
    max-width: 32ch;
}

.pilot-auth-shell--rules .pilot-auth-panel__stats {
    margin-bottom: 14px;
}

.pilot-auth-shell--rules .pilot-auth-panel__feat {
    padding: 9px 11px;
}

.pilot-auth-shell--rules .pilot-auth-main,
.pilot-auth-main--rules {
    justify-content: flex-start;
    align-items: center;
    padding: 28px 28px 48px;
}

.pilot-auth-card--rules {
    max-width: 800px;
}

.pilot-auth-card--rules.pilot-auth-card--elevated {
    padding: 32px 34px 28px;
}

.pilot-auth-card__head--rules {
    text-align: left;
    margin-bottom: 20px;
}

.pilot-auth-card__head--rules h1 {
    font-size: 24px;
}

.pilot-auth-card__head--rules p {
    max-width: none;
}

body.pilot-auth-layout .pilot-footer {
    background: #040810;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.pilot-auth-layout .pilot-layout {
    display: block;
    min-height: 100vh;
}

body.pilot-auth-layout .pilot-main {
    padding: 0;
    max-width: none;
    width: 100%;
}

/* ── Shell ── */
.pilot-auth-shell {
    display: grid;
    grid-template-columns: minmax(300px, 0.4fr) minmax(0, 0.6fr);
    width: 100%;
    min-height: calc(100vh - 72px);
    padding-top: 72px;
    align-items: stretch;
}

.pilot-auth-shell--wide {
    grid-template-columns: minmax(280px, 0.36fr) minmax(0, 0.64fr);
}

/* ── Left panel ── */
.pilot-auth-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.pilot-auth-panel__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 20% 20%, rgba(26, 111, 232, 0.45), transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 75%, rgba(0, 207, 240, 0.2), transparent 50%),
        linear-gradient(160deg, #060d1a 0%, #0a1628 50%, #060d1a 100%);
    opacity: 1;
}

.pilot-auth-panel__mesh::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 8, 16, 0.2) 0%, rgba(4, 8, 16, 0.75) 100%);
}

.pilot-auth-panel__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.pilot-auth-panel__orb--1 {
    width: 240px;
    height: 240px;
    background: rgba(26, 111, 232, 0.3);
    top: 8%;
    right: -8%;
}

.pilot-auth-panel__orb--2 {
    width: 180px;
    height: 180px;
    background: rgba(0, 207, 240, 0.18);
    bottom: 12%;
    left: -6%;
}

.pilot-auth-panel__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
}

.pilot-auth-panel__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin-bottom: 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.55);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pilot-auth-panel__back::before {
    content: '←';
}

.pilot-auth-panel__back:hover {
    color: #fff;
    border-color: rgba(0, 207, 240, 0.35);
    background: rgba(0, 207, 240, 0.08);
}

.pilot-auth-panel__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.pilot-auth-panel__logo {
    display: block;
    height: 48px;
    width: auto;
    max-width: 280px;
    padding: 4px 10px;
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.pilot-auth-panel__brand-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 207, 240, 0.1);
    border: 1px solid rgba(0, 207, 240, 0.2);
    color: #00CFF0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pilot-auth-panel__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: #fff;
}

.pilot-auth-panel__title em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    background: linear-gradient(135deg, #1A6FE8, #00CFF0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pilot-auth-panel__lead {
    margin: 0 0 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.65;
    max-width: 40ch;
}

.pilot-auth-panel__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    border: none;
}

.pilot-auth-panel__stats div {
    padding: 12px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.pilot-auth-panel__stats strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 2px;
}

.pilot-auth-panel__stats span {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.pilot-auth-panel__features {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pilot-auth-panel__feat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.35;
}

.pilot-auth-panel__feat i {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(26, 111, 232, 0.2);
    color: #00CFF0;
    font-size: 12px;
    flex-shrink: 0;
}

/* ── Right main ── */
.pilot-auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 32px 40px 48px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(ellipse at 0% 100%, rgba(26, 111, 232, 0.1), transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(0, 207, 240, 0.06), transparent 45%),
        #060d1a;
}

.pilot-auth-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
    pointer-events: none;
    opacity: 0.45;
}

.pilot-auth-main--register {
    justify-content: flex-start;
    align-items: center;
    padding: 28px 28px 48px;
}

.pilot-auth-shell--register {
    grid-template-columns: minmax(280px, 0.34fr) minmax(0, 0.66fr);
}

.pilot-auth-main--login {
    justify-content: center;
    padding: 32px 24px 48px;
}

.pilot-auth-shell--login {
    grid-template-columns: minmax(300px, 0.42fr) minmax(0, 0.58fr);
}

/* ── Card ── */
.pilot-auth-card--elevated {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    background: rgba(8, 16, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    padding: 32px 36px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 24px 64px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

.pilot-auth-card--elevated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 36px;
    right: 36px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, #1A6FE8, #00CFF0, #7C5CFC);
}

.pilot-auth-card--login {
    max-width: 440px;
}

.pilot-auth-card--register {
    max-width: 720px;
}

.pilot-auth-card--register.pilot-auth-card--elevated {
    padding: 32px 34px 28px;
}

.pilot-auth-card__head--register {
    text-align: left;
    margin-bottom: 18px;
}

.pilot-auth-card__head--register h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.pilot-auth-card__hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.52);
}

.pilot-auth-card__hint strong {
    color: #00CFF0;
    font-weight: 700;
}

.pilot-auth-card--register .pilot-auth-card__head {
    text-align: left;
}

.pilot-auth-card--login.pilot-auth-card--elevated {
    padding: 34px 36px 30px;
}

.pilot-auth-card__head {
    margin: 0 0 24px;
    text-align: center;
}

.pilot-auth-card__badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #00CFF0;
    background: rgba(26, 111, 232, 0.18);
    border: 1px solid rgba(0, 207, 240, 0.2);
}

.pilot-auth-card__head h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.15;
}

.pilot-auth-card__head p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
}

.pilot-auth-card--login .pilot-auth-card__head p {
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
}

.pilot-auth-card__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin: 0 0 16px;
}

.pilot-auth-card__trust span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    line-height: 1.2;
}

.pilot-auth-card__trust span.is-live {
    color: #6EE7B7;
    background: rgba(13, 159, 110, 0.15);
    border-color: rgba(13, 159, 110, 0.3);
}

.pilot-auth-card__trust span.is-live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #10B981;
    animation: pilotAuthPulse 2s infinite;
}

@keyframes pilotAuthPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* ── Steps ── */
.pilot-auth-steps-wrap {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pilot-auth-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pilot-auth-steps__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 8px;
    min-width: 0;
}

.pilot-auth-steps__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.pilot-auth-steps__item.is-done:not(:last-child)::after {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.55), rgba(255, 255, 255, 0.12));
}

.pilot-auth-steps__dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.pilot-auth-steps__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.38);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pilot-auth-steps__item.is-done .pilot-auth-steps__dot {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    color: transparent;
}

.pilot-auth-steps__item.is-done .pilot-auth-steps__dot::after {
    content: '✓';
    position: absolute;
    color: #6EE7B7;
    font-size: 13px;
}

.pilot-auth-steps__item.is-done .pilot-auth-steps__dot span {
    visibility: hidden;
}

.pilot-auth-steps__item.is-active .pilot-auth-steps__dot {
    background: linear-gradient(135deg, #1A6FE8, #00CFF0);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(26, 111, 232, 0.4);
}

.pilot-auth-steps__item.is-active .pilot-auth-steps__label,
.pilot-auth-steps__item.is-done .pilot-auth-steps__label {
    color: rgba(255, 255, 255, 0.85);
}

/* ── Form sections ── */
.pilot-form--register {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pilot-auth-register-sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 4px;
}

.pilot-auth-section {
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.pilot-auth-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 13px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.pilot-auth-section__title i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(26, 111, 232, 0.2);
    color: #00CFF0;
    font-size: 11px;
    flex-shrink: 0;
}

.pilot-auth-section__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Grid & fields ── */
.pilot-auth-grid {
    display: grid;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.pilot-auth-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

body.pilot-auth-layout .pilot-form--register .pilot-field {
    margin: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

body.pilot-auth-layout .pilot-field--readonly-wrap .pilot-field--readonly {
    opacity: 0.85;
}

body.pilot-auth-layout .pilot-field label {
    display: block;
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.3;
}

body.pilot-auth-layout .pilot-field label .req {
    color: #00CFF0;
    font-weight: 800;
}

body.pilot-auth-layout .pilot-field input,
body.pilot-auth-layout .pilot-field select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

body.pilot-auth-layout .pilot-field input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

body.pilot-auth-layout .pilot-field input:focus,
body.pilot-auth-layout .pilot-field select:focus {
    outline: none;
    border-color: rgba(0, 207, 240, 0.45);
    background: rgba(0, 0, 0, 0.38);
    box-shadow: 0 0 0 3px rgba(26, 111, 232, 0.18);
}

body.pilot-auth-layout .pilot-field__wrap {
    position: relative;
    display: block;
    width: 100%;
}

body.pilot-auth-layout .pilot-field__wrap input {
    padding-left: 40px;
}

body.pilot-auth-layout .pilot-field__icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

body.pilot-auth-layout .pilot-field__wrap:focus-within .pilot-field__icon {
    color: #00CFF0;
}

body.pilot-auth-layout .pilot-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7f99' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

body.pilot-auth-layout .pilot-field select option {
    background: #0b1628;
    color: #fff;
}

body.pilot-auth-layout .pilot-field--readonly {
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    cursor: not-allowed;
}

body.pilot-auth-layout input[type="date"] {
    color-scheme: dark;
}

/* ── Login form ── */
.pilot-form--login {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pilot-auth-section--login {
    margin-bottom: 0;
}

.pilot-auth-section--login .pilot-auth-section__body {
    padding: 16px;
    gap: 14px;
}

body.pilot-auth-layout .pilot-form--login .pilot-field {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.pilot-auth-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.pilot-auth-login-row .pilot-check {
    margin: 0;
}

.pilot-auth-login-row .pilot-link {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #00CFF0;
    text-decoration: none;
    white-space: nowrap;
}

.pilot-auth-login-row .pilot-link:hover {
    color: #fff;
}

.pilot-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 18px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pilot-auth-divider::before,
.pilot-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.pilot-auth-alt--login {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.pilot-auth-alt--login p {
    margin: 0 0 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.pilot-demo-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(26, 111, 232, 0.08);
    border: 1px solid rgba(0, 207, 240, 0.14);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

.pilot-demo-chip__sep {
    color: rgba(255, 255, 255, 0.25);
}

/* Login form spacing */
body.pilot-auth-layout .pilot-form--modern:not(.pilot-form--register):not(.pilot-form--login) .pilot-field {
    margin-bottom: 16px;
}

body.pilot-auth-layout .pilot-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

body.pilot-auth-layout .pilot-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
}

body.pilot-auth-layout .pilot-check input {
    width: auto;
    height: auto;
    accent-color: #00CFF0;
}

.pilot-auth-form-foot {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.pilot-auth-layout .pilot-check--box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
}

body.pilot-auth-layout .pilot-check--box span {
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

/* ── Register footer ── */
.pilot-auth-register-foot {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.pilot-auth-layout .pilot-reg-notice {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.55;
    background: rgba(26, 111, 232, 0.1);
    border: 1px solid rgba(0, 207, 240, 0.16);
    color: rgba(255, 255, 255, 0.62);
}

body.pilot-auth-layout .pilot-reg-notice p {
    margin: 0;
}

body.pilot-auth-layout .pilot-reg-notice strong {
    color: #00CFF0;
    font-weight: 700;
}

.pilot-auth-alt--register {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    text-align: center;
}

.pilot-auth-alt--register p {
    margin: 0 0 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.48);
}

/* ── Buttons & footer ── */
body.pilot-auth-layout .pilot-btn--block {
    width: 100%;
    justify-content: center;
}

body.pilot-auth-layout .pilot-btn--lg {
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 10px;
    gap: 10px;
}

body.pilot-auth-layout .pilot-btn--glow {
    border-radius: 10px;
    font-weight: 700;
}

body.pilot-auth-layout .pilot-btn--ghost {
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

body.pilot-auth-layout .pilot-btn--ghost:hover {
    color: #fff;
    border-color: rgba(0, 207, 240, 0.4);
    background: rgba(0, 207, 240, 0.1);
}

.pilot-auth-alt {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.pilot-auth-alt p {
    margin: 0 0 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.pilot-auth-alt__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pilot-auth-alt__links a {
    font-size: 13px;
    font-weight: 600;
    color: #00CFF0;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 207, 240, 0.2);
    background: rgba(0, 207, 240, 0.06);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pilot-auth-alt__links a:hover {
    background: rgba(0, 207, 240, 0.12);
    border-color: rgba(0, 207, 240, 0.35);
    color: #fff;
}

.pilot-demo-chip__label {
    font-weight: 700;
    color: #00CFF0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 10px;
}

.pilot-demo-chip code {
    font-family: ui-monospace, monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
}

body.pilot-auth-layout .pilot-link {
    color: #00CFF0;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

body.pilot-auth-layout .pilot-link:hover {
    color: #fff;
}

/* legacy non-auth notice */
body.pilot-center:not(.pilot-auth-layout) .pilot-reg-notice {
    margin-top: 20px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(0, 207, 240, 0.08), rgba(26, 111, 232, 0.08));
    border: 1px solid rgba(0, 207, 240, 0.2);
    border-radius: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

body.pilot-center:not(.pilot-auth-layout) .pilot-reg-notice strong {
    color: #00CFF0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .pilot-auth-card--register {
        max-width: 100%;
    }
}

@media (max-width: 960px) {
    .pilot-auth-shell,
    .pilot-auth-shell--wide {
        grid-template-columns: 1fr;
    }

    .pilot-auth-panel {
        padding: 28px 20px 24px;
        justify-content: flex-start;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .pilot-auth-shell--rules .pilot-auth-panel {
        justify-content: center;
    }

    .pilot-auth-panel__features {
        display: none;
    }

    .pilot-auth-main,
    .pilot-auth-main--register,
    .pilot-auth-main--login,
    .pilot-auth-main--rules {
        padding: 20px 16px 36px;
    }

    .pilot-auth-card--login.pilot-auth-card--elevated {
        padding: 24px 18px 22px;
    }

    .pilot-auth-card--register.pilot-auth-card--elevated {
        padding: 24px 18px 22px;
    }

    .pilot-auth-steps-wrap {
        padding: 10px 12px;
    }

    .pilot-auth-login-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pilot-auth-login-row .pilot-link {
        margin-left: 0;
    }

    .pilot-auth-card--elevated {
        padding: 24px 18px;
        border-radius: 14px;
    }

    .pilot-auth-card__head h1 {
        font-size: 22px;
    }

    .pilot-auth-grid--2 {
        grid-template-columns: 1fr;
    }

    .pilot-auth-section__body {
        padding: 14px;
    }
}

@media (max-width: 400px) {
    .pilot-auth-steps__label {
        font-size: 10px;
    }

    .pilot-auth-panel__stats {
        grid-template-columns: 1fr;
    }

    .pilot-auth-rules__stats {
        grid-template-columns: 1fr;
    }
}

/* ═══ Rules page ═══ */
.pilot-auth-rules__overview {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

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

.pilot-auth-rules__stat {
    padding: 12px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    text-align: center;
    min-width: 0;
}

.pilot-auth-rules__stat--accent {
    border-color: rgba(0, 207, 240, 0.28);
    background: rgba(26, 111, 232, 0.12);
}

.pilot-auth-rules__stat span {
    display: block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.42);
    margin-bottom: 5px;
    line-height: 1.2;
}

.pilot-auth-rules__stat strong {
    display: block;
    color: #fff;
    font-size: 17px;
    line-height: 1;
    font-weight: 800;
}

.pilot-auth-rules__notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 12px;
    background: rgba(26, 111, 232, 0.1);
    border: 1px solid rgba(26, 111, 232, 0.22);
}

.pilot-auth-rules__notice i {
    color: #00CFF0;
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 14px;
}

.pilot-auth-rules__notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}

.pilot-auth-rules__notice a {
    color: #00CFF0;
    font-weight: 600;
    text-decoration: none;
}

.pilot-auth-rules__notice a:hover {
    color: #fff;
}

.pilot-auth-rules__highlights {
    margin-bottom: 18px;
}

.pilot-auth-rules__highlights-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pilot-auth-rules__highlights-title i {
    color: #f59e0b;
    font-size: 11px;
}

.pilot-auth-rules__highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.pilot-auth-rules__highlight {
    padding: 12px 13px;
    border-radius: 11px;
    background: rgba(245, 158, 11, 0.07);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.pilot-auth-rules__highlight p {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.76);
}

.pilot-auth-rules__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(26, 111, 232, 0.22);
    border: 1px solid rgba(0, 207, 240, 0.3);
    color: #9ed8f7;
    font-size: 10px;
    font-weight: 700;
}

.pilot-auth-rules__content {
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.pilot-auth-rules__content-head {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.pilot-auth-rules__content-head h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.pilot-auth-rules__toc {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pilot-auth-rules__toc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    line-height: 1.2;
}

.pilot-auth-rules__toc-link:hover {
    color: #fff;
    border-color: rgba(0, 207, 240, 0.32);
    background: rgba(26, 111, 232, 0.14);
}

.pilot-auth-rules__toc-link i {
    color: #00CFF0;
    font-size: 10px;
}

.pilot-auth-rules__doc {
    margin: 0;
}

.pilot-auth-rules__doc--scroll {
    max-height: min(48vh, 440px);
    overflow-y: auto;
    padding: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.pilot-auth-rules__doc--scroll::-webkit-scrollbar {
    width: 6px;
}

.pilot-auth-rules__doc--scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

body.pilot-auth-layout .pilot-auth-rules__doc .pilot-aev-rules-page__sections {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.pilot-auth-layout .pilot-auth-rules__doc .pilot-aev-rules-page__section {
    background: rgba(0, 0, 0, 0.22) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

body.pilot-auth-layout .pilot-auth-rules__doc .pilot-aev-rules-page__section-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

body.pilot-auth-layout .pilot-auth-rules__doc .pilot-aev-rules-page__section-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(26, 111, 232, 0.18) !important;
    border: 1px solid rgba(0, 207, 240, 0.24) !important;
    color: #00CFF0 !important;
    font-size: 13px;
}

body.pilot-auth-layout .pilot-auth-rules__doc .pilot-aev-rules-page__section-head h2 {
    margin: 0;
    font-size: 14px !important;
    color: #fff !important;
    line-height: 1.3;
}

body.pilot-auth-layout .pilot-auth-rules__doc .pilot-aev-rules-page__section-head span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.42) !important;
}

body.pilot-auth-layout .pilot-auth-rules__doc .pilot-aev-rules-page__list {
    list-style: none;
    margin: 0;
    padding: 12px 14px 14px !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.pilot-auth-layout .pilot-auth-rules__doc .pilot-aev-rules-page__rule {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
}

body.pilot-auth-layout .pilot-auth-rules__doc .pilot-aev-rules-page__rule.is-highlight {
    border-color: rgba(245, 158, 11, 0.28) !important;
    background: rgba(245, 158, 11, 0.08) !important;
}

body.pilot-auth-layout .pilot-auth-rules__doc .pilot-aev-rules-page__rule p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76) !important;
    font-size: 13px;
    line-height: 1.55;
}

body.pilot-auth-layout .pilot-auth-rules__doc .pilot-aev-rules-page__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(26, 111, 232, 0.2) !important;
    border: 1px solid rgba(0, 207, 240, 0.28) !important;
    color: #b8e8ff !important;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.pilot-auth-rules__accept {
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pilot-auth-rules__agree {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

.pilot-rules-accept {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
}

body.pilot-auth-layout .pilot-rules-accept .bn-captcha {
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

body.pilot-auth-layout .pilot-rules-accept .pilot-check--box {
    margin: 0;
}

body.pilot-auth-layout .pilot-auth-footer {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.48);
}

body.pilot-auth-layout .pilot-auth-footer a {
    margin-left: 6px;
    font-weight: 700;
    color: #00CFF0;
    text-decoration: none;
}

body.pilot-auth-layout .pilot-auth-footer a:hover {
    color: #fff;
}

@media (max-width: 1080px) {
    .pilot-auth-shell--rules {
        grid-template-columns: 1fr;
    }

    .pilot-auth-shell--rules .pilot-auth-panel {
        position: relative;
        top: auto;
        min-height: auto;
        justify-content: center;
        align-items: center;
        padding: 24px 20px 20px;
    }

    .pilot-auth-main--rules {
        padding: 20px 16px 36px;
    }

    .pilot-auth-card--rules.pilot-auth-card--elevated {
        padding: 24px 18px 22px;
    }

    .pilot-auth-rules__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pilot-auth-rules__doc--scroll {
        max-height: none;
    }

    .pilot-auth-rules__highlight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pilot-auth-panel {
        padding: 24px 16px 20px;
    }

    .pilot-auth-main,
    .pilot-auth-main--register,
    .pilot-auth-main--login,
    .pilot-auth-main--rules {
        padding: 16px 14px 28px;
    }

    .pilot-auth-card--login.pilot-auth-card--elevated,
    .pilot-auth-card--register.pilot-auth-card--elevated,
    .pilot-auth-card--elevated {
        padding: 20px 16px;
    }

    .pilot-auth-card__head h1 {
        font-size: 20px;
    }

    .pilot-auth-rules__stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pilot-auth-grid,
    .pilot-auth-grid--2 {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .pilot-auth-panel {
        padding: 20px 12px 16px;
    }

    .pilot-auth-main,
    .pilot-auth-main--register,
    .pilot-auth-main--login,
    .pilot-auth-main--rules {
        padding: 14px 12px 24px;
    }

    .pilot-auth-card--login.pilot-auth-card--elevated,
    .pilot-auth-card--register.pilot-auth-card--elevated,
    .pilot-auth-card--elevated,
    .pilot-auth-card--rules.pilot-auth-card--elevated {
        padding: 18px 14px;
        border-radius: 12px;
    }

    .pilot-auth-steps-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pilot-auth-steps {
        min-width: 280px;
    }

    body.pilot-auth-layout .pilot-auth-footer {
        padding: 14px 12px;
        font-size: 12px;
    }
}

@supports (padding: max(0px)) {
    body.pilot-auth-layout .pilot-auth-header {
        padding-top: max(12px, env(safe-area-inset-top));
    }

    body.pilot-auth-layout .pilot-auth-footer {
        padding-bottom: max(14px, env(safe-area-inset-bottom));
    }
}
