@import url(../fontiran.css);


:root {
    --bg: #f6f7fb;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --focus: #1f274b;

    --btn: #37b5ff;
    --btn-deep: #1f274b;
    --btn-glow: #bfe9ff;

    --radius: 16px;
    --radius-xl: 20px;
}

* {
    box-sizing: border-box;
}

html {
    height: -webkit-fill-available; /* iOS fallback */
    overscroll-behavior: contain; /* جلوگیری از bounce */
}

body, html {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "PeydaWebFaNum" !important;
    min-height: 100svh;
    min-height: -webkit-fill-available;
}

body::before {
    content: "";
    position: fixed; /* تا کل صفحه را پوشش بدهد */
    inset: 0;
    /*background: url('/static/home/img/backexpo.png') center/cover no-repeat;*/
    opacity: .15; /* ← دقیقاً 0.4 */
    pointer-events: none; /* کلیک‌ها به محتوا برسد */
    z-index: 0;
}

/* ========== شِل صفحه (یکپارچه‌شده) ========== */
.auth-shell {
    /* از هر دو هدف: مرکزی + چسبیدن کارت به پایین */
    max-width: 768px;
    margin: 0 auto;
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* کارت پایین */
    min-height: 100svh;
    z-index: 1;
}

@supports (min-height: 100dvh) {
    body, .auth-shell {
        min-height: 100dvh;
    }
}

/* ========== کارت ========== */
.auth-card {
    background: #fff;
    border-radius: 21px;
    padding: 10px 15px 20px;
    /*box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);*/
    width: 100%;
    margin-bottom: 0; /* فاصله از پایین را شِل می‌دهد */
}

/* ========== استپر ========== */
.stepper {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #98a0b6;
    font-size: .92rem;
    margin: 2px 2px 18px;
    white-space: nowrap;
    overflow: auto;
}

.stepper i {
    width: 40px;
    height: 2px;
    flex: 0 0 40px;
    background: #d9deea;
    border-radius: 2px;
}

/* ========== هدر ========== */
.auth-head {
    margin-bottom: 10px;
}

.auth-title {
    margin: 0 0 6px;
    font-weight: 600;
    font-size: 1.15rem;
}

.auth-sub {
    margin: 20px 0;
    color: var(--muted);
    font-size: .9rem;
}

/* ========== فرم ========== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px; /* نسخه داخل کارت */
}

/* پیام‌ها */
.messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.msg {
    background: #fff;
    border: 1px solid #f1c40f;
    color: #8a6d3b;
    border-radius: 12px;
    padding: 10px 12px;
}

/* فیلدها */
.field__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #1f2340;
}

.hint {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: .75rem;
    margin-right: 5px;
}

#phone::placeholder {
    font-family: "PeydaWebFaNum", sans-serif !important;
    color: #9da3b0;
    font-size: .85rem;
    margin-top: -2px;
}

.field-error {
    color: #dc2626;
    font-size: .92rem;
    margin-top: 6px;
}

/* باکس موبایل */
.phone-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #1f274b;
    border-radius: var(--radius);
    padding: 8px 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
    box-shadow: 0 1px 0 #fff inset;
    font-family: "PeydaWebFaNum" !important;
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(17.5px);
    -webkit-backdrop-filter: blur(17.5px);
    border: 1px solid rgba(255, 255, 255, 0.29);
}

.phone-box:focus-within {
    border-color: var(--focus);
}

.phone-box .prefix {
    color: #5b6aa8;
    font-weight: 700;
    padding: 4px 10px;
    border-inline-end: 1px solid #eef1fb;
    margin-inline-end: 10px;
}

.phone-box input {
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 1.06rem;
    width: 100%;
    padding: 0;
    direction: ltr;
    text-align: right;
}

/* لیبل شناور (الگوی placeholder-shown) */
.phone-box.has-float {
    position: relative;
}

.float-label {
    position: absolute;
    top: 50%;
    inset-inline-start: 14px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #9da3b0;
    font-size: .95rem;
    line-height: 1;
    transition: all .15s ease;
    font-family: "PeydaWebFaNum", sans-serif !important;
}

.phone-box.has-float input {
    padding-top: 18px;
}

.phone-box.has-float input:focus + .float-label,
.phone-box.has-float input:not(:placeholder-shown) + .float-label,
input:-webkit-autofill + .float-label {
    top: 6px;
    transform: none;
    font-size: .75rem;
}

.phone-box.has-float input:focus + .float-label {
    color: var(--focus);
}

/* جهت‌نمایی اعداد */
#phone {
    direction: ltr;
    text-align: right;
    font-family: "PeydaWebFaNum" !important;
}

/* آکاردئون کد دعوت */
.invite {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 12px;
}

.invite summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: #2d385a;
}

.invite[open] summary {
    margin-bottom: 8px;
}

.invite__input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 1rem;
    background: #fbfcff;
}

/* پذیرش قوانین */
.check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2b314f;
}

.check input {
    width: 18px;
    height: 18px;
}

/* دکمه براق بزرگ (نسخه واحد) */
.cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.25rem;
    color: #fff;
    font-family: "PeydaWebFaNum" !important;
    padding: 16px 0;
    transition: transform .08s ease, box-shadow .12s ease;
    /*min-height: 52px; !* لمس‌پذیر *!*/
    margin-top: 12px;
    /*border: 2px solid #fff;   !* از نسخه اول حفظ شد *!*/
    background: var(--focus); /* از نسخه اول حفظ شد */
}

.cta svg {
    display: block;
    color: #fff;
}

.cta__text {
    letter-spacing: .3px;
}

.cta:active {
    transform: translateY(1px);
    box-shadow: 0 6px 18px rgba(42, 169, 255, .25),
    inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 -1.5px 0 rgba(0, 0, 0, .1);
}

/* متن جایگزین */
.auth-alt {
    text-align: center;
    margin: 6px 0 0;
    color: var(--muted);
}

.auth-alt a {
    color: #3451ff;
    text-decoration: none;
    font-weight: 800;
}

/* پیام خطا یا هشدار داخل hint */
.msg-inline {
    display: block;
    /*margin-top: 4px;*/
    color: #b45309;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 480px) {
    .phone-box {
        padding: 0px 12px;
    }

    .cta {
        padding: 13px 0;
        margin-top: 0px;
    }

    .auth-sub {
        margin: 15px 0;
        font-size: .7rem;
    }

    .hint {
        font-size: .65rem;
    }

    .auth-title {
        font-size: 1rem;
    }

    .cta__text {
        font-size: .9rem;
    }
}

@media (max-width: 320px) {
    .cta {
        margin-top: -5px;
    }

    .auth-sub {
        margin: 10px 0;
    }
}

@media (min-width: 480px) {
    .auth-shell {
        padding-top: 28px;
    }

    .auth-title {
        font-size: 1.25rem;
    }
}


/* ====== Slide-up intro for .auth-card ====== */
/* ====== Slide-up intro for .auth-card (no scroll jump) ====== */
.auth-shell {
    overflow: hidden; /* جلوگیری از اسکرول موقت هنگام انیمیشن */
}

@keyframes authCardSlideUp {
    from {
        transform: translateY(2rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-card {
    animation: authCardSlideUp 0.6s cubic-bezier(.22, .61, .36, 1) both;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* احترام به تنظیمات کاربر برای کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
    .auth-card {
        animation: none !important;
    }
}


/* ====== برند (لوگو + JOIN US) در مرکز بین بالا و auth-card ====== */
.auth-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

/* جایگاه لوگو: دقیقاً بین بالا و کارت */
.auth-brand {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    /* محاسبه ارتفاع نسبی تا کارت (تقریباً وسط فاصله بالا تا کارت) */
    height: calc(50% - 160px);
    /* 160px ≈ نصف ارتفاع کارت. می‌تونی تنظیمش کنی بر اساس قد واقعی کارت */
}

.auth-logo {
    width: clamp(120px, 20vw, 240px);
    height: auto;
    display: block;
    margin-bottom: 10px;
    user-select: none;
}

.auth-tagline {
    font-family: "PeydaWebFaNum", sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: clamp(1rem, .9rem + .6vw, 1.6rem);
    color: var(--focus);
    opacity: 0.9;
}

/* در موبایل فاصله و اندازه کوچیک‌تر */
@media (max-width: 480px) {
    .auth-brand {
        height: calc(40% - 120px);
    }

    .auth-logo {
        width: 140px;
        margin-bottom: 6px;
    }

    .auth-tagline {
        font-size: .85rem;
    }
}


/* ====== برند (لوگو + JOIN US) دقیقاً وسط فاصله بالا تا auth-card ====== */
.auth-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* کارت پایین */
    align-items: center;
    overflow: hidden;
}

/* برند به‌صورت absolute میاد وسط فضای بالا تا کارت */
.auth-brand {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* این باعث میشه دقیقاً در نیمه‌ی فاصله بین بالا و کارت باشه */
    height: calc(100% - var(--card-height, 240px));
}

/* مقدار ارتفاع کارت رو بر اساس اندازه واقعی کارت تعیین کن */
.auth-card {
    --card-height: 240px; /* حدودی برای محاسبه فاصله وسط */
    background: #fff;
    border-radius: 21px;
    padding: 10px 15px 20px;
    /*width: 100%;*/
    flex-shrink: 0;
}

/* لوگو و متن */
.auth-logo {
    width: clamp(120px, 30vw, 240px);
    height: auto;
    display: block;
    margin-bottom: 10px;
    user-select: none;
    opacity: .8;
}

.auth-tagline {
    font-family: 'Beatrise', cursive;
    font-weight: 600;
    letter-spacing: 1px;
    /*font-size: clamp(1rem, .9rem + .6vw, 1.6rem);*/
    color: var(--focus);
    opacity: 0.9;
    direction: ltr;
    font-size: 4rem;
    margin-top: -72px;

}

/* در موبایل */
@media (max-width: 480px) {
    .auth-card {
        --card-height: 300px;
    }

    .auth-logo {
        width: 170px;
        margin-bottom: 6px;
    }

    .auth-tagline {
        font-size: 2.85rem;
        margin-top: -65px;
    }
}

@media (min-width: 1000px) {

    .auth-tagline {
        font-size: 4.3rem !important;
        margin-top: -95px;
    }

}

@media (min-width: 1400px) {


    .auth-tagline {
        font-size: 6rem !important;
        margin-top: -130px;
    }
}

@media (min-width: 1600px) {


    .auth-tagline {
        font-size: 7.4rem !important;
        margin-top: -160px;
    }
}

@media (min-width: 2000px) {


    .auth-tagline {
        font-size: 8.4rem !important;
        margin-top: -175px;
    }
}

@media (min-width: 2400px) {


    .auth-tagline {
        font-size: 10rem !important;
        margin-top: -210px;
    }
}

@media (min-width: 2560px) {


    .auth-tagline {
        font-size: 11rem !important;
        margin-top: -230px;
    }
}

.otp-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--focus);
    border-radius: var(--radius);
    padding: 0px 12px 10px;

    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(17.5px);
    -webkit-backdrop-filter: blur(17.5px);
    border: 1px solid rgba(255, 255, 255, 0.29);
    /*margin-bottom: 20px;*/
}

.otp-box input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    text-align: center;
    letter-spacing: .35em;
    font-size: clamp(1.1rem, 1rem + .4vw, 1.4rem);
    direction: ltr;
    font-family: "PeydaWebFaNum", sans-serif !important;
}

.otpHelp {
    /*margin-bottom: 20px;*/
}

.cta_verify {
    margin-top: 20px;
}


/* === Fix: چیدمان پایدار با فاصله و عرض کنترل‌شده === */
.auth-shell {
    /*display: grid;*/
    grid-template-rows: 1fr auto; /* بالا: برند | پایین: کارت */
    row-gap: clamp(12px, 2vh, 24px); /* فاصله‌ی امن بین برند و کارت */
    align-items: center;
    min-height: 100svh;
    padding: max(8px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
    overflow: hidden;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-block: 12px;
    min-height: clamp(140px, 32vh, 520px); /* در قدهای بلند، وسط می‌مونه */
}

.auth-tagline {
    /*margin-top: 0 !important;          !* اوِرراید منفی‌های قبلی *!*/
    font-family: 'Beatrise', cursive;
    direction: ltr;
    font-size: clamp(1.4rem, 2.6vw, 3rem);
    opacity: .9;
}


/* کارت: پهنای معقول و نشستن گوشهٔ پایینِ چپ (در RTL) */
.auth-card {
    justify-self: end; /* در RTL = چپِ صفحه */
    /*width: min(520px, 94%);            !* دیگه تمام‌عرض نشه *!*/
    /*max-width: 100%;*/
    border-radius: 21px;
    padding: 16px 20px 24px;
    background: #fff;
    /*min-height: clamp(260px, 26vh, 420px); !* قد منطقی در ویوپورت‌های بلند *!*/
    box-sizing: border-box;
}

/* سناریوی تو: 768×1710 و مشابهِ قدهای خیلی بلند */
@media (min-width: 768px) and (min-height: 1400px) {
    .auth-brand {
        min-height: 40vh;
    }

    /* برند کمی بالاتر و متعادل */
    .auth-card {
        /*width: min(560px, 92%);*/
        /*min-height: 460px;*/
        padding: 20px 24px 28px;
    }
}

/* موبایل‌های باریک همچنان جمع‌وجور */
@media (max-width: 480px) {
    .auth-card {
        padding: 12px 14px 18px;
    }

    .auth-logo {
        width: 160px;
    }

    .auth-tagline {
        font-size: 2.2rem;
    }
}

/* اختیاری: اگر محتوای کارت زیاد شد، خودش اسکرول داخلی بگیره */
@media (min-height: 1000px) {
    .auth-card {
        overflow: auto;
    }
}


/* ===== Hard reset قدیمی‌ها و فعال‌سازی گرید پایدار ===== */

/* گرید دو ردیفه: بالا (برند) / پایین (کارت) */
.auth-shell {
    /*display: grid !important;*/
    grid-template-rows: minmax(220px, 1fr) auto; /* حداقل قد منطقی برای فضای برند */
    row-gap: clamp(12px, 2vh, 24px);
    align-items: center;
    min-height: 100svh;
    padding: max(8px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
    overflow: hidden;
}

/* لوگو و تگ‌لاین */
.auth-logo {
    width: clamp(120px, 24vw, 1240px);
    height: auto;
    margin-bottom: 8px;
}

.auth-tagline {
    /*margin-top: 0 !important;    !* حذف margin منفی قبلی *!*/
    font-family: 'Beatrise', cursive;
    direction: ltr;
    font-size: clamp(3.2rem, 2.6vw, 3rem);
    opacity: .9;
}

/* کارت پایینِ صفحه (در RTL سمت چپِ صفحه) با پهنای کنترل‌شده */
.auth-card {
    justify-self: center; /* گوشهٔ پایینِ چپ در RTL */
    /*width: min(520px, 94%);*/
    /*max-width: 100%;*/
    border-radius: 21px;
    padding: 16px 20px 24px;
    background: #fff;
    /*min-height: clamp(220px, 26vh, 220px);*/
    box-sizing: border-box;
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.01);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    animation: authCardSlideUp 0.6s cubic-bezier(.22, .61, .36, 1) both; /* حفظ انیمیشن */

}

/* قدهای خیلی بلند مثل 768×1710 */
@media (min-width: 768px) and (min-height: 1400px) {
    .auth-brand {
        min-height: 40vh;
    }

    .auth-card {
        /*width: min(560px, 92%);*/
        /*min-height: 600px;*/
        padding: 20px 24px 28px;
    }

    .auth-title {
        margin: 0 0 6px;
        font-weight: 600;
        font-size: 2.15rem;
    }

    .auth-sub {
        margin: 20px 0 40px;
        font-size: 1.5rem;
    }

    .phone-box {
        padding: 20px 12px;
        border-radius: 32px;
    }

    .hint {
        margin-top: 6px;
        font-size: 1.35rem;
    }

    .cta {
        border-radius: 34px;
        font-weight: 600;
        font-size: 1.8rem;
        padding: 26px 0;
        margin-top: 24px;
    }

    .phone-box.has-float input:focus + .float-label, .phone-box.has-float input:not(:placeholder-shown) + .float-label, input:-webkit-autofill + .float-label {

        font-size: 1.5rem;
    }

    .phone-box input {
        font-size: 1.65rem;
    }

    .float-label {
        font-size: 1.65rem;
    }

    .auth-logo {
        width: clamp(120px, 34vw, 1240px);
        margin-bottom: -36px;
    }

    .auth-tagline {
        font-size: clamp(5.2rem, 2.6vw, 3rem);
    }
}

/* موبایل‌های باریک */
@media (max-width: 480px) {
    .auth-card {
        padding: 12px 14px 18px;
    }

    .auth-logo {
        width: 160px;
    }

    .auth-tagline {
        font-size: 2.85rem;
    }
}

/* اگر محتوای کارت زیاد شد، اسکرول داخلی بگیر */
@media (min-height: 1000px) {
    .auth-card {
        overflow: auto;
    }
}


:root {
    --brand: #1f274b; /* رنگ برند برای نقطه‌ها */
    --ring1: #7fc6ff; /* اگر بعداً حلقه اضافه کنی */
    --ring2: #bfe9ff;
    --ink: #111827; /* رنگ متن داخل preloader */
}

/* اگر JS خاموش باشد، پنهانش کن */
noscript #preloader {
    display: none !important;
}

/* اندازه شیشه‌ی معلق */
.plx-glass {
    width: clamp(220px, 40vw, 420px);
    height: clamp(120px, 14vw, 180px);
}

/* متن مرکزی */
.plx-text {
    position: relative;
    z-index: 1;
    font-size: clamp(1rem, .9rem + .6vw, 1.25rem);
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(1200px 700px at 50% 20%, rgba(58, 147, 54, .09), transparent 60%),
    var(--bg);
    transition: opacity .6s ease, visibility .6s ease, filter .6s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
    filter: blur(2px)
}

/* محتوای مرکزی */
.plx {
    position: relative;
    text-align: center;
    display: grid;
    place-items: center;
    gap: 16px
}

.plx-glass {
    position: absolute;
    border-radius: 36px;
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    animation: glassFloat 4.5s ease-in-out infinite;
}

.plx-logo {
    width: 96px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .08));
    animation: logoFade 1.2s ease;
}

.plx-ring {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: conic-gradient(from 0deg, var(--brand), var(--ring1), var(--ring2), var(--brand));
    mask: radial-gradient(closest-side, transparent 54%, #000 55%);
    animation: ringSpin 1.8s linear infinite;
    opacity: .85;
}

.plx-text {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: .2px;
}

.plx-text .plx-fade {
    opacity: .75
}

.plx-dots {
    display: inline-flex;
    gap: 4px;
    margin-inline-start: 6px
}

.plx-dots i {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--brand);
    display: inline-block;
    opacity: .3;
    transform: translateY(0);
    animation: dot 1.2s ease-in-out infinite;
}

.plx-dots i:nth-child(2) {
    animation-delay: .15s
}

.plx-dots i:nth-child(3) {
    animation-delay: .3s
}

/* حالت کاهش حرکت برای دسترسی‌پذیری */
@media (prefers-reduced-motion: reduce) {
    .plx-glass, .plx-ring, .plx-logo, .plx-dots i {
        animation: none
    }
}

/* انیمیشن‌ها */
@keyframes ringSpin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes glassFloat {
    0%, 100% {
        transform: translateY(0)
    }
    50% {
        transform: translateY(-6px)
    }
}

@keyframes logoFade {
    from {
        opacity: 0;
        transform: translateY(6px) scale(.98)
    }
    to {
        opacity: 1;
        transform: none
    }
}

@keyframes dot {
    0%, 100% {
        opacity: .3;
        transform: translateY(0)
    }
    50% {
        opacity: 1;
        transform: translateY(-3px)
    }
}

/* خطوط دو رنگ */
.plx-line {
    display: block;
    font-size: clamp(1.5rem, 1rem + 1vw, 2rem);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: -20px;
}

.plx-line.blue {
    color: #00205B; /* navy blue */
}

.plx-line.green {
    color: #3FA34D; /* green tone like image */
}

/* تنظیم موقعیت و فاصله */
.plx-text {
    text-align: center;
    font-family: "Poppins", "Segoe UI", sans-serif;
    line-height: 1.2;
    z-index: 1;
    position: relative;
}

/* انیمیشن نقطه‌ها */
.plx-dots {
    display: inline-flex;
    gap: 4px;
    margin-top: 12px;
}

.plx-dots i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #3FA34D;
    opacity: .4;
    transform: translateY(0);
    animation: dot 1.2s ease-in-out infinite;
}

.plx-text {
    animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.plx-line.green {
    color: #3FA34D;
    font-weight: 700;
    overflow: hidden;
    border-right: 3px solid #3FA34D; /* مکان‌نما */
    white-space: nowrap;
    letter-spacing: 1px;
    animation: typingSmooth 1.5s ease-in-out infinite,
    blink 0.8s step-end infinite;
}

/* انیمیشن تایپ نرم با مکث در انتها */
@keyframes typingSmooth {
    0% {
        width: 0;
    }
    85% {
        width: 100%;
    }
    /* تا اینجا تایپ نرم */
    100% {
        width: 100%;
    }
    /* مکث کوتاه قبل از شروع مجدد */
}

/* چشمک زدن مکان‌نما */
@keyframes blink {
    50% {
        border-color: transparent;
    }
}