/* ====================================================================
   AXOID — REDESIGN v2.0
   Стиль в духе design.axo.su: editorial, минимализм, #000
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg:             #000;
    --surface:        rgba(255,255,255,.03);
    --border:         rgba(255,255,255,.1);
    --border-focus:   rgba(255,255,255,.55);
    --input-bg:       rgba(255,255,255,.04);
    --text:           #fff;
    --text-muted:     rgba(255,255,255,.45);
    --text-dim:       rgba(255,255,255,.2);
    --error:          #ff4444;
    --error-bg:       rgba(255,68,68,.08);
    --success:        #00ff88;
    --success-bg:     rgba(0,255,136,.08);
    --font:           'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --r-card:         20px;
    --r-input:        12px;
    --r-btn:          100px;

    /* legacy compat */
    --bg-color:             #000;
    --glass-bg:             rgba(255,255,255,.03);
    --glass-border:         rgba(255,255,255,.1);
    --input-border:         rgba(255,255,255,.1);
    --input-focus-border:   #fff;
    --input-icon-color:     rgba(255,255,255,.35);
    --text-primary:         #fff;
    --text-secondary:       rgba(255,255,255,.45);
    --link-color:           rgba(255,255,255,.7);
    --accent-color:         #fff;
    --accent-hover:         rgba(255,255,255,.88);
    --accent-text-color:    #000;
    --error-color:          #ff4444;
    --success-color:        #00ff88;
    --border-radius-main:   20px;
    --border-radius-input:  12px;
    --border-radius-button: 100px;
    --font-family:          'Inter', -apple-system, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; cursor: none !important; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    /* очень тихий radial highlight вместо фоновой картинки */
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,255,255,.04), transparent);
}

.hidden { display: none !important; }

/* ====================================================================
   CUSTOM CURSOR
   ==================================================================== */

#cur {
    position: fixed;
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%,-50%);
    transition: width .2s, height .2s, border-color .2s, background .2s;
}
#cur-dot {
    position: fixed;
    width: 5px; height: 5px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%,-50%);
    transition: transform .08s;
}
body:has(a:hover) #cur,
body:has(button:hover) #cur,
body:has(input:focus) #cur,
body:has(label:hover) #cur {
    width: 56px; height: 56px;
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.75);
}

/* ====================================================================
   NAVBAR — fixed, compact, editorial
   ==================================================================== */

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 64px;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity .2s;
}
.nav-logo:hover { opacity: .75; }
.nav-logo:hover::after { display: none; } /* убираем старый after */
.nav-logo img {
    height: 22px;
    width: auto;
    opacity: .9;
    filter: none;
}
.nav-logo span {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255,255,255,.9);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-links a {
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: rgba(255,255,255,.38);
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: color .2s, background .2s;
    margin-left: 0;
}
.nav-links a::before { display: none; }
.nav-links a:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
}

/* pill-кнопка справа в navbar */
.nav-cta {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 100px;
    padding: 7px 18px;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
    white-space: nowrap;
}
.nav-cta:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* ====================================================================
   AUTH WRAPPER
   ==================================================================== */

.auth-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 1rem 3rem; /* учитываем fixed navbar */
    position: relative;
    z-index: 5;
    width: 100%;
    animation: fadeInUp .7s cubic-bezier(.16,1,.3,1) both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ====================================================================
   FORM CARD
   ==================================================================== */

.glass-form {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r-card);
    padding: 2.75rem 2.5rem;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    animation: cardIn .7s cubic-bezier(.16,1,.3,1) both;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.04) inset,
        0 32px 64px rgba(0,0,0,.6);
}

@keyframes cardIn {
    from { opacity: 0; transform: scale(.97) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* тихая линия сверху */
.glass-form::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    pointer-events: none;
}

/* ====================================================================
   FORM CONTAINERS
   ==================================================================== */

.form-container {
    width: 100%;
    animation: formSlideIn .4s cubic-bezier(.16,1,.3,1) both;
}
@keyframes formSlideIn {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}
.form-container.hidden { display: none !important; }
.form-container.active { display: block !important; }

/* ====================================================================
   FORM TITLE
   ==================================================================== */

.form-title {
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -.05em;
    line-height: .95;
    text-align: center;
    color: #fff;
    margin: 0 0 2rem;
    /* без gradient-clip — чище смотрится */
}

/* ====================================================================
   REGISTRATION PROGRESS
   ==================================================================== */

.registration-progress {
    display: flex;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 2rem;
    position: relative;
}
.registration-progress::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: rgba(255,255,255,.08);
    transform: translateY(-50%);
}
.progress-step {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    border: 2px solid var(--bg);
    position: relative; z-index: 1;
    transition: all .35s cubic-bezier(.16,1,.3,1);
}
.progress-step.active {
    background: #fff;
    transform: scale(1.35);
    box-shadow: 0 0 16px rgba(255,255,255,.5);
}

/* ====================================================================
   INPUT GROUPS
   ==================================================================== */

.input-group {
    position: relative;
    margin-bottom: 1.25rem;
    animation: inputIn .4s ease backwards;
}
.input-group:nth-child(1) { animation-delay: .05s; }
.input-group:nth-child(2) { animation-delay: .1s; }
.input-group:nth-child(3) { animation-delay: .15s; }
.input-group:nth-child(4) { animation-delay: .2s; }

@keyframes inputIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.input-icon {
    position: absolute;
    top: 50%; left: 16px;
    transform: translateY(-50%);
    color: var(--input-icon-color);
    font-size: 1rem;
    pointer-events: none;
    transition: color .25s;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 14px 18px 14px 46px;
    border-radius: var(--r-input);
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
    color: #fff;
    font-size: .95rem;
    font-family: var(--font);
    font-weight: 500;
    box-sizing: border-box;
    outline: none;
    transition: border-color .25s, background .25s, box-shadow .25s, transform .2s;
}
.input-group input::placeholder {
    color: rgba(255,255,255,.3);
    font-weight: 400;
}
.input-group input:focus {
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.07);
    box-shadow: 0 0 0 3px rgba(255,255,255,.06);
    transform: translateY(-1px);
}
.input-group input:focus ~ .input-icon {
    color: rgba(255,255,255,.75);
}

.input-group.input-error input {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(255,68,68,.15);
    animation: shake .45s ease;
}
.input-group.input-error .input-icon { color: var(--error); }

@keyframes shake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-7px); }
    75%      { transform: translateX(7px); }
}

.input-icon.password-toggle {
    left: auto; right: 16px;
    cursor: pointer;
    pointer-events: auto;
    font-size: 1.1rem;
    opacity: .5;
    transition: opacity .2s;
}
.input-icon.password-toggle:hover { opacity: 1; }

/* ====================================================================
   CODE DIGITS
   ==================================================================== */

.code-input-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 1.75rem 0;
    animation: cardIn .5s cubic-bezier(.16,1,.3,1) both;
}

.code-digit {
    width: 48px; height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    color: #fff;
    outline: none;
    transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
    font-family: var(--font);
    caret-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}
.code-digit:focus {
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.08);
    box-shadow: 0 0 0 3px rgba(255,255,255,.08);
    transform: translateY(-2px) scale(1.04);
}
.code-digit.filled {
    border-color: var(--success);
    background: rgba(0,255,136,.04);
    animation: digitPop .28s ease;
}
@keyframes digitPop {
    0%  { transform: scale(1); }
    50% { transform: scale(1.08); }
    100%{ transform: scale(1); }
}
.code-digit.error {
    border-color: var(--error);
    background: var(--error-bg);
    animation: shake .45s ease;
}

/* ====================================================================
   OPTIONS ROW
   ==================================================================== */

.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: .875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-muted);
    cursor: pointer;
    font-size: .875rem;
    transition: color .2s;
}
.checkbox-label:hover { color: #fff; }
.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 17px; height: 17px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all .25s;
}
.checkbox-label input[type="checkbox"]:hover {
    border-color: rgba(255,255,255,.5);
}
.checkbox-label input[type="checkbox"]:checked {
    background: #fff;
    border-color: #fff;
}
.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    animation: checkPop .25s ease;
}
@keyframes checkPop {
    0%   { transform: translate(-50%,-50%) scale(0); }
    60%  { transform: translate(-50%,-50%) scale(1.15); }
    100% { transform: translate(-50%,-50%) scale(1); }
}

.forgot-password {
    font-size: .875rem;
    color: rgba(255,255,255,.5);
    cursor: pointer;
    transition: color .2s;
    position: relative;
    text-decoration: none;
}
.forgot-password::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: rgba(255,255,255,.6);
    transition: width .25s;
}
.forgot-password:hover { color: #fff; }
.forgot-password:hover::after { width: 100%; }

/* ====================================================================
   BUTTONS
   ==================================================================== */

.submit-btn {
    width: 100%;
    padding: 15px 24px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: var(--r-btn);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    font-family: var(--font);
    transition: opacity .2s, transform .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255,255,255,.15);
}
.submit-btn:hover {
    opacity: .88;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,255,255,.2);
}
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
}

.btn-text,
.btn-loading {
    position: relative;
    z-index: 1;
}
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.loading-spinner {
    width: 17px; height: 17px;
    border: 2px solid rgba(0,0,0,.15);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ====================================================================
   DIVIDER
   ==================================================================== */

.divider {
    text-align: center;
    margin: 1.75rem 0;
    color: rgba(255,255,255,.25);
    font-size: .8rem;
    font-weight: 500;
    position: relative;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%; width: 38%;
    height: 1px;
    background: rgba(255,255,255,.08);
}
.divider::before { left: 0; }
.divider::after  { right: 0; }

/* ====================================================================
   SOCIAL BUTTONS
   ==================================================================== */

.social-login {
    display: flex;
    gap: .75rem;
    margin-bottom: 1.75rem;
}

.social-btn {
    flex: 1;
    padding: 13px 18px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.75);
    border-radius: var(--r-btn);
    cursor: pointer;
    font-size: .875rem;
    font-weight: 600;
    font-family: var(--font);
    letter-spacing: .02em;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.social-btn:not(:disabled):hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.35);
    color: #fff;
    transform: translateY(-1px);
}
.social-btn:disabled {
    opacity: .25;
    cursor: not-allowed;
}

/* ====================================================================
   SWITCH LINK
   ==================================================================== */

.switch-link {
    text-align: center;
    color: rgba(255,255,255,.38);
    font-size: .875rem;
    margin-top: 1.5rem;
}
.switch-link a {
    color: rgba(255,255,255,.8);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color .2s;
}
.switch-link a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; height: 1px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s;
}
.switch-link a:hover { color: #fff; }
.switch-link a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ====================================================================
   FORM FEEDBACK
   ==================================================================== */

.form-feedback {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: .875rem;
    display: none;
    font-weight: 500;
    animation: feedbackIn .35s ease both;
}
@keyframes feedbackIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.form-feedback.error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(255,68,68,.25);
    display: block;
}
.form-feedback.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(0,255,136,.2);
    display: block;
}

/* ====================================================================
   VERIFICATION SCREEN
   ==================================================================== */

.verification-info {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp .5s ease both;
}
.verification-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    display: block;
    animation: iconPulse 2.5s ease-in-out infinite;
}
@keyframes iconPulse {
    0%,100% { filter: drop-shadow(0 0 8px rgba(255,255,255,.2)); }
    50%      { filter: drop-shadow(0 0 18px rgba(255,255,255,.45)); }
}
.verification-info p {
    color: rgba(255,255,255,.45);
    margin-bottom: .4rem;
    font-size: .95rem;
}
.verification-email {
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
}
.verification-actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.resend-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.45);
    padding: 12px 18px;
    border-radius: var(--r-btn);
    cursor: pointer;
    font-size: .875rem;
    font-weight: 600;
    font-family: var(--font);
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.resend-btn:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.3);
    color: #fff;
    transform: translateY(-1px);
}

.back-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,.35);
    padding: 10px;
    cursor: pointer;
    font-size: .875rem;
    font-family: var(--font);
    font-weight: 500;
    margin-top: .75rem;
    transition: color .2s, transform .2s;
    display: block;
    width: 100%;
    text-align: center;
}
.back-btn:hover {
    color: rgba(255,255,255,.8);
    transform: translateX(-4px);
}

/* ====================================================================
   SUCCESS MESSAGE
   ==================================================================== */

.success-message {
    text-align: center;
    margin-bottom: 2rem;
    animation: cardIn .5s cubic-bezier(.16,1,.3,1) both;
}
.success-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    display: block;
    color: var(--success);
    animation: successPulse 2s ease-in-out infinite;
}
@keyframes successPulse {
    0%,100% { filter: drop-shadow(0 0 12px rgba(0,255,136,.35)); }
    50%      { filter: drop-shadow(0 0 24px rgba(0,255,136,.6)); }
}
.success-message p {
    color: rgba(255,255,255,.45);
    font-size: .95rem;
}

/* ====================================================================
   AVATAR SELECTION
   ==================================================================== */

.input-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    margin-bottom: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.input-hint {
    font-size: .8rem;
    color: rgba(255,255,255,.3);
    margin-top: .4rem;
    display: block;
}
.avatar-selection { margin-bottom: 1.75rem; }
.custom-avatar-upload { margin-top: .75rem; }

.upload-area {
    border: 1px dashed rgba(255,255,255,.15);
    border-radius: 14px;
    padding: 2.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .25s, background .25s, transform .2s;
    background: rgba(255,255,255,.02);
}
.upload-area:hover {
    border-color: rgba(255,255,255,.35);
    background: rgba(255,255,255,.05);
    transform: translateY(-2px);
}
.upload-area.drag-over {
    border-color: rgba(255,255,255,.6);
    background: rgba(255,255,255,.08);
}
.upload-icon {
    font-size: 2.25rem;
    margin-bottom: .75rem;
    display: block;
    animation: iconFloat 2.5s ease-in-out infinite;
}
@keyframes iconFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.upload-area p { color: rgba(255,255,255,.4); font-size: .9rem; }
.upload-area small { color: rgba(255,255,255,.25); font-size: .8rem; margin-top: .25rem; display: block; }

.avatar-preview {
    margin-top: 1.25rem;
    text-align: center;
    animation: fadeInUp .45s ease both;
}
.avatar-preview img {
    width: 110px; height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.15);
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    transition: transform .2s, border-color .2s;
}
.avatar-preview img:hover {
    transform: scale(1.05);
    border-color: rgba(255,255,255,.4);
}
.remove-avatar {
    background: rgba(255,68,68,.08);
    border: 1px solid rgba(255,68,68,.3);
    color: var(--error);
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .8rem;
    font-family: var(--font);
    font-weight: 600;
    margin-top: .75rem;
    transition: background .2s, transform .2s;
}
.remove-avatar:hover {
    background: rgba(255,68,68,.18);
    transform: translateY(-1px);
}

/* ====================================================================
   AVATAR EDITOR MODAL
   ==================================================================== */

.avatar-editor-modal,
.editor-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn .25s ease;
}
.avatar-editor-modal.active,
.editor-overlay.active { display: flex; }
/* также для hidden-убирания: */
.avatar-editor-modal:not(.hidden) { display: flex; }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.editor-container {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 2.25rem;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 24px 64px rgba(0,0,0,.6);
    animation: cardIn .45s cubic-bezier(.16,1,.3,1) both;
}
.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}
.editor-container h3,
.editor-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #fff;
    margin: 0;
}
.close-editor {
    background: none;
    border: none;
    color: rgba(255,255,255,.4);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color .2s;
    font-family: var(--font);
}
.close-editor:hover { color: #fff; }

.editor-preview {
    width: 280px; height: 280px;
    margin: 0 auto 1.75rem;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(0,0,0,.5);
}
.editor-image {
    position: absolute;
    max-width: none;
}
.crop-overlay {
    position: absolute;
    width: 190px; height: 190px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(0,0,0,.5);
    cursor: move;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
}
.editor-controls { margin-bottom: 1.75rem; }
.editor-controls label,
.control-group label {
    display: block;
    color: rgba(255,255,255,.4);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: .6rem;
}
.control-group { margin-bottom: 1rem; }
.editor-controls input[type="range"],
.control-group input[type="range"] {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.12);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.editor-controls input[type="range"]::-webkit-slider-thumb,
.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: transform .2s;
}
.editor-controls input[type="range"]::-webkit-slider-thumb:hover,
.control-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}
.editor-buttons { margin-top: .75rem; }
.editor-buttons button,
#reset-editor {
    background: transparent;
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.5);
    padding: 8px 16px;
    border-radius: 100px;
    cursor: pointer;
    font-size: .82rem;
    font-family: var(--font);
    font-weight: 600;
    transition: background .2s, color .2s;
}
.editor-buttons button:hover,
#reset-editor:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.editor-actions {
    display: flex;
    gap: .75rem;
}
.save-avatar, .cancel-edit {
    flex: 1;
    padding: 13px 18px;
    border-radius: 100px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    border: none;
    transition: opacity .2s, transform .2s;
}
.save-avatar {
    background: #fff;
    color: #000;
}
.save-avatar:hover { opacity: .85; transform: translateY(-1px); }
.cancel-edit {
    background: transparent;
    color: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.15) !important;
}
.cancel-edit:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}

/* ====================================================================
   2FA
   ==================================================================== */

.twofa-info { text-align: center; margin-bottom: 1.75rem; }
.twofa-icon {
    font-size: 2.75rem;
    margin-bottom: .75rem;
    display: block;
    animation: iconPulse 2.5s ease-in-out infinite;
}

/* ====================================================================
   ALREADY LOGGED
   ==================================================================== */

.already-logged-container { text-align: center; padding: 1.5rem; }
.logged-user-info {
    color: rgba(255,255,255,.45);
    margin-bottom: 1.75rem;
    font-size: 1rem;
}
.logged-user-info strong { color: #fff; font-weight: 700; }

.logout-btn {
    background: transparent;
    border: 1px solid rgba(255,68,68,.4);
    color: var(--error);
    padding: 13px 24px;
    border-radius: 100px;
    cursor: pointer;
    font-size: .9rem;
    font-family: var(--font);
    font-weight: 700;
    width: 100%;
    margin-top: .75rem;
    transition: background .2s, transform .2s;
}
.logout-btn:hover {
    background: rgba(255,68,68,.08);
    transform: translateY(-1px);
}

/* ====================================================================
   NAV USER MENU
   ==================================================================== */

.nav-user-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    font-weight: 600;
    font-size: .875rem;
    color: #fff;
    transition: opacity .2s;
    cursor: pointer;
}
.nav-user-link:hover { opacity: .7; }
.nav-user-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.2);
    transition: border-color .2s;
}
.nav-user-link:hover .nav-user-avatar { border-color: rgba(255,255,255,.5); }

.nav-user-menu { position: relative; display: inline-block; }
.dropdown-menu {
    position: absolute;
    top: 130%; right: 0;
    min-width: 170px;
    background: rgba(16,16,16,.97);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    backdrop-filter: blur(20px);
    z-index: 100;
    padding: .4rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s cubic-bezier(.16,1,.3,1);
    display: block;
}
.nav-user-menu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    color: rgba(255,255,255,.55);
    font-size: .875rem;
    font-weight: 500;
    padding: .65rem 1.1rem;
    text-decoration: none;
    transition: background .15s, color .15s, padding-left .15s;
}
.dropdown-menu a:hover {
    background: rgba(255,255,255,.05);
    color: #fff;
    padding-left: 1.35rem;
}

/* ====================================================================
   AXO PLUS AVATAR BORDER
   ==================================================================== */

.avatar-plus {
    position: relative;
    border: none !important;
    border-radius: 50%;
}
.avatar-plus::before {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    background: linear-gradient(45deg,#f008c3,#9100ff,#00bfff,#00ff8f,#f008c3);
    background-size: 400% 400%;
    border-radius: 50%;
    z-index: -1;
    animation: gradientSpin 3s linear infinite;
}
@keyframes gradientSpin {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ====================================================================
   REGISTRATION STEPS
   ==================================================================== */

.registration-step { animation: stepIn .4s cubic-bezier(.16,1,.3,1) both; }
@keyframes stepIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}
.registration-step.hidden { display: none !important; }

/* ====================================================================
   FOOTER
   ==================================================================== */

.page-footer {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 24px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 10;
    background: transparent;
    backdrop-filter: none;
}
.page-footer p {
    color: rgba(255,255,255,.2);
    font-size: .78rem;
    font-weight: 400;
    margin: 0;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.page-footer a {
    font-size: .78rem;
    color: rgba(255,255,255,.25);
    text-decoration: none;
    margin: 0;
    transition: color .2s;
    position: relative;
}
.page-footer a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: rgba(255,255,255,.5);
    transition: width .25s;
}
.page-footer a:hover { color: rgba(255,255,255,.7); }
.page-footer a:hover::after { width: 100%; }

/* ====================================================================
   UTILITIES
   ==================================================================== */

.fade-in { animation: fadeIn .4s ease both; }
.gradient-text {
    background: linear-gradient(135deg,#fff 0%,rgba(255,255,255,.65) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.28); }

/* ====================================================================
   RESPONSIVE
   ==================================================================== */

@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-logo span { display: none; }
    .glass-form { padding: 2rem 1.5rem; }
    .auth-wrapper { padding-top: 88px; }
    .page-footer { padding: 20px 20px; }
    .code-digit { width: 44px; height: 52px; font-size: 1.4rem; }
    .code-input-container { gap: 8px; }
}

@media (max-width: 480px) {
    .glass-form { padding: 1.75rem 1.1rem; }
    .form-title { font-size: 1.7rem; }
    .social-login { flex-direction: column; }
    .code-digit { width: 40px; height: 46px; font-size: 1.2rem; }
    .code-input-container { gap: 6px; }
    .verification-icon, .success-icon { font-size: 2.5rem; }
}
