.nav-btn,
.menu-acc {
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
    color: inherit;
}

.nav-btn {
    font-size: .86rem;
    font-weight: 600;
    color: #c8c8c8;
    position: relative;
    padding-block: 4px;
    transition: color .2s var(--ease);
}

.nav-btn:hover { color: #fff; }

.menu-acc {
    text-align: right;
    width: 100%;
    color: #d0d0d0;
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    transition: color .2s var(--ease), padding-inline-start .3s var(--ease);
}

.menu-acc:hover { color: var(--red); padding-inline-start: 6px; }

.strip {
    position: relative;
    background: #050505;
    border-top: 1px solid rgba(225, 6, 0, .25);
    border-bottom: 1px solid rgba(225, 6, 0, .25);
    overflow: hidden;
}

.strip::before,
.strip::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(225, 6, 0, .55) 30%,
        rgba(225, 6, 0, .55) 70%,
        transparent 100%);
    background-size: 200% 100%;
    animation: stripFlow 6s linear infinite;
    pointer-events: none;
}

.strip::before {
    top: -1px;
}

.strip::after {
    bottom: -1px;
    animation-direction: reverse;
}

@keyframes stripFlow {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

.strip-in {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 56px;
    padding-block: 12px;
    text-align: center;
}

.strip-text {
    margin: 0;
    font-size: 1rem;
    color: #d0d0d0;
    line-height: 2.2;
    text-align: center;
    font-weight: 500;
}

.strip-link {
    display: inline;
    background: none;
    border: 0;
    padding: 0 4px;
    margin: 0;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    position: relative;
    transition: color .25s var(--ease);
    vertical-align: baseline;
    line-height: inherit;
}

.strip-link::after {
    content: "";
    position: absolute;
    inset-inline: 4px;
    bottom: 2px;
    height: 1px;
    background: currentColor;
    opacity: .3;
    transition: opacity .25s var(--ease);
}

.strip-link:hover {
    color: var(--red);
}

.strip-link:hover::after {
    opacity: 1;
}

.strip-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
}

.strip-name {
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
}

.strip-addr {
    color: var(--muted);
    font-family: ui-monospace, monospace;
    font-size: .84rem;
    letter-spacing: .01em;
}

.strip-meta {
    color: #c8c8c8;
    font-weight: 600;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
}

.strip-btn {
    padding: 9px 18px;
    background: transparent;
    color: #fff;
    border: 1px solid var(--line-2);
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .15s var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.strip-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    transform: translateY(-1px);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.is-open { display: flex; }

.modal-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to left,
            rgba(0, 0, 0, .95) 0%,
            rgba(0, 0, 0, .55) 18%,
            rgba(0, 0, 0, .35) 50%,
            rgba(0, 0, 0, .55) 82%,
            rgba(0, 0, 0, .95) 100%),
        radial-gradient(ellipse at center,
            rgba(225, 6, 0, .12) 0%,
            rgba(225, 6, 0, .04) 35%,
            transparent 70%);
    animation: mfade .3s ease;
}

@keyframes mfade { from { opacity: 0; } to { opacity: 1; } }

.modal-panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 40px);
    background: #0a0a0a;
    border: 1px solid var(--line-2);
    display: flex;
    flex-direction: column;
    animation: mpop .3s cubic-bezier(.2, .7, .2, 1);
    overflow: hidden;
}

@keyframes mpop {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.modal-tabs {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-tab {
    position: relative;
    padding: 22px 12px 18px;
    font-size: 1rem;
    font-weight: 700;
    color: #5a5a5a;
    cursor: pointer;
    transition: color .25s var(--ease);
    border: 0;
    background: none;
    font-family: inherit;
    letter-spacing: -.005em;
}

.modal-tab:hover { color: #9a9a9a; }
.modal-tab.is-active { color: #fff; }

.modal-tab::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform .35s var(--ease);
}

.modal-tab.is-active::after { transform: scaleX(1); }

.modal-close {
    width: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    cursor: pointer;
    background: none;
    border: 0;
    border-inline-start: 1px solid var(--line);
    transition: color .2s var(--ease), background .2s var(--ease);
    flex-shrink: 0;
}

.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.modal-close svg { width: 22px; height: 22px; }

.modal-body {
    padding: 26px 32px 30px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
}

.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--line-2); }

.auth-form { display: none; flex-direction: column; gap: 16px; }
.auth-form.is-active { display: flex; }

.steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4px;
}

.step-dot {
    width: 32px;
    height: 3px;
    background: #1a1a1a;
    transition: background .3s var(--ease);
}

.step-dot.is-active { background: var(--red); }
.step-dot.is-done { background: rgba(225, 6, 0, .5); }

.step { display: none; flex-direction: column; gap: 16px; }
.step.is-active { display: flex; }

.step-nav {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.btn-next,
.btn-prev {
    flex: 1;
    padding: 15px 20px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: .03em;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: background .25s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
    min-height: 52px;
}

.btn-next {
    background: var(--red);
    color: #fff;
}

.btn-next:hover:not(:disabled) {
    background: #ff1515;
    transform: translateY(-1px);
}

.btn-next:disabled { opacity: .3; cursor: not-allowed; }

.btn-prev {
    background: transparent;
    color: #c8c8c8;
    border: 1px solid var(--line-2);
    flex: 0 0 auto;
    min-width: 110px;
}

.btn-prev:hover { border-color: #fff; color: #fff; }

.fld { display: flex; flex-direction: column; gap: 7px; }

.fld label {
    font-size: .84rem;
    font-weight: 600;
    color: #c8c8c8;
    letter-spacing: .01em;
    transition: color .2s var(--ease);
}

.fld-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line-2);
    background: #060606;
    transition: border-color .25s var(--ease), background .25s var(--ease);
    min-height: 50px;
}

.fld-wrap:focus-within {
    border-color: rgba(225, 6, 0, .6);
    background: #0a0000;
}

.fld.is-valid .fld-wrap { border-color: rgba(110, 231, 160, .55); }
.fld.is-invalid .fld-wrap { border-color: rgba(225, 6, 0, .55); }

.fld-wrap input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font-size: .95rem;
    font-family: inherit;
    caret-color: var(--red);
    transition: color .2s var(--ease);
}

.fld-wrap input[dir="ltr"] {
    text-align: left;
    direction: ltr;
    font-family: ui-monospace, 'Vazirmatn', monospace;
    letter-spacing: .01em;
}

.fld-wrap input:not([dir="ltr"]) {
    text-align: right;
    direction: rtl;
}

.fld-wrap input::placeholder { color: #4a4a4a; }

.fld-wrap input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 100px #0a0000 inset;
}

.fld-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    flex-shrink: 0;
    color: var(--muted);
    border-inline-end: 1px solid var(--line-2);
    transition: color .2s var(--ease);
}

.fld-wrap:focus-within .fld-prefix { color: #fff; }
.fld-prefix svg { width: 20px; height: 20px; }

.fld-suffix-txt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 16px;
    background: #0f0f0f;
    border-inline-end: 1px solid var(--line-2);
    color: #c8c8c8;
    font-size: .86rem;
    font-weight: 600;
    font-family: ui-monospace, monospace;
    direction: ltr;
    white-space: nowrap;
    user-select: none;
    letter-spacing: .01em;
    transition: color .2s var(--ease);
}

.fld.is-valid .fld-suffix-txt { color: #6ee7a0; }
.fld.is-invalid .fld-suffix-txt { color: #ff6b7a; }

.fld-eye {
    width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    cursor: pointer;
    border: 0;
    background: none;
    flex-shrink: 0;
    transition: color .2s var(--ease), background .2s var(--ease);
}

.fld-eye:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.fld-eye svg { width: 20px; height: 20px; }
.fld-eye .eye-off { display: none; }
.fld-eye.is-on .eye-on { display: none; }
.fld-eye.is-on .eye-off { display: block; }

.fld-state {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    flex-shrink: 0;
    padding-inline-end: 8px;
}

.fld-state svg {
    width: 22px;
    height: 22px;
    display: none;
}

.fld.is-valid .fld-state {
    display: inline-flex;
    color: #6ee7a0;
}

.fld.is-valid .ic-ok { display: block; }

.fld.is-invalid .fld-wrap input { color: #ff6b7a; }

.fld-err {
    min-height: 0;
    font-size: .78rem;
    color: #ff6b7a;
    line-height: 1.5;
    display: none;
}

.fld.is-invalid .fld-err { display: block; }

.fld-dob {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1fr;
    gap: 1px;
    background: var(--line-2);
    border: 1px solid var(--line-2);
    min-height: 50px;
    overflow: hidden;
}

.dob-sel {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #060606;
    color: #fff;
    border: 0;
    outline: 0;
    padding: 12px 14px;
    font-size: .92rem;
    font-family: inherit;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background .2s var(--ease);
    background-image: none;
    padding-inline-end: 14px;
    text-align-last: center;
}

.dob-sel:hover { background-color: #0a0a0a; }
.dob-sel:focus { background-color: #0a0000; }

.dob-sel option {
    background: #0a0a0a;
    color: #fff;
    padding: 12px;
    font-family: inherit;
    font-weight: 500;
}

.fld-radios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    min-height: 50px;
}

.radio {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
    cursor: pointer;
    color: #8a8a8a;
    font-size: .95rem;
    font-weight: 700;
    transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
    position: relative;
    background: #060606;
    border: 1px solid var(--line-2);
    min-height: 50px;
}

.radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio:has(input:checked) {
    color: #fff;
    border-color: var(--red);
    background: rgba(225, 6, 0, .06);
}

.radio:hover:not(:has(input:checked)) {
    color: #c8c8c8;
    border-color: #3a3a3a;
}

.chk {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    margin-top: 2px;
    padding: 4px 0;
}

.chk input { position: absolute; opacity: 0; pointer-events: none; }

.chk-box {
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--line-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}

.chk-box::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 6px;
    border-left: 2.4px solid #fff;
    border-bottom: 2.4px solid #fff;
    transform: translate(-50%, -65%) rotate(-45deg) scale(0);
    transform-origin: center;
    transition: transform .2s cubic-bezier(.2, .7, .2, 1);
}

.chk input:checked+.chk-box {
    background: var(--red);
    border-color: var(--red);
}

.chk input:checked+.chk-box::after {
    transform: translate(-50%, -65%) rotate(-45deg) scale(1);
}

.chk-label {
    font-size: .9rem;
    color: #c8c8c8;
    font-weight: 500;
    transition: color .2s var(--ease);
}

.chk:hover .chk-label { color: #fff; }

.form-alert {
    display: none;
    padding: 12px 14px;
    background: rgba(225, 6, 0, .08);
    border: 1px solid rgba(225, 6, 0, .35);
    color: #ff8a8a;
    font-size: .84rem;
    line-height: 1.7;
    border-inline-start: 3px solid var(--red);
}

.form-alert.is-show { display: block; }

.btn-submit {
    flex: 1;
    padding: 15px 20px;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: .03em;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: background .25s var(--ease), opacity .25s var(--ease), transform .15s var(--ease);
    position: relative;
    min-height: 52px;
}

.btn-submit:hover:not(:disabled) {
    background: #ff1515;
    transform: translateY(-1px);
}

.btn-submit:active:not(:disabled) { transform: translateY(0); }
.btn-submit:disabled { opacity: .3; cursor: not-allowed; }
.btn-submit.is-loading { color: transparent; }

.btn-submit.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2.4px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bspin .7s linear infinite;
}

@keyframes bspin { to { transform: rotate(360deg); } }

.hp {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
}

body.modal-open { overflow: hidden; }

.prof {
    padding: 40px var(--pad) 60px;
    max-width: var(--wrap);
    margin-inline: auto;
    width: 100%;
}

.prof-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: #0a0a0a;
    border: 1px solid var(--line-2);
    flex-wrap: wrap;
}

.prof-avatar {
    width: 92px;
    height: 92px;
    background: linear-gradient(135deg, var(--red), #6a0300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 28px rgba(225, 6, 0, .4);
}

.prof-id { flex: 1; min-width: 200px; }

.prof-name {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -.02em;
    color: #fff;
    line-height: 1.15;
}

.prof-user {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .86rem;
    font-family: ui-monospace, monospace;
    direction: ltr;
    text-align: right;
}

.prof-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 20px;
}

@media (min-width: 640px) {
    .prof-stats { grid-template-columns: repeat(4, 1fr); }
}

.prof-stat {
    padding: 24px 22px;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prof-stat dt {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: var(--muted);
    text-transform: uppercase;
}

.prof-stat dd {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}

.prof-stat dd small {
    font-size: .74rem;
    font-weight: 600;
    color: var(--muted);
    margin-inline-start: 4px;
}

.prof-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.prof-btn {
    padding: 13px 24px;
    background: transparent;
    color: #fff;
    border: 1px solid var(--line-2);
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.prof-btn:hover { border-color: #fff; }

.prof-btn.is-danger { color: #ff6b7a; border-color: rgba(225, 6, 0, .4); }
.prof-btn.is-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }

.prof-btn svg { width: 17px; height: 17px; }

@media (max-width: 900px) {
    .modal { padding: 0; align-items: flex-end; }
    .modal-panel { max-width: none; max-height: 92vh; width: 100%; border-inline: 0; border-bottom: 0; }
    .modal-body { padding: 20px 22px 26px; }
    .modal-tab { padding: 18px 8px 15px; font-size: .92rem; }
    .modal-close { width: 48px; }
    .modal-close svg { width: 20px; height: 20px; }
    .strip-in {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding-block: 10px;
        text-align: center;
    }
    .strip-text { text-align: center; }
    .strip-actions, .strip-user { justify-content: center; }
    .prof { padding: 24px var(--pad) 40px; }
    .prof-hero { padding: 22px; gap: 18px; }
    .prof-avatar { width: 72px; height: 72px; font-size: 2rem; }
    .step-nav { flex-direction: column-reverse; }
    .btn-prev { min-width: 0; }
}