.reg-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: auto;
    padding: 28px 16px 40px;
    background:
        radial-gradient(circle at top, #f7f9fc 0%, #eef2f7 45%, #e7ecf3 100%);
    transform: scale(.08);
    opacity: 0;
    border-radius: 46% 46% 40% 40%;
    pointer-events: none;
    transition: transform .62s cubic-bezier(.16, 1, .3, 1), opacity .35s ease, border-radius .62s ease;
}
.reg-screen[hidden] { display: none !important; }
.reg-screen.is-on {
    transform: scale(1);
    opacity: 1;
    border-radius: 0;
    pointer-events: auto;
}
.reg-card {
    width: min(440px, 100%);
    margin: auto;
    position: relative;
}
.reg-x {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #eff2f5;
    color: #6b7280;
    font-size: 20px;
    cursor: pointer;
}
.reg-mark {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    color: #0d7a7d;
}
.reg-mark svg { width: 44px; height: 44px; display: block; }
.reg-dots {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
.reg-dots li {
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    padding-bottom: 6px;
    border-bottom: 2px solid #e5e7eb;
}
.reg-dots li.is-on { color: #0d7a7d; border-color: #0d7a7d; }
.reg-dots li.is-done { color: #0f766e; border-color: #0f766e; }
.reg-step { display: none; }
.reg-step.is-on { display: block; animation: regIn .32s ease; }
@keyframes regIn {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: none; }
}
.reg-step h2, #regDone h2 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.6px;
    color: #111827;
}
.reg-step p, #regDone p {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}
.reg-step label {
    display: block;
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
}
.reg-step input,
.reg-step select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    border: 1px solid #e4e8ee;
    border-radius: 14px;
    padding: 11px 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    color: #111827;
}
.reg-step input:focus,
.reg-step select:focus {
    outline: none;
    border-color: #0d7a7d;
    box-shadow: 0 0 0 3px rgba(13, 122, 125, .12);
}
.reg-terms {
    max-height: 168px;
    overflow: auto;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}
.reg-terms p { margin: 0 0 8px; }
.reg-terms p:last-child { margin: 0; }
.reg-check {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px !important;
    color: #111827 !important;
}
.reg-check input {
    width: 16px !important;
    height: 16px;
    margin: 2px 0 0 !important;
    padding: 0 !important;
}
.reg-error {
    margin: 8px 0 0;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
}
.reg-nav {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.reg-nav button {
    flex: 1;
    border: 0;
    border-radius: 14px;
    padding: 12px;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}
#regPrev { background: #e5e7eb; color: #111827; }
#regNext, #regGoLogin { background: linear-gradient(135deg, #0d7a7d, #08585a); color: #fff; }
#regNext:disabled { opacity: .6; cursor: default; }
.reg-doclink { margin: 0 0 10px; font-size: 13px; }
.reg-doclink a { color: #0d7a7d; font-weight: 700; }
.doc-view {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .4);
}
.doc-view[hidden] { display: none !important; }
.doc-view-card {
    position: relative;
    width: min(520px, 100%);
    max-height: min(80vh, 640px);
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    padding: 18px 16px 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}
.doc-view-card h2 { margin: 0 28px 10px 0; font-size: 22px; letter-spacing: -.4px; }
.doc-view-body { color: #374151; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.doc-view-x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #eff2f5;
    color: #6b7280;
    font-size: 20px;
    cursor: pointer;
}
