/* Restore account wizard — extends login page styles */

.lk-oa-page {
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.14) 0%, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 45%),
        #060a12;
}

.lk-oa-page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image: radial-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.lk-oa-wrap {
    padding-top: 72px;
    padding-bottom: 32px;
}

.lk-oa-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(180deg, rgba(6, 10, 18, 0.92) 0%, rgba(6, 10, 18, 0.72) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.35);
}

.lk-oa-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(71, 85, 105, 0.55);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.lk-oa-back__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.28);
    color: #93c5fd;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lk-oa-back__icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

.lk-oa-back:hover {
    color: #f8fafc;
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

.lk-oa-back:hover .lk-oa-back__icon {
    background: rgba(37, 99, 235, 0.32);
    border-color: rgba(147, 197, 253, 0.4);
    color: #fff;
}

.lk-oa-card {
    position: relative;
}

.lk-oa-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.lk-oa-progress__meta {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    text-align: center;
}

.lk-oa-progress__meta[hidden] {
    display: none !important;
}

.lk-oa-page .lk-login-heading {
    font-size: clamp(1.25rem, 4.5vw, 1.5rem);
    line-height: 1.3;
}

.lk-oa-page .lk-login-lead:not([hidden]) {
    margin-top: 6px;
}

.lk-oa-phone {
    gap: 18px;
}

.lk-oa-phone__hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(51, 65, 85, 0.55);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(10, 14, 24, 0.85) 100%);
}

.lk-oa-phone__hint-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: #93c5fd;
}

.lk-oa-phone__hint-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.lk-oa-phone__hint-text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #94a3b8;
}

.lk-oa-phone .lk-login-input {
    font-size: 1.0625rem;
    letter-spacing: 0.02em;
}

.lk-oa-phone .lk-login-actions {
    margin-top: 4px;
}

.lk-oa-page .lk-login-form-head {
    margin-bottom: 14px;
    text-align: center;
}

.lk-oa-page .lk-login-lead {
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
}

.lk-oa-page .lk-login-alert--error {
    border-radius: 12px;
    margin-bottom: 14px;
}

.lk-oa-page .lk-oa-progress__seg {
    height: 5px;
}

.lk-oa-page .lk-oa-progress__seg.is-active {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.45);
}

.lk-login-screen--oa {
    display: block;
    padding: 22px 24px 24px;
}

.lk-oa-progress {
    display: flex;
    gap: 6px;
    width: 100%;
    margin-bottom: 20px;
}

.lk-oa-progress__seg {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: #1e293b;
    transition: background 0.35s ease;
}

.lk-oa-progress__seg.is-active {
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
}

.lk-oa-progress__seg.is-done {
    background: #2563eb;
}

.oa-step {
    display: none;
    animation: lkLoginFade 0.35s ease;
}

.oa-step.is-active {
    display: block;
}

.lk-oa-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

.lk-oa-method-toggle {
    display: flex;
    gap: 0;
    width: 100%;
    margin-bottom: 16px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(10, 15, 26, 0.65);
    border: 1px solid rgba(51, 65, 85, 0.4);
}

.lk-oa-method-toggle button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lk-oa-method-toggle button.is-active {
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.lk-oa-method-toggle.is-hidden {
    display: none;
}

.lk-oa-upload {
    border: 2px dashed #334155;
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    position: relative;
    cursor: pointer;
    margin-bottom: 4px;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(10, 14, 24, 0.5) 100%);
}

.lk-oa-upload:hover,
.lk-oa-upload.is-dragover {
    border-color: #3b82f6;
    background: rgba(37, 99, 235, 0.06);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.lk-oa-upload.is-uploaded {
    border-color: #2563eb;
    border-style: solid;
    background: rgba(37, 99, 235, 0.08);
    cursor: default;
    padding: 1rem;
}

.lk-oa-upload.is-error {
    border-color: #f87171;
    border-style: solid;
    background: rgba(248, 113, 113, 0.06);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.12);
}

.lk-oa-upload.is-uploading {
    pointer-events: none;
    opacity: 0.85;
}

.lk-oa-document {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lk-oa-document__hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(51, 65, 85, 0.55);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(10, 14, 24, 0.85) 100%);
}

.lk-oa-document__hint-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: #93c5fd;
}

.lk-oa-document__hint-icon svg {
    width: 20px;
    height: 20px;
}

.lk-oa-document__hint-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.lk-oa-document__hint-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.35;
}

.lk-oa-document__hint-sub {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.45;
}

.lk-oa-upload__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lk-oa-upload.is-uploaded .lk-oa-upload__empty {
    display: none;
}

.lk-oa-upload__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 0.75rem;
    border-radius: 16px;
    background: rgba(51, 65, 85, 0.35);
    border: 1px solid rgba(71, 85, 105, 0.45);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lk-oa-upload:hover .lk-oa-upload__icon-wrap,
.lk-oa-upload.is-dragover .lk-oa-upload__icon-wrap {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(96, 165, 250, 0.35);
}

.lk-oa-upload__icon-wrap svg {
    width: 26px;
    height: 26px;
    color: #64748b;
    transition: color 0.2s;
}

.lk-oa-upload:hover .lk-oa-upload__icon-wrap svg,
.lk-oa-upload.is-dragover .lk-oa-upload__icon-wrap svg {
    color: #60a5fa;
}

.lk-oa-upload__text {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.45;
}

.lk-oa-upload__text span {
    color: #60a5fa;
    font-weight: 600;
}

.lk-oa-upload__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 0.75rem;
}

.lk-oa-upload__chip {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    background: rgba(51, 65, 85, 0.45);
    border: 1px solid rgba(71, 85, 105, 0.5);
}

.lk-oa-upload__limit {
    display: block;
    margin-top: 0.625rem;
    font-size: 0.6875rem;
    color: #64748b;
}

.lk-oa-upload__file {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.lk-oa-upload__file[hidden] {
    display: none !important;
}

.lk-oa-upload__preview {
    flex-shrink: 0;
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lk-oa-upload__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lk-oa-upload__thumb[hidden] {
    display: none !important;
}

.lk-oa-upload__file-icon {
    display: flex;
    color: #93c5fd;
}

.lk-oa-upload__file-icon svg {
    width: 24px;
    height: 24px;
}

.lk-oa-upload__preview:has(.lk-oa-upload__thumb:not([hidden])) .lk-oa-upload__file-icon {
    display: none;
}

.lk-oa-upload__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lk-oa-upload__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lk-oa-upload__size {
    font-size: 0.75rem;
    color: #64748b;
}

.lk-oa-upload__replace {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(71, 85, 105, 0.65);
    background: rgba(15, 23, 42, 0.65);
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.lk-oa-upload__replace svg {
    width: 14px;
    height: 14px;
}

.lk-oa-upload__replace:hover {
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(37, 99, 235, 0.12);
}

.lk-oa-upload-btn__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lk-oa-spin 0.7s linear infinite;
}

#oaUploadBtn.is-loading .lk-oa-upload-btn__label,
#oaUploadBtn.is-loading .lk-oa-upload-btn__icon {
    display: none;
}

#oaUploadBtn.is-loading .lk-oa-upload-btn__spinner {
    display: inline-block !important;
}

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

.lk-oa-upload input[type="file"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.lk-oa-verify {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0 0.5rem;
}

.lk-oa-verify__ring {
    width: 120px;
    height: 120px;
    position: relative;
    margin-bottom: 1.5rem;
}

.lk-oa-verify__ring svg {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.lk-oa-verify__ring-bg {
    fill: none;
    stroke: #1e293b;
    stroke-width: 4;
}

.lk-oa-verify__ring-progress {
    fill: none;
    stroke: url(#oaBlueGrad);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.3s linear;
}

.lk-oa-verify__icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lk-oa-verify__icon svg {
    width: 36px;
    height: 36px;
    transform: none;
    color: #60a5fa;
}

.lk-oa-verify__ring.is-done .lk-oa-verify__icon svg {
    color: #93c5fd;
    animation: lkOaPopIn 0.5s ease;
}

@keyframes lkOaPopIn {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.lk-oa-verify__status {
    min-height: 1.375rem;
    font-size: 0.9rem;
    color: #94a3b8;
    text-align: center;
    transition: opacity 0.25s;
}

.lk-pin-key--spacer {
    visibility: hidden;
    pointer-events: none;
    background: transparent !important;
    border-color: transparent !important;
}

.lk-oa-success {
    text-align: center;
    padding: 0.5rem 0 0;
}

.lk-oa-success__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    animation: lkOaPopIn 0.6s ease;
}

.lk-oa-success__icon svg {
    width: 36px;
    height: 36px;
    color: #60a5fa;
}

.lk-oa-success .lk-login-create-title {
    margin-bottom: 8px;
}

.lk-oa-success .lk-login-pin-sub {
    margin-bottom: 20px;
}

.lk-oa-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(51, 65, 85, 0.4);
}

.lk-oa-page .lk-oa-footer .lk-login-secure {
    margin-top: 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(10, 15, 26, 0.55);
    border: 1px solid rgba(51, 65, 85, 0.45);
}

.lk-oa-page .lk-oa-back-login {
    margin-top: 16px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #64748b;
    transition: color 0.2s, background 0.2s;
}

.lk-oa-page .lk-oa-back-login:hover {
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.08);
    text-decoration: none;
}

.lk-login-btn--primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    filter: none;
    box-shadow: none;
}

#oaError[hidden] {
    display: none !important;
}

/* Profile step — name & passport data */
.lk-oa-profile__register {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lk-oa-profile__preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(51, 65, 85, 0.55);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(10, 14, 24, 0.85) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lk-oa-profile__avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.28) 0%, rgba(29, 78, 216, 0.12) 100%);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #93c5fd;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lk-oa-profile__avatar.is-filled {
    background: linear-gradient(145deg, #1d4ed8 0%, #2563eb 100%);
    border-color: rgba(147, 197, 253, 0.45);
    color: #fff;
    font-size: 0.875rem;
}

.lk-oa-profile__avatar svg {
    width: 22px;
    height: 22px;
}

.lk-oa-profile__avatar.is-filled svg {
    display: none;
}

.lk-oa-profile__preview-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lk-oa-profile__preview-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.35;
    min-height: 1.35em;
}

.lk-oa-profile__preview-name:empty,
.lk-oa-profile__preview-name.is-empty {
    color: #64748b;
    font-weight: 500;
}

.lk-oa-profile__preview-hint {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

.lk-oa-profile__name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lk-login-input-wrap--icon {
    position: relative;
}

.lk-login-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    color: #64748b;
    pointer-events: none;
    transition: color 0.2s;
}

.lk-login-input-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.lk-login-input--icon {
    padding-left: 44px;
}

.lk-login-field:focus-within .lk-login-input-icon {
    color: #60a5fa;
}

.lk-oa-profile .lk-login-field.is-invalid .lk-login-input {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

@media (max-width: 480px) {
    .lk-oa-wrap {
        padding-top: 64px;
    }

    .lk-oa-topbar {
        padding: 10px 14px;
    }

    .lk-oa-back {
        font-size: 0.8125rem;
        padding: 5px 12px 5px 5px;
    }

    .lk-oa-back__icon {
        width: 28px;
        height: 28px;
    }

    .lk-oa-profile__name-grid {
        grid-template-columns: 1fr;
    }

    .lk-oa-profile__preview {
        padding: 12px 14px;
    }

    .lk-login-screen--oa {
        padding: 18px 20px 22px;
    }

    .lk-oa-upload {
        padding: 1.75rem 1rem;
    }

    .lk-oa-upload.is-uploaded {
        padding: 0.875rem;
    }

    .lk-oa-upload__file {
        flex-wrap: wrap;
    }

    .lk-oa-upload__replace {
        width: 100%;
        justify-content: center;
        margin-top: 2px;
    }
}
