/* ===========================================
        تنظیمات پایه کل سایت (RESET)
        فونت و مدل جعبه تمام عناصر
=========================================== */

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

    font-family:"B Nazanin", Tahoma, sans-serif;

}


html{

    scroll-behavior:smooth;

}


/* ===========================================
        تنظیمات اصلی بدنه سایت
        جهت و ظاهر پایه صفحه
=========================================== */

body{

    direction:rtl;

    background:#f5f7fa;

    color:#263238;

    overflow-x:hidden;

    font-family:"B Nazanin", Tahoma, sans-serif;

}


/* ===========================================
        صفحه پس‌زمینه و کانتینر اصلی
        صفحه ورود
=========================================== */

.main-wrapper{

    width:100%;

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:20px;

    background-image:

        linear-gradient(
            135deg,
            rgba(247,250,252,.91),
            rgba(232,238,244,.80)
        ),

        url("/static/images/bg.jpg");

    background-repeat:no-repeat;

    background-size:cover;

    background-position:center;

    font-family:"B Nazanin", Tahoma, sans-serif;

}


/* ===========================================
        کادر ورود کاربر
        کارت اصلی صفحه ورود
=========================================== */

.login-container{

    width:350px;

    max-width:100%;

    background:rgba(255,255,255,.98);

    border:1px solid rgba(17,39,76,.08);

    border-radius:18px;

    padding:30px;

    box-shadow:

        0 18px 42px rgba(17,39,76,.11),

        0 3px 10px rgba(17,39,76,.05);

    font-family:"B Nazanin", Tahoma, sans-serif;

}


/* ===========================================
        عنوان کادر ورود
        عنوان اصلی صفحه
=========================================== */

.login-container h1{

    width:100%;

    margin:0 0 24px;

    text-align:center;

    color:#11274c;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:30px;

    font-weight:800;

    line-height:1.4;

}


/* ===========================================
        گروه فیلدهای ورود
        فاصله و ساختار هر فیلد
=========================================== */

.input-group{

    width:100%;

    margin-bottom:16px;

    font-family:"B Nazanin", Tahoma, sans-serif;

}


/* ===========================================
        عنوان فیلدها
        عنوان بالای ورودی + علامت :
=========================================== */

.input-group label{

    display:block;

    width:100%;

    margin-bottom:5px;

    color:#26384d;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:15px;

    font-weight:800;

    line-height:1.5;

    text-align:right;

}


.input-group label::after{

    content:" :";

    color:#167d50;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-weight:800;

}


/* ===========================================
        فیلدهای ورودی
        ظاهر یکدست تمام inputها
=========================================== */

.input-group input{

    display:block;

    width:100%;

    height:45px;

    border:1px solid #d8e0e8;

    border-radius:10px;

    padding:0 13px;

    outline:none;

    background:#f9fbfc;

    color:#26384d;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:500;

    line-height:45px;

    transition:

        border-color .22s ease,

        box-shadow .22s ease,

        background .22s ease;

}


/* ===========================================
        متن راهنمای داخل فیلد
        مخفی شدن placeholder
=========================================== */

.input-group input::placeholder{

    color:transparent;

    opacity:0;

    font-family:"B Nazanin", Tahoma, sans-serif;

}


/* ===========================================
        حالت فعال فیلد
        Focus
=========================================== */

.input-group input:focus{

    border-color:#2d8f67;

    background:#ffffff;

    box-shadow:

        0 0 0 3px rgba(45,143,103,.09);

}


/* ===========================================
        بخش رمز عبور
        ساختار فیلد و آیکون نمایش رمز
=========================================== */

.password-group{

    position:relative;

    width:100%;

}


/* ===========================================
        فضای داخلی فیلد رمز
        ایجاد فاصله برای آیکون چشم
=========================================== */

.password-group input{

    padding-left:46px;

}


/* ===========================================
        آیکون نمایش رمز
        قرارگیری دقیق وسط خود فیلد
=========================================== */

.toggle-password{

    position:absolute;

    left:13px;

    top:52px;

    width:24px;

    height:24px;

    display:flex;

    align-items:center;

    justify-content:center;

    margin:0;

    padding:0;

    cursor:pointer;

    color:#71808f;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:21px;

    line-height:24px;

    transform:translateY(-50%);

    transition:

        color .22s ease,

        transform .22s ease;

}


/* ===========================================
        حالت هاور آیکون نمایش رمز
=========================================== */

.toggle-password:hover{

    color:#167d50;

    transform:

        translateY(-50%)
        scale(1.05);

}


/* ===========================================
        بخش کد امنیتی
        ساختار اصلی کپچا
=========================================== */

.captcha-wrapper{

    width:100%;

    display:flex;

    align-items:center;

    justify-content:flex-start;

    gap:8px;

    margin:2px 0 16px;

    direction:rtl;

    font-family:"B Nazanin", Tahoma, sans-serif;

}


/* ===========================================
        عنوان کد امنیتی
        قرارگیری در کنار کپچا
=========================================== */

.captcha-label{

    flex:0 0 auto;

    display:flex;

    align-items:center;

    height:42px;

    color:#26384d;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:15px;

    font-weight:800;

    white-space:nowrap;

}


/* ===========================================
        کادر نمایش کد امنیتی
        هم‌راستا با دکمه رفرش
=========================================== */

.captcha-box{

    flex:1;

    min-width:0;

    height:42px;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:0 10px;

    border:1px solid #d8e0e8;

    border-radius:10px;

    background:

        linear-gradient(
            135deg,
            #f8fafc,
            #eef3f7
        );

    color:#11274c;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:20px;

    font-weight:800;

    letter-spacing:2px;

    line-height:42px;

    user-select:none;

}


/* ===========================================
        دکمه رفرش کد امنیتی
        دقیقاً هم‌راستا با کادر کپچا
=========================================== */

.captcha-refresh{

    flex:0 0 42px;

    width:42px;

    height:42px;

    display:flex;

    align-items:center;

    justify-content:center;

    margin:0;

    padding:0;

    border:1px solid #d8e0e8;

    border-radius:10px;

    background:#f8fafc;

    color:#526579;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:19px;

    line-height:42px;

    cursor:pointer;

    vertical-align:middle;

    align-self:center;

    transition:

        color .22s ease,

        background .22s ease,

        border-color .22s ease,

        transform .22s ease,

        box-shadow .22s ease;

}


/* ===========================================
        هاور دکمه رفرش
=========================================== */

.captcha-refresh:hover{

    color:#ffffff;

    background:

        linear-gradient(
            135deg,
            rgb(22,125,80),
            rgb(45,170,105)
        );

    border-color:rgb(22,125,80);

    transform:translateY(-1px);

    box-shadow:

        0 4px 10px rgba(22,125,80,.16);

}


/* ===========================================
        تنظیمات کلی دکمه‌ها
        ظاهر پایه
=========================================== */

.action-btn{

    width:100%;

    height:45px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:bold;

    line-height:45px;

    transition:

        background .22s ease,

        box-shadow .22s ease,

        transform .22s ease;

}


/* ===========================================
        دکمه ورود
        حالت عادی
=========================================== */

.login-btn{

    background:

        linear-gradient(
            135deg,
            rgb(17,39,76),
            rgb(26,58,110)
        );

    color:#ffffff;

    font-family:"B Nazanin", Tahoma, sans-serif;

    box-shadow:

        0 3px 9px rgba(17,39,76,.13);

}


/* ===========================================
        دکمه ورود
        حالت هاور
=========================================== */

.login-btn:hover{

    background:

        linear-gradient(
            135deg,
            rgb(22,125,80),
            rgb(45,170,105)
        );

    color:#ffffff;

    transform:translateY(-1px);

    box-shadow:

        0 6px 14px rgba(22,125,80,.18);

}


/* ===========================================
        لینک‌های داخل کادر ورود
        لینک فراموشی رمز
=========================================== */

.login-container a{

    text-decoration:none;

    color:#174f91;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-weight:bold;

    transition:

        color .22s ease;

}


.login-container a:hover{

    color:#167d50;

    text-decoration:none;

}


/* ===========================================
        پیام‌های سیستم
        پیام موفقیت
=========================================== */

.success{

    color:#167d50;

    margin-bottom:12px;

    text-align:center;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:15px;

    font-weight:700;

}


/* ===========================================
        پیام‌های سیستم
        پیام خطا
=========================================== */

.error{

    color:#c62828;

    margin-bottom:12px;

    text-align:center;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:15px;

    font-weight:700;

}


/* ===========================================
        ریسپانسیو صفحه ورود
        نمایش مناسب در موبایل
=========================================== */

@media (max-width:420px){

    .main-wrapper{

        padding:15px;

    }


    .login-container{

        width:100%;

        padding:24px;

        border-radius:16px;

    }


    .login-container h1{

        font-size:27px;

        margin-bottom:21px;

    }


    .input-group input{

        height:44px;

        font-size:16px;

    }


    .captcha-wrapper{

        gap:6px;

    }


    .captcha-label{

        font-size:14px;

    }


    .captcha-box{

        font-size:18px;

        letter-spacing:1px;

    }


    .captcha-refresh{

        flex-basis:40px;

        width:40px;

        height:40px;

        line-height:40px;

    }

}

/* ===========================================
        طراحی مدرن کپچا (CAPTCHA)
        ظاهر حرفه‌ای و مینیمال ناشران360
=========================================== */


/* ===========================================
        کانتینر اصلی کپچا
=========================================== */

.captcha-wrapper{

    width:100%;

    display:grid;

    grid-template-columns:auto minmax(0,1fr) 44px;

    align-items:center;

    gap:9px;

    margin:13px 0 16px;

    direction:rtl;

}


/* ===========================================
        عنوان کد امنیتی
=========================================== */

.captcha-label{

    display:flex;

    align-items:center;

    justify-content:flex-start;

    height:44px;

    color:#26384d;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:15px;

    font-weight:800;

    line-height:44px;

    white-space:nowrap;

}


/* ===========================================
        کادر نمایش کد امنیتی
=========================================== */

.captcha-box{

    width:100%;

    min-width:0;

    height:44px;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:0 12px;

    border:1px solid #d5dee7;

    border-radius:12px;

    background:#f8fafc;

    color:#11274c;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:22px;

    font-weight:900;

    letter-spacing:4px;

    line-height:44px;

    user-select:none;

    box-shadow:

        inset 0 1px 0 rgba(255,255,255,.95),

        0 2px 6px rgba(17,39,76,.035);

    transition:

        border-color .2s ease,

        background .2s ease,

        box-shadow .2s ease;

}


/* ===========================================
        حالت هاور کادر کپچا
=========================================== */

.captcha-wrapper:hover .captcha-box{

    border-color:#bfcbd7;

    background:#ffffff;

    box-shadow:

        inset 0 1px 0 rgba(255,255,255,1),

        0 4px 12px rgba(17,39,76,.06);

}


/* ===========================================
        دکمه نوسازی کپچا
        بدون چرخش و بدون انیمیشن اضافی
=========================================== */

.captcha-refresh{

    width:44px;

    height:44px;

    display:flex;

    align-items:center;

    justify-content:center;

    margin:0;

    padding:0;

    border:1px solid #d5dee7;

    border-radius:12px;

    background:#ffffff;

    color:#526579;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:19px;

    line-height:44px;

    cursor:pointer;

    transform:none !important;

    box-shadow:

        0 2px 6px rgba(17,39,76,.045);

    transition:

        color .2s ease,

        background .2s ease,

        border-color .2s ease,

        box-shadow .2s ease,

        transform .2s ease;

}


/* ===========================================
        هاور دکمه نوسازی
=========================================== */

.captcha-refresh:hover{

    transform:translateY(-1px) !important;

    background:#11274c;

    border-color:#11274c;

    color:#ffffff;

    box-shadow:

        0 5px 13px rgba(17,39,76,.16);

}


/* ===========================================
        حالت کلیک دکمه نوسازی
=========================================== */

.captcha-refresh:active{

    transform:translateY(0) !important;

    background:#167d50;

    border-color:#167d50;

    color:#ffffff;

    box-shadow:

        0 2px 6px rgba(22,125,80,.14);

}


/* ===========================================
        حالت فوکوس دکمه نوسازی
        مناسب کیبورد و دسترسی‌پذیری
=========================================== */

.captcha-refresh:focus-visible{

    outline:none;

    border-color:#2d8f67;

    box-shadow:

        0 0 0 3px rgba(45,143,103,.12),

        0 3px 9px rgba(17,39,76,.08);

}


/* ===========================================
        ریسپانسیو کپچا در موبایل
=========================================== */

@media (max-width:420px){

    .captcha-wrapper{

        grid-template-columns:auto minmax(0,1fr) 40px;

        gap:7px;

    }


    .captcha-label{

        font-size:14px;

    }


    .captcha-box{

        height:42px;

        font-size:19px;

        letter-spacing:3px;

        line-height:42px;

    }


    .captcha-refresh{

        width:40px;

        height:42px;

        font-size:18px;

        line-height:42px;

    }

}

/* =========================================================
        OTP — تایید پیامکی
        ظاهر مدرن، تمیز و هماهنگ با طراحی ناشران360
========================================================= */


/* =========================================================
        تایمر OTP
========================================================= */

.otp-timer{
    margin:18px 0 16px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;

    color:#526579;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:16px;
    font-weight:700;
    line-height:1.6;

    text-align:center;
}


/* =========================================================
        عدد شمارش معکوس
========================================================= */

#timer{
    min-width:42px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:3px 9px;

    border:1px solid rgba(211,47,47,.16);
    border-radius:8px;

    background:#fff5f5;

    color:#c62828;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:20px;
    font-weight:900;
    line-height:1.4;

    margin-right:4px;

    box-shadow:
        0 2px 7px rgba(198,40,40,.06);

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


/* =========================================================
        لینک‌های OTP
========================================================= */

.otp-links{
    margin-top:20px;

    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;

    text-align:center;
}


/* =========================================================
        لینک داخل OTP
========================================================= */

.otp-links a{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:6px 12px;

    border:1px solid transparent;
    border-radius:8px;

    color:#385675;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:15px;
    font-weight:800;

    text-decoration:none;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


/* =========================================================
        هاور لینک OTP
========================================================= */

.otp-links a:hover{
    color:#11274c;

    background:#f3f7fb;

    border-color:#dbe4ed;

    text-decoration:none;

    transform:translateY(-1px);
}


/* =========================================================
        فراموشی رمز عبور
========================================================= */

.forgot-password{
    margin-top:13px;

    display:flex;
    align-items:center;

    text-align:right;
}


/* =========================================================
        لینک فراموشی رمز
========================================================= */

.forgot-password a{
    display:inline-flex;
    align-items:center;

    padding:4px 7px;

    border-radius:7px;

    color:#64748b;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:14px;
    font-weight:700;

    text-decoration:none;

    transition:
        color .2s ease,
        background .2s ease;
}


/* =========================================================
        هاور فراموشی رمز
========================================================= */

.forgot-password a:hover{
    color:#11274c;

    background:#f3f7fb;

    text-decoration:none;
}


/* =========================================================
        فرم‌ها
========================================================= */

form{
    width:100%;
}


/* =========================================================
        دکمه‌های داخل فرم
========================================================= */

form button{
    margin-top:14px;
}


/* =========================================================
        خطوط جداکننده
========================================================= */

hr{
    border:none;

    border-top:1px solid #e4eaf0;

    margin:22px 0;

    opacity:.9;
}



/* =========================================================
        صفحه ثبت‌نام — Register Page
        تنظیم پس‌زمینه
========================================================= */

.register-page{
    background-size:cover;
    background-position:center;
}


/* =========================================================
        جدول‌های سایت
        ظاهر مدرن، تمیز و خوانا
========================================================= */

table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;

    overflow:hidden;

    background:#ffffff;

    border:1px solid #e1e8ef;
    border-radius:12px;

    box-shadow:
        0 4px 14px rgba(17,39,76,.045);
}


/* =========================================================
        عنوان ستون‌های جدول
========================================================= */

table th{
    padding:14px 13px;

    background:#11274c;
    color:#ffffff;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:16px;
    font-weight:900;

    line-height:1.6;
    text-align:center;

    border-bottom:1px solid #263f63;
}


/* =========================================================
        سلول‌های جدول
========================================================= */

table td{
    padding:12px 13px;

    background:#ffffff;

    color:#334155;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:15px;
    font-weight:600;

    line-height:1.7;

    border-bottom:1px solid #e8edf2;

    transition:
        background-color .2s ease,
        color .2s ease;
}


/* =========================================================
        حذف خط انتهای جدول
========================================================= */

table tr:last-child td{
    border-bottom:none;
}


/* =========================================================
        هاور ردیف جدول
========================================================= */

table tr:hover td{
    background:#f5f8fb;
    color:#11274c;
}


/* =========================================================
        هدر اصلی سایت
========================================================= */

header{
    width:100%;

    background:linear-gradient(
        135deg,
        #11274c 0%,
        #173866 100%
    );

    color:#ffffff;

    padding:16px 30px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    border-bottom:1px solid rgba(255,255,255,.08);

    box-shadow:
        0 4px 16px rgba(17,39,76,.12);
}


/* =========================================================
        عنوان هدر
========================================================= */

header h2{
    margin:0;

    color:#ffffff;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:28px;
    font-weight:900;

    line-height:1.4;
}


/* =========================================================
        منوی هدر
========================================================= */

header nav{
    display:flex;
    align-items:center;

    gap:8px;
}


/* =========================================================
        لینک‌های منوی هدر
========================================================= */

header nav a{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:7px 13px;

    border:1px solid transparent;
    border-radius:8px;

    color:#e9f0f7;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:15px;
    font-weight:700;

    text-decoration:none;

    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


/* =========================================================
        هاور لینک‌های هدر
========================================================= */

header nav a:hover{
    color:#ffffff;

    background:rgba(255,255,255,.09);

    border-color:rgba(255,255,255,.12);

    text-decoration:none;

    transform:translateY(-1px);
}


/* =========================================================
        Responsive — موبایل
========================================================= */

@media(max-width:768px){

    /* -----------------------------------------------------
            فرم ورود
    ----------------------------------------------------- */

    .login-container{
        width:95%;
        padding:25px;
    }


    /* -----------------------------------------------------
            عنوان فرم ورود
    ----------------------------------------------------- */

    .login-container h1{
        font-size:28px;
    }


    /* -----------------------------------------------------
            ورودی‌های فرم
    ----------------------------------------------------- */

    .input-group input{
        font-size:16px;
    }


    /* -----------------------------------------------------
            کپچا
    ----------------------------------------------------- */

    .captcha-wrapper{
        flex-direction:column;
        gap:10px;
    }


    .captcha-box{
        width:100%;
    }


    .captcha-refresh{
        width:100%;
    }


    /* -----------------------------------------------------
            هدر موبایل
    ----------------------------------------------------- */

    header{
        flex-direction:column;
        gap:15px;

        padding:15px 20px;
    }


    header h2{
        font-size:25px;
        text-align:center;
    }


    header nav{
        width:100%;

        justify-content:center;
        flex-wrap:wrap;

        gap:6px;
    }


    header nav a{
        padding:6px 11px;
        font-size:14px;
    }


    /* -----------------------------------------------------
            صفحه اصلی
    ----------------------------------------------------- */

    .home-container{
        width:95%;
    }

}


/* =========================================================
        انیمیشن ورود بخش لاگین
        Fade In — مدرن و نرم
========================================================= */

.login-container{
    animation:
        fadeIn .55s cubic-bezier(.22,1,.36,1);
}


/* =========================================================
        تعریف انیمیشن fadeIn
========================================================= */

@keyframes fadeIn{

    0%{
        opacity:0;

        transform:
            translateY(18px)
            scale(.985);
    }

    100%{
        opacity:1;

        transform:
            translateY(0)
            scale(1);
    }

}

/* =========================================================
        نوار اسکرول سایت
        طراحی مینیمال و مدرن ناشران360
========================================================= */


/* ---------------------------------------------------------
        اندازه کلی نوار اسکرول
--------------------------------------------------------- */

::-webkit-scrollbar{
    width:7px;
    height:7px;
}


/* ---------------------------------------------------------
        مسیر اسکرول
--------------------------------------------------------- */

::-webkit-scrollbar-track{
    background:#eef2f6;
}


/* ---------------------------------------------------------
        قسمت متحرک اسکرول
--------------------------------------------------------- */

::-webkit-scrollbar-thumb{
    background:linear-gradient(
        180deg,
        #8fa3b8 0%,
        #526b84 100%
    );

    border-radius:999px;

    border:1px solid #eef2f6;
}


/* ---------------------------------------------------------
        هاور روی اسکرول
--------------------------------------------------------- */

::-webkit-scrollbar-thumb:hover{
    background:linear-gradient(
        180deg,
        #526b84 0%,
        #11274c 100%
    );
}


/* ---------------------------------------------------------
        گوشه محل تقاطع اسکرول‌ها
--------------------------------------------------------- */

::-webkit-scrollbar-corner{
    background:#eef2f6;
}

/* =====================================================
        فضای کاری اصلی سایت — Workspace
===================================================== */

.workspace{
    flex:1;

    min-width:0;

    background:#f5f7fa;

    box-sizing:border-box;
}


/* =====================================================
        هدر فضای کاری
===================================================== */

.workspace-header{
    padding:0;

    background:transparent;

    border:none;

    box-shadow:none;
}


/* =====================================================
        بدنه فضای کاری
===================================================== */

.workspace-body{
    padding:20px 30px 34px 80px;

    background:#f5f7fa;

    box-sizing:border-box;
}


/* =====================================================
        هدر اصلی سایت
===================================================== */

header{
    width:100%;

    height:65px;

    position:relative;

    z-index:1000;

    background:#11274c;

    color:#ffffff;

    border:none;

    box-shadow:
        0 2px 10px rgba(17,39,76,.10);

    box-sizing:border-box;
}


/* =====================================================
        محفظه داخلی هدر
===================================================== */

.header-container{
    width:92%;

    max-width:1200px;

    height:65px;

    margin:0 auto;

    padding:0;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

    box-sizing:border-box;

    transform:none;
}


/* =====================================================
        لوگوی سایت
===================================================== */

.header-container h2{
    margin:0;

    padding:0;

    color:#ffffff;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:clamp(22px,2vw,30px);

    font-weight:900;

    line-height:1.4;

    white-space:nowrap;

    letter-spacing:0;

    text-shadow:
        0 1px 2px rgba(0,0,0,.10);
}


/* =====================================================
        منوی اصلی هدر
        دکمه‌ها جدا از یکدیگر
===================================================== */

.header-container nav{
    display:flex;

    align-items:center;

    justify-content:center;

    gap:9px;

    position:relative;

    left:-35px;

    margin:0;

    padding:0;

    background:transparent;

    border:none;

    box-shadow:none;
}


/* =====================================================
        هر دکمه به صورت مستقل
===================================================== */

.header-container nav a{
    min-width:92px;

    height:40px;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:0 15px;

    box-sizing:border-box;

    position:relative;

    color:#dce6f0;

    background:#18365b;

    border:1px solid rgba(255,255,255,.12);

    border-radius:10px;

    text-decoration:none;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:16px;

    font-weight:800;

    line-height:1;

    box-shadow:
        0 2px 6px rgba(0,0,0,.08),
        inset 0 1px 0 rgba(255,255,255,.045);

    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}


/* =====================================================
        خط ظریف زیر هر دکمه
===================================================== */

.header-container nav a::after{
    content:"";

    position:absolute;

    left:18px;

    right:18px;

    bottom:4px;

    height:2px;

    border-radius:999px;

    background:#35a879;

    opacity:0;

    transform:scaleX(.35);

    transition:
        opacity .2s ease,
        transform .2s ease;
}


/* =====================================================
        هاور دکمه‌های هدر
        تغییر رنگ واضح و مدرن
===================================================== */

.header-container nav a:hover{
    color:#11274c;

    background:#ffffff;

    border-color:#ffffff;

    text-decoration:none;

    transform:translateY(-2px);

    box-shadow:
        0 6px 15px rgba(0,0,0,.18);
}


/* =====================================================
        خط زیر دکمه هنگام هاور
===================================================== */

.header-container nav a:hover::after{
    background:#2d8f67;

    opacity:1;

    transform:scaleX(1);
}


/* =====================================================
        خط سبز هنگام هاور
===================================================== */

.header-container nav a:hover::after{
    opacity:1;

    transform:scaleX(1);
}


/* =====================================================
        حالت لینک فعال
===================================================== */

.header-container nav a.active,
.header-container nav a[aria-current="page"]{
    color:#ffffff;

    background:#235078;

    border-color:rgba(255,255,255,.22);

    box-shadow:
        0 4px 10px rgba(0,0,0,.12),
        inset 0 1px 0 rgba(255,255,255,.06);
}


/* =====================================================
        خط سبز لینک فعال
===================================================== */

.header-container nav a.active::after,
.header-container nav a[aria-current="page"]::after{
    opacity:1;

    transform:scaleX(1);
}


/* =====================================================
        حالت کلیک
===================================================== */

.header-container nav a:active{
    transform:translateY(0);

    box-shadow:
        0 2px 5px rgba(0,0,0,.08);
}


/* =====================================================
        نمایشگر متوسط
===================================================== */

@media(max-width:1100px){

    .header-container{
        width:95%;
    }

}


/* =====================================================
        موبایل و تبلت
===================================================== */

@media(max-width:768px){

    /* -------------------------------------------------
            هدر
    ------------------------------------------------- */

    header{
        height:60px;

        box-shadow:
            0 2px 8px rgba(17,39,76,.09);
    }


    /* -------------------------------------------------
            محفظه هدر
    ------------------------------------------------- */

    .header-container{
        width:100%;

        max-width:none;

        height:60px;

        padding:0 10px;

        flex-direction:row;

        align-items:center;

        justify-content:space-between;

        gap:8px;

        transform:none;
    }


    /* -------------------------------------------------
            لوگو
    ------------------------------------------------- */

    .header-container h2{
        font-size:clamp(18px,5vw,26px);

        margin:0;

        white-space:nowrap;
    }


    /* -------------------------------------------------
            منوی هدر موبایل
    ------------------------------------------------- */

    .header-container nav{
        display:flex;

        align-items:center;

        justify-content:center;

        gap:5px;

        width:auto;

        left:0;

        margin:0;

        padding:0;

        background:transparent;

        border:none;

        box-shadow:none;
    }


    /* -------------------------------------------------
            دکمه‌های جداگانه موبایل
    ------------------------------------------------- */

    .header-container nav a{
        min-width:65px;

        height:36px;

        padding:0 8px;

        flex:0 0 auto;

        border-radius:9px;

        font-size:14px;
    }


    /* -------------------------------------------------
            خط زیر دکمه موبایل
    ------------------------------------------------- */

    .header-container nav a::after{
        left:12px;

        right:12px;

        bottom:3px;
    }


    /* -------------------------------------------------
            فضای کاری موبایل
    ------------------------------------------------- */

    .workspace-body{
        padding:15px 12px 28px;

        background:#f5f7fa;
    }


    .workspace-header{
        padding:0;
    }

}


/* =====================================================
        موبایل خیلی کوچک
===================================================== */

@media(max-width:430px){

    .header-container{
        padding:0 7px;

        gap:5px;
    }


    .header-container h2{
        font-size:19px;
    }


    .header-container nav{
        gap:4px;

        left:0;
    }


    .header-container nav a{
        min-width:57px;

        height:34px;

        padding:0 6px;

        font-size:13px;

        border-radius:8px;
    }

}


/* =========================================================
        پشتیبانی شناور — Support Chat
        طراحی مدرن و حرفه‌ای ناشران360
========================================================= */


/* =========================================================
        کانتینر اصلی آیکون پشتیبانی
========================================================= */

.support-chat{
    position:fixed;

    left:24px;
    bottom:24px;

    z-index:9999;

    display:flex;
    align-items:center;
    justify-content:center;
}


/* =========================================================
        دکمه اصلی پشتیبانی
========================================================= */

.support-btn{
    width:58px;
    height:58px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:0;

    border:1px solid rgba(255,255,255,.18);
    border-radius:50%;

    background:
        linear-gradient(
            145deg,
            #16345c 0%,
            #11274c 65%,
            #0d203d 100%
        );

    color:#ffffff;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:27px;
    font-weight:900;

    line-height:1;

    cursor:pointer;

    box-shadow:
        0 8px 20px rgba(17,39,76,.22),
        0 2px 5px rgba(17,39,76,.10),
        inset 0 1px 0 rgba(255,255,255,.10);

    transition:
        transform .22s ease,
        background .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}


/* =========================================================
        هاور دکمه پشتیبانی
========================================================= */

.support-btn:hover{
    background:
        linear-gradient(
            145deg,
            #214b78 0%,
            #183b63 65%,
            #11274c 100%
        );

    border-color:rgba(255,255,255,.28);

    transform:translateY(-3px) scale(1.025);

    box-shadow:
        0 12px 26px rgba(17,39,76,.28),
        0 3px 7px rgba(17,39,76,.12),
        inset 0 1px 0 rgba(255,255,255,.12);
}


/* =========================================================
        حالت کلیک
========================================================= */

.support-btn:active{
    transform:translateY(-1px) scale(.98);

    box-shadow:
        0 5px 13px rgba(17,39,76,.20);
}


/* =========================================================
        اعلان روی آیکون
========================================================= */

.support-notification{
    position:absolute;

    top:-5px;
    right:-5px;

    min-width:22px;
    height:22px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:0 5px;

    box-sizing:border-box;

    background:#d9363e;

    color:#ffffff;

    border:2px solid #ffffff;
    border-radius:999px;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:12px;
    font-weight:900;

    line-height:1;

    box-shadow:
        0 3px 8px rgba(217,54,62,.25);

    animation:
        supportNotificationPulse 2.4s ease-in-out infinite;
}


/* =========================================================
        انیمیشن اعلان
========================================================= */

@keyframes supportNotificationPulse{

    0%,
    100%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.08);
    }

}


/* =========================================================
        منوی چت
========================================================= */

.support-menu{
    display:none;

    position:absolute;

    left:0;
    bottom:72px;

    width:210px;

    padding:7px;

    box-sizing:border-box;

    background:rgba(255,255,255,.97);

    border:1px solid #e0e7ee;
    border-radius:14px;

    overflow:hidden;

    box-shadow:
        0 16px 38px rgba(17,39,76,.15),
        0 4px 10px rgba(17,39,76,.06);

    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
}


/* =========================================================
        لینک‌های منوی پشتیبانی
========================================================= */

.support-menu a{
    display:flex;
    align-items:center;

    min-height:44px;

    padding:9px 12px;

    box-sizing:border-box;

    color:#334b63;

    border:1px solid transparent;
    border-radius:9px;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:15px;
    font-weight:800;

    line-height:1.5;

    text-decoration:none;

    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


/* =========================================================
        هاور لینک‌های منوی پشتیبانی
========================================================= */

.support-menu a:hover{
    color:#11274c;

    background:#f2f6fa;

    border-color:#e1e8ef;

    text-decoration:none;

    transform:translateX(-2px);
}


/* =========================================================
        پنل ثبت تیکت
========================================================= */

.ticket-panel{
    display:none;

    position:fixed;

    left:24px;
    bottom:94px;

    width:370px;

    padding:22px;

    box-sizing:border-box;

    background:rgba(255,255,255,.98);

    border:1px solid #dfe7ee;
    border-radius:18px;

    box-shadow:
        0 22px 55px rgba(17,39,76,.18),
        0 5px 14px rgba(17,39,76,.07);

    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);

    z-index:10000;
}


/* =========================================================
        عنوان پنل تیکت
========================================================= */

.ticket-panel h3{
    margin:0 0 18px;

    padding:0 0 13px;

    color:#11274c;

    border-bottom:1px solid #e5ebf0;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:21px;
    font-weight:900;

    line-height:1.5;
}


/* =========================================================
        ورودی موضوع
========================================================= */

.ticket-panel input{
    width:100%;
    height:44px;

    margin:0 0 13px;

    padding:0 13px;

    box-sizing:border-box;

    background:#f8fafc;

    border:1px solid #d7e0e8;
    border-radius:10px;

    color:#263b52;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:16px;
    font-weight:600;

    line-height:44px;

    outline:none;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}


/* =========================================================
        فوکوس موضوع
========================================================= */

.ticket-panel input:focus{
    background:#ffffff;

    border-color:#315f88;

    box-shadow:
        0 0 0 3px rgba(49,95,136,.10);
}


/* =========================================================
        پیام تیکت
========================================================= */

.ticket-panel textarea{
    width:100%;
    height:140px;

    margin:0 0 14px;

    padding:12px 13px;

    box-sizing:border-box;

    background:#f8fafc;

    border:1px solid #d7e0e8;
    border-radius:10px;

    color:#263b52;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:16px;
    font-weight:600;

    line-height:1.7;

    resize:none;

    outline:none;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}


/* =========================================================
        فوکوس پیام
========================================================= */

.ticket-panel textarea:focus{
    background:#ffffff;

    border-color:#315f88;

    box-shadow:
        0 0 0 3px rgba(49,95,136,.10);
}


/* =========================================================
        دکمه ارسال تیکت
========================================================= */

.ticket-panel button{
    width:100%;
    height:44px;

    margin:0;

    padding:0 16px;

    border:1px solid #183b63;
    border-radius:10px;

    background:
        linear-gradient(
            135deg,
            #183b63 0%,
            #11274c 100%
        );

    color:#ffffff;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:16px;
    font-weight:900;

    line-height:44px;

    cursor:pointer;

    box-shadow:
        0 5px 12px rgba(17,39,76,.14);

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


/* =========================================================
        هاور ارسال تیکت
========================================================= */

.ticket-panel button:hover{
    background:
        linear-gradient(
            135deg,
            #24557f 0%,
            #183b63 100%
        );

    border-color:#24557f;

    transform:translateY(-2px);

    box-shadow:
        0 8px 17px rgba(17,39,76,.19);
}


/* =========================================================
        حالت کلیک ارسال
========================================================= */

.ticket-panel button:active{
    transform:translateY(0);

    box-shadow:
        0 3px 8px rgba(17,39,76,.13);
}


/* =========================================================
        موبایل و تبلت
========================================================= */

@media(max-width:768px){

    /* -----------------------------------------------------
            آیکون پشتیبانی
    ----------------------------------------------------- */

    .support-chat{
        left:18px;

        bottom:18px;
    }


    .support-btn{
        width:54px;
        height:54px;

        font-size:25px;
    }


    /* -----------------------------------------------------
            اعلان
    ----------------------------------------------------- */

    .support-notification{
        top:-4px;
        right:-4px;

        min-width:21px;
        height:21px;
    }


    /* -----------------------------------------------------
            منوی پشتیبانی
    ----------------------------------------------------- */

    .support-menu{
        left:0;

        bottom:67px;

        width:200px;
    }


    /* -----------------------------------------------------
            پنل تیکت
    ----------------------------------------------------- */

    .ticket-panel{
        left:15px;
        right:15px;

        bottom:83px;

        width:auto;

        padding:18px;

        border-radius:16px;
    }


    .ticket-panel h3{
        font-size:19px;

        margin-bottom:16px;
    }


    .ticket-panel textarea{
        height:120px;
    }

}


/* =========================================================
        موبایل خیلی کوچک
========================================================= */

@media(max-width:430px){

    .support-chat{
        left:14px;

        bottom:14px;
    }


    .support-btn{
        width:52px;
        height:52px;

        font-size:24px;
    }


    .support-menu{
        width:190px;
    }


    .ticket-panel{
        left:10px;
        right:10px;

        bottom:78px;

        padding:16px;
    }

}


/* =====================================================
        نوار ابزار فضای کاری — Workspace Toolbar
        باکس اصلی + باکس مستقل برای هر تولبار
===================================================== */

.workspace{
    position:relative;
    background:#eef2f6;
}


/* -----------------------------------------------------
        باکس اصلی کل تولبار
----------------------------------------------------- */

.workspace-toolbar{
    display:flex;
    align-items:center;
    justify-content:flex-start;

    gap:10px;

    width:max-content;
    max-width:calc(100% - 24px);

    margin:14px 0 10px 12px;
    padding:9px 10px;

    box-sizing:border-box;

    background:linear-gradient(
        145deg,
        #c8d2dc 0%,
        #b8c4cf 100%
    );

    border:1px solid #aab7c4;
    border-radius:15px;

    box-shadow:
        0 5px 16px rgba(17,39,76,.10),
        inset 0 1px 0 rgba(255,255,255,.55);

    position:relative;
    left:-20px;

    z-index:5;
}


/* -----------------------------------------------------
        عنوان ناشران360
----------------------------------------------------- */

.header-container h2{
    transform:translateX(0);
}


/* -----------------------------------------------------
        منوی هدر
----------------------------------------------------- */

.header-container nav{
    transform:translateX(30px);
}


/* -----------------------------------------------------
        هر تولبار داخل باکس مستقل
----------------------------------------------------- */

.toolbar-item{
    display:flex;
    align-items:center;
    justify-content:center;

    min-width:110px;
    height:42px;

    padding:0 15px;
    margin:0;

    box-sizing:border-box;

    flex:0 0 auto;

    white-space:nowrap;
    text-decoration:none;

    color:#30475e;

    background:linear-gradient(
        145deg,
        #f4f7f9 0%,
        #e8edf2 100%
    );

    border:1px solid #c4cfd9;
    border-radius:10px;

    font-family:"B Nazanin",Tahoma,sans-serif;
    font-size:16px;
    font-weight:800;
    line-height:1;

    cursor:pointer;

    box-shadow:
        0 2px 6px rgba(17,39,76,.07),
        inset 0 1px 0 rgba(255,255,255,.85);

    transition:
        background .22s ease,
        color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}


/* -----------------------------------------------------
        Hover تولبار
----------------------------------------------------- */

.toolbar-item:hover{
    color:#ffffff;

    background:linear-gradient(
        145deg,
        #2d966c 0%,
        #167d50 100%
    );

    border-color:#167d50;

    transform:translateY(-2px);

    box-shadow:
        0 6px 14px rgba(22,125,80,.20),
        inset 0 1px 0 rgba(255,255,255,.14);

    text-decoration:none;
}


/* -----------------------------------------------------
        تولبار فعال
----------------------------------------------------- */

.toolbar-item.active{
    color:#ffffff;

    background:linear-gradient(
        145deg,
        #183b63 0%,
        #11274c 100%
    );

    border-color:#11274c;

    transform:none;

    box-shadow:
        0 4px 11px rgba(17,39,76,.18),
        inset 0 1px 0 rgba(255,255,255,.10);
}


/* -----------------------------------------------------
        Hover روی تولبار فعال
----------------------------------------------------- */

.toolbar-item.active:hover{
    color:#ffffff;

    background:linear-gradient(
        145deg,
        #24557f 0%,
        #183b63 100%
    );

    border-color:#183b63;

    transform:translateY(-2px);

    box-shadow:
        0 7px 16px rgba(17,39,76,.21),
        inset 0 1px 0 rgba(255,255,255,.12);
}


/* -----------------------------------------------------
        حالت کلیک
----------------------------------------------------- */

.toolbar-item:active{
    transform:translateY(0);
}


/* -----------------------------------------------------
        ریسپانسیو — تبلت و موبایل
----------------------------------------------------- */

@media(max-width:768px){

    .workspace{
        background:#eef2f6;
    }

    .workspace-toolbar{
        width:calc(100% - 18px);
        max-width:none;

        margin:12px 9px 8px;

        padding:8px;

        gap:7px;

        left:0;

        border-radius:13px;

        overflow-x:auto;
        overflow-y:hidden;
    }

    .toolbar-item{
        min-width:90px;
        height:40px;

        padding:0 12px;

        font-size:15px;

        border-radius:9px;
    }
}


/* -----------------------------------------------------
        ریسپانسیو — موبایل کوچک
----------------------------------------------------- */

@media(max-width:430px){

    .workspace-toolbar{
        width:calc(100% - 14px);

        margin:10px 7px 7px;

        padding:7px;

        gap:6px;

        left:0;

        border-radius:12px;
    }

    .toolbar-item{
        min-width:78px;
        height:38px;

        padding:0 10px;

        font-size:14px;

        border-radius:8px;
    }
}


/* =====================================================
   🔍 Search Box — کادر جستجوی مدرن
===================================================== */


/* -----------------------------------------------------
   کانتینر اصلی سرچ
----------------------------------------------------- */

.search-panel{
    display:flex;

    justify-content:flex-end;
    align-items:center;

    margin-top:-17px;
    padding-left:50px;

    box-sizing:border-box;
}


/* -----------------------------------------------------
   عنوان سرچ
----------------------------------------------------- */

#searchTitle{
    margin:0 0 12px;
    padding:0;

    color:#263b52;

    font-family:"B Nazanin",Tahoma,sans-serif;
    font-size:18px;
    font-weight:800;

    line-height:1.4;
}


/* -----------------------------------------------------
   فرزندان مستقیم پنل سرچ
----------------------------------------------------- */

.search-panel > *{
    margin:-6px;
}


/* -----------------------------------------------------
   محفظه سرچ و آیکون
----------------------------------------------------- */

.search-wrapper{
    position:relative;

    display:flex;
    align-items:center;

    width:280px;
}


/* -----------------------------------------------------
   کادر تایپ سرچ
----------------------------------------------------- */

.search-box{
    width:100%;
    height:44px;

    padding:0 45px 0 17px;

    box-sizing:border-box;

    color:#263b52;

    background:linear-gradient(
        145deg,
        #ffffff 0%,
        #f5f8fa 100%
    );

    border:1px solid #cbd6e0;
    border-radius:12px;

    outline:none;

    font-family:"B Nazanin",Tahoma,sans-serif;
    font-size:17px;
    font-weight:600;

    line-height:44px;

    box-shadow:
        0 3px 9px rgba(17,39,76,.07),
        inset 0 1px 0 rgba(255,255,255,.90);

    transition:
        border-color .22s ease,
        background .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}


/* -----------------------------------------------------
   حالت Hover
----------------------------------------------------- */

.search-box:hover{
    border-color:#b5c3cf;

    background:#ffffff;

    box-shadow:
        0 5px 13px rgba(17,39,76,.09),
        inset 0 1px 0 rgba(255,255,255,.95);
}


/* -----------------------------------------------------
   حالت Focus
----------------------------------------------------- */

.search-box:focus{
    border-color:#315f88;

    background:#ffffff;

    box-shadow:
        0 5px 15px rgba(17,39,76,.11),
        0 0 0 3px rgba(49,95,136,.10);

    transform:translateY(-1px);
}


/* -----------------------------------------------------
   متن راهنما
----------------------------------------------------- */

.search-box::placeholder{
    color:#8b98a6;

    font-family:"B Nazanin",Tahoma,sans-serif;
    font-size:15px;
    font-weight:600;

    opacity:1;
}


/* -----------------------------------------------------
   آیکون ذره‌بین
----------------------------------------------------- */

.search-icon{
    position:absolute;

    right:14px;
    top:60%;

    display:flex;
    align-items:center;
    justify-content:center;

    width:22px;
    height:22px;

    color:#607386;

    font-size:18px;
    line-height:1;

    transform:translateY(-50%);

    pointer-events:none;

    transition:
        color .22s ease,
        transform .22s ease;
}


/* -----------------------------------------------------
   تغییر آیکون هنگام Focus
----------------------------------------------------- */

.search-wrapper:focus-within .search-icon{
    color:#315f88;

    transform:
        translateY(-50%)
        scale(1.06);
}


/* -----------------------------------------------------
   ریسپانسیو — تبلت و موبایل
----------------------------------------------------- */

@media(max-width:768px){

    .search-panel{
        width:100%;

        justify-content:center;

        margin-top:0;
        padding:8px 12px;
    }

    .search-panel > *{
        margin:0;
    }

    .search-wrapper{
        width:min(100%,320px);
    }

    .search-box{
        height:42px;

        font-size:16px;

        line-height:42px;
    }
}


/* -----------------------------------------------------
   موبایل کوچک
----------------------------------------------------- */

@media(max-width:430px){

    .search-panel{
        padding:7px 9px;
    }

    .search-wrapper{
        width:100%;
    }

    .search-box{
        height:40px;

        padding-right:43px;

        border-radius:10px;

        font-size:15px;

        line-height:40px;
    }

    .search-box::placeholder{
        font-size:14px;
    }

    .search-icon{
        right:13px;
        font-size:17px;
    }
}

/* =====================================================
        منوی کشویی نوار ابزار — Toolbar Dropdown
===================================================== */

.toolbar-dropdown{
    position:relative;
    display:inline-flex;
    align-items:center;
}


/* =====================================================
        پنل اصلی منوی کشویی
===================================================== */

.toolbar-menu{
    display:none;

    position:absolute;
    top:calc(100% + 9px);
    right:0;

    min-width:210px;
    max-width:280px;

    margin:0;
    padding:7px;

    box-sizing:border-box;

    background:rgba(255,255,255,.98);

    border:1px solid #d9e1e8;
    border-radius:13px;

    box-shadow:
        0 16px 35px rgba(17,39,76,.14),
        0 5px 12px rgba(17,39,76,.06),
        inset 0 1px 0 rgba(255,255,255,.95);

    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    overflow:hidden;

    z-index:9999;

    opacity:0;
    transform:translateY(-5px) scale(.98);
    transform-origin:top right;

    pointer-events:none;

    transition:
        opacity .20s ease,
        transform .20s ease;
}


/* =====================================================
        حالت باز منوی کشویی
===================================================== */

.toolbar-menu.open{
    display:block;

    opacity:1;
    transform:translateY(0) scale(1);

    pointer-events:auto;
}


/* =====================================================
        لینک‌های داخل منوی کشویی
===================================================== */

.toolbar-menu a{
    display:flex;
    align-items:center;
    justify-content:flex-start;

    width:100%;
    min-height:44px;

    padding:9px 13px;
    margin:0 0 4px;

    box-sizing:border-box;

    color:#30475e;

    background:transparent;

    border:1px solid transparent;
    border-radius:9px;

    text-decoration:none;

    font-family:"B Nazanin",Tahoma,sans-serif;
    font-size:15px;
    font-weight:800;
    line-height:1.5;

    transition:
        color .20s ease,
        background-color .20s ease,
        border-color .20s ease,
        transform .20s ease,
        box-shadow .20s ease;
}


/* آخرین گزینه */

.toolbar-menu a:last-child{
    margin-bottom:0;
}


/* =====================================================
        هاور گزینه‌های منو
===================================================== */

.toolbar-menu a:hover{
    color:#11274c;

    background:#f1f5f8;

    border-color:#dce5ed;

    transform:translateX(-2px);

    box-shadow:
        inset 3px 0 0 #2d966c;
}


/* =====================================================
        گزینه فعال منو
===================================================== */

.toolbar-menu a.active{
    color:#ffffff;

    background:linear-gradient(
        135deg,
        #183b63 0%,
        #11274c 100%
    );

    border-color:#183b63;

    box-shadow:
        0 4px 10px rgba(17,39,76,.15),
        inset 0 1px 0 rgba(255,255,255,.08);

    transform:none;
}


/* هاور گزینه فعال */

.toolbar-menu a.active:hover{
    color:#ffffff;

    background:linear-gradient(
        135deg,
        #24557f 0%,
        #183b63 100%
    );

    border-color:#24557f;

    transform:translateX(-2px);
}


/* =====================================================
        فلش دکمه منوی کشویی
===================================================== */

.toolbar-arrow{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    margin-right:6px;

    color:currentColor;

    font-size:11px;
    line-height:1;

    transition:
        transform .25s ease,
        color .20s ease;
}


/* فلش هنگام باز بودن منو */

.toolbar-dropdown-btn.active .toolbar-arrow{
    transform:rotate(180deg);
}


/* =====================================================
        ریسپانسیو — تبلت و موبایل
===================================================== */

@media(max-width:768px){

    .toolbar-menu{
        min-width:190px;
        max-width:calc(100vw - 24px);

        right:0;

        border-radius:12px;
    }

    .toolbar-menu a{
        min-height:42px;

        padding:8px 12px;

        font-size:14px;
    }
}


/* =====================================================
        موبایل کوچک
===================================================== */

@media(max-width:430px){

    .toolbar-menu{
        min-width:175px;
        max-width:calc(100vw - 18px);

        padding:6px;

        border-radius:11px;
    }

    .toolbar-menu a{
        min-height:40px;

        padding:8px 10px;

        font-size:14px;

        border-radius:8px;
    }
}


/* =========================================================
   GOLD SECTION — MODERN PROFESSIONAL
========================================================= */


/* =========================================================
   فضای کاری صفحه طلا
========================================================= */

.gold-workspace{
    display:flex;
    gap:20px;
    width:100%;
    height:calc(100vh - 100px);
    overflow:hidden;
    position:relative;
    top:-50px;
}


/* =========================================================
   کادر ماشین حساب طلا — سمت چپ
========================================================= */

.gold-calculator{
    width:30%;
    min-height:700px;

    background:
        radial-gradient(
            circle at 18% 8%,
            rgba(255,255,255,.98) 0%,
            rgba(255,255,255,0) 42%
        ),
        linear-gradient(
            145deg,
            #f9fbfd 0%,
            #f1f5f9 52%,
            #e9eef4 100%
        );

    border:1px solid #cbd5e1;
    border-radius:15px;

    box-shadow:
        0 18px 38px rgba(15,23,42,.12),
        0 5px 13px rgba(15,23,42,.07),
        inset 0 1px 0 rgba(255,255,255,1),
        inset 0 -1px 0 rgba(148,163,184,.08);

    box-sizing:border-box;
}


/* =========================================================
   کادر بازار طلا — سمت راست
   بدون تغییر موقعیت
========================================================= */

.gold-market{
    width:70%;
    min-height:700px;

    background:
        radial-gradient(
            circle at 18% 8%,
            rgba(255,255,255,.98) 0%,
            rgba(255,255,255,0) 42%
        ),
        linear-gradient(
            145deg,
            #f9fbfd 0%,
            #f1f5f9 52%,
            #e9eef4 100%
        );

    border:1px solid #cbd5e1;
    border-radius:15px;

    box-shadow:
        0 18px 38px rgba(15,23,42,.12),
        0 5px 13px rgba(15,23,42,.07),
        inset 0 1px 0 rgba(255,255,255,1),
        inset 0 -1px 0 rgba(148,163,184,.08);

    box-sizing:border-box;
    position:relative;
}


/* =========================================================
   انتقال کامل محتوای ماشین حساب سمت چپ
   زیرگروه‌ها + عنوان‌ها + فیلدها + خروجی‌ها + دکمه‌ها
   خود کادر ماشین حساب جابه‌جا نمی‌شود
========================================================= */

.gold-calculator > .gold-left-menu,
.gold-calculator > #gold-calculator-content{
    position:relative;
    transform:translateX(-20px);
}


/* =========================================================
   منوی اصلی طلا
========================================================= */

.gold-menu-toggle{
    display:flex;
    align-items:center;
    gap:5px;
    width:fit-content;
    margin-top:6px;
    margin-right:20px;

    text-decoration:none;
    color:#1d4ed8;

    font-size:17px;
    font-weight:700;

    transition:
        color .2s ease,
        text-shadow .2s ease;
}

.gold-arrow{
    font-size:12px;
}

.gold-text{
    position:relative;
}

.gold-menu-toggle span.text{
    position:relative;
}

.gold-menu-toggle:hover{
    color:#dc2626;
}

.gold-submenu{
    display:none;
    list-style:none;

    margin:4px 0 0 0;
    padding:5px;

    border-radius:12px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.96),
            rgba(241,245,249,.90)
        );

    border:1px solid #d7e0e9;

    box-shadow:
        0 7px 18px rgba(15,23,42,.07),
        inset 0 1px 0 rgba(255,255,255,1);
}

.gold-submenu.open{
    display:block;
}


/* =========================================================
   لیست اول
========================================================= */

.gold-submenu a{
    position:relative;

    display:inline-block;

    padding:9px 15px;
    margin:2px 0;

    text-decoration:none;

    color:#334155;

    font-size:15px;
    font-weight:600;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f4f7fa
        );

    border:1px solid #d6e0e9;
    border-radius:11px;

    box-shadow:
        0 3px 7px rgba(15,23,42,.05),
        inset 0 1px 0 rgba(255,255,255,1);

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.gold-submenu a:hover{
    color:#1d4ed8;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #edf4ff
        );

    border-color:#b8cdf0;

    box-shadow:
        0 5px 12px rgba(37,99,235,.10),
        inset 0 1px 0 rgba(255,255,255,1);

    transform:translateX(-2px);
}

.gold-menu{
    width:100%;
}


/* =========================================================
   دکمه بستن
========================================================= */

.login-container{
    position:relative;
}

.close-page{
    position:absolute;

    top:10px;
    left:15px;

    font-size:30px;

    text-decoration:none;
    color:#64748b;

    cursor:pointer;
    z-index:10;

    transition:
        color .2s ease,
        transform .2s ease;
}

.close-page:hover{
    color:#dc2626;
    transform:scale(1.04);
}


/* =========================================================
   پیام OTP
========================================================= */

.otp-message{
    position:fixed;

    top:20px;
    right:50%;

    transform:translateX(50%);

    background:
        linear-gradient(
            145deg,
            #1e293b,
            #0f172a
        );

    color:white;

    padding:12px 25px;

    border-radius:11px;

    border:1px solid rgba(255,255,255,.08);

    z-index:9999;

    font-size:15px;
    font-weight:600;

    cursor:pointer;

    box-shadow:
        0 12px 28px rgba(15,23,42,.23),
        inset 0 1px 0 rgba(255,255,255,.08);
}


/* =========================================================
   محتوای ماشین حساب
========================================================= */

#gold-calculator-content{
    width:100%;
    margin-top:25px;
}

#gold-calculator-title{
    margin-top:10px;
    margin-bottom:30px;

    font-size:18px;
    font-weight:800;

    color:#172033;

    transform:translateX(-20px);

    letter-spacing:-.2px;
}


/* =========================================================
   فیلدهای اصلی
========================================================= */

#new-gold-calculator input,
#melted-gold-calculator input{
    width:78%;
    height:44px;

    margin-right:35px;

    border:1px solid #cbd5e1;
    border-radius:11px;

    padding:0 15px;

    font-size:16px;
    font-weight:500;

    color:#1e293b;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f5f8fb 100%
        );

    outline:none;

    box-shadow:
        inset 0 1px 2px rgba(15,23,42,.045),
        0 2px 6px rgba(15,23,42,.045);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

#new-gold-calculator input:hover,
#melted-gold-calculator input:hover{
    border-color:#b8c5d4;
}

#new-gold-calculator input:focus,
#melted-gold-calculator input:focus{
    border-color:#4f83e8;

    background:#ffffff;

    box-shadow:
        0 0 0 3px rgba(37,99,235,.09),
        0 5px 13px rgba(15,23,42,.06);
}

#new-gold-calculator input,
#melted-gold-calculator input{
    margin-bottom:1px;
}


/* =========================================================
   خطوط جداکننده
========================================================= */

#new-gold-calculator hr,
#melted-gold-calculator hr{
    width:78%;

    margin:10px 0;
    margin-right:35px;

    border:none;
    border-top:1px solid #d7e0e9;
}


/* =========================================================
   خروجی‌ها
========================================================= */

.output-row{
    width:85%;

    display:flex;
    align-items:center;
    justify-content:flex-start;

    gap:20px;

    margin-right:15px;
    margin-bottom:1px;
}

.output-row label{
    width:120px;

    white-space:nowrap;

    font-size:16px;
    font-weight:700;

    color:#334155;

    margin-right:0;
}

.output-row input{
    width:200px;
    height:38px;

    border:1px solid #cbd5e1;
    border-radius:11px;

    padding:0 15px;

    font-size:16px;

    color:#1e293b;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f5f8fb 100%
        );

    box-shadow:
        inset 0 1px 2px rgba(15,23,42,.045),
        0 2px 6px rgba(15,23,42,.04);

    box-sizing:border-box;
}

#new-gold-calculator .output-row,
#melted-gold-calculator .output-row{
    width:100%;

    display:flex;
    align-items:center;
}

#new-gold-calculator .output-row label,
#melted-gold-calculator .output-row label{
    width:120px;
    margin-right:0;
    transform:translateX(20px);        /* حرکت عنوان فروش مغازه دار توی طلای نو و ابشده */
}

#new-gold-calculator .output-row input,
#melted-gold-calculator .output-row input{
    width:200px !important;
    height:40px !important;
    margin-right:-1px !important;
}

/* خروجی‌های طلای نو */
#new-gold-calculator .output-row input{
    transform:translateX(10px);
}

/* خروجی‌های طلای آب‌شده */
#melted-gold-calculator .output-row input{
    transform:translateX(20px);
}


/* =========================================================
   دکمه محاسبه
========================================================= */

#new-gold-calculator button,
#melted-gold-calculator button{
    width:150px;
    height:40px;

    margin:10px 170px 0 0;

    display:block;

    border:1px solid #1d4ed8;
    border-radius:10px;

    background:
        linear-gradient(
            145deg,
            #3b82f6 0%,
            #2563eb 50%,
            #1d4ed8 100%
        );

    color:white;

    font-size:17px;
    font-weight:700;

    cursor:pointer;

    box-shadow:
        0 7px 15px rgba(37,99,235,.19),
        inset 0 1px 0 rgba(255,255,255,.22);

    transition:
        background .2s ease,
        box-shadow .2s ease,
        transform .15s ease;
}

#new-gold-calculator button:hover,
#melted-gold-calculator button:hover{
    background:
        linear-gradient(
            145deg,
            #60a5fa 0%,
            #2563eb 48%,
            #1e40af 100%
        );

    box-shadow:
        0 9px 19px rgba(37,99,235,.25),
        inset 0 1px 0 rgba(255,255,255,.24);

    transform:translateY(-1px);
}

#new-gold-calculator button:active,
#melted-gold-calculator button:active{
    transform:translateY(0);
}


/* =========================================================
   فرم‌ها
========================================================= */

#new-gold-calculator,
#melted-gold-calculator{
    width:100%;

    display:flex;
    flex-direction:column;
    align-items:flex-start;

    gap:1px;
}

#new-gold-calculator > .input-row,
#melted-gold-calculator > .input-row{
    display:flex;
    flex-direction:row;
    align-items:center;

    width:100%;

    margin-bottom:12px;
}

#new-gold-calculator .input-row label,
#melted-gold-calculator .input-row label{
    width:120px;

    text-align:right;

    margin-left:30px;

    white-space:nowrap;

    color:#334155;
}

#new-gold-calculator .input-row input,
#melted-gold-calculator .input-row input{
    width:300px;
    height:40px;
}


/* =========================================================
   تنظیم نهایی طلای نو
========================================================= */

#new-gold-calculator .input-row{
    display:flex;
    align-items:center;

    width:100%;

    margin-bottom:1px;
}

#new-gold-calculator .input-row label{
    width:130px;

    margin-right:25px;

    font-size:16px;
    font-weight:700;

    color:#334155;

    transform:translateX(10px);
}

#new-gold-calculator .input-row input{
    width:200px;

    margin-right:-35px;
}


/* =========================================================
   جایگاه فیلدهای طلای آبشده
========================================================= */

#melted-gold-calculator .input-row{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    width:100%;
}

#melted-gold-calculator .input-row label{
    width:90px;
    margin-left:8px;
    font-weight:700;
    transform:translateX(-5px);
    flex-shrink:0;
}

#melted-gold-calculator .input-row input{
    width:200px;
    height:40px;
    margin-right:40px;
    transform:none;
    box-sizing:border-box;
}

#melted-gold-calculator button{
    margin-right:160px;
}


/* =========================================================
   GOLD LEFT MENU
========================================================= */

.gold-left-menu{
    width:fit-content;
}

.gold-left-menu-toggle{
    display:flex;
    align-items:center;

    gap:5px;

    width:fit-content;

    margin-top:6px;
    margin-right:20px;

    text-decoration:none;

    color:#1d4ed8;

    font-size:17px;
    font-weight:700;

    transition:
        color .2s ease,
        text-shadow .2s ease;
}

.gold-left-arrow{
    font-size:12px;
}

.gold-left-submenu{
    display:none;

    list-style:none;

    margin:4px 0 0 0;
    padding:5px;

    border-radius:12px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.96),
            rgba(241,245,249,.90)
        );

    border:1px solid #d7e0e9;

    box-shadow:
        0 7px 18px rgba(15,23,42,.07),
        inset 0 1px 0 rgba(255,255,255,1);
}

.gold-left-submenu.open{
    display:block;
}


/* =========================================================
   لیست دوم
========================================================= */

.gold-left-submenu a{
    display:block;

    padding:9px 15px;
    margin:2px 0;

    text-decoration:none;

    color:#334155;

    font-size:15px;
    font-weight:600;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f4f7fa
        );

    border:1px solid #d6e0e9;
    border-radius:11px;

    box-shadow:
        0 3px 7px rgba(15,23,42,.05),
        inset 0 1px 0 rgba(255,255,255,1);

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.gold-left-submenu a:hover{
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #edf4ff
        );

    border-color:#b8cdf0;

    color:#1d4ed8;

    box-shadow:
        0 5px 12px rgba(37,99,235,.10),
        inset 0 1px 0 rgba(255,255,255,1);

    transform:translateX(-2px);
}

.gold-left-submenu a{
    position:relative;
}


/* =========================================================
   INTRINSIC GOLD CALCULATOR
========================================================= */

#intrinsic-gold-calculator{
    width:100%;

    margin-top:0px;
    padding:20px;

    position:relative;

    border-left:1px solid #d3dde8;

    background:
        radial-gradient(
            circle at 15% 5%,
            rgba(255,255,255,.98),
            rgba(255,255,255,0) 45%
        ),
        linear-gradient(
            145deg,
            #f9fbfd 0%,
            #eef3f7 100%
        );

    border-radius:11px;

    box-shadow:
        inset 1px 0 0 rgba(255,255,255,.9),
        inset 0 1px 0 rgba(255,255,255,.9),
        0 4px 12px rgba(15,23,42,.05);

    box-sizing:border-box;
}

.left-gold-title{
    font-size:18px;
    font-weight:800;

    color:#172033;

    margin-bottom:25px;

    letter-spacing:-.2px;
}

.left-input-row,
.left-output-row{
    display:flex;
    align-items:center;

    width:100%;

    margin-bottom:5px;
}

.left-input-row label,
.left-output-row label{
    width:150px;

    font-size:15px;
    font-weight:700;

    color:#334155;

    white-space:nowrap;
}

.left-input-row input,
.left-output-row input{
    width:220px;
    height:38px;

    border:1px solid #cbd5e1;
    border-radius:10px;

    padding:0 12px;

    font-size:15px;

    color:#1e293b;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f5f8fb 100%
        );

    outline:none;

    box-shadow:
        inset 0 1px 2px rgba(15,23,42,.045),
        0 2px 6px rgba(15,23,42,.04);

    box-sizing:border-box;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.left-input-row input:hover,
.left-output-row input:hover{
    border-color:#b8c5d4;
}

.left-input-row input:focus{
    border-color:#4f83e8;

    background:#ffffff;

    box-shadow:
        0 0 0 3px rgba(37,99,235,.09),
        0 5px 12px rgba(15,23,42,.06);
}

#intrinsic-gold-calculator hr{
    width:90%;

    margin:18px 0;

    border:none;
    border-top:1px solid #d7e0e9;
}


/* =========================================================
   دکمه ارزش ذاتی
========================================================= */

.intrinsic-calculate-btn{
    width:150px;
    height:45px;

    margin:10px auto 0 auto;

    display:block;

    border:1px solid #1d4ed8;
    border-radius:10px;

    background:
        linear-gradient(
            145deg,
            #3b82f6,
            #2563eb,
            #1d4ed8
        );

    color:white;

    font-size:17px;
    font-weight:700;

    cursor:pointer;

    box-shadow:
        0 7px 15px rgba(37,99,235,.20),
        inset 0 1px 0 rgba(255,255,255,.22);

    transition:
        background .2s ease,
        box-shadow .2s ease,
        transform .15s ease;

    position:relative;

    right:75px;
}

.intrinsic-calculate-btn:hover{
    background:
        linear-gradient(
            145deg,
            #60a5fa,
            #2563eb,
            #1e40af
        );

    box-shadow:
        0 9px 19px rgba(37,99,235,.27),
        inset 0 1px 0 rgba(255,255,255,.24);

    transform:translateY(-1px);
}


/* =========================================================
   زیرکشوی دوم
========================================================= */

#mozzaneh-calculator .left-input-row,
#mozzaneh-calculator .left-output-row{
    margin-bottom:5px;
}

#mozzaneh-calculator .intrinsic-calculate-btn{
    width:160px;
    height:40px;

    margin:8px auto 15px auto;

    display:block;
}

#mozzaneh-calculator .left-input-row label,
#mozzaneh-calculator .left-output-row label{
    transform:translateX(-10px);
}

#mozzaneh-calculator{
    margin-top:20px;
}


/* =========================================================
   ورودی بازار
   بدون تغییر
========================================================= */

.market-inputs-left{
    position:absolute;

    right:430px;
    top:20px;

    width:45%;
}

.market-inputs-left .left-input-row{
    display:flex;
    align-items:center;
}

.market-inputs-left .left-input-row label{
    width:180px;

    flex-shrink:0;

    color:#334155;
    font-weight:700;
}

.market-inputs-left .left-input-row input{
    margin-right:0;
}

.market-inputs-left .left-input-row label{
    transform:translateX(0px);
}


/* =========================================================
   دو ستون پایین
   بدون تغییر
========================================================= */

.bottom-two-columns{
    display:flex;
    flex-direction:row;

    gap:50px;

    margin-top:30px;
}

.bottom-column{
    display:flex;
    flex-direction:column;

    gap:1px;
}

.bottom-column .left-input-row{
    display:flex;
    align-items:center;

    width:100%;
}

.bottom-column .left-input-row label{
    width:150px;

    font-size:14px;
    font-weight:700;

    white-space:nowrap;

    color:#334155;
}

.bottom-column .left-input-row input{
    width:110px;
    height:32px;

    border:1px solid #cbd5e1;
    border-radius:9px;

    padding:0 10px;

    color:#1e293b;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7f9fc 100%
        );

    box-shadow:
        inset 0 1px 2px rgba(15,23,42,.045),
        0 2px 5px rgba(15,23,42,.04);

    box-sizing:border-box;
}

.dollar-column .left-input-row input{
    transform:translateX(75px);
}

.bubble-column .left-input-row input{
    transform:translateX(65px);
}

.bubble-column{
    transform:translateX(110px);
}


/* =========================================================
   پیام سایت
========================================================= */

#site-message{
    position:fixed;

    top:20px;
    right:50%;

    transform:translateX(50%);

    background:
        linear-gradient(
            135deg,
            rgb(138,7,51),
            rgb(112,5,42)
        );

    color:white;

    padding:12px 25px;

    border-radius:10px;

    border:1px solid rgba(255,255,255,.08);

    z-index:9999;

    display:none;

    font-size:18px;

    box-shadow:
        0 10px 25px rgba(15,23,42,.22),
        inset 0 1px 0 rgba(255,255,255,.08);
}

#site-message.show{
    display:block;
}


/* =========================================================
   MOZANNEH CONTROL
========================================================= */

#mozzaneh-calculator{
    position:relative;

    top:0px;
    right:10px;
}

#mozzaneh-calculator .left-gold-title{
    margin-top:0px;
    margin-bottom:5px;
}

#mozzaneh-calculator .left-input-row{
    position:relative;

    top:0px;
    right:0px;

    margin-bottom:10px;
}

#mozzaneh-calculator .left-input-row label{
    position:relative;

    top:0px;
    right:0px;
}

#mozzaneh-calculator .left-input-row input{
    position:relative;

    top:0px;
    right:0px;
}

#mozzaneh-calculator hr{
    position:relative;

    top:0px;

    margin-top:8px;
    margin-bottom:8px;
}

#mozzaneh-calculator .left-output-row{
    position:relative;

    top:0px;
    right:0px;

    margin-bottom:3px;
}

#mozzaneh-calculator .left-output-row label{
    position:relative;

    top:0px;
    right:0px;
}

#mozzaneh-calculator .left-output-row input{
    position:relative;

    top:0px;
    right:0px;
}

#mozzaneh-calculator .intrinsic-calculate-btn{
    position:relative;

    top:0px;
    right:70px;

    margin-top:5px;

    height:35px;
}


/* =========================================================
   حذف فلش
========================================================= */

.gold-arrow,
.gold-left-arrow{
    display:none;
}

/* =========================================================
   GOLD CALCULATOR — POSITION & CONTENT
========================================================= */

/* جابه‌جایی کل کادر ماشین حساب */
.gold-calculator{
    position:relative;
    left:-15px;
}


/* =========================================================
   نوشته‌های داخل ماشین حساب
   فقط نوشته‌ها؛ فیلدها و حباب‌ها بدون تغییر
========================================================= */

#gold-calculator-content .left-gold-title,
#gold-calculator-content .input-row label,
#gold-calculator-content .output-row label{
    position:relative;
    left:-10px;
}


/* =========================================================
   جابه‌جایی زیرگروه‌های کادر طلا
========================================================= */

.gold-market > .gold-left-menu,
.gold-market > #gold-calculator-content{
    position:relative;
    transform:translateX(-20px);
}


/* =========================================================
   حباب زیرگروه‌های ماشین حساب
   عرض حباب فقط به اندازه محتوای آن باشد
========================================================= */

#gold-calculator-content .gold-left-submenu{
    display:table;
    width:auto;
    min-width:0;
    max-width:max-content;
    box-sizing:border-box;
}


/* =========================================================
   دکمه بازگشت پنل‌های طلای نو و طلای آب‌شده
========================================================= */

#gold-section #new-gold-calculator .gold-internal-back-button,
#gold-section #melted-gold-calculator .gold-internal-back-button{
    position:absolute;
    top:-60px;
    left:auto;
    right:0;
    z-index:10;

    display:flex;
    align-items:center;
    justify-content:center;

    margin-right:240px;

    width:70px;
    min-width:70px;
    height:30px;

    margin-bottom:0;
    padding:0 12px;

    border:1px solid #15803d;
    border-radius:9px;

    background:linear-gradient(135deg,#22c55e 0%,#15803d 100%);
    color:#ffffff;

    font-size:14px;
    font-weight:700;
    white-space:nowrap;

    cursor:pointer;

    box-shadow:0 3px 9px rgba(22,163,74,.18), inset 0 1px 0 rgba(255,255,255,.2);

    transition:background .2s ease,color .2s ease,box-shadow .2s ease;
}

/* حالت هاور: قرمز */
#gold-section #new-gold-calculator .gold-internal-back-button:hover,
#gold-section #melted-gold-calculator .gold-internal-back-button:hover{
    background:linear-gradient(135deg,#ef4444 0%,#b91c1c 100%);
    border-color:#b91c1c;
    color:#ffffff;

    box-shadow:0 5px 12px rgba(220,38,38,.25);
}

/* حالت فشردن */
#gold-section #new-gold-calculator .gold-internal-back-button:active,
#gold-section #melted-gold-calculator .gold-internal-back-button:active{
    transform:scale(.97);
}

/* تبلت و نمایشگرهای متوسط */
@media (max-width:1200px){
    #gold-section #new-gold-calculator .gold-internal-back-button,
    #gold-section #melted-gold-calculator .gold-internal-back-button{
        margin-right:210px;
    }
}

/* موبایل افقی و تبلت کوچک */
@media (max-width:768px){
    #gold-section #new-gold-calculator .gold-internal-back-button,
    #gold-section #melted-gold-calculator .gold-internal-back-button{
        margin-right:130px;
    }
}

/* موبایل */
@media (max-width:480px){
    #gold-section #new-gold-calculator .gold-internal-back-button,
    #gold-section #melted-gold-calculator .gold-internal-back-button{
        margin-right:70px;
    }
}


/* =========================================================
   دکمه بازگشت پنل‌های محاسبات پیشرفته طلا
========================================================= */

/* ظاهر مشترک هر دو دکمه */
#gold-section #intrinsic-gold-calculator .gold-internal-back-button,
#gold-section #mozzaneh-calculator .gold-internal-back-button{
    position:absolute;
    left:auto;
    right:0;
    z-index:10;

    display:flex;
    align-items:center;
    justify-content:center;

    width:70px;
    min-width:70px;
    height:30px;

    margin-bottom:0;
    padding:0 12px;

    border:1px solid #15803d;
    border-radius:9px;

    background:linear-gradient(135deg,#22c55e 0%,#15803d 100%);
    color:#ffffff;

    font-size:14px;
    font-weight:700;
    white-space:nowrap;

    cursor:pointer;

    box-shadow:0 3px 9px rgba(22,163,74,.18), inset 0 1px 0 rgba(255,255,255,.2);

    transition:background .2s ease,color .2s ease,box-shadow .2s ease;
}

/* حالت هاور: قرمز */
#gold-section #intrinsic-gold-calculator .gold-internal-back-button:hover,
#gold-section #mozzaneh-calculator .gold-internal-back-button:hover{
    background:linear-gradient(135deg,#ef4444 0%,#b91c1c 100%);
    border-color:#b91c1c;
    color:#ffffff;

    box-shadow:0 5px 12px rgba(220,38,38,.25);
}

/* حالت فشردن */
#gold-section #intrinsic-gold-calculator .gold-internal-back-button:active,
#gold-section #mozzaneh-calculator .gold-internal-back-button:active{
    transform:scale(.97);
}


/* =========================================================
   زیرکشوی اول: ارزش ذاتی مسکوکات
========================================================= */

/* لپ‌تاپ و نمایشگرهای بزرگ */
#gold-section #intrinsic-gold-calculator .gold-internal-back-button{
    top:-20px;
    margin-right:720px;
}

/* نمایشگرهای متوسط */
@media (max-width:1200px){
    #gold-section #intrinsic-gold-calculator .gold-internal-back-button{
        margin-right:650px;
    }
}

/* تبلت */
@media (max-width:768px){
    #gold-section #intrinsic-gold-calculator .gold-internal-back-button{
        margin-right:400px;
    }
}

/* موبایل */
@media (max-width:480px){
    #gold-section #intrinsic-gold-calculator .gold-internal-back-button{
        margin-right:250px;
    }
}


/* =========================================================
   زیرکشوی دوم: محاسبه قیمت طلا بر اساس مظنه
========================================================= */

/* لپ‌تاپ و نمایشگرهای بزرگ */
#gold-section #mozzaneh-calculator .gold-internal-back-button{
    top:-20px;
    margin-right:280px;
}

/* نمایشگرهای متوسط */
@media (max-width:1200px){
    #gold-section #mozzaneh-calculator .gold-internal-back-button{
        margin-right:280px;
    }
}

/* تبلت */
@media (max-width:768px){
    #gold-section #mozzaneh-calculator .gold-internal-back-button{
        margin-right:230px;
    }
}

/* موبایل */
@media (max-width:480px){
    #gold-section #mozzaneh-calculator .gold-internal-back-button{
        margin-right:200px;
    }
}

/* =========================================================
   GOLD CALCULATOR — MOBILE ONLY
========================================================= */

@media (max-width: 1200px) {

    #new-gold-calculator,
    #melted-gold-calculator {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        box-sizing: border-box;
        transform: translateX(0px) !important;
    }

    #new-gold-calculator .input-row,
    #melted-gold-calculator .input-row,
    #new-gold-calculator .output-row,
    #melted-gold-calculator .output-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 2px;
        margin: 0 0 5px 0;
        box-sizing: border-box;
    }

    #new-gold-calculator .input-row label,
    #melted-gold-calculator .input-row label,
    #new-gold-calculator .output-row label,
    #melted-gold-calculator .output-row label {
        display: block;
        position: static;
        width: 100%;
        max-width: 230px;
        margin: 0;
        padding: 0;
        transform: none;
        text-align: right;
        white-space: normal;
        overflow-wrap: break-word;
        line-height: 1.3;
        box-sizing: border-box;
    }

    #new-gold-calculator .input-row input,
    #melted-gold-calculator .input-row input,
    #new-gold-calculator .output-row input,
    #melted-gold-calculator .output-row input {
        display: block;
        width: 230px !important;
        max-width: 100%;
        min-width: 0;
        height: 40px !important;
        margin: 0 !important;
        padding: 6px 8px;
        transform: none;
        box-sizing: border-box;
    }

    #new-gold-calculator button,
    #melted-gold-calculator button {
        display: block;
        width: 150px;
        max-width: 100%;
        margin: 0 0 20px 0;
        transform: none;
        box-sizing: border-box;
    }

    #new-gold-calculator hr,
    #melted-gold-calculator hr {
        width: 230px;
        max-width: 100%;
        margin: 10px 0 18px 0;
        box-sizing: border-box;
    }
}

/* =====================================
   INDUSTRY & GROUPS WORKSPACE
   بخش صنایع و گروه‌ها — ULTRA MODERN
===================================== */


/* =========================================================
   فضای کلی بخش صنایع
========================================================= */

.industry-workspace{
    width:100%;

    padding:10px 30px 24px 18px;

    box-sizing:border-box;

    position:relative;

    background:
        radial-gradient(
            circle at 12% 18%,
            rgba(59,130,246,.055) 0%,
            rgba(59,130,246,0) 28%
        ),
        radial-gradient(
            circle at 88% 72%,
            rgba(148,163,184,.07) 0%,
            rgba(148,163,184,0) 30%
        ),
        repeating-linear-gradient(
            135deg,
            rgba(148,163,184,.025) 0px,
            rgba(148,163,184,.025) 1px,
            transparent 1px,
            transparent 18px
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 52%,
            #f3f6fa 100%
        );
}


/* =========================================================
   یکدست شدن کامل Toolbar و فضای صنایع
========================================================= */

body > .workspace,
body > .workspace > .workspace-header{
    background:
        radial-gradient(
            circle at 12% 18%,
            rgba(59,130,246,.055) 0%,
            rgba(59,130,246,0) 28%
        ),
        radial-gradient(
            circle at 88% 72%,
            rgba(148,163,184,.07) 0%,
            rgba(148,163,184,0) 30%
        ),
        repeating-linear-gradient(
            135deg,
            rgba(148,163,184,.025) 0px,
            rgba(148,163,184,.025) 1px,
            transparent 1px,
            transparent 18px
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 52%,
            #f3f6fa 100%
        );
}


/* =========================================================
   شبکه نمایش صنایع
========================================================= */

.industry-grid{
    display:grid;

    grid-template-columns:repeat(6, minmax(0, 1fr));

    gap:11px;

    width:100%;

    transform:
        translate(-10px,-24px);
}


/* =========================================================
   باکس هر صنعت و گروه
========================================================= */

.industry-box{
    position:relative;

    height:74px;

    display:flex;

    align-items:center;
    justify-content:center;

    padding:0 15px;

    box-sizing:border-box;

    overflow:hidden;

    border:1px solid rgba(203,213,225,.82);

    border-radius:14px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98) 0%,
            rgba(248,250,252,.97) 48%,
            rgba(241,245,249,.97) 100%
        );

    color:#1e40af;

    font-size:15.5px;

    font-weight:750;

    cursor:pointer;

    box-shadow:
        0 7px 18px rgba(15,23,42,.055),
        0 2px 5px rgba(15,23,42,.035),
        inset 0 1px 0 rgba(255,255,255,.95);

    transition:
        transform .22s cubic-bezier(.2,.8,.2,1),
        background .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        color .22s ease;
}


/* =========================================================
   نور ظریف بالای باکس
========================================================= */

.industry-box::before{
    content:"";

    position:absolute;

    top:0;

    left:14%;
    right:14%;

    height:1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(59,130,246,.28),
            transparent
        );

    opacity:.7;

    pointer-events:none;
}


/* =========================================================
   هاله ظریف داخلی
========================================================= */

.industry-box::after{
    content:"";

    position:absolute;

    width:80px;
    height:80px;

    top:-45px;
    right:-30px;

    border-radius:50%;

    background:
        radial-gradient(
            circle,
            rgba(59,130,246,.08),
            rgba(59,130,246,0) 70%
        );

    pointer-events:none;

    transition:
        transform .25s ease,
        opacity .25s ease;
}


/* =========================================================
   حالت Hover — آبی بسیار ملایم
========================================================= */

.industry-box:hover{
    transform:translateY(-3px);

    color:#047857;

    border-color:rgba(16,185,129,.85);

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #effff6 40%,
            #bbf7d0 100%
        );

    box-shadow:
        0 15px 30px rgba(16,185,129,.16),
        0 5px 12px rgba(15,23,42,.055),
        inset 0 1px 0 rgba(255,255,255,1);
}


/* =========================================================
   حالت فعال / کلیک
========================================================= */

.industry-box:active{
    transform:translateY(-1px);

    box-shadow:
        0 6px 14px rgba(37,99,235,.09),
        inset 0 1px 2px rgba(15,23,42,.04);
}


/* =====================================================
   🏢 COMPANY LIST
   صفحه نمایش شرکت‌ها — ULTRA MODERN
===================================================== */

.company-list{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:7px;
    margin-top:20px;

    counter-reset:company-number;

    box-sizing:border-box;
}


/* =====================================================
   هر ردیف شرکت
===================================================== */

.company-row{
    width:40%;
    min-height:40px;

    position:relative;

    display:grid;
    grid-template-columns:80px 180px 90px;

    align-items:center;

    padding:0 18px;
    box-sizing:border-box;

    border:1px solid rgba(203,213,225,.82);
    border-radius:12px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.99) 0%,
            rgba(248,250,252,.98) 55%,
            rgba(241,245,249,.96) 100%
        );

    box-shadow:
        0 5px 14px rgba(15,23,42,.045),
        0 1px 3px rgba(15,23,42,.025),
        inset 0 1px 0 rgba(255,255,255,.95);

    transition:
        transform .22s cubic-bezier(.2,.8,.2,1),
        background .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;

    transform:translateX(0px);

    counter-increment:company-number;
}


/* =====================================================
   رنگ یک‌درمیان ردیف‌های شرکت
===================================================== */

.industry-work-area .company-list .company-row:nth-child(even){
    background:
        linear-gradient(
            145deg,
            #f0fdfa 0%,
            #ecfdf5 55%,
            #e6ffef 100%
        );
}


.industry-work-area .company-list .company-row:nth-child(odd){
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f8fafc 55%,
            #f1f5f9 100%
        );
}


/* =====================================================
   صفحه انتخاب یک شرکت
===================================================== */

#company-page .company-row{
    width:25% !important;
    grid-template-columns:80px 180px;
    transform:translateX(-20px) !important;
}

/* دو ستونه کردن ردیف شرکت در صفحه انتخاب‌شده */
#company-page .company-row{
    grid-template-columns:80px 180px;
}


/* =====================================================
   نور ظریف بالای هر شرکت
===================================================== */

.company-row::after{
    content:"";

    position:absolute;

    top:0;
    left:15%;
    right:15%;

    height:1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(59,130,246,.28),
            transparent
        );

    pointer-events:none;
}


/* =====================================================
   Hover ردیف شرکت
===================================================== */

.company-row:hover{
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f7fffb 48%,
            #dcfce7 100%
        );

    border-color:rgba(16,185,129,.72);

    transform:translateY(-2px);

    box-shadow:
        0 10px 24px rgba(16,185,129,.11),
        0 3px 8px rgba(15,23,42,.045),
        inset 0 1px 0 rgba(255,255,255,1);
}


/* =====================================================
   فقط لیست شرکت‌های داخل صنایع و گروه‌ها
===================================================== */

#industry-section .company-row .company-name{
    position:relative;
    right:20px;
}


#industry-section .company-list{
    transform:translateX(0px);
}


#industry-section .company-list .company-header{
    transform:translateX(-10px);
}


/* =====================================================
   نماد شرکت
===================================================== */

.company-symbol{
    font-size:16px;
    font-weight:800;

    color:#1d4ed8;

    letter-spacing:.1px;

    transition:
        color .22s ease,
        transform .22s ease;
}


.company-row:hover .company-symbol{
    color:#047857;
}


/* =====================================================
   نام شرکت
===================================================== */

.company-name{
    font-size:15px;
    font-weight:500;

    color:#334155;

    position:relative;
    right:70px;

    transition:
        color .22s ease;
}


/* صفحه انتخاب یک شرکت */

#company-page .company-name{
    right:20px;
}


.company-row:hover .company-name{
    color:#064e3b;
}


/* =====================================================
   قسمت آیکون‌ها
===================================================== */

.company-actions{
    display:flex;

    align-items:center;

    gap:5px;

    transition:
        transform .22s ease;
}


.company-actions img{
    width:24px;
    height:24px;

    cursor:pointer;

    border-radius:7px;

    transition:
        transform .20s ease,
        filter .20s ease;
}


.company-actions img:hover{
    transform:scale(1.10);

    filter:
        drop-shadow(
            0 3px 5px rgba(15,23,42,.16)
        );
}


/* =====================================================
   شماره‌گذاری خودکار شرکت‌ها
===================================================== */

.company-row::before{
    content:counter(company-number);

    position:absolute;

    right:-32px;
    top:50%;

    transform:translateY(-50%);

    width:28px;
    height:28px;

    border-radius:50%;

    display:flex;

    align-items:center;
    justify-content:center;

    font-size:14px;
    font-weight:800;

    color:#047857;

    border:1px solid rgba(110,231,183,.65);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #dcfce7
        );

    box-shadow:
        0 4px 10px rgba(16,185,129,.12),
        inset 0 1px 0 rgba(255,255,255,.95);

    transition:
        transform .22s ease,
        background .22s ease,
        color .22s ease,
        border-color .22s ease;
}


.company-row:hover::before{
    color:#ffffff;

    border-color:#10b981;

    background:
        linear-gradient(
            145deg,
            #34d399,
            #059669
        );

    box-shadow:
        0 6px 14px rgba(16,185,129,.20);
}


/* =====================================================
   هدر جدول شرکت‌ها
===================================================== */

.company-header{
    width:40%;

    margin-right:-10px;

    min-height:40px;

    display:grid;

    grid-template-columns:80px 180px 90px;

    align-items:center;

    padding:0 18px;

    box-sizing:border-box;

    font-size:15px;
    font-weight:800;

    color:#ffffff;

    border:1px solid rgba(16,185,129,.22);

    border-radius:12px;

    background:
        linear-gradient(
            135deg,
            #065f46 0%,
            #047857 48%,
            #059669 100%
        );

    box-shadow:
        0 8px 20px rgba(5,150,105,.16),
        inset 0 1px 0 rgba(255,255,255,.15);

    position:relative;

    overflow:hidden;
}


.company-header::before{
    content:"";

    position:absolute;

    top:0;
    left:12%;
    right:12%;

    height:1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.55),
            transparent
        );
}


.company-header span{
    text-align:center;
}


/* =====================================================
   جابه‌جایی عنوان‌های هدر
===================================================== */

.header-symbol{
    position:relative;
    right:-20px;
}


.header-name{
    position:relative;
    right:0;
}


#company-page .header-name{
    position:relative;
    left:0;
    right:auto;
}


.header-files{
    position:relative;
    right:0;
}


/* =====================================================
   صفحه انتخاب یک شرکت
   آیکون‌های فایل
===================================================== */

#company-page .company-actions{
    transform:translateX(0);
}


/* =====================================================
   لپ‌تاپ و دسکتاپ
===================================================== */

@media (min-width:1201px){

    #company-page .company-actions{
        transform:translateX(-120px);
    }

}


/* =====================================================
   موبایل و تبلت
===================================================== */

@media (max-width:1200px){

    #company-page .company-actions{
        transform:translateX(-60px);
    }

}


/* =====================================================
   صفحه انتخاب یک شرکت
   عنوان فایل‌ها
===================================================== */

#company-page .header-files{
    transform:translateX(0);
}


/* =====================================================
   عنوان فایل در لپ‌تاپ
===================================================== */

@media (min-width:1201px){

    #company-page .header-files{
        transform:translateX(-30px);
    }

}


/* =====================================================
   عنوان فایل در موبایل
===================================================== */

@media (max-width:1200px){

    #company-page .header-files{
        transform:translateX(-15px);
    }

}




/* =====================================================
   بخش اطلاعات صنعت
   ساختار اصلی و چیدمان
===================================================== */

.industry-work-area{
    width:100%;
    display:flex;
    flex-direction:row;
    align-items:flex-start;
    gap:20px;
    box-sizing:border-box;
}

#industry-section{
    position:relative;
    min-height:578px;
    direction:rtl;
    box-sizing:border-box;
}

#industry-section .company-list{
    display:none !important;
}

/* =====================================================
   پنل اطلاعات صنعت
===================================================== */

#industry-data-panel{
    position:absolute;
    top:-40px;
    right:0;
    left:auto;
    z-index:100;
    width:100%;
    max-width:100%;
    margin:0;
    padding:14px;
    box-sizing:border-box;
    direction:rtl;
    font-family:"B Nazanin",Tahoma,sans-serif;
    background:transparent;
    border:0;
    box-shadow:none;
    overflow:visible;
}

/* =====================================================
   ردیف انتخاب صنعت و سال
===================================================== */

.industry-data-header-row{
    width:max-content;
    display:flex;
    flex-direction:row;
    direction:ltr;
    align-items:center;
    justify-content:flex-start;
    flex-wrap:nowrap;
    gap:10px;
    margin:0 0 16px 0;
    padding:0;
    white-space:nowrap;
    box-sizing:border-box;
    transform:translateX(-50px);
}

#industry-selected-name{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:max-content;
    min-width:200px;
    height:40px;
    padding:5px 10px;
    box-sizing:border-box;
    white-space:nowrap;
    direction:rtl;
    border:1px solid #86c99b;
    border-radius:9px;
    background:linear-gradient(145deg,#bbf7d0,#86efac);
    color:#166534;
    font-family:inherit;
    font-size:16px;
    font-weight:600;
    box-shadow:
        0 2px 5px rgba(36,50,80,.045),
        0 1px 2px rgba(36,50,80,.025);
}

.industry-data-year-box{
    flex:0 0 auto;
    width:auto;
    display:flex;
    justify-content:center;
    align-items:center;
    margin:0;
    padding:0;
    transform:none;
}

#industry-data-year{
    width:210px;
    max-width:100%;
    height:40px;
    padding:5px 10px;
    box-sizing:border-box;
    border:1px solid #86c99b;
    border-radius:9px;
    background:linear-gradient(145deg,#bbf7d0,#86efac);
    color:#166534;
    font-family:inherit;
    font-size:16px;
    font-weight:600;
    text-align:center;
    outline:none;
    box-shadow:
        0 2px 5px rgba(36,50,80,.045),
        0 1px 2px rgba(36,50,80,.025);
    transition:all .22s ease;
}

#industry-data-year:hover{
    border-color:#7053ad;
    box-shadow:
        0 7px 19px rgba(117,96,181,.22),
        0 2px 5px rgba(15,23,42,.04);
}

#industry-data-year:focus{
    border-color:#7053ad;
    box-shadow:
        0 0 0 3px rgba(154,123,208,.20),
        0 5px 15px rgba(117,96,181,.15);
}

/* =====================================================
   چیدمان جدول و اسلایسرها
===================================================== */

.industry-data-content{
    width:100%;
    display:flex;
    flex-direction:row;
    align-items:flex-start;
    justify-content:flex-start;
    gap:12px;
    box-sizing:border-box;
    direction:rtl;
    overflow:visible;
}

/* =====================================================
   کادر جدول صنعت
===================================================== */

.industry-data-table-wrapper{
    flex:0 0 911px;
    width:911px;
    min-width:911px;
    padding:0 10px 0 0;
    margin:0;
    transform:translateY(-10px);
    box-sizing:border-box;
    overflow:visible;
    border:1px solid #e0d8ee;
    border-radius:16px;
    background:linear-gradient(145deg,#ffffff,#fcfbff);
    box-shadow:
        0 12px 30px rgba(76,55,120,.075),
        0 3px 9px rgba(76,55,120,.035),
        inset 0 1px 0 rgba(255,255,255,.9);
}

/* =====================================================
   جدول اطلاعات صنعت
===================================================== */

#industry-data-table{
    width:875px;
    min-width:875px;
    table-layout:fixed;
    border-collapse:separate;
    border-spacing:1px 2px;
    direction:rtl;
    overflow:visible;
    font-family:inherit;
}

/* =====================================================
   عرض ستون‌های جدول
   حفظ کامل اندازه‌های قبلی
===================================================== */

#industry-data-table th:nth-child(1),
#industry-data-table td:nth-child(1){
    width:75px;
}

#industry-data-table th:nth-child(2),
#industry-data-table td:nth-child(2){
    width:220px;
}

#industry-data-table th:nth-child(3),
#industry-data-table td:nth-child(3){
    width:80px;
}

#industry-data-table th:nth-child(4),
#industry-data-table td:nth-child(4),
#industry-data-table th:nth-child(5),
#industry-data-table td:nth-child(5),
#industry-data-table th:nth-child(6),
#industry-data-table td:nth-child(6),
#industry-data-table th:nth-child(7),
#industry-data-table td:nth-child(7),
#industry-data-table th:nth-child(8),
#industry-data-table td:nth-child(8){
    width:103px;
}

/* =====================================================
   سرستون‌های جدول
   گرادیان بنفش مطابق نمونه
===================================================== */

#industry-data-table thead th{
    height:48px;
    padding:7px 3px;
    box-sizing:border-box;
    background:linear-gradient(135deg,#7560b5 0%,#9a7bd0 48%,#8062bd 100%);
    color:#ffffff;
    font-family:inherit;
    font-size:16px;
    font-weight:700;
    line-height:1.4;
    text-align:center;
    white-space:normal;
    vertical-align:middle;
    border:0;
    border-bottom:1px solid #7053ad;
    border-left:1px solid rgba(255,255,255,.18);
    border-right:0;
    text-shadow:0 1px 2px rgba(0,0,0,.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.2),
        inset 0 -2px 0 rgba(64,42,110,.08);
}

#industry-data-table thead th:first-child{
    border-top-right-radius:13px;
}

#industry-data-table thead th:last-child{
    border-top-left-radius:13px;
}

/* =====================================================
   سلول‌های جدول
===================================================== */

#industry-data-table tbody td{
    height:45px;
    padding:5px 3px;
    box-sizing:border-box;
    color:#403653;
    font-family:inherit;
    font-size:16px;
    font-weight:700;
    line-height:1.5;
    text-align:center;
    white-space:nowrap;
    vertical-align:middle;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    transition:
        color .18s ease,
        background .18s ease;
}

/* =====================================================
   رنگ‌بندی ردیف‌ها
   یاسی و سفید یکی‌درمیان
===================================================== */

#industry-data-table tbody tr{
    background-color:#ffffff;
    background-image:linear-gradient(to right,#e9e2f3,#e9e2f3);
    background-repeat:no-repeat;
    background-position:bottom;
    background-size:100% 1px;
    transition:background-color .18s ease;
}

#industry-data-table tbody tr:nth-child(odd){
    background-color:#f5f1fa;
}

#industry-data-table tbody tr:nth-child(even){
    background-color:#ffffff;
}

#industry-data-table tbody tr:nth-child(odd) td,
#industry-data-table tbody tr:nth-child(even) td{
    background:transparent;
}

/* =====================================================
   ردیف مجموع صنعت
===================================================== */

#industry-data-table tbody tr.industry-total-row,
#industry-data-table tbody tr:last-child{
    background:linear-gradient(135deg,#7560b5 0%,#9a7bd0 48%,#8062bd 100%);
    background-image:none;
    box-shadow:
        0 4px 12px rgba(117,96,181,.16),
        inset 0 1px 0 rgba(255,255,255,.18);
}

#industry-data-table tbody tr.industry-total-row td{
    color:#40346f;
    font-weight:800;
    border-top:2px solid #8e68ca;
    border-bottom:1px solid #d4cbed;
    background:#e9e6f8;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
    text-shadow:none;
}

#industry-data-table tbody tr:last-child td{
    color:#000000;
    font-weight:900;
    border:0;
    background:transparent;
    text-shadow:none;
}

#industry-data-table tbody tr.industry-total-row td:first-child{
    border-right:3px solid #8e68ca;
}

#industry-data-table tbody tr:last-child td:first-child{
    border-bottom-right-radius:12px;
}

#industry-data-table tbody tr:last-child td:last-child{
    border-bottom-left-radius:12px;
}

/* =====================================================
   افکت حرکت موس روی ردیف‌های عادی
===================================================== */

#industry-data-table tbody tr:not(.industry-total-row):not(:last-child):hover{
    background-color:#eee7f8;
    background-image:linear-gradient(to right,#c7b5e5,#c7b5e5);
    background-repeat:no-repeat;
    background-position:bottom;
    background-size:100% 1px;
    box-shadow:
        inset 3px 0 0 #8062bd,
        0 2px 8px rgba(117,96,181,.075);
}

#industry-data-table tbody tr:not(.industry-total-row):not(:last-child):hover td{
    background:linear-gradient(135deg,#fce7f3 0%,#f9c5df 50%,#f3a8ce 100%);
    color:#60458f;
    border:0;
}

/* =====================================================
   شماره‌های دایره‌ای شرکت‌ها
===================================================== */

#industry-data-table tbody{
    counter-reset:industry-row-number;
}

#industry-data-table tbody tr:not(.industry-total-row):not(:last-child){
    counter-increment:industry-row-number;
}

#industry-data-table tbody tr:not(.industry-total-row):not(:last-child) td:first-child{
    position:relative;
}

#industry-data-table tbody tr:not(.industry-total-row):not(:last-child) td:first-child::before{
    content:counter(industry-row-number);
    position:absolute;
    right:-40px;
    top:50%;
    transform:translateY(-50%);
    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    border:1px solid #86c99b;
    border-radius:50%;
    background:linear-gradient(145deg,#bbf7d0,#86efac);
    color:#166534;
    font-family:inherit;
    font-size:15px;
    font-weight:900;
    line-height:1;
    box-shadow:
        0 4px 10px rgba(117,96,181,.22),
        inset 0 1px 1px rgba(255,255,255,.45);
    z-index:5;
    pointer-events:none;
    transition:all .18s ease;
}

/* =====================================================
   افکت شماره‌ها هنگام حرکت موس
===================================================== */

#industry-data-table tbody tr:not(.industry-total-row):not(:last-child):hover td:first-child::before{
    background:#f8dce9;
    color:#40346f;
    border-color:#edb8d0;
    box-shadow:none;
    animation:none;
}

/* =====================================================
   افکت حرکت موس روی ردیف کل صنعت
===================================================== */

#industry-data-table tbody tr.industry-total-row:hover td{
    background:linear-gradient(135deg,#93c5fd 0%,#60a5fa 50%,#3b5998 100%);
    color:#ffffff;
}

/* =====================================================
   اسلایسرهای صنعت
===================================================== */

.industry-data-slicers{
    flex:0 0 300px;
    width:300px;
    min-width:0;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start;
    gap:12px;
    margin:0;
    padding:0;
    box-sizing:border-box;
    transform:none;
}

/* =====================================================
   کارت‌های اسلایسر
===================================================== */

.industry-data-slicer{
    width:100%;
    min-width:0;
    padding:16px 11px;
    box-sizing:border-box;
    border:1px solid #e0d8ee;
    border-radius:15px;
    background:linear-gradient(145deg,#ffffff 0%,#f5f1fa 100%);
    box-shadow:
        0 7px 18px rgba(76,55,120,.055),
        0 2px 5px rgba(76,55,120,.025),
        inset 0 1px 0 rgba(255,255,255,.9);
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.industry-data-slicer:hover{
    border-color:#b9a5df;
    box-shadow:
        0 10px 23px rgba(117,96,181,.12),
        0 3px 8px rgba(76,55,120,.035);
    transform:translateY(-2px);
}

/* =====================================================
   عنوان اسلایسرها
===================================================== */

.industry-data-slicer label{
    display:block;
    margin:0 0 12px;
    padding:0 0 10px;
    border-bottom:1px solid #e0d8ee;
    color:#60458f;
    font-family:inherit;
    font-size:16px;
    font-weight:900;
    text-align:center;
}

/* =====================================================
   نوارهای انتخاب اسلایسر
===================================================== */

.industry-data-slicer input[type="range"]{
    width:100%;
    accent-color:#8062bd;
    cursor:pointer;
}

/* =====================================================
   گزینه‌های اسلایسر
===================================================== */

.industry-slicer-options,
.industry-data-slicer-options{
    width:100%;
    display:flex;
    flex-direction:column;
    flex-wrap:nowrap;
    gap:7px;
    max-height:193px;
    overflow-y:auto;
    overflow-x:hidden;
    padding:0;
    box-sizing:border-box;
    scrollbar-width:thin;
    scrollbar-color:#b9a5df #f1edf8;
}

/* =====================================================
   دکمه‌های گزینه‌های اسلایسر
===================================================== */

.industry-slicer-option{
    min-height:33px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:5px 7px;
    box-sizing:border-box;
    border:1px solid #e0d8ee;
    border-radius:9px;
    background:linear-gradient(145deg,#ffffff,#faf8fd);
    color:#514563;
    font-family:inherit;
    font-size:16px;
    font-weight:800;
    text-align:center;
    cursor:pointer;
    box-shadow:0 2px 5px rgba(76,55,120,.035);
    transition:all .18s ease;
}

/* =====================================================
   افکت حرکت موس روی گزینه‌های اسلایسر
===================================================== */

.industry-slicer-option:hover{
    border-color:#b9a5df;
    background:#f1ebfa;
    color:#60458f;
    box-shadow:0 4px 10px rgba(117,96,181,.12);
}

/* =====================================================
   گزینه فعال اسلایسر
===================================================== */

.industry-slicer-option.active{
    border-color:#16a34a;
    background:linear-gradient(135deg,#86efac,#4ade80);
    color:#166534;
    font-weight:900;
    box-shadow:
        0 4px 11px rgba(22,163,74,.22),
        inset 0 1px 0 rgba(255,255,255,.35);
}

/* =====================================================
   نمایش مقادیر منفی
===================================================== */

.negative-value{
    color:#dc2626 !important;
    direction:ltr;
    unicode-bidi:embed;
}

/* =====================================================
   تنظیمات نمایش در تبلت
===================================================== */

@media(max-width:1100px){

    #industry-data-panel{
        top:0;
        right:0;
        left:auto;
        width:100%;
        padding:10px;
    }

    .industry-data-content{
        flex-wrap:wrap;
        gap:12px;
    }

    .industry-data-table-wrapper{
        flex:0 0 911px;
        width:911px;
        min-width:911px;
        padding-right:34px;
    }

    .industry-data-slicers{
        flex:1 1 100%;
        width:100%;
        flex-direction:row;
        flex-wrap:wrap;
        gap:10px;
    }

    .industry-data-slicer{
        flex:1 1 180px;
    }

    .industry-data-slicer label{
        font-size:16px;
    }

    .industry-slicer-options{
        flex-direction:row;
        flex-wrap:wrap;
    }

    .industry-slicer-option{
        flex:1 1 auto;
    }
}

/* =====================================================
   تنظیمات نمایش در موبایل
===================================================== */

@media(max-width:768px){

    #industry-section{
        min-height:0;
    }

    #industry-data-panel{
        position:relative;
        top:0;
        right:auto;
        width:100%;
        padding:7px;
    }

    .industry-data-year-box{
        margin-bottom:11px;
    }

    #industry-data-year{
        width:135px;
        height:39px;
        font-size:13px;
    }

    .industry-data-content{
        gap:10px;
    }

    .industry-data-table-wrapper{
        flex:0 0 911px;
        width:911px;
        min-width:911px;
        padding-right:29px;
        border-radius:12px;
    }

    #industry-data-table thead th{
        height:42px;
        padding:4px 1px;
        font-size:15px;
    }

    #industry-data-table tbody td{
        height:40px;
        padding:3px 1px;
        font-size:15px;
    }

    #industry-data-table tbody tr:not(.industry-total-row):not(:last-child) td:first-child::before{
        right:-27px;
        width:22px;
        height:22px;
        font-size:10px;
    }

    .industry-data-slicers{
        gap:8px;
    }

    .industry-data-slicer{
        padding:11px 8px;
        border-radius:12px;
    }

    .industry-data-slicer label{
        margin-bottom:8px;
        padding-bottom:7px;
        font-size:12px;
    }

    .industry-slicer-option{
        min-height:29px;
        padding:4px 6px;
        font-size:15px;
    }
}

/* =====================================================
   تنظیمات نمایش در موبایل کوچک
===================================================== */

@media(max-width:420px){

    #industry-data-panel{
        padding:5px;
    }

    .industry-data-table-wrapper{
        padding-right:25px;
    }

    #industry-data-table thead th{
        font-size:15px;
    }

    #industry-data-table tbody td{
        font-size:15px;
    }

    #industry-data-table tbody tr:not(.industry-total-row):not(:last-child) td:first-child::before{
        right:-24px;
        width:20px;
        height:20px;
        font-size:9px;
    }

    .industry-data-slicer{
        flex-basis:100%;
    }
}


/* =====================================================
   دکمه بازگشت پنل اطلاعات صنعت
===================================================== */

#industry-section #industry-internal-back-button{
    position:relative;
    order:-1;
    flex:0 0 50px;
    display:flex;
    align-items:center;
    justify-content:center;
    width:70px;
    min-width:70px;
    height:30px;
    margin:0;
    padding:0 12px;
    box-sizing:border-box;
    transform:translateX(-260px);
    border:1px solid #15803d;
    border-radius:9px;
    background:linear-gradient(135deg,#22c55e 0%,#15803d 100%);
    color:#ffffff;
    font-family:inherit;
    font-size:14px;
    font-weight:700;
    white-space:nowrap;
    cursor:pointer;
    box-shadow:
        0 3px 9px rgba(22,163,74,.18),
        inset 0 1px 0 rgba(255,255,255,.2);
    transition:
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

#industry-section #industry-internal-back-button:hover{
    background:linear-gradient(135deg,#ef4444 0%,#b91c1c 100%);
    border-color:#b91c1c;
    color:#ffffff;
    box-shadow:0 5px 12px rgba(220,38,38,.25);
}

#industry-section #industry-internal-back-button:active{
    transform:translateX(--260px) scale(.97);
}

/* =====================================================
   تنظیمات موبایل و تبلت
===================================================== */

@media(max-width:768px){

    #industry-section .industry-data-header-row{
        width:100%;
        max-width:100%;
        flex-wrap:wrap;
        transform:none;
        gap:8px;
    }

    #industry-section #industry-internal-back-button{
        order:-1;
        flex:0 0 90px;
        width:90px;
        min-width:90px;
        height:30px;
        transform:translateX(-300px);
    }

    #industry-section #industry-internal-back-button:active{
        transform:translateX(-300px) scale(.97);
    }
}



/* =====================================================
   نتایج جستجو
===================================================== */

#search-results{

    position:absolute;

    top:94.5%;

    right:0;

    width:260px;

    max-height:220px;

    overflow-y:auto;

    direction:ltr;

    display:none;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f8fffb 100%
        );

    border:1px solid rgba(16,185,129,.28);

    border-radius:14px;

    box-shadow:
        0 18px 38px rgba(15,23,42,.12),
        0 5px 14px rgba(16,185,129,.08),
        inset 0 1px 0 rgba(255,255,255,.95);

    backdrop-filter:blur(12px);

    z-index:1000;

    scrollbar-width:thin;

    scrollbar-color:
        rgba(16,185,129,.55)
        transparent;
}


/* =====================================================
   اسکرول نتایج جستجو
===================================================== */

#search-results::-webkit-scrollbar{
    width:6px;
}

#search-results::-webkit-scrollbar-track{
    background:transparent;
}

#search-results::-webkit-scrollbar-thumb{
    background:
        linear-gradient(
            180deg,
            #34d399,
            #059669
        );

    border-radius:10px;
}


/* =====================================================
   هر پیشنهاد جستجو
===================================================== */

.search-suggestion{

    direction:rtl;

    text-align:right;

    padding:7px 12px;

    cursor:pointer;

    display:flex;

    flex-direction:column;

    gap:2px;

    line-height:1.2;

    margin-top:4px;

    border-radius:10px;

    transition:
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}


/* =====================================================
   Hover پیشنهاد جستجو
===================================================== */

.search-suggestion:hover{

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #ecfdf5 55%,
            #d1fae5 100%
        );

    transform:translateX(-2px);

    box-shadow:
        0 5px 12px rgba(16,185,129,.08);
}


/* =====================================================
   نماد سهم
===================================================== */

.suggestion-symbol{

    font-weight:800;

    color:#047857;

    font-size:15px;

    transition:
        color .18s ease;
}


.search-suggestion:hover .suggestion-symbol{

    color:#065f46;
}


/* =====================================================
   نام شرکت
===================================================== */

.suggestion-name{

    font-size:13px;

    color:#64748b;

    font-weight:500;

    transition:
        color .18s ease;
}


.search-suggestion:hover .suggestion-name{

    color:#334155;
}


/* =====================================================
   فقط نتیجه‌ای که از سرچ باز می‌شود
===================================================== */

#company-page .company-row{

    transform:translateX(-10px);

}


#company-page .company-header{
    width:25% !important;
    grid-template-columns:80px 180px;
    margin-right:-10px;
    transform:translateX(-30px);
}


/* =====================================================
   فقط لیستی که از تولبار باز می‌شود
===================================================== */

#industry-section .company-row{
    width:25%;
    grid-template-columns:80px 180px;
    transform:translateX(0px);
}


#industry-section .company-header{
    width:25%;
    margin-right:-10px;
    grid-template-columns:80px 180px;
    transform:translateX(-20px);
}


/* =====================================================
   Company Board — تابلو شرکت
===================================================== */

#company-board{

    width:250px;

    height:350px;

    margin-top:12px;

    padding:12px;

    box-sizing:border-box;

    font-family:inherit;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f8fafc 58%,
            #ecfdf5 100%
        );

    border:1px solid rgba(16,185,129,.25);

    border-radius:16px;

    box-shadow:
        0 16px 34px rgba(15,23,42,.09),
        0 4px 10px rgba(16,185,129,.07),
        inset 0 1px 0 rgba(255,255,255,1);

    transform:translate(-20px,-8px);

    overflow:hidden;
}


/* =====================================================
   عنوان تابلو
===================================================== */

#company-board h3{

    margin:0 0 10px 0;

    padding:0 2px 7px 2px;

    border-bottom:
        1px solid rgba(16,185,129,.20);

    font-size:15px;

    font-weight:800;

    color:#065f46;

}


/* =====================================================
   هر ردیف تابلو
===================================================== */

.board-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:3px 4px;

    border-bottom:
        1px solid rgba(226,232,240,.72);

    border-radius:6px;

    transition:
        background .18s ease,
        transform .18s ease;
}


.board-row:hover{

    background:
        linear-gradient(
            90deg,
            #ecfdf5,
            #f0fdf4
        );

    transform:translateX(-1px);
}


.board-row:last-child{

    border-bottom:none;

}


/* =====================================================
   عنوان‌های تابلو
===================================================== */

.board-label{

    width:45%;

    text-align:right;

    direction:rtl;

    font-size:14px;

    font-weight:600;

    color:#64748b;

}


/* =====================================================
   مقدارهای تابلو
===================================================== */

.board-value{

    width:55%;

    text-align:left;

    direction:ltr;

    unicode-bidi:isolate;

    font-family:
        "Roboto",
        "Arial",
        sans-serif;

    font-size:14px;

    font-weight:500;

    color:#0f172a;
}


/* =====================================================
   خط جداکننده
===================================================== */

#company-board hr{

    margin:8px 0;

    border:none;

    border-top:
        1px solid rgba(203,213,225,.72);
}


/* =====================================================
   نوار سبز وسط تابلو
===================================================== */

.board-divider{

    height:4px;

    background:
        linear-gradient(
            90deg,
            #34d399 0%,
            #059669 50%,
            #047857 100%
        );

    border-radius:999px;

    margin:8px 0;

    box-shadow:
        0 2px 7px rgba(16,185,129,.18);
}


/* =====================================================
   اشاره‌گر شرکت‌ها
===================================================== */

.company-row,
#company-page .company-row,
.search-suggestion{

    cursor:pointer;

}


/* =====================================================
   🧠 Fundamental Panel
   پنل بنیادی
===================================================== */


/* =====================================================
   پنل اصلی بنیادی
===================================================== */

#fundamental-panel{

    display:none;

    position:absolute;

    top:90px;

    left:50px;

    width:900px;

    direction:rtl;

    z-index:100;

    padding:14px;

    box-sizing:border-box;

    font-family:"B Nazanin", Tahoma, sans-serif;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98) 0%,
            rgba(248,250,252,.96) 58%,
            rgba(236,253,245,.94) 100%
        );

    border:1px solid rgba(16,185,129,.24);

    border-radius:18px;

    box-shadow:
        0 18px 40px rgba(15,23,42,.10),
        0 5px 14px rgba(16,185,129,.07),
        inset 0 1px 0 rgba(255,255,255,1);

    backdrop-filter:blur(12px);
}


/* =====================================================
   باکس انتخاب سال‌ها
===================================================== */

.fundamental-year-box{

    margin-bottom:15px;

    font-family:"B Nazanin", Tahoma, sans-serif;
}


/* =====================================================
   انتخاب سال
===================================================== */

#fundamental-year{

    width:300px;

    height:40px;

    border-radius:12px;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:16px;

    padding:5px 12px;

    position:relative;

    left:-300px;

    cursor:pointer;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #ecfdf5 100%
        );

    border:1px solid rgba(16,185,129,.42);

    color:#065f46;

    font-weight:800;

    outline:none;

    box-shadow:
        0 5px 14px rgba(16,185,129,.08),
        inset 0 1px 0 rgba(255,255,255,1);

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}


#fundamental-year:hover{

    border-color:rgba(16,185,129,.78);

    box-shadow:
        0 8px 18px rgba(16,185,129,.12),
        inset 0 1px 0 rgba(255,255,255,1);
}


#fundamental-year:focus{

    border-color:#059669;

    box-shadow:
        0 0 0 3px rgba(16,185,129,.13),
        0 8px 18px rgba(16,185,129,.10);
}


/* =====================================================
   منوی گزینه‌های بنیادی
===================================================== */

.fundamental-menu{

    display:flex;

    flex-direction:row;

    gap:25px;

    font-family:"B Nazanin", Tahoma, sans-serif;
}


/* =====================================================
   هر گزینه بنیادی
===================================================== */

.fundamental-item{

    width:120px;

    height:70px;

    display:flex;

    align-items:center;

    justify-content:center;

    box-sizing:border-box;

    font-family:"B Nazanin", Tahoma, sans-serif;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f8fafc 58%,
            #ecfdf5 100%
        );

    border:1px solid rgba(203,213,225,.85);

    border-radius:14px;

    cursor:pointer;

    font-size:15px;

    font-weight:800;

    color:#334155;

    box-shadow:
        0 7px 16px rgba(15,23,42,.055),
        inset 0 1px 0 rgba(255,255,255,1);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        color .18s ease,
        background .18s ease;
}


/* =====================================================
   Hover گزینه‌های بنیادی
===================================================== */

.fundamental-item:hover{

    transform:translateY(-3px);

    color:#047857;

    border-color:rgba(16,185,129,.72);

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #effff6 48%,
            #d1fae5 100%
        );

    box-shadow:
        0 13px 26px rgba(16,185,129,.13),
        0 4px 10px rgba(15,23,42,.045),
        inset 0 1px 0 rgba(255,255,255,1);
}


/* =====================================================
  باکس گزارش ماهانه
===================================================== */

.monthly{

    font-family:"B Nazanin", Tahoma, sans-serif;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #eff6ff 55%,
            #dbeafe 100%
        );

    border-color:rgba(96,165,250,.34);

    color:#1d4ed8;
}


.monthly:hover{

    border-color:rgba(59,130,246,.72);

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #eff6ff 45%,
            #bfdbfe 100%
        );

    color:#1e40af;

    box-shadow:
        0 13px 26px rgba(59,130,246,.13),
        0 4px 10px rgba(15,23,42,.045);
}






/* =====================================================
  باکس گزارش فصلی
===================================================== */

.seasonal{

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f0fdf4 55%,
            #dcfce7 100%
        );

    border-color:rgba(34,197,94,.32);

    color:#15803d;
}


.seasonal:hover{

    border-color:rgba(16,185,129,.72);

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #ecfdf5 45%,
            #bbf7d0 100%
        );

    color:#047857;
}


/* =====================================================
  باکس پیش‌بینی سود
===================================================== */

.profit{

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fffbeb 55%,
            #fef3c7 100%
        );

    border-color:rgba(245,158,11,.32);

    color:#b45309;
}


.profit:hover{

    border-color:rgba(245,158,11,.72);

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fffbeb 45%,
            #fde68a 100%
        );

    color:#92400e;

    box-shadow:
        0 13px 26px rgba(245,158,11,.13),
        0 4px 10px rgba(15,23,42,.045);
}


/* =====================================================
  باکس تحلیل دلاری
===================================================== */

.dollar{

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #faf5ff 55%,
            #f3e8ff 100%
        );

    border-color:rgba(168,85,247,.30);

    color:#7e22ce;
}


.dollar:hover{

    border-color:rgba(168,85,247,.70);

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #faf5ff 45%,
            #e9d5ff 100%
        );

    color:#6b21a8;

    box-shadow:
        0 13px 26px rgba(168,85,247,.13),
        0 4px 10px rgba(15,23,42,.045);
}


/* =====================================================
  باکس خلاصه صنعت
===================================================== */

.industry-summary{

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f0f9ff 55%,
            #e0f2fe 100%
        );

    border-color:rgba(14,165,233,.32);

    color:#0369a1;
}


.industry-summary:hover{

    border-color:rgba(14,165,233,.72);

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f0f9ff 45%,
            #bae6fd 100%
        );

    color:#075985;

    box-shadow:
        0 13px 26px rgba(14,165,233,.13),
        0 4px 10px rgba(15,23,42,.045);
}


/* =====================================================
  باکس جدول خلاصه صنعت
===================================================== */

.industry-summary-table{

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fff1f2 55%,
            #ffe4e6 100%
        );

    border-color:rgba(244,63,94,.28);

    color:#be123c;
}


.industry-summary-table:hover{

    border-color:rgba(244,63,94,.68);

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fff1f2 45%,
            #fecdd3 100%
        );

    color:#9f1239;

    box-shadow:
        0 13px 26px rgba(244,63,94,.12),
        0 4px 10px rgba(15,23,42,.045);
}



/* =====================================================
                منوی پنل بنیادی
===================================================== */


/* =====================================================
                باکس‌های گزارش
===================================================== */

.fundamental-item{

    width:125px;

    height:70px;

    display:flex;

    align-items:center;

    justify-content:center;

    box-sizing:border-box;

    border-radius:14px;

    cursor:pointer;

    font-size:15px;

    font-weight:800;

    color:#334155;

    border:1px solid rgba(203,213,225,.85);

    box-shadow:
        0 7px 16px rgba(15,23,42,.055),
        inset 0 1px 0 rgba(255,255,255,1);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        color .18s ease,
        background .18s ease;
}


/* =====================================================
                گزارش ماهانه
===================================================== */

.fundamental-item.monthly{

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #eff6ff 48%,
            #dbeafe 100%
        );

    border-color:rgba(59,130,246,.42);

    color:#1d4ed8;
}


/* =====================================================
                گزارش فصلی
===================================================== */

.fundamental-item.seasonal{

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f0fdf4 48%,
            #bbf7d0 100%
        );

    border-color:rgba(16,185,129,.42);

    color:#047857;
}


/* =====================================================
                سودآوری
===================================================== */

.fundamental-item.profit{

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fffbeb 48%,
            #fde68a 100%
        );

    border-color:rgba(245,158,11,.45);

    color:#b45309;
}


/* =====================================================
                تحلیل دلار
===================================================== */

.fundamental-item.dollar{

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #faf5ff 48%,
            #e9d5ff 100%
        );

    border-color:rgba(168,85,247,.42);

    color:#7e22ce;
}


/* =====================================================
                تحلیل صنایع
===================================================== */

.fundamental-item.industry-summary{

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #ecfeff 48%,
            #cffafe 100%
        );

    border-color:rgba(6,182,212,.42);

    color:#0e7490;
}


/* =====================================================
                جدول تحلیل صنایع
===================================================== */

.fundamental-item.industry-summary-table{

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fff1f2 48%,
            #fecdd3 100%
        );

    border-color:rgba(244,63,94,.38);

    color:#be123c;
}


/* =====================================================
                هاور عمومی
===================================================== */

.fundamental-item:hover{

    transform:translateY(-3px);

    box-shadow:
        0 13px 28px rgba(15,23,42,.09),
        inset 0 1px 0 rgba(255,255,255,1);
}


/* =====================================================
                هاور گزارش ماهانه
===================================================== */

.fundamental-item.monthly:hover{

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #dbeafe 45%,
            #bfdbfe 100%
        );

    border-color:rgba(37,99,235,.72);

    color:#1d4ed8;
}


/* =====================================================
                هاور گزارش فصلی
===================================================== */

.fundamental-item.seasonal:hover{

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #dcfce7 45%,
            #bbf7d0 100%
        );

    border-color:rgba(16,185,129,.75);

    color:#047857;
}


/* =====================================================
                هاور سودآوری
===================================================== */

.fundamental-item.profit:hover{

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fef3c7 45%,
            #fde68a 100%
        );

    border-color:rgba(245,158,11,.78);

    color:#92400e;
}


/* =====================================================
                هاور دلار
===================================================== */

.fundamental-item.dollar:hover{

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f3e8ff 45%,
            #e9d5ff 100%
        );

    border-color:rgba(168,85,247,.75);

    color:#6b21a8;
}


/* =====================================================
                هاور تحلیل صنایع
===================================================== */

.fundamental-item.industry-summary:hover{

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #cffafe 45%,
            #a5f3fc 100%
        );

    border-color:rgba(6,182,212,.75);

    color:#0e7490;
}


/* =====================================================
                هاور جدول تحلیل صنایع
===================================================== */

.fundamental-item.industry-summary-table:hover{

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #ffe4e6 45%,
            #fecdd3 100%
        );

    border-color:rgba(244,63,94,.70);

    color:#be123c;
}


/* =====================================================
                باکس فعال
===================================================== */

.fundamental-item.active{

    color:#ffffff;

    font-weight:800;

    transform:translateY(-1px);

    box-shadow:
        0 10px 24px rgba(15,23,42,.13),
        inset 0 1px 0 rgba(255,255,255,.18);
}


/* فعال - گزارش ماهانه */

.fundamental-item.monthly.active{

    background:
        linear-gradient(
            135deg,
            #1d4ed8 0%,
            #2563eb 55%,
            #3b82f6 100%
        );

    border-color:#2563eb;
}


/* فعال - گزارش فصلی */

.fundamental-item.seasonal.active{

    background:
        linear-gradient(
            135deg,
            #047857 0%,
            #059669 55%,
            #10b981 100%
        );

    border-color:#059669;
}


/* فعال - سودآوری */

.fundamental-item.profit.active{

    background:
        linear-gradient(
            135deg,
            #b45309 0%,
            #d97706 55%,
            #f59e0b 100%
        );

    border-color:#d97706;
}


/* فعال - دلار */

.fundamental-item.dollar.active{

    background:
        linear-gradient(
            135deg,
            #7e22ce 0%,
            #9333ea 55%,
            #a855f7 100%
        );

    border-color:#9333ea;
}


/* فعال - تحلیل صنایع */

.fundamental-item.industry-summary.active{

    background:
        linear-gradient(
            135deg,
            #0e7490 0%,
            #0891b2 55%,
            #06b6d4 100%
        );

    border-color:#0891b2;
}


/* فعال - جدول تحلیل صنایع */

.fundamental-item.industry-summary-table.active{

    background:
        linear-gradient(
            135deg,
            #be123c 0%,
            #e11d48 55%,
            #f43f5e 100%
        );

    border-color:#e11d48;
}


/* =====================================================
                جدول گزارش ماهانه
===================================================== */


/* ظرف گزارش ماهانه */

#monthly-report-result{

    width:calc(100% + 100px);

    margin-top:15px;

    margin-right:-50px;

    margin-left:-125px;
}


/* خود جدول */

.monthly-table{

    width:100%;

    border-collapse:separate;

    border-spacing:0;

    table-layout:fixed;

    direction:rtl;

    background:#ffffff;

    overflow:hidden;

    border-radius:16px;

    font-family:"B Nazanin", Tahoma, sans-serif;

    border:1px solid rgba(203,213,225,.82);

    box-shadow:
        0 12px 28px rgba(15,23,42,.065),
        0 3px 8px rgba(15,23,42,.035),
        inset 0 1px 0 rgba(255,255,255,1);
}


/* عنوان ستون‌ها */

.monthly-table th{

    height:42px;

    padding:0 8px;

    background:
        linear-gradient(
            135deg,
            #065f46 0%,
            #047857 52%,
            #059669 100%
        );

    color:#ffffff;

    text-align:center;

    vertical-align:middle;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:18px;

    font-weight:700;

    line-height:20px;

    white-space:nowrap;

    border-bottom:1px solid rgba(255,255,255,.14);
}


.monthly-table th:first-child{

    border-top-right-radius:15px;
}


.monthly-table th:last-child{

    border-top-left-radius:15px;
}


/* سلول‌های جدول */

.monthly-table td{

    padding:0;

    height:38px;

    text-align:center;

    vertical-align:middle;

    border-bottom:1px solid rgba(226,232,240,.72);

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:500;

    line-height:19px;

    color:#334155;

    background:transparent;

    white-space:nowrap;

    transition:
        background .18s ease,
        color .18s ease;
}


/* نام دوره */

.monthly-table td:first-child{

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:600;

    color:#334155;
}


/* ستون فروش */

.monthly-table td:nth-child(2){

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    color:#065f46;

    font-weight:600;
}


/* ستون‌های درصد */

.monthly-table td:nth-child(3),
.monthly-table td:nth-child(4),
.monthly-table td:nth-child(5){

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:600;
}


/* ردیف‌ها */

.monthly-table tr{

    height:38px;
}


.monthly-table tr:nth-child(even){

    background:
        linear-gradient(
            90deg,
            #f0fdfa 0%,
            #ecfdf5 100%
        );
}


.monthly-table tr:nth-child(odd){

    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #f8fafc 100%
        );
}


/* هاور */

.monthly-table tr:hover{

    background:
        linear-gradient(
            90deg,
            #fff1f2 0%,
            #ffe4e6 100%
        ) !important;

}

.monthly-table tr:hover td{

    background:transparent !important;

    color:#9f1239;

}


/* =====================================================
                ردیف میانگین
===================================================== */

.average-row td{

    height:40px;

    padding:0 10px;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:700;

    text-align:center;

    vertical-align:middle;

    border-top:
        2px solid rgba(148,163,184,.55);

    border-bottom:none;

    background:
        linear-gradient(
            90deg,
            #f8fafc 0%,
            #ecfdf5 100%
        );

    color:#334155;
}


/* =====================================================
                اعداد منفی
===================================================== */

.negative{

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    color:#d32f2f;

    font-weight:600;
}

/* =========================================================
   جدول فروش فصلی
   فقط مربوط به جدول فروش
   کلاس اصلی: seasonal-sales-table
========================================================= */

.seasonal-sales-table{

    width:93%;

    margin:10px auto 25px auto;

    border-collapse:separate;

    border-spacing:0;

    overflow:hidden;

    border-radius:16px;

    direction:rtl;

    background:#ffffff;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    border:1px solid rgba(203,213,225,.82);

    box-shadow:
        0 12px 28px rgba(15,23,42,.065),
        0 3px 8px rgba(15,23,42,.035),
        inset 0 1px 0 rgba(255,255,255,1);

}


/* =========================================================
   هدر جدول
========================================================= */

.seasonal-sales-table th{

    height:42px;

    padding:0 8px;

    background:
        linear-gradient(
            135deg,
            #065f46 0%,
            #047857 52%,
            #059669 100%
        );

    color:#ffffff;

    text-align:center;

    vertical-align:middle;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:18px;

    font-weight:700;

    line-height:20px;

    white-space:nowrap;

    border-bottom:1px solid rgba(255,255,255,.14);

}


.seasonal-sales-table th:first-child{

    border-top-right-radius:15px;

}


.seasonal-sales-table th:last-child{

    border-top-left-radius:15px;

}


/* =========================================================
   سلول‌های معمولی جدول
========================================================= */

.seasonal-sales-table td{

    height:38px;

    padding:0 5px;

    text-align:center;

    vertical-align:middle;

    color:#334155;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:500;

    line-height:19px;

    white-space:nowrap;

    border-bottom:1px solid rgba(226,232,240,.72);

    background:transparent !important;

    transition:
        background .18s ease,
        color .18s ease;

}


.seasonal-sales-table tr{

    height:38px;

}


/* =========================================================
   رنگ‌بندی ردیف‌های فصل‌ها
========================================================= */

.seasonal-sales-table .spring-row{

    background:
        linear-gradient(
            90deg,
            #f0fdf4 0%,
            #dcfce7 100%
        ) !important;

}


.seasonal-sales-table .summer-row{

    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #f8fafc 100%
        ) !important;

}


.seasonal-sales-table .autumn-row{

    background:
        linear-gradient(
            90deg,
            #f0fdf4 0%,
            #dcfce7 100%
        ) !important;

}


.seasonal-sales-table .winter-row{

    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #f8fafc 100%
        ) !important;

}


/* =========================================================
   ردیف‌های تجمیعی
   شش ماهه اول - نه ماهه - شش ماهه دوم
========================================================= */

.six-month-row{

    background:
        linear-gradient(
            90deg,
            #f0fdfa 0%,
            #ecfdf5 100%
        ) !important;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:700;

}


.nine-month-row{

    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #f8fafc 100%
        ) !important;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:700;

}


.second-six-month-row{

    background:
        linear-gradient(
            90deg,
            #f0fdfa 0%,
            #ecfdf5 100%
        ) !important;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:700;

}


/* =========================================================
   ردیف نهایی تجمیعی
========================================================= */

.seasonal-sales-table .total-row{

    background:
        linear-gradient(
            135deg,
            #1d4ed8 0%,
            #2563eb 50%,
            #3b82f6 100%
        ) !important;

    color:#ffffff !important;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:800;

}


.seasonal-sales-table .total-row td{

    background:transparent !important;

    color:#ffffff !important;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:800;

    border-bottom:none;

}


/* =========================================================
   ستون دوره
========================================================= */

.seasonal-sales-table th:first-child,
.seasonal-sales-table td:first-child{

    width:18%;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:700;

}


/* =========================================================
   ستون فروش
========================================================= */

.seasonal-sales-table th:nth-child(2),
.seasonal-sales-table td:nth-child(2){

    width:25%;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:600;

}


/* =========================================================
   ستون‌های درصدی
   رشدها و پوشش
========================================================= */

.seasonal-sales-table th:nth-child(n+3),
.seasonal-sales-table td:nth-child(n+3){

    width:19%;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:600;

}


/* =========================================================
   اعداد منفی
========================================================= */

.seasonal-sales-table .negative{

    color:#d32f2f;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:700;

}


/* =========================================================
   هاور ردیف‌ها
========================================================= */

.seasonal-sales-table tr:not(.total-row):hover{

    background:
        linear-gradient(
            90deg,
            #fff1f2 0%,
            #ffe4e6 100%
        ) !important;

}


.seasonal-sales-table tr:not(.total-row):hover td{

    background:transparent !important;

    color:#9f1239;

}


/* =========================================================
   گوشه پایین جدول
========================================================= */

.seasonal-sales-table tr:last-child td:first-child{

    border-bottom-right-radius:15px;

}


.seasonal-sales-table tr:last-child td:last-child{

    border-bottom-left-radius:15px;

}


/* =========================================================
   صفحه موبایل
========================================================= */

@media(max-width:768px){

    .seasonal-sales-table{

        width:100%;

        font-family:"B Nazanin", Tahoma, sans-serif;

        font-size:15px;

    }


    .seasonal-sales-table th{

        height:38px;

        padding:0 4px;

        font-size:16px;

    }


    .seasonal-sales-table td{

        height:36px;

        padding:0 2px;

        font-size:15px;

    }


    .seasonal-sales-table th:first-child,
    .seasonal-sales-table td:first-child{

        font-size:15px;

    }


    .seasonal-sales-table th:nth-child(2),
    .seasonal-sales-table td:nth-child(2),
    .seasonal-sales-table th:nth-child(n+3),
    .seasonal-sales-table td:nth-child(n+3){

        font-size:15px;

    }


    .seasonal-sales-table .negative{

        font-size:15px;

    }

}


/* =========================================================
   جدول حاشیه سود و EPS
   جدول جدا از گزارش فروش
========================================================= */

.profitability-table{

    width:93%;

    margin:0 auto 20px auto;

    border-collapse:separate;

    border-spacing:0;

    table-layout:fixed;

    direction:rtl;

    background:#ffffff;

    border:1px solid rgba(203,213,225,.82);

    border-radius:16px;

    overflow:hidden;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    box-shadow:
        0 12px 28px rgba(15,23,42,.065),
        0 3px 8px rgba(15,23,42,.035),
        inset 0 1px 0 rgba(255,255,255,1);

}


/* =========================================================
   هدر جدول حاشیه سود
========================================================= */

.profitability-table th{

    height:42px;

    padding:0 6px;

    background:
        linear-gradient(
            135deg,
            #065f46 0%,
            #047857 52%,
            #059669 100%
        );

    color:#ffffff;

    text-align:center;

    vertical-align:middle;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:18px;

    font-weight:700;

    line-height:20px;

    white-space:nowrap;

    border-bottom:1px solid rgba(255,255,255,.14);

}


.profitability-table th:first-child{

    border-top-right-radius:15px;

}


.profitability-table th:last-child{

    border-top-left-radius:15px;

}


/* =========================================================
   سلول‌های اصلی جدول
========================================================= */

.profitability-table td{

    height:38px;

    padding:0 4px;

    text-align:center;

    vertical-align:middle;

    color:#334155;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:500;

    line-height:19px;

    white-space:nowrap;

    border-bottom:1px solid rgba(226,232,240,.72);

    background:transparent !important;

    transition:
        background .18s ease,
        color .18s ease;

}


.profitability-table tr{

    height:38px;

}


/* =========================================================
   ستون دوره
========================================================= */

.profitability-table th:first-child,
.profitability-table td:first-child{

    width:22%;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:700;

}


/* =========================================================
   سه ستون حاشیه سود
========================================================= */

.profitability-table th:nth-child(2),
.profitability-table td:nth-child(2),

.profitability-table th:nth-child(3),
.profitability-table td:nth-child(3),

.profitability-table th:nth-child(4),
.profitability-table td:nth-child(4){

    width:18%;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:600;

}


/* =========================================================
   ستون EPS
========================================================= */

.profitability-table th:nth-child(5),
.profitability-table td:nth-child(5){

    width:24%;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:600;

}


/* =========================================================
   ردیف‌های سه ماهه
========================================================= */

.profitability-table .first-quarter-row{

    background:
        linear-gradient(
            90deg,
            #f0fdf4 0%,
            #dcfce7 100%
        ) !important;

}


.profitability-table .second-quarter-row{

    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #f8fafc 100%
        ) !important;

}


.profitability-table .third-quarter-row{

    background:
        linear-gradient(
            90deg,
            #f0fdf4 0%,
            #dcfce7 100%
        ) !important;

}


.profitability-table .fourth-quarter-row{

    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #f8fafc 100%
        ) !important;

}


/* =========================================================
   ردیف‌های تجمیعی جدول حاشیه سود
========================================================= */

.profit-six-month-row{

    background:
        linear-gradient(
            90deg,
            #f0fdfa 0%,
            #ecfdf5 100%
        ) !important;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:700;

}


.profit-nine-month-row{

    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #f8fafc 100%
        ) !important;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:700;

}


.profit-second-six-month-row{

    background:
        linear-gradient(
            90deg,
            #f0fdfa 0%,
            #ecfdf5 100%
        ) !important;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:700;

}


/* =========================================================
   اعداد منفی
========================================================= */

.profitability-table .negative,
.profitability-table .negative-number{

    color:#d32f2f;

    font-family:"B Nazanin", Tahoma, sans-serif;

    font-size:17px;

    font-weight:700;

}


/* =========================================================
   هاور ردیف‌ها
========================================================= */

.profitability-table tr:hover{

    background:
        linear-gradient(
            90deg,
            #fff1f2 0%,
            #ffe4e6 100%
        ) !important;

}


.profitability-table tr:hover td{

    background:transparent !important;

    color:#9f1239;

}


/* =========================================================
   گوشه پایین جدول
========================================================= */

.profitability-table tr:last-child td:first-child{

    border-bottom-right-radius:15px;

}


.profitability-table tr:last-child td:last-child{

    border-bottom-left-radius:15px;

}


/* =========================================================
   موبایل
========================================================= */

@media(max-width:768px){

    .profitability-table{

        width:98%;

        font-family:"B Nazanin", Tahoma, sans-serif;

        font-size:15px;

    }


    .profitability-table th{

        height:38px;

        padding:0 3px;

        font-size:16px;

    }


    .profitability-table td{

        height:36px;

        padding:0 2px;

        font-size:15px;

    }


    .profitability-table th:first-child,
    .profitability-table td:first-child{

        font-size:15px;

    }


    .profitability-table .negative,
    .profitability-table .negative-number{

        font-size:15px;

    }

}


/* =====================================
   PROFIT FORECAST TABLE
   باکس پیش‌بینی سود — طراحی مدرن
===================================== */


/* =====================================
   خود جدول
===================================== */

.profit-forecast-table{
    width:400px;
    max-width:100%;
    table-layout:fixed;
    border-collapse:separate;
    border-spacing:0;
    direction:rtl;

    margin-top:-10px;
    margin-bottom:15px;
    margin-right:55px;
    margin-left:auto;

    font-family:"B Nazanin", Tahoma, sans-serif;

    border:1px solid rgba(203,213,225,.82);
    border-radius:16px;
    overflow:hidden;

    background:#ffffff;

    box-shadow:
        0 12px 28px rgba(15,23,42,.065),
        0 3px 8px rgba(15,23,42,.035),
        inset 0 1px 0 rgba(255,255,255,1);
}


/* =====================================
   عنوان ستون‌ها
===================================== */

.profit-forecast-table th{
    height:42px;
    padding:0 10px;

    background:
        linear-gradient(
            135deg,
            #065f46 0%,
            #047857 52%,
            #059669 100%
        );

    color:#ffffff;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:19px;
    font-weight:700;
    line-height:22px;

    border-bottom:1px solid rgba(255,255,255,.16);

    text-align:center;
    vertical-align:middle;
    white-space:nowrap;
}


/* عنوان ستون اول */

.profit-forecast-table th:first-child{
    width:50%;
    text-align:right !important;
    padding-right:20px !important;
    border-top-right-radius:15px;
}


/* عنوان ستون دوم */

.profit-forecast-table th:last-child{
    width:50%;
    text-align:left !important;
    padding-left:20px !important;
    border-top-left-radius:15px;
}


/* =====================================
   همه سلول‌ها
===================================== */

.profit-forecast-table td{
    height:38px;
    padding:1.5px 12px;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:17px;
    font-weight:500;
    line-height:19px;

    border-bottom:1px solid rgba(226,232,240,.72);

    background:transparent;
    color:#334155;

    vertical-align:middle;
    white-space:nowrap;

    transition:
        background .18s ease,
        color .18s ease;
}


/* =====================================
   ستون عنوان شاخص‌ها
===================================== */

.profit-forecast-table td:first-child{
    width:50%;

    text-align:right;
    padding-right:20px;

    color:#334155;
    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:17px;
    font-weight:600;
}


/* =====================================
   ستون مقدارها
===================================== */

.profit-forecast-table td:last-child{
    width:50%;

    text-align:left;
    direction:ltr;
    padding-left:20px;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:17px;
    font-weight:600;

    color:#0f172a;
}


/* =====================================
   توضیح کوچک شاخص
===================================== */

.forward-text{
    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:16px;
    font-weight:500;
}


/* =====================================
   رنگ‌بندی ردیف‌ها
===================================== */

/* ردیف‌های پیش‌بینی فروش و سود */

.profit-forecast-table tr:nth-child(2) td,
.profit-forecast-table tr:nth-child(3) td,
.profit-forecast-table tr:nth-child(4) td{
    background:#f0fdfa;
}

.profit-forecast-table tr:nth-child(5) td,
.profit-forecast-table tr:nth-child(6) td{
    background:#fffbeb;
}

.profit-forecast-table tr:nth-child(7) td,
.profit-forecast-table tr:nth-child(8) td{
    background:#fff7ed;
}

.profit-forecast-table tr:nth-child(9) td,
.profit-forecast-table tr:nth-child(10) td{
    background:#f8fafc;
}


/* =====================================
   ردیف‌های P/E Forward و P/S Forward
===================================== */

.profit-forecast-table tr:nth-last-child(2) td,
.profit-forecast-table tr:last-child td{
    background:#eff6ff;
    font-weight:700;
}


/* عنوان دو ردیف Forward */

.profit-forecast-table tr:nth-last-child(2) td:first-child,
.profit-forecast-table tr:last-child td:first-child{
    color:#1d4ed8;
    font-weight:700;
}


/* گوشه‌های پایین جدول */

.profit-forecast-table tr:last-child td:first-child{
    border-bottom-right-radius:15px;
}

.profit-forecast-table tr:last-child td:last-child{
    border-bottom-left-radius:15px;
}


/* =====================================
   ردیف ۱۲ ماهه
===================================== */

.profit-twelve-month-row td,
.twelve-month-row td{
    background:#fef3c7 !important;
    color:#78350f !important;
    font-weight:800;
    border-bottom-color:rgba(217,119,6,.18);
}


/* =====================================
   حرکت موس — قرمز ملایم و پایدار
===================================== */

.profit-forecast-table tr:hover td{
    background:
        linear-gradient(
            90deg,
            #fff1f2 0%,
            #ffe4e6 100%
        ) !important;

    color:#9f1239;
}


/* رنگ اعداد مثبت و منفی در زمان Hover حفظ شود */

.profit-forecast-table tr:hover td .negative{
    color:#dc2626;
}

.profit-forecast-table tr:hover td .positive{
    color:#059669;
}


/* =====================================
   اعداد منفی
===================================== */

.profit-forecast-table .negative{
    color:#dc2626;
    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:17px;
    font-weight:700;
}


/* =====================================
   اعداد مثبت
===================================== */

.profit-forecast-table .positive{
    color:#059669;
    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:17px;
    font-weight:700;
}


/* =====================================
   توضیحات تکمیلی
===================================== */

.forecast-description{
    display:block;
    margin-top:3px;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:10px;
    font-weight:400;

    color:#64748b;
}


/* =====================================
   گوشه‌ها و ردیف پایانی
===================================== */

.profit-forecast-table tr:last-child td{
    border-bottom:none;
}


/* =====================================
   نمایشگرهای کوچک
===================================== */

@media(max-width:768px){

    .profit-forecast-table{
        width:400px;
        max-width:100%;
        margin-right:0;
        margin-left:auto;
    }

    .profit-forecast-table th{
        height:38px;
        padding:0 5px;
        font-size:16px;
        line-height:19px;
    }

    .profit-forecast-table th:first-child{
        padding-right:10px !important;
    }

    .profit-forecast-table th:last-child{
        padding-left:10px !important;
    }

    .profit-forecast-table td{
        height:36px;
        padding:1px 5px;
        font-size:15px;
        line-height:18px;
    }

    .profit-forecast-table td:first-child{
        padding-right:10px;
        font-size:15px;
    }

    .profit-forecast-table td:last-child{
        padding-left:10px;
        font-size:15px;
    }

    .profit-forecast-table .negative,
    .profit-forecast-table .positive{
        font-size:15px;
    }

    .forward-text{
        font-size:14px;
    }
}



/* ==============================
   جدول تحلیل دلاری
   طراحی مدرن و یکپارچه
   فقط روی dollar-analysis-table
============================== */


/* =====================================
   خود جدول
===================================== */

.dollar-analysis-table{
    width:70%;
    margin:20px auto;

    border-collapse:separate;
    border-spacing:0;
    direction:rtl;

    background:#ffffff;

    border:1px solid rgba(203,213,225,.82);
    border-radius:16px;
    overflow:hidden;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:17px;

    box-shadow:
        0 12px 28px rgba(15,23,42,.065),
        0 3px 8px rgba(15,23,42,.035),
        inset 0 1px 0 rgba(255,255,255,1);
}


/* =====================================
   ردیف عنوان جدول
===================================== */

.dollar-analysis-table th{
    height:42px;
    padding:0 12px;

    background:
        linear-gradient(
            135deg,
            #065f46 0%,
            #047857 52%,
            #059669 100%
        );

    color:#ffffff;

    text-align:center;
    vertical-align:middle;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:18px;
    font-weight:700;
    line-height:21px;

    white-space:nowrap;
    border-bottom:1px solid rgba(255,255,255,.14);
}

.dollar-analysis-table th:first-child{
    border-top-right-radius:15px;
}

.dollar-analysis-table th:last-child{
    border-top-left-radius:15px;
}


/* =====================================
   همه سلول‌ها
===================================== */

.dollar-analysis-table td{
    height:40px;
    padding:0 12px;

    text-align:center;
    vertical-align:middle;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:17px;
    font-weight:500;
    line-height:20px;

    color:#334155;

    border-bottom:1px solid rgba(226,232,240,.72);

    background:transparent;

    white-space:nowrap;

    transition:
        background .18s ease,
        color .18s ease;
}


/* =====================================
   ستون عنوان‌ها
===================================== */

.dollar-analysis-table td:first-child{
    text-align:right;
    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:17px;
    font-weight:600;
    color:#334155;
}


/* =====================================
   ستون اعداد
===================================== */

.dollar-analysis-table td:last-child{
    direction:ltr;
    text-align:right;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:17px;
    font-weight:600;

    color:#0f172a;
}


/* =====================================
   لیست کشویی دلار
===================================== */

.dollar-analysis-table select{
    max-width:100%;
    padding:4px 8px;
    margin:0;

    font-family:"B Nazanin", Tahoma, sans-serif;
    font-size:18px;
    font-weight:700;

    color:#065f46;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #ecfdf5 100%
        );

    border:1px solid rgba(16,185,129,.38);
    border-radius:9px;

    outline:none;
    cursor:pointer;

    box-shadow:
        0 3px 8px rgba(16,185,129,.06),
        inset 0 1px 0 rgba(255,255,255,1);

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.dollar-analysis-table select:hover{
    border-color:rgba(16,185,129,.75);

    box-shadow:
        0 5px 12px rgba(16,185,129,.10),
        inset 0 1px 0 rgba(255,255,255,1);
}

.dollar-analysis-table select:focus{
    border-color:#059669;

    box-shadow:
        0 0 0 3px rgba(16,185,129,.13),
        0 5px 12px rgba(16,185,129,.08);
}


/* =====================================
   رنگ‌بندی پایه ردیف‌ها
===================================== */

.dollar-analysis-table tbody tr:nth-child(odd){
    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #f8fafc 100%
        );
}

.dollar-analysis-table tbody tr:nth-child(even){
    background:
        linear-gradient(
            90deg,
            #f0fdfa 0%,
            #ecfdf5 100%
        );
}


/* =====================================
   ردیف انتخاب دلار
===================================== */

.dollar-analysis-table .dollar-row,
.dollar-analysis-table tr.dollar-row td{
    background:
        linear-gradient(
            90deg,
            #fffbeb 0%,
            #fef3c7 100%
        ) !important;
}

.dollar-analysis-table .dollar-row td{
    color:#78350f;
    font-weight:700;
}


/* =====================================
   ارزش دلاری شرکت
===================================== */

.dollar-analysis-table tr.market-value-row,
.dollar-analysis-table tr.market-value-row td{
    background:
        linear-gradient(
            90deg,
            #fef3c7 0%,
            #fde68a 100%
        ) !important;

    color:#78350f;
    font-weight:700;
}


/* عدد ارزش دلاری شرکت */

.dollar-analysis-table .market-value-row .dollar-number{
    font-weight:800;
    color:#78350f;
}


/* =====================================
   ردیف‌های فروش
===================================== */

.dollar-analysis-table .sales-row,
.dollar-analysis-table .sales-row td{
    background:
        linear-gradient(
            90deg,
            #eff6ff 0%,
            #dbeafe 100%
        ) !important;
}

.dollar-analysis-table .sales-row td{
    color:#1e40af;
}


/* =====================================
   ردیف‌های سود
===================================== */

.dollar-analysis-table .profit-row,
.dollar-analysis-table .profit-row td{
    background:
        linear-gradient(
            90deg,
            #fffbeb 0%,
            #fef3c7 100%
        ) !important;
}

.dollar-analysis-table .profit-row td{
    color:#92400e;
}


/* =====================================
   فاصله اعداد
===================================== */

.dollar-analysis-table .market-value-row td:last-child,
.dollar-analysis-table .sales-row td:last-child,
.dollar-analysis-table .profit-row td:last-child{
    padding-right:25px;
}


/* =====================================
   اعداد داخل جدول
===================================== */

.dollar-analysis-table .dollar-number{
    display:inline-block;
    transform:translateX(-130px);
}


/* =====================================
   Hover ردیف‌ها — قرمز ملایم
===================================== */

.dollar-analysis-table tbody tr:hover td{
    background:
        linear-gradient(
            90deg,
            #fff1f2 0%,
            #ffe4e6 100%
        ) !important;

    color:#9f1239;
}


/* =====================================
   خط پایانی و گوشه‌های پایین
===================================== */

.dollar-analysis-table tr:last-child td{
    border-bottom:none;
}

.dollar-analysis-table tr:last-child td:first-child{
    border-bottom-right-radius:15px;
}

.dollar-analysis-table tr:last-child td:last-child{
    border-bottom-left-radius:15px;
}


/* =====================================
   نمایشگرهای کوچک
===================================== */

@media(max-width:768px){

    .dollar-analysis-table{
        width:100%;
        margin:15px auto;
        font-size:15px;
    }

    .dollar-analysis-table th{
        height:38px;
        padding:0 5px;
        font-size:16px;
        line-height:19px;
    }

    .dollar-analysis-table td{
        height:36px;
        padding:0 5px;
        font-size:15px;
        line-height:18px;
    }

    .dollar-analysis-table td:first-child{
        font-size:15px;
    }

    .dollar-analysis-table td:last-child{
        font-size:15px;
    }

    .dollar-analysis-table select{
        max-width:100%;
        font-size:15px;
        padding:3px 5px;
    }

    .dollar-analysis-table .market-value-row td:last-child,
    .dollar-analysis-table .sales-row td:last-child,
    .dollar-analysis-table .profit-row td:last-child{
        padding-right:8px;
    }

    .dollar-analysis-table .dollar-number{
        transform:translateX(0);
    }
}

/* =========================================================
   NASHRAN360 — EXTENDED DOLLAR ANALYSIS
   پنل یکپارچه تحلیل دلاری پیشرفته
   فقط مربوط به #dollar-analysis-extended
========================================================= */

#dollar-analysis-extended {
    width: 100%;
    max-width: 100%;
    margin: 18px 0 24px;
    padding: clamp(10px, 1.5vw, 20px);
    box-sizing: border-box;
    direction: rtl;
    font-family: "B Nazanin", Tahoma, sans-serif;
    color: #312e45;
    background: linear-gradient(145deg, #ffffff 0%, #fdfbff 55%, #f7f3ff 100%);
    border: 1px solid rgba(139, 92, 246, 0.20);
    border-top: 4px solid #8b5cf6;
    border-radius: 20px;
    box-shadow:
        0 12px 30px rgba(76, 29, 149, 0.07),
        0 3px 8px rgba(76, 29, 149, 0.035),
        inset 0 1px 0 #ffffff;
}

/* کنترل‌های بالای پنل */

#dollar-analysis-extended .dollar-extra-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 16px;
    padding: 13px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 14px;
}

#dollar-analysis-extended .dollar-extra-controls label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #5b21b6;
    font-size: 17px;
    font-weight: 700;
}

#dollar-analysis-extended .dollar-extra-controls select {
    width: auto;
    min-width: 145px;
    max-width: 100%;
    min-height: 40px;
    padding: 6px 12px;
    box-sizing: border-box;
    color: #5b21b6;
    background: #ffffff;
    border: 1px solid #d8b4fe;
    border-radius: 10px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 6px rgba(91, 33, 182, 0.05);
    transition: border-color .18s ease, box-shadow .18s ease;
}

#dollar-analysis-extended .dollar-extra-controls select:hover {
    border-color: #a78bfa;
}

#dollar-analysis-extended .dollar-extra-controls select:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.13);
}

/* خلاصه نرخ‌ها */

#dollar-analysis-extended #dollar-analysis-rate-summary {
    width: 100%;
    min-width: 0;
    margin: 0 0 18px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    color: #475569;
    font-size: 16px;
}

#dollar-analysis-extended .dollar-extra-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 10px;
    width: 100%;
}

#dollar-analysis-extended .dollar-extra-summary span {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 54px;
    padding: 11px 13px;
    box-sizing: border-box;
    color: #5b21b6;
    background: linear-gradient(145deg, #ffffff, #faf5ff);
    border: 1px solid #ede9fe;
    border-right: 3px solid #a78bfa;
    border-radius: 11px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* عنوان جدول‌ها و نمودارها */

#dollar-analysis-extended h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin: 22px 0 12px;
    padding: 0 3px;
    box-sizing: border-box;
    color: #6d28d9;
    font-family: "B Nazanin", Tahoma, sans-serif;
    font-size: clamp(17px, 1.3vw, 21px);
    font-weight: 800;
    line-height: 1.8;
}

#dollar-analysis-extended h3::before {
    content: "";
    display: block;
    flex: 0 0 4px;
    width: 4px;
    height: 23px;
    border-radius: 5px;
    background: linear-gradient(180deg, #c4b5fd, #7c3aed);
}

/* قاب جدول‌ها */

#dollar-analysis-extended .dollar-extra-table-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px;
    overflow-x: hidden;
    overflow-y: hidden;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e9d5ff;
    border-radius: 14px;
    box-shadow:
        0 7px 18px rgba(76, 29, 149, 0.055),
        0 2px 5px rgba(76, 29, 149, 0.025);
}

/* جدول: حفظ اندازه فونت، کاهش فاصله و تقسیم عرض */

#dollar-analysis-extended .dollar-extra-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    direction: rtl;
    table-layout: fixed;
    background: #ffffff;
    font-family: "B Nazanin", Tahoma, sans-serif;
    font-size: 16px;
}

#dollar-analysis-extended .dollar-extra-table th {
    padding: 8px 4px;
    color: #ffffff;
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#dollar-analysis-extended .dollar-extra-table td {
    padding: 8px 4px;
    color: #334155;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color .15s ease, color .15s ease;
}

#dollar-analysis-extended .dollar-extra-table tbody tr:nth-child(even) td {
    background: #faf5ff;
}

#dollar-analysis-extended .dollar-extra-table tbody tr:hover td {
    background: #ede9fe;
    color: #5b21b6;
}

#dollar-analysis-extended .dollar-extra-table tbody tr:last-child td {
    border-bottom: none;
}

#dollar-analysis-extended #dollar-analysis-monthly-table,
#dollar-analysis-extended #dollar-analysis-seasonal-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* کارت‌های سه نمودار */

#dollar-analysis-extended .dollar-extra-chart {
    width: 100%;
    min-width: 0;
    height: clamp(260px, 27vw, 370px);
    margin: 16px 0;
    padding: clamp(10px, 1.4vw, 18px);
    box-sizing: border-box;
    position: relative;
    background: linear-gradient(145deg, #ffffff, #fcfaff);
    border: 1px solid #e9d5ff;
    border-right: 4px solid #8b5cf6;
    border-radius: 16px;
    box-shadow:
        0 8px 22px rgba(76, 29, 149, 0.06),
        0 2px 6px rgba(76, 29, 149, 0.025);
}

#dollar-analysis-extended .dollar-extra-chart h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

#dollar-analysis-extended .dollar-extra-chart canvas {
    display: block;
    width: 100% !important;
    max-width: 100%;
    max-height: calc(100% - 42px);
}

/* نمایشگرهای بزرگ */

@media (min-width: 1440px) {
    #dollar-analysis-extended {
        padding: 22px;
        border-radius: 22px;
    }

    #dollar-analysis-extended .dollar-extra-chart {
        height: 370px;
    }

    #dollar-analysis-extended .dollar-extra-table th {
        padding: 9px 5px;
    }

    #dollar-analysis-extended .dollar-extra-table td {
        padding: 9px 5px;
    }
}

/* تبلت و لپ‌تاپ کوچک */

@media (max-width: 1023px) {
    #dollar-analysis-extended {
        padding: 12px;
        margin-top: 14px;
        border-radius: 16px;
    }

    #dollar-analysis-extended .dollar-extra-chart {
        height: 290px;
    }

    #dollar-analysis-extended .dollar-extra-controls {
        gap: 10px;
        padding: 10px;
    }
}

/* موبایل */

@media (max-width: 600px) {
    #dollar-analysis-extended {
        padding: 9px;
        margin: 12px 0 18px;
        border-radius: 13px;
    }

    #dollar-analysis-extended .dollar-extra-controls {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
        border-radius: 11px;
    }

    #dollar-analysis-extended .dollar-extra-controls label {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
        font-size: 15px;
    }

    #dollar-analysis-extended .dollar-extra-controls select {
        width: 100%;
        min-width: 0;
        font-size: 16px;
    }

    #dollar-analysis-extended .dollar-extra-summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    #dollar-analysis-extended .dollar-extra-summary span {
        min-height: 45px;
        padding: 9px 10px;
        font-size: 15px;
    }

    #dollar-analysis-extended h3 {
        margin-top: 18px;
        margin-bottom: 10px;
        font-size: 17px;
    }

    #dollar-analysis-extended h3::before {
        height: 19px;
    }

    #dollar-analysis-extended .dollar-extra-table th {
        padding: 6px 2px;
        font-size: 17px;
    }

    #dollar-analysis-extended .dollar-extra-table td {
        padding: 6px 2px;
        font-size: 16px;
    }

    #dollar-analysis-extended .dollar-extra-chart {
        height: 260px;
        margin: 12px 0;
        padding: 9px;
        border-radius: 12px;
    }

    #dollar-analysis-extended .dollar-extra-chart h3 {
        font-size: 16px;
    }

    #dollar-analysis-extended .dollar-extra-chart canvas {
        max-height: calc(100% - 38px);
    }
}

/* موبایل بسیار کوچک */

@media (max-width: 359px) {
    #dollar-analysis-extended {
        padding: 7px;
    }

    #dollar-analysis-extended .dollar-extra-chart {
        height: 235px;
        padding: 7px;
    }

    #dollar-analysis-extended .dollar-extra-table th {
        padding: 5px 1px;
    }

    #dollar-analysis-extended .dollar-extra-table td {
        padding: 5px 1px;
    }
}

/* دستگاه‌های لمسی */

@media (hover: none) {
    #dollar-analysis-extended .dollar-extra-table tbody tr:hover td {
        color: #334155;
        background: inherit;
    }
}


/* =========================================================
   FUNDAMENTAL CHARTS
   نمودارهای بنیادی — طراحی مدرن و یکپارچه
========================================================= */

#fundamental-charts-container{
    display:none;
    width:100%;
    margin-right:0;
    margin-top:20px;
    padding:0;
    box-sizing:border-box;
}


/* =========================================================
   BASE CHART CARD
   کارت اصلی هر نمودار
========================================================= */

#fundamental-charts-container .fundamental-chart-box{
    width:100%;
    box-sizing:border-box;
    margin:0 0 15px 0;
    padding:15px 17px 17px 17px;

    position:relative;
    overflow:hidden;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #ffffff 58%,
            #f8fafc 100%
        );

    border:1px solid rgba(203,213,225,.82);
    border-radius:17px;

    box-shadow:
        0 12px 28px rgba(15,23,42,.065),
        0 3px 8px rgba(15,23,42,.035),
        inset 0 1px 0 rgba(255,255,255,1);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

#fundamental-charts-container .fundamental-chart-box:hover{
    transform:translateY(-2px);

    border-color:rgba(16,185,129,.35);

    box-shadow:
        0 16px 34px rgba(15,23,42,.085),
        0 5px 12px rgba(16,185,129,.055),
        inset 0 1px 0 rgba(255,255,255,1);
}


/* =========================================================
   TITLE
   عنوان نمودار
========================================================= */

#fundamental-charts-container .fundamental-chart-title{
    width:100%;
    box-sizing:border-box;

    margin:0 0 12px 0;
    padding:2px 5px;

    display:flex;
    align-items:center;

    text-align:right;
    font-family:"B Nazanin",Tahoma,sans-serif;
    font-size:18px;
    font-weight:700;
    line-height:1.8;

    color:#1e293b;

    position:relative;
}

#fundamental-charts-container .fundamental-chart-title::before{
    content:"";

    display:inline-block;
    flex:0 0 4px;

    width:4px;
    height:19px;

    margin-left:9px;
    border-radius:5px;
}


/* =========================================================
   CANVAS AREA
   محدوده رسم نمودار
========================================================= */

#fundamental-charts-container .fundamental-chart-content{
    width:100%;
    height:285px;
    min-height:285px;

    position:relative;
    box-sizing:border-box;

    padding:5px 3px 2px 3px;
}

#fundamental-charts-container .fundamental-chart-content canvas{
    width:100% !important;
    height:100% !important;
    max-width:100%;

    display:block;
}


/* =========================================================
   1. MONTHLY SALES
   فروش ماهانه
========================================================= */

#fundamental-charts-container .chart-monthly{
    border-top:3px solid #2563eb;
}

#fundamental-charts-container .chart-monthly .fundamental-chart-title{
    color:#1d4ed8;
}

#fundamental-charts-container .chart-monthly .fundamental-chart-title::before{
    background:linear-gradient(180deg,#60a5fa 0%,#2563eb 100%);
}


/* =========================================================
   2. SEASONAL SALES
   فروش فصلی
========================================================= */

#fundamental-charts-container .chart-seasonal{
    border-top:3px solid #059669;
}

#fundamental-charts-container .chart-seasonal .fundamental-chart-title{
    color:#047857;
}

#fundamental-charts-container .chart-seasonal .fundamental-chart-title::before{
    background:linear-gradient(180deg,#34d399 0%,#059669 100%);
}


/* =========================================================
   3. GROSS MARGIN
   حاشیه سود ناخالص
========================================================= */

#fundamental-charts-container .chart-gross-margin{
    border-top:3px solid #ea580c;
}

#fundamental-charts-container .chart-gross-margin .fundamental-chart-title{
    color:#c2410c;
}

#fundamental-charts-container .chart-gross-margin .fundamental-chart-title::before{
    background:linear-gradient(180deg,#fdba74 0%,#ea580c 100%);
}


/* =========================================================
   4. OPERATING MARGIN
   حاشیه سود عملیاتی
========================================================= */

#fundamental-charts-container .chart-operating-margin{
    border-top:3px solid #7c3aed;
}

#fundamental-charts-container .chart-operating-margin .fundamental-chart-title{
    color:#6d28d9;
}

#fundamental-charts-container .chart-operating-margin .fundamental-chart-title::before{
    background:linear-gradient(180deg,#c4b5fd 0%,#7c3aed 100%);
}


/* =========================================================
   5. NET MARGIN
   حاشیه سود خالص
========================================================= */

#fundamental-charts-container .chart-net-margin{
    border-top:3px solid #e11d48;
}

#fundamental-charts-container .chart-net-margin .fundamental-chart-title{
    color:#be123c;
}

#fundamental-charts-container .chart-net-margin .fundamental-chart-title::before{
    background:linear-gradient(180deg,#fda4af 0%,#e11d48 100%);
}


/* =========================================================
   6. EPS
   سود هر سهم
========================================================= */

#fundamental-charts-container .chart-eps{
    border-top:3px solid #ca8a04;
}

#fundamental-charts-container .chart-eps .fundamental-chart-title{
    color:#a16207;
}

#fundamental-charts-container .chart-eps .fundamental-chart-title::before{
    background:linear-gradient(180deg,#fde047 0%,#ca8a04 100%);
}


/* =========================================================
   LARGE MONITORS
   نمایشگرهای بزرگ
========================================================= */

@media (min-width:1440px){

    #fundamental-charts-container .fundamental-chart-box{
        padding:16px 19px 18px 19px;
        margin-bottom:16px;
        border-radius:18px;
    }

    #fundamental-charts-container .fundamental-chart-title{
        font-size:19px;
        margin-bottom:13px;
    }

    #fundamental-charts-container .fundamental-chart-content{
        height:300px;
        min-height:300px;
    }
}


/* =========================================================
   VERY LARGE MONITORS
   نمایشگرهای بسیار بزرگ
========================================================= */

@media (min-width:1920px){

    #fundamental-charts-container .fundamental-chart-box{
        padding:17px 21px 19px 21px;
        margin-bottom:17px;
    }

    #fundamental-charts-container .fundamental-chart-content{
        height:320px;
        min-height:320px;
    }
}


/* =========================================================
   LAPTOP
   لپ‌تاپ
========================================================= */

@media (min-width:1024px) and (max-width:1439px){

    #fundamental-charts-container .fundamental-chart-box{
        padding:13px 15px 15px 15px;
        margin-bottom:13px;
        border-radius:15px;
    }

    #fundamental-charts-container .fundamental-chart-title{
        font-size:17px;
        margin-bottom:10px;
    }

    #fundamental-charts-container .fundamental-chart-content{
        height:275px;
        min-height:275px;
    }
}


/* =========================================================
   TABLET
   تبلت
========================================================= */

@media (min-width:768px) and (max-width:1023px){

    #fundamental-charts-container{
        margin-top:0;
    }

    #fundamental-charts-container .fundamental-chart-box{
        padding:12px 13px 14px 13px;
        margin-bottom:12px;
        border-radius:14px;
    }

    #fundamental-charts-container .fundamental-chart-title{
        font-size:16px;
        margin-bottom:9px;
    }

    #fundamental-charts-container .fundamental-chart-title::before{
        height:16px;
        width:4px;
        flex-basis:4px;
        margin-left:7px;
    }

    #fundamental-charts-container .fundamental-chart-content{
        height:255px;
        min-height:255px;
    }
}


/* =========================================================
   LARGE MOBILE
   موبایل بزرگ
========================================================= */

@media (min-width:481px) and (max-width:767px){

    #fundamental-charts-container{
        margin-top:0;
    }

    #fundamental-charts-container .fundamental-chart-box{
        padding:11px 11px 13px 11px;
        margin-bottom:11px;
        border-radius:13px;
    }

    #fundamental-charts-container .fundamental-chart-title{
        font-size:15px;
        margin-bottom:8px;
        padding:0 3px;
    }

    #fundamental-charts-container .fundamental-chart-title::before{
        height:15px;
        width:4px;
        flex-basis:4px;
        margin-left:6px;
    }

    #fundamental-charts-container .fundamental-chart-content{
        height:235px;
        min-height:235px;
        padding:2px;
    }
}


/* =========================================================
   SMALL MOBILE
   موبایل کوچک
========================================================= */

@media (max-width:480px){

    #fundamental-charts-container{
        margin-top:0;
    }

    #fundamental-charts-container .fundamental-chart-box{
        padding:10px 9px 11px 9px;
        margin-bottom:10px;
        border-radius:12px;
    }

    #fundamental-charts-container .fundamental-chart-title{
        font-size:14px;
        margin-bottom:7px;
        padding:0 2px;
    }

    #fundamental-charts-container .fundamental-chart-title::before{
        width:3px;
        height:14px;
        flex-basis:3px;
        margin-left:5px;
    }

    #fundamental-charts-container .fundamental-chart-content{
        height:215px;
        min-height:215px;
        padding:1px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   موبایل بسیار کوچک
========================================================= */

@media (max-width:359px){

    #fundamental-charts-container .fundamental-chart-box{
        padding:9px 8px 10px 8px;
        margin-bottom:9px;
        border-radius:11px;
    }

    #fundamental-charts-container .fundamental-chart-title{
        font-size:13px;
        margin-bottom:6px;
    }

    #fundamental-charts-container .fundamental-chart-content{
        height:195px;
        min-height:195px;
    }
}


/* =========================================================
   TOUCH DEVICES
   دستگاه‌های لمسی
========================================================= */

@media (hover:none){

    #fundamental-charts-container .fundamental-chart-box:hover{
        transform:none;

        box-shadow:
            0 12px 28px rgba(15,23,42,.065),
            0 3px 8px rgba(15,23,42,.035),
            inset 0 1px 0 rgba(255,255,255,1);
    }
}



/* =========================================================
   خلاصه صنعت — طراحی مدرن و یکپارچه ناشران360
   ========================================================= */

#industry-summary-container {
    display: none;
    width: 100%;
    margin-top: -14px;
    direction: rtl;
    box-sizing: border-box;
}


/* =========================================================
   فیلترهای سال و ماه
   ========================================================= */

.industry-summary-filters {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 9px;
}

.industry-summary-filters select {
    width: 200px;
    height: 40px;
    padding: 5px 10px;
    border: 1px solid #86c99b;
    border-radius: 9px;
    background: linear-gradient(145deg, #bbf7d0, #86efac);
    color: #166534;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    text-align: center;
    box-shadow:
        0 2px 5px rgba(36, 50, 80, 0.045),
        0 1px 2px rgba(36, 50, 80, 0.025);
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.industry-summary-filters select:hover {
    background: #fafaff;
    border-color: #b9b1e8;
    box-shadow: 0 3px 9px rgba(78, 65, 150, 0.09);
}

.industry-summary-filters select:focus {
    border-color: #8e68ca;
    box-shadow: 0 0 0 2px rgba(142, 104, 202, 0.13);
}

#industry-summary-selected-name {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-width: 200px;
    height: 40px;
    padding: 5px 10px;
    box-sizing: border-box;
    white-space: nowrap;
    direction: rtl;
    border: 1px solid #86c99b;
    border-radius: 9px;
    background: linear-gradient(145deg, #bbf7d0, #86efac);
    color: #166534;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(36, 50, 80, 0.045), 0 1px 2px rgba(36, 50, 80, 0.025);
}




/* =========================================================
   چیدمان جدول و اسلایسرها
   ========================================================= */

.industry-summary-layout {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    box-sizing: border-box;
}


/* =========================================================
   قاب جدول
   ========================================================= */

.industry-summary-table-wrapper {
    order: 1;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e0e6f0;
    border-radius: 10px;
    box-shadow:
        0 5px 16px rgba(35, 48, 75, 0.065),
        0 2px 5px rgba(35, 48, 75, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}


/* =========================================================
   جدول خلاصه صنعت
   ========================================================= */

#industry-summary-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid #e0e6f0;
    border-radius: 10px;
    overflow: hidden;
    direction: rtl;
    font-family: inherit;
}


/* =========================================================
   عرض ستون‌ها — بدون تغییر
   ========================================================= */

/* ستون 1 - نماد */
#industry-summary-table th:nth-child(1),
#industry-summary-table td:nth-child(1) {
    width: 70px;
}

/* ستون 2 - قیمت پایانی */
#industry-summary-table th:nth-child(2),
#industry-summary-table td:nth-child(2) {
    width: 80px;
}

/* ستون 3 - فروش */
#industry-summary-table th:nth-child(3),
#industry-summary-table td:nth-child(3) {
    width: 140px;
    white-space: nowrap;
    overflow-wrap: normal;
}

/* ستون 4 - نسبت به ماه قبل */
#industry-summary-table th:nth-child(4),
#industry-summary-table td:nth-child(4) {
    width: 100px;
}

/* ستون 5 - نقطه به نقطه */
#industry-summary-table th:nth-child(5),
#industry-summary-table td:nth-child(5) {
    width: 80px;
}

/* ستون 6 - نسبت به میانگین */
#industry-summary-table th:nth-child(6),
#industry-summary-table td:nth-child(6) {
    width: 110px;
}

/* ستون 7 - نسبت به کل صنعت */
#industry-summary-table th:nth-child(7),
#industry-summary-table td:nth-child(7) {
    width: 95px;
}

/* ستون 8 - حاشیه سود ناخالص */
#industry-summary-table th:nth-child(8),
#industry-summary-table td:nth-child(8) {
    width: 85px;
}

/* ستون 9 - حاشیه سود عملیاتی */
#industry-summary-table th:nth-child(9),
#industry-summary-table td:nth-child(9) {
    width: 90px;
}

/* ستون 10 - حاشیه سود خالص */
#industry-summary-table th:nth-child(10),
#industry-summary-table td:nth-child(10) {
    width: 85px;
}

/* ستون 11 - P/E */
#industry-summary-table th:nth-child(11),
#industry-summary-table td:nth-child(11) {
    width: 90px;
}

/* ستون 12 - P/S */
#industry-summary-table th:nth-child(12),
#industry-summary-table td:nth-child(12) {
    width: 90px;
}


/* =========================================================
   سرستون‌ها — گرادیان و سایه ملایم‌تر
   ========================================================= */

#industry-summary-table th {
    background: linear-gradient(
        135deg,
        #7560b5 0%,
        #9a7bd0 48%,
        #8062bd 100%
    );
    color: #ffffff;
    padding: 9px 4px;
    text-align: center;
    vertical-align: middle;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    border-bottom: 1px solid #7053ad;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(64, 42, 110, 0.08);
}

#industry-summary-table th:first-child {
    border-top-right-radius: 8px;
}

#industry-summary-table th:last-child {
    border-top-left-radius: 8px;
    border-left: none;
}


/* =========================================================
   سلول‌های جدول
   ========================================================= */

#industry-summary-table td {
    padding: 7px 3px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #e9edf4;
    border-left: 1px solid #edf0f6;
    color: #333333;
    font-family: "B Nazanin", Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    transition:
        background-color 0.16s ease,
        color 0.16s ease;
}

#industry-summary-table td:last-child {
    border-left: none;
}

#industry-summary-table tbody tr:last-child td {
    border-bottom: none;
}


/* =========================================================
   رنگ یک‌درمیان سطرها
   ========================================================= */

#industry-summary-table tbody tr:nth-child(odd) td {
    background-color: #ffffff;
}

#industry-summary-table tbody tr:nth-child(even) td {
    background-color: #f3f1f9;
}


/* =========================================================
   هاور سطرها — قرمز ملایم
   ========================================================= */

#industry-summary-table tbody tr:hover td {
    background-color: #fbe5e7 !important;
}


/* =========================================================
   ستون نماد
   ========================================================= */

#industry-summary-table th:first-child,
#industry-summary-table td:first-child {
    font-weight: 700;
}


/* =========================================================
   ردیف کل صنعت
   ========================================================= */

#industry-summary-table tbody tr:last-child td {
    background: #e9e6f8 !important;
    color: #40346f !important;
    border-top: 2px solid #8e68ca;
    border-bottom: 1px solid #d4cbed;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

#industry-summary-table tbody tr:last-child td:first-child {
    border-right: 3px solid #8e68ca;
}

#industry-summary-table tbody tr:last-child td:last-child {
    border-left: none;
}

#industry-summary-table tbody tr:last-child:hover td {
    background: #f7dfe2 !important;
    color: #34285f !important;
}


/* =========================================================
   اسلایسرها — سمت چپ
   ========================================================= */

.industry-summary-slicers {
    order: 2;
    width: 130px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =========================
   اسلایسر خلاصه صنعت
   ========================= */


#industry-summary-pe-slicer,
#industry-summary-ps-slicer {
    padding: 20px 12px;
    box-sizing: border-box;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

#industry-summary-pe-slicer label,
#industry-summary-ps-slicer label {
    display: block;
    margin-bottom: 12px;
    padding-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.industry-summary-slicer-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 168px;
    overflow-y: auto;
    padding-left: 4px;
}

.industry-summary-slicer-option {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15,23,42,0.06);
}

.industry-summary-slicer-option:hover,
.industry-summary-slicer-option.active {
    background: #24bd38;
    color: #ffffff;
    border-color: #24bd38;
}

.industry-summary-total-row {
    background: #b7e4c7 !important;
    font-weight: 800;
}


/* =====================================================
   دکمه بازگشت خلاصه صنعت
===================================================== */

#industry-summary-back-button{
    position:relative;
    flex:0 0 50px;
    display:flex;
    align-items:center;
    justify-content:center;
    width:70px;
    min-width:70px;
    height:30px;
    margin:0;
    padding:0 12px;
    box-sizing:border-box;
    transform:translateX(-250px);
    border:1px solid #15803d;
    border-radius:9px;
    background:linear-gradient(135deg,#22c55e 0%,#15803d 100%);
    color:#ffffff;
    font-family:inherit;
    font-size:14px;
    font-weight:700;
    white-space:nowrap;
    cursor:pointer;
    box-shadow:
        0 3px 9px rgba(22,163,74,.18),
        inset 0 1px 0 rgba(255,255,255,.2);
    transition:
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

#industry-summary-back-button:hover{
    background:linear-gradient(135deg,#ef4444 0%,#b91c1c 100%);
    border-color:#b91c1c;
    color:#ffffff;
    box-shadow:0 5px 12px rgba(220,38,38,.25);
}

#industry-summary-back-button:active{
    transform:translateX(-250px) scale(.97);
}


/* =========================================================
   تبلت
========================================================= */

@media (max-width: 900px) {

    .industry-summary-layout {
        gap: 10px;
    }

    .industry-summary-slicers {
        width: 155px;
        flex-shrink: 0;
    }

    #industry-summary-table {
        width: 100%;
        table-layout: fixed;
    }

    #industry-summary-table th,
    #industry-summary-table td {
        box-sizing: border-box;
        min-width: 0;
        padding: 5px 1px;
        font-size: 9px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #industry-summary-table th:nth-child(1),
    #industry-summary-table td:nth-child(1) { width: 6%; }

    #industry-summary-table th:nth-child(2),
    #industry-summary-table td:nth-child(2) { width: 7%; }

    #industry-summary-table th:nth-child(3),
    #industry-summary-table td:nth-child(3) { width: 11%; }

    #industry-summary-table th:nth-child(4),
    #industry-summary-table td:nth-child(4) { width: 8%; }

    #industry-summary-table th:nth-child(5),
    #industry-summary-table td:nth-child(5) { width: 7%; }

    #industry-summary-table th:nth-child(6),
    #industry-summary-table td:nth-child(6) { width: 9%; }

    #industry-summary-table th:nth-child(7),
    #industry-summary-table td:nth-child(7) { width: 8%; }

    #industry-summary-table th:nth-child(8),
    #industry-summary-table td:nth-child(8) { width: 8%; }

    #industry-summary-table th:nth-child(9),
    #industry-summary-table td:nth-child(9) { width: 8%; }

    #industry-summary-table th:nth-child(10),
    #industry-summary-table td:nth-child(10) { width: 8%; }

    #industry-summary-table th:nth-child(11),
    #industry-summary-table td:nth-child(11) { width: 10%; }

    #industry-summary-table th:nth-child(12),
    #industry-summary-table td:nth-child(12) { width: 10%; }
}


/* =========================================================
   موبایل
========================================================= */

@media (max-width: 650px) {

    #industry-summary-container {
        margin-top: -5px;
    }

    .industry-summary-filters {
        margin-bottom: 9px;
    }

    .industry-summary-filters select {
        width: 115px;
        height: 37px;
        font-size: 13px;
    }

    .industry-summary-layout {
        gap: 8px;
    }

    .industry-summary-slicers {
        width: 120px;
        gap: 8px;
        flex-shrink: 0;
    }

    #industry-summary-pe-slicer,
    #industry-summary-ps-slicer {
        min-height: 100px;
        padding: 7px;
    }

    #industry-summary-table {
        width: 100%;
        table-layout: fixed;
    }

    #industry-summary-table th,
    #industry-summary-table td {
        box-sizing: border-box;
        min-width: 0;
        padding: 3px 0;
        font-size: 7px;
        line-height: 1.2;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    #industry-summary-table th:nth-child(1),
    #industry-summary-table td:nth-child(1) { width: 5%; }

    #industry-summary-table th:nth-child(2),
    #industry-summary-table td:nth-child(2) { width: 6%; }

    #industry-summary-table th:nth-child(3),
    #industry-summary-table td:nth-child(3) { width: 10%; }

    #industry-summary-table th:nth-child(4),
    #industry-summary-table td:nth-child(4) { width: 8%; }

    #industry-summary-table th:nth-child(5),
    #industry-summary-table td:nth-child(5) { width: 7%; }

    #industry-summary-table th:nth-child(6),
    #industry-summary-table td:nth-child(6) { width: 9%; }

    #industry-summary-table th:nth-child(7),
    #industry-summary-table td:nth-child(7) { width: 8%; }

    #industry-summary-table th:nth-child(8),
    #industry-summary-table td:nth-child(8) { width: 8%; }

    #industry-summary-table th:nth-child(9),
    #industry-summary-table td:nth-child(9) { width: 8%; }

    #industry-summary-table th:nth-child(10),
    #industry-summary-table td:nth-child(10) { width: 8%; }

    #industry-summary-table th:nth-child(11),
    #industry-summary-table td:nth-child(11) { width: 11%; }

    #industry-summary-table th:nth-child(12),
    #industry-summary-table td:nth-child(12) { width: 12%; }
}


/* =========================================================
   موبایل خیلی کوچک
========================================================= */

@media (max-width: 400px) {

    .industry-summary-filters select {
        width: 105px;
        height: 35px;
        font-size: 12px;
    }

    .industry-summary-slicers {
        width: 105px;
    }

    #industry-summary-table th,
    #industry-summary-table td {
        padding: 2px 0;
        font-size: 6px;
        line-height: 1.1;
    }

    #industry-summary-table th:nth-child(1),
    #industry-summary-table td:nth-child(1) { width: 5%; }

    #industry-summary-table th:nth-child(2),
    #industry-summary-table td:nth-child(2) { width: 6%; }

    #industry-summary-table th:nth-child(3),
    #industry-summary-table td:nth-child(3) { width: 9%; }

    #industry-summary-table th:nth-child(4),
    #industry-summary-table td:nth-child(4) { width: 8%; }

    #industry-summary-table th:nth-child(5),
    #industry-summary-table td:nth-child(5) { width: 7%; }

    #industry-summary-table th:nth-child(6),
    #industry-summary-table td:nth-child(6) { width: 9%; }

    #industry-summary-table th:nth-child(7),
    #industry-summary-table td:nth-child(7) { width: 8%; }

    #industry-summary-table th:nth-child(8),
    #industry-summary-table td:nth-child(8) { width: 8%; }

    #industry-summary-table th:nth-child(9),
    #industry-summary-table td:nth-child(9) { width: 8%; }

    #industry-summary-table th:nth-child(10),
    #industry-summary-table td:nth-child(10) { width: 8%; }

    #industry-summary-table th:nth-child(11),
    #industry-summary-table td:nth-child(11) { width: 12%; }

    #industry-summary-table th:nth-child(12),
    #industry-summary-table td:nth-child(12) { width: 12%; }
}


/* Fix industry summary table on touch devices */
@media (hover: none) and (pointer: coarse) {
    #industry-summary-table th:nth-child(1),
    #industry-summary-table td:nth-child(1) {
        width: 70px;
    }

    #industry-summary-table th:nth-child(2),
    #industry-summary-table td:nth-child(2) {
        width: 70px;
    }

    #industry-summary-table th:nth-child(3),
    #industry-summary-table td:nth-child(3) {
        width: 120px;
    }

    #industry-summary-table th:nth-child(4),
    #industry-summary-table td:nth-child(4) {
        width: 70px;
    }

    #industry-summary-table th:nth-child(5),
    #industry-summary-table td:nth-child(5) {
        width: 80px;
    }

    #industry-summary-table th:nth-child(6),
    #industry-summary-table td:nth-child(6) {
        width: 60px;
    }

    #industry-summary-table th:nth-child(7),
    #industry-summary-table td:nth-child(7) {
        width: 80px;
    }

    #industry-summary-table th:nth-child(8),
    #industry-summary-table td:nth-child(8) {
        width: 60px;
    }

    #industry-summary-table th:nth-child(9),
    #industry-summary-table td:nth-child(9) {
        width: 60px;
    }

    #industry-summary-table th:nth-child(10),
    #industry-summary-table td:nth-child(10) {
        width: 60px;
    }

    #industry-summary-table th:nth-child(11),
    #industry-summary-table td:nth-child(11) {
        width: 60px;
    }

    #industry-summary-table th:nth-child(12),
    #industry-summary-table td:nth-child(12) {
        width: 60px;
    }
}



/* =========================================================
   گزارش جامع ناشران360 — طراحی مدرن و یکپارچه
   =========================================================

   ترتیب ستون‌های جدول:

   01 | نماد
   02 | نام شرکت
   03 | عملیات شرکت
   04 | سال مالی

   05 تا 11 | فروش و رشد ماهانه
   12 تا 14 | فروش فصلی
   15 تا 17 | رشد فصلی
   18 تا 20 | حاشیه سود
   21        | EPS
   22 تا 30  | پیش‌بینی، تحلیل دلار و حاشیه سود نهایی

   ========================================================= */


/* =========================================================
   01 - تنظیمات پایه جدول گزارش جامع
   ========================================================= */

#publishers-table {
    width: max-content;
    min-width: 2500px;
    border-collapse: collapse;
    table-layout: fixed;
    direction: rtl;
    font-size: 14px;
}


/* =========================================================
   02 - هدر عمومی جدول
   ========================================================= */

#publishers-table thead th {
    background: linear-gradient(
        135deg,
        #102b78 0%,
        #183d91 48%,
        #102765 100%
    );
    color: #ffffff;
    border: 1px solid #465b91;
    padding: 0 !important;
    height: 58px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -2px 0 rgba(5, 20, 65, 0.12);
}


/* =========================================================
   03 - سلول‌های عمومی جدول
   ========================================================= */

#publishers-table tbody td {
    background: #ffffff;
    color: #222222;
    border: 1px solid #dce3ed;
    padding: 5px 12px;
    height: 28px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    font-size: 16px;
    transition:
        background-color 0.16s ease,
        color 0.16s ease;
}


/* =========================================================
   04 - رنگ‌بندی سطرها به‌صورت یک‌درمیان
   ========================================================= */

#publishers-table tbody tr:nth-child(even) td {
    background: #f2f5fb;
}

#publishers-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}


/* =========================================================
   05 - هاور سطرها: قرمز ملایم
   ========================================================= */

#publishers-table tbody tr:hover td {
    background: #fbe6e8 !important;
}


/* =========================================================
   06 - ستون 01 : نماد
   ========================================================= */

#publishers-table th:nth-child(1),
#publishers-table td:nth-child(1) {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   07 - ستون 02 : نام شرکت
   ========================================================= */

#publishers-table th:nth-child(2),
#publishers-table td:nth-child(2) {
    width: 240px;
    min-width: 240px;
    max-width: 240px;
}


/* =========================================================
   08 - ستون 03 : عملیات شرکت
   ========================================================= */

#publishers-table th:nth-child(3),
#publishers-table td:nth-child(3) {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
}


/* =========================================================
   09 - ستون 04 : سال مالی
   ========================================================= */

#publishers-table th:nth-child(4),
#publishers-table td:nth-child(4) {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
}


/* =========================================================
   ستون‌های 05 تا 11 — فروش و رشد ماهانه
   ========================================================= */


/* ستون 05 : میانگین فروش ماهانه */

#publishers-table-header th:nth-child(5) {
    position: relative;
    min-width: 120px;
    height: 58px;
    padding: 0 !important;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #899b36 0%,
        #a9bb4d 52%,
        #87972e 100%
    ) !important;
    color: #ffffff !important;
    text-align: center;
    vertical-align: middle;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    line-height: 1.25;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -2px 0 rgba(64, 76, 15, 0.12);
}

#publishers-table-header th:nth-child(5)::after {
    content: none !important;
}

#publishers-table-header th:nth-child(5):hover {
    cursor: default;
}


/* =========================================================
   کلاس مشترک Dropdown ماهانه
   ========================================================= */

.publishers-previous-month-select,
.publishers-current-month-select,
.publishers-column7-month-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
    color: inherit;
    border: none;
    outline: none;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: center;
    text-align-last: center;
}


/* Wrapper Dropdown ماهانه */

.publishers-month-select-wrapper {
    position: relative;
    width: 100%;
    height: 58px;
    padding: 0;
    margin: 0;
    overflow: hidden;
}


/* نمایش ظاهری Dropdown ماهانه */

.publishers-month-display {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    pointer-events: none;
    z-index: 1;
}

.publishers-month-display-name {
    display: block;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    text-align: center;
}

.publishers-month-display-unit {
    display: block;
    margin-top: 2px;
    font-family: inherit;
    font-size: 0.85em;
    font-weight: inherit;
}


/* ستون‌های 06، 07 و 08 : هدر Dropdown ماهانه */

#publishers-table-header th:nth-child(6),
#publishers-table-header th:nth-child(7),
#publishers-table-header th:nth-child(8) {
    position: relative;
    min-width: 120px;
    height: 58px;
    padding: 0 !important;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #899b36 0%,
        #a9bb4d 52%,
        #87972e 100%
    ) !important;
    color: #ffffff !important;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -2px 0 rgba(64, 76, 15, 0.12);
}


/* فلش Dropdown ماهانه */

#publishers-table-header th:nth-child(6)::after,
#publishers-table-header th:nth-child(7)::after,
#publishers-table-header th:nth-child(8)::after {
    content: "▼";
    position: absolute;
    left: 1px;
    bottom: 0;
    top: auto;
    right: auto;
    transform: none;
    font-size: 15px;
    line-height: 1;
    color: inherit;
    pointer-events: none;
    z-index: 10;
}


/* Option های Dropdown ماهانه */

.publishers-previous-month-select option,
.publishers-current-month-select option,
.publishers-column7-month-select option {
    background: #ffffff;
    color: #222222;
    font-family: inherit;
    font-size: inherit;
}


/* Focus Dropdown ماهانه */

.publishers-previous-month-select:focus,
.publishers-current-month-select:focus,
.publishers-column7-month-select:focus {
    outline: none;
    border: none;
    box-shadow: none;
}


/* =========================================================
   ستون‌های 09 تا 11 — رشد ماهانه
   ========================================================= */

#publishers-table-header th:nth-child(9),
#publishers-table-header th:nth-child(10),
#publishers-table-header th:nth-child(11) {
    position: relative;
    min-width: 120px;
    height: 58px;
    padding: 0 !important;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #899b36 0%,
        #a9bb4d 52%,
        #87972e 100%
    ) !important;
    color: #ffffff !important;
    text-align: center;
    vertical-align: middle;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    line-height: 1.25;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -2px 0 rgba(64, 76, 15, 0.12);
}


/* بدون فلش */

#publishers-table-header th:nth-child(9)::after,
#publishers-table-header th:nth-child(10)::after,
#publishers-table-header th:nth-child(11)::after {
    content: none !important;
}


/* اعداد رشد ماهانه */

#publishers-table tbody td:nth-child(9),
#publishers-table tbody td:nth-child(10),
#publishers-table tbody td:nth-child(11) {
    min-width: 120px;
    text-align: center;
    vertical-align: middle;
    direction: ltr;
    white-space: nowrap;
    font-weight: 700 !important;
}


/* مقادیر منفی */

#publishers-table tbody td.publishers-negative-value {
    color: #d60000 !important;
    font-weight: 700 !important;
}


/* =========================================================
   ستون‌های 12 تا 14 — فروش فصلی
   ========================================================= */


/* هدرهای فصلی */

#publishers-table-header th.publishers-quarterly-header {
    position: relative;
    min-width: 120px;
    height: 58px;
    padding: 0 !important;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
}


/* Wrapper فصلی */

#publishers-table-header
.publishers-quarterly-select-wrapper {
    position: relative;
    width: 100%;
    height: 58px;
    padding: 0;
    margin: 0;
    overflow: hidden;
}


/* نمایش ظاهری Dropdown فصلی */

#publishers-table-header
.publishers-quarterly-display {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    pointer-events: none;
    z-index: 1;
}


/* عنوان دوره فصلی */

#publishers-table-header
.publishers-quarterly-display-name {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}


/* سال فصلی */

#publishers-table-header
.publishers-quarterly-display-year {
    display: block;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    margin-top: 1px;
}


/* واحد فصلی */

#publishers-table-header
.publishers-quarterly-display-unit {
    display: block;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    margin-top: 2px;
    text-align: center;
}


/* Select واقعی فصلی */

#publishers-table-header
.publishers-quarterly-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    z-index: 5;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    text-align-last: center;
}


/* Option های فصلی */

#publishers-table-header
.publishers-quarterly-select option {
    background: #ffffff;
    color: #222222;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}


/* رنگ هدر فروش فصلی */

#publishers-table-header th:nth-child(12),
#publishers-table-header th:nth-child(13),
#publishers-table-header th:nth-child(14) {
    background: linear-gradient(
        135deg,
        #159c38 0%,
        #2bc84b 50%,
        #159e3a 100%
    ) !important;
    color: #ffffff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -2px 0 rgba(0, 90, 27, 0.12);
}


/* فلش Dropdown فصلی */

#publishers-table-header
.publishers-quarterly-dropdown-header::after {
    content: "▼";
    position: absolute;
    left: 1px;
    bottom: 0;
    top: auto;
    right: auto;
    transform: none;
    font-family: inherit;
    font-size: 13px;
    line-height: 1;
    color: inherit;
    pointer-events: none;
    z-index: 10;
}


/* Focus فصلی */

#publishers-table-header
.publishers-quarterly-select:focus {
    outline: none;
    border: none;
    box-shadow: none;
}


/* Hover فصلی */

#publishers-table-header
.publishers-quarterly-dropdown-header:hover {
    cursor: pointer;
}


/* =========================================================
   ستون‌های 15 تا 17 — رشد فصلی
   ========================================================= */

#publishers-table-header th:nth-child(15),
#publishers-table-header th:nth-child(16),
#publishers-table-header th:nth-child(17) {
    position: relative;
    min-width: 120px;
    height: 58px;
    padding: 0 !important;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #159c38 0%,
        #2bc84b 50%,
        #159e3a 100%
    ) !important;
    color: #ffffff !important;
    text-align: center;
    vertical-align: middle;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    line-height: 1.25;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -2px 0 rgba(0, 90, 27, 0.12);
}


/* بدون فلش */

#publishers-table-header th:nth-child(15)::after,
#publishers-table-header th:nth-child(16)::after,
#publishers-table-header th:nth-child(17)::after {
    content: none !important;
}


/* اعداد رشد فصلی */

#publishers-table tbody td:nth-child(15),
#publishers-table tbody td:nth-child(16),
#publishers-table tbody td:nth-child(17) {
    min-width: 120px;
    text-align: center;
    vertical-align: middle;
    direction: ltr;
    white-space: nowrap;
    font-weight: 700 !important;
}


/* =========================================================
   ستون‌های 18 تا 20 — حاشیه سود
   ========================================================= */

#publishers-table-header th:nth-child(18),
#publishers-table-header th:nth-child(19),
#publishers-table-header th:nth-child(20) {
    position: relative;
    min-width: 120px;
    height: 58px;
    padding: 0 !important;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #159c38 0%,
        #2bc84b 50%,
        #159e3a 100%
    ) !important;
    color: #ffffff !important;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -2px 0 rgba(0, 90, 27, 0.12);
}


/* Wrapper حاشیه سود */

#publishers-table-header th:nth-child(18)
.publishers-quarterly-select-wrapper,

#publishers-table-header th:nth-child(19)
.publishers-quarterly-select-wrapper,

#publishers-table-header th:nth-child(20)
.publishers-quarterly-select-wrapper {
    position: relative;
    width: 100%;
    height: 58px;
    padding: 0;
    margin: 0;
    overflow: hidden;
}


/* نمایش ظاهری حاشیه سود */

#publishers-table-header th:nth-child(18)
.publishers-quarterly-display,

#publishers-table-header th:nth-child(19)
.publishers-quarterly-display,

#publishers-table-header th:nth-child(20)
.publishers-quarterly-display {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    pointer-events: none;
    z-index: 1;
}


/* عنوان ثابت حاشیه سود */

#publishers-table-header th:nth-child(18)
.publishers-quarterly-display-name,

#publishers-table-header th:nth-child(19)
.publishers-quarterly-display-name,

#publishers-table-header th:nth-child(20)
.publishers-quarterly-display-name {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}


/* سال و واحد حاشیه سود نمایش داده نشود */

#publishers-table-header th:nth-child(18)
.publishers-quarterly-display-year,

#publishers-table-header th:nth-child(19)
.publishers-quarterly-display-year,

#publishers-table-header th:nth-child(20)
.publishers-quarterly-display-year,

#publishers-table-header th:nth-child(18)
.publishers-quarterly-display-unit,

#publishers-table-header th:nth-child(19)
.publishers-quarterly-display-unit,

#publishers-table-header th:nth-child(20)
.publishers-quarterly-display-unit {
    display: none;
}


/* Select واقعی حاشیه سود */

#publishers-table-header th:nth-child(18)
.publishers-quarterly-select,

#publishers-table-header th:nth-child(19)
.publishers-quarterly-select,

#publishers-table-header th:nth-child(20)
.publishers-quarterly-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    z-index: 5;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    text-align-last: center;
}


/* Option های حاشیه سود */

#publishers-table-header th:nth-child(18)
.publishers-quarterly-select option,

#publishers-table-header th:nth-child(19)
.publishers-quarterly-select option,

#publishers-table-header th:nth-child(20)
.publishers-quarterly-select option {
    background: #ffffff;
    color: #222222;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}


/* فوکوس حاشیه سود */

#publishers-table-header th:nth-child(18)
.publishers-quarterly-select:focus,

#publishers-table-header th:nth-child(19)
.publishers-quarterly-select:focus,

#publishers-table-header th:nth-child(20)
.publishers-quarterly-select:focus {
    outline: none;
    border: none;
    box-shadow: none;
}


/* Hover حاشیه سود */

#publishers-table-header
.publishers-quarterly-dropdown-header:hover {
    cursor: pointer;
}


/* اعداد حاشیه سود */

#publishers-table tbody td:nth-child(18),
#publishers-table tbody td:nth-child(19),
#publishers-table tbody td:nth-child(20) {
    min-width: 120px;
    text-align: center;
    vertical-align: middle;
    direction: ltr;
    white-space: nowrap;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}


/* حاشیه سود منفی */

#publishers-table tbody td:nth-child(18).publishers-negative-value,
#publishers-table tbody td:nth-child(19).publishers-negative-value,
#publishers-table tbody td:nth-child(20).publishers-negative-value {
    color: #d60000 !important;
    font-weight: 700 !important;
}


/* =========================================================
   ستون 21 — سود خالص محقق‌شده (EPS)
   ========================================================= */

/* عنوان ستون EPS */

#publishers-table-header th:nth-child(21) {
    position: relative;
    min-width: 120px;
    height: 58px;
    padding: 0 !important;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #d64cb9 0%,
        #f080d9 50%,
        #d94bb9 100%
    ) !important;
    color: #ffffff !important;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(111, 24, 91, 0.12);
}


/* اعداد EPS */

#publishers-table tbody td:nth-child(21) {
    min-width: 120px;
    text-align: center;
    vertical-align: middle;
    direction: ltr;
    white-space: nowrap;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: inherit;
}


/* EPS منفی */

#publishers-table tbody td:nth-child(21).publishers-negative-value,
#publishers-table tbody td:nth-child(21) .publishers-negative-value {
    color: #d60000 !important;
    font-weight: 700 !important;
    direction: ltr;
}


/* Dropdown EPS */

#publishers-table-header th:nth-child(21)
.publishers-quarterly-dropdown-header {
    position: relative;
    width: 100%;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-align: center;
}


/* فلش Dropdown EPS */

#publishers-table-header th:nth-child(21)
.publishers-quarterly-dropdown-header::after {
    content: "▼";
    position: absolute;
    left: 1px;
    bottom: 0;
    font-size: 13px;
    color: #ffffff;
    pointer-events: none;
}


/* =========================================================
   بدنه ستون‌های 12 تا 21
   ========================================================= */

#publishers-table tbody td:nth-child(12),
#publishers-table tbody td:nth-child(13),
#publishers-table tbody td:nth-child(14),
#publishers-table tbody td:nth-child(15),
#publishers-table tbody td:nth-child(16),
#publishers-table tbody td:nth-child(17),
#publishers-table tbody td:nth-child(18),
#publishers-table tbody td:nth-child(19),
#publishers-table tbody td:nth-child(20),
#publishers-table tbody td:nth-child(21) {
    text-align: center;
    vertical-align: middle;
}


/* =========================================================
   رنگ ستون‌های پیش‌بینی
   ========================================================= */

.publishers-annual-header {
    background: linear-gradient(
        135deg,
        #2457c5 0%,
        #4380f1 50%,
        #2457c5 100%
    ) !important;
    color: #ffffff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(10, 45, 125, 0.12);
}


/* =========================================================
   ستون‌های 22 تا 30 گزارش جامع
   ========================================================= */

.publishers-annual-header {
    background: linear-gradient(
        135deg,
        #2457c5 0%,
        #4380f1 50%,
        #2457c5 100%
    ) !important;
    color: #ffffff !important;
}


/* دو ستون اول بخش سالانه — ستون‌های 22 و 23 */

.publishers-table thead tr th:nth-child(22),
.publishers-table thead tr th:nth-child(23) {
    background: linear-gradient(
        135deg,
        #2457c5 0%,
        #4380f1 50%,
        #2457c5 100%
    ) !important;
    color: #ffffff !important;
}


/* ستون 24 : درصد پوشش فروش امسال به پارسال */

#publishers-table tbody td:nth-child(24) {
    font-weight: 600 !important;
}


/* ============================================================
   PUBLISHERS — DOLLAR ANALYSIS
   فقط ۴ ستون تحلیل دلار
   ============================================================ */


/* هدر ۴ ستون دلار */

.publishers-dollar-analysis-header {
    background: linear-gradient(
        135deg,
        #d97706 0%,
        #ffa52f 50%,
        #df7909 100%
    ) !important;
    color: #ffffff !important;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    min-width: 145px;
    width: 145px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -2px 0 rgba(115, 58, 0, 0.12);
}


/* سلول‌های ۴ ستون دلار */

.publishers-dollar-analysis-cell {
    text-align: center;
    vertical-align: middle;
    direction: ltr;
    unicode-bidi: plaintext;
    font-weight: 500;
    min-width: 135px;
    width: 135px;
}


/* اعداد منفی دلار */

.publishers-dollar-analysis-cell.publishers-negative-value {
    color: #dc3545 !important;
}


/* ============================================================
   ۶ ستون نهایی حاشیه سود — گزارش جامع
   ============================================================ */


/* هدر مشترک ۶ ستون نهایی */

.publishers-final-margin-header {
    text-align: center;
    vertical-align: middle;
    white-space: normal;
}


/* 1. حاشیه سود ناخالص (12 ماهه) */

.publishers-final-gross-margin-header {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.publishers-final-gross-margin-cell {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: center;
    vertical-align: middle;
}


/* 2. حاشیه سود عملیاتی (12 ماهه) */

.publishers-final-operating-margin-header {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.publishers-final-operating-margin-cell {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: center;
    vertical-align: middle;
}


/* 3. حاشیه سود خالص (12 ماهه) */

.publishers-final-net-margin-header {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.publishers-final-net-margin-cell {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: center;
    vertical-align: middle;
}


/* 4. میانگین حاشیه سود ناخالص */

.publishers-final-average-gross-margin-header {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.publishers-final-average-gross-margin-cell {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: center;
    vertical-align: middle;
}


/* 5. میانگین حاشیه سود عملیاتی */

.publishers-final-average-operating-margin-header {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.publishers-final-average-operating-margin-cell {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: center;
    vertical-align: middle;
}


/* 6. میانگین حاشیه سود خالص */

.publishers-final-average-net-margin-header {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.publishers-final-average-net-margin-cell {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: center;
    vertical-align: middle;
}


/* کلاس مشترک سلول‌های ۶ ستون نهایی */

.publishers-final-margin-cell {
    text-align: center;
    vertical-align: middle;
}


/* منفی‌ها */

.publishers-final-margin-cell.publishers-negative-value,
.publishers-final-gross-margin-cell.publishers-negative-value,
.publishers-final-operating-margin-cell.publishers-negative-value,
.publishers-final-net-margin-cell.publishers-negative-value,
.publishers-final-average-gross-margin-cell.publishers-negative-value,
.publishers-final-average-operating-margin-cell.publishers-negative-value,
.publishers-final-average-net-margin-cell.publishers-negative-value {
    color: red;
    direction: ltr;
    text-align: center;
}


/* ============================================================
   کنترل جداگانه عرض ۶ ستون نهایی
   ============================================================ */

/* حاشیه سود ناخالص 12 ماهه */

.publishers-final-gross-margin-header,
.publishers-final-gross-margin-cell {
    min-width: 115px;
    width: 115px;
}


/* حاشیه سود عملیاتی 12 ماهه */

.publishers-final-operating-margin-header,
.publishers-final-operating-margin-cell {
    min-width: 115px;
    width: 115px;
}


/* حاشیه سود خالص 12 ماهه */

.publishers-final-net-margin-header,
.publishers-final-net-margin-cell {
    min-width: 115px;
    width: 115px;
}


/* میانگین حاشیه سود ناخالص */

.publishers-final-average-gross-margin-header,
.publishers-final-average-gross-margin-cell {
    min-width: 130px;
    width: 130px;
}


/* میانگین حاشیه سود عملیاتی */

.publishers-final-average-operating-margin-header,
.publishers-final-average-operating-margin-cell {
    min-width: 130px;
    width: 130px;
}


/* میانگین حاشیه سود خالص */

.publishers-final-average-net-margin-header,
.publishers-final-average-net-margin-cell {
    min-width: 130px;
    width: 130px;
}


/* ============================================================
   رنگ ۶ ستون نهایی حاشیه سود
   ============================================================ */

/* سه ستون اول — حاشیه سود ۱۲ ماهه */

.publishers-final-gross-margin-header,
.publishers-final-operating-margin-header,
.publishers-final-net-margin-header {
    background: linear-gradient(
        135deg,
        #6887b2 0%,
        #91afd4 50%,
        #6887b2 100%
    ) !important;
    color: #ffffff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(42, 68, 103, 0.12);
}


/* سه ستون دوم — میانگین حاشیه سود */

.publishers-final-average-gross-margin-header,
.publishers-final-average-operating-margin-header,
.publishers-final-average-net-margin-header {
    background: linear-gradient(
        135deg,
        #169fa4 0%,
        #43d0cb 50%,
        #159da5 100%
    ) !important;
    color: #ffffff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(0, 89, 94, 0.12);
}



/* =========================================================
   ناشران360 — ابزارهای گزارش جامع و اسکرول‌های اختصاصی
   ========================================================= */


/* =========================================================
   1. سرچ‌باکس گزارش جامع
   ========================================================= */

.publishers-search-panel {
    position: relative;
    left: -350px;
    top: -30px;
    z-index: 20;
}

.publishers-search-panel .search-box {
    width: 300px;
    box-sizing: border-box;
    border: 1px solid #d9e2ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    box-shadow:
        0 2px 5px rgba(22, 45, 82, 0.04),
        0 5px 14px rgba(22, 45, 82, 0.06);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.publishers-search-panel .search-box:focus,
.publishers-search-panel .search-box:focus-visible {
    outline: none;
    border-color: #4778d0;
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(71, 120, 208, 0.12),
        0 5px 14px rgba(22, 45, 82, 0.07);
}


/* =========================================================
   2. انتخاب سال گزارش جامع
   ========================================================= */

.publishers-year-box {
    position: relative;
    top: 10px;
    left: -40px;
    z-index: 20;
}

#publishers-year {
    width: 250px !important;
    height: 35px !important;
    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 10px !important;

    background: linear-gradient(
        135deg,
        #138a43 0%,
        #20b957 52%,
        #168d46 100%
    ) !important;

    color: #ffffff !important;
    font-family: inherit;
    font-size: 18px !important;
    font-weight: 700;

    text-align: center;
    text-align-last: center;

    cursor: pointer !important;

    box-shadow:
        0 2px 6px rgba(22, 141, 70, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    transition:
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

#publishers-year:hover {
    filter: brightness(1.04);
    box-shadow:
        0 4px 9px rgba(22, 141, 70, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#publishers-year:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(32, 185, 87, 0.17),
        0 3px 8px rgba(22, 141, 70, 0.16);
}

#publishers-year option {
    cursor: pointer !important;
    background: #ffffff;
    color: #222222;
    font-family: inherit;
}


/* =========================================================
   3. Wrapper جدول گزارش جامع — ۱۰ پیکسل بالاتر
   ========================================================= */

.publishers-table-wrapper {
    position: relative;
    top: -25px;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;
    -ms-overflow-style: none;

    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.publishers-table-wrapper::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   4. بهینه‌سازی رندر جدول گزارش جامع
   ========================================================= */

#publishers-table {
    contain: layout paint;
}

#publishers-table tbody {
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}


/* =========================================================
   5. اسکرول افقی اختصاصی گزارش جامع
   ========================================================= */

.publishers-horizontal-scroll {
    position: fixed;

    left: 10px;
    right: 15px;
    bottom: -8px;

    height: 32px;

    display: flex;
    align-items: center;

    padding: 0 6px;
    box-sizing: border-box;

    z-index: 100000;
    user-select: none;
}


/* =========================================================
   دکمه‌های اسکرول افقی
   ========================================================= */

.publishers-scroll-button {
    width: 36px;
    height: 30px;

    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: 1px solid transparent;
    border-radius: 8px;

    background: transparent;
    color: #64748b;

    font-family: inherit;
    font-size: 12px;
    line-height: 1;

    cursor: pointer;
    user-select: none;

    transition:
        color 0.16s ease,
        background-color 0.16s ease;
}

.publishers-scroll-button:hover {
    color: #174b9b;
    background: #edf3fc;
}

.publishers-scroll-button:active {
    transform: scale(0.92);
}


/* =========================================================
   Track اسکرول افقی — باریک و ظریف
   ========================================================= */

.publishers-horizontal-scroll-track {
    position: relative;

    flex: 1;
    height: 6px;

    margin: 0 6px;

    background: #e7ecf4;
    border: 1px solid #dce4ef;
    border-radius: 999px;

    overflow: hidden;
    box-sizing: border-box;
}


/* =========================================================
   Thumb اسکرول افقی
   ========================================================= */

.publishers-horizontal-scroll-thumb {
    position: absolute;

    top: 0;
    left: 0;

    width: 76px;
    min-width: 45px;
    height: 6px;

    background: linear-gradient(
        90deg,
        #174b9b 0%,
        #4c83d8 100%
    );

    border-radius: 999px;

    cursor: grab;
    user-select: none;

    transition: background-color 0.16s ease;
}

.publishers-horizontal-scroll-thumb:hover {
    background: linear-gradient(
        90deg,
        #123d82 0%,
        #3470c4 100%
    );
}

.publishers-horizontal-scroll-thumb:active {
    cursor: grabbing;
    background: #123d82;
}


/* =========================================================
   6. اسکرول عمودی اختصاصی سایت
   ========================================================= */

.site-vertical-scroll {
    position: fixed;

    top: 0;
    right: 8px;

    width: 30px;
    height: 100vh;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: space-between;

    padding: 6px 0;
    box-sizing: border-box;

    z-index: 100000;
}


/* =========================================================
   Track عمودی — باریک و ظریف
   ========================================================= */

#site-vertical-scroll-track {
    position: relative;

    width: 5px;
    flex: 1;

    margin: 6px 0;

    background: #e7ecf4;
    border: 1px solid #dce4ef;
    border-radius: 999px;

    transform: translateX(17px);
    box-sizing: border-box;
}


/* =========================================================
   Thumb عمودی
   ========================================================= */

#site-vertical-scroll-thumb {
    position: absolute;

    top: 0;
    left: 0;

    width: 5px;
    min-height: 45px;

    background: linear-gradient(
        180deg,
        #174b9b 0%,
        #4c83d8 100%
    );

    border-radius: 999px;

    cursor: grab;
    user-select: none;

    transition:
        background-color 0.16s ease,
        width 0.16s ease;
}

#site-vertical-scroll-thumb:hover {
    width: 6px !important;
    background: #245eaf;
}

#site-vertical-scroll-thumb:active {
    width: 6px !important;
    cursor: grabbing;
    background: #123d82;
}


/* =========================================================
   دکمه‌های اسکرول عمودی
   ========================================================= */

.site-scroll-button {
    width: 24px;
    height: 24px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid transparent;
    border-radius: 7px;

    background: transparent;
    color: #64748b;

    font-family: inherit;
    font-size: 12px;
    line-height: 1;

    cursor: pointer;
    user-select: none;

    transform: translateX(17px);

    transition:
        color 0.16s ease,
        background-color 0.16s ease;
}

.site-scroll-button:hover {
    color: #174b9b;
    background: #edf3fc;
}

.site-scroll-button:active {
    transform: translateX(17px) scale(0.92);
}


/* =========================================================
   7. حذف Scrollbar اصلی مرورگر
   ========================================================= */

html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    min-height: 100%;
}

html::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}

body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    min-height: 100vh;
}

body::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}



/* =========================================================
   PORTFOLIO / سبدچینی — نسخه اصلاح‌شده
   ========================================================= */

#portfolio-section {
    width: 100%;
    box-sizing: border-box;
    padding: 18px 20px 30px;
    direction: rtl;
    display: block;
}

#portfolio-section::after {
    content: "";
    display: block;
    clear: both;
}


/* =========================================================
   انتخاب سال
   ========================================================= */

.portfolio-year-box {
    width: 48%;
    margin-right: 30px;
    margin-left: auto;
    margin-bottom: 12px;
    transform: translateY(-70px);

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

#portfolio-year {
    width: 200px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d4e0e9;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff 0%, #f4f8fc 100%);
    color: #26364a;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    text-align: center;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(28, 49, 75, .05);
    transition: border-color .2s ease, box-shadow .2s ease;
}

#portfolio-year:hover {
    border-color: #9db9d2;
}

#portfolio-year:focus {
    border-color: #4b91c7;
    box-shadow: 0 0 0 3px rgba(59, 130, 190, .13);
}

#portfolio-year option {
    background: #fff;
    color: #26364a;
}

.portfolio-row-even {
    background-color: #edf5e9;
}

.portfolio-symbol-link {
    cursor: pointer;
}


/* =========================================================
   جستجو
   ========================================================= */

.portfolio-search-panel {
    width: 48%;
    margin-right: 300px;
    margin-left: auto;
    margin-bottom: 12px;
    box-sizing: border-box;
    transform: translateY(-120px);
}

.portfolio-search-wrapper {
    position: relative;
    width: 40%;
}

.portfolio-search-wrapper .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #71839a;
    font-size: 16px;
    pointer-events: none;
    transition: color .2s ease;
}

/* دکمه پاک‌کردن سرچ سبدچینی */
#portfolioSearchBox {
    box-sizing: border-box;
    padding-left: 44px;
    padding-right: 40px;
}

#portfolioSearchClear {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;

    width: 28px;
    height: 28px;
    padding: 0;

    align-items: center;
    justify-content: center;

    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #fef2f2;
    color: #dc2626;

    font-size: 21px;
    font-weight: 400;
    line-height: 26px;
    text-align: center;

    cursor: pointer;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

#portfolioSearchClear:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #f87171;
    box-shadow: 0 2px 7px rgba(220, 38, 38, .15);
}

#portfolioSearchClear:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

.portfolio-search-wrapper:focus-within #portfolioSearchClear {
    border-color: #fca5a5;
}

#portfolioSearchBox {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    padding: 0 38px 0 12px;
    border: 1px solid #d4e0e9;
    border-radius: 11px;
    background: linear-gradient(180deg, #fff 0%, #f9fbfe 100%);
    color: #26364a;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    direction: rtl;
    box-shadow: 0 2px 6px rgba(28, 49, 75, .05);
    transition: border-color .2s ease, box-shadow .2s ease;
}

#portfolioSearchBox:hover {
    border-color: #a9bfd3;
}

#portfolioSearchBox:focus {
    border-color: #4b91c7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 190, .12);
}

.portfolio-search-wrapper:focus-within .search-icon {
    color: #347fb7;
}


/* =========================================================
   نتایج جستجو
   ========================================================= */

#portfolio-search-results {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    color: #26364a;
    border: 1px solid #dbe4ed;
    border-radius: 11px;
    box-shadow: 0 12px 28px rgba(24, 43, 67, .12);
    z-index: 1000;
    box-sizing: border-box;
}

.portfolio-search-result {
    padding: 9px 12px;
    margin: 0;
    border-bottom: 1px solid #edf1f5;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.6;
    text-align: right;
    color: #34465c;
    background: #fff;
    transition: background-color .15s ease, color .15s ease;
}

.portfolio-search-result:last-child {
    border-bottom: none;
}

.portfolio-search-result:hover {
    background: #edf6ff;
    color: #175e95;
}


/* =========================================================
   جدول
   ========================================================= */

.portfolio-table-wrapper {
    width: 65%;
    margin-right: 10px;
    margin-left: auto;
    margin-top: 8px;
    transform: translateY(-120px);
    overflow-x: auto;
    overflow-y: visible;
    box-sizing: border-box;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

#portfolio-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: #fff;
    border: 1px solid #cfe3d5;
    border-radius: 11px;
    overflow: hidden;
    font-family: inherit;
    direction: rtl;
    box-shadow: 0 4px 14px rgba(28, 49, 75, .06);
}

#portfolio-table thead th {
    height: 42px;
    padding: 7px 5px;
    background: linear-gradient(180deg, #fde8e8 0%, #f6cccc 100%);
    border-bottom: 1px solid #e8baba;
    border-left: 1px solid #f0d0d0;
    color: #7f3030;
    font-size: 16px;
    font-weight: 650;
    text-align: center;
    white-space: normal;
    vertical-align: middle;
    line-height: 1.4;
    box-sizing: border-box;
}

#portfolio-table thead th:last-child {
    border-left: none;
}


/* =========================================================
   رنگ‌بندی یک‌درمیان ردیف‌ها
   ========================================================= */

#portfolio-table tbody tr:nth-child(odd) > td {
    background-color: #ffffff;
}

#portfolio-table tbody tr:nth-child(even) > td {
    background-color: #edf5e9;
}


/* =========================================================
   سلول‌های جدول و افکت موس
   ========================================================= */

#portfolio-table tbody td {
    height: 38px;
    padding: 6px 5px;
    border-bottom: 1px solid #e8edf2;
    border-left: 1px solid #edf1f5;
    color: #344256;
    font-size: 16px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    box-sizing: border-box;
    transition: background-color .15s ease, color .15s ease;
}

#portfolio-table tbody td:last-child {
    border-left: none;
}

#portfolio-table tbody tr:last-child > td {
    border-bottom: none;
}


/* قرمز ملایم هنگام رفتن موس روی هر ردیف */

#portfolio-table tbody tr:hover > td {
    background-color: #fbe5e5 !important;
    color: #813b3b;
}


/* =========================================================
   عرض ستون‌ها — بدون تغییر
   ========================================================= */

#portfolio-table th:nth-child(1),
#portfolio-table td:nth-child(1) { width: 30%; }

#portfolio-table th:nth-child(2),
#portfolio-table td:nth-child(2) { width: 90%; }

#portfolio-table th:nth-child(3),
#portfolio-table td:nth-child(3) { width: 30%; }

#portfolio-table th:nth-child(4),
#portfolio-table td:nth-child(4) { width: 30%; }

#portfolio-table th:nth-child(5),
#portfolio-table td:nth-child(5) { width: 30%; }

#portfolio-table th:nth-child(6),
#portfolio-table td:nth-child(6) { width: 30%; }

#portfolio-table th:nth-child(7),
#portfolio-table td:nth-child(7) { width: 30%; }

#portfolio-table th:nth-child(8),
#portfolio-table td:nth-child(8) { width: 30%; }


/* اعداد مالی */

#portfolio-table td:nth-child(4),
#portfolio-table td:nth-child(5),
#portfolio-table td:nth-child(6),
#portfolio-table td:nth-child(7),
#portfolio-table td:nth-child(8) {
    direction: ltr;
    text-align: center;
    font-variant-numeric: tabular-nums;
}


/* پیام خالی */

#portfolio-table tbody td[colspan] {
    height: 55px;
    color: #718096;
    font-size: 13px;
    text-align: center;
}

#portfolio-table-body .portfolio-empty-message {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #52657b;
}


/* =========================================================
   Slicers سبدچینی
   ========================================================= */

.portfolio-slicers {
    position: absolute;
    left: 50px;
    top: 160px;
    width: 28%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    box-sizing: border-box;
}

.portfolio-slicer {
    width: 48%;
    height: 350px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    border: 1px solid #d7e6dc;
    border-radius: 12px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(28, 49, 75, .06);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.portfolio-slicer:hover {
    border-color: #a9d6b5;
    box-shadow: 0 7px 20px rgba(28, 49, 75, .09);
}

.portfolio-slicer-title {
    padding: 9px 12px;
    background: linear-gradient(180deg, #e8f8ec 0%, #d7f0df 100%);
    border-bottom: 1px solid #d5e7da;
    color: #254a35;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.portfolio-slicer-options {
    max-height: 290px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding: 5px;
    box-sizing: border-box;
}

.portfolio-slicer-option {
    width: 100%;
    padding: 4px 8px;
    margin-bottom: 4px;
    border: 1px solid #e0e7ee;
    border-radius: 7px;
    background: #fff;
    color: #3d4e63;
    font-size: 16px;
    font-weight: 650;
    text-align: center;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.portfolio-slicer-option:hover {
    background: #effaf3;
    border-color: #9ed4ad;
    color: #23653a;
}

.portfolio-slicer-option.active {
    background: linear-gradient(180deg, #d8f5e1 0%, #c5edcf 100%);
    border-color: #8fc9a0;
    color: #205b35;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(67, 150, 91, .06);
}


/* =========================================================
   Responsive — Tablet
   ========================================================= */

@media (max-width: 1000px) {

    #publishers-table {
        min-width: 2500px;
    }

    .publishers-table-wrapper {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .publishers-search-panel {
        left: 0;
        top: 0;
        width: 100%;
    }

    .publishers-year-box {
        left: 0;
        top: 0;
    }

    .portfolio-year-box,
    .portfolio-search-panel,
    .portfolio-table-wrapper {
        width: 100%;
    }

    .portfolio-search-panel,
    .portfolio-table-wrapper {
        margin-right: 0;
    }

    .portfolio-search-wrapper {
        width: 60%;
    }

    .portfolio-slicers {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        margin-top: 20px;
    }
}


/* =========================================================
   Responsive — Mobile
   ========================================================= */

@media (max-width: 700px) {

    .publishers-table-wrapper {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }

    #publishers-table {
        min-width: 2500px;
    }

    #publishers-table thead th,
    #publishers-table tbody td {
        font-size: 14px;
    }

    .publishers-search-panel {
        width: 100%;
        left: 0;
        top: 0;
    }

    .publishers-search-panel .search-box {
        width: 100%;
        max-width: 300px;
    }

    .publishers-year-box {
        width: 100%;
        left: 0;
        top: 0;
    }

    #publishers-year {
        max-width: 100%;
    }

    .publishers-horizontal-scroll {
        left: 5px;
        right: 5px;
    }

    #portfolio-section {
        padding: 12px;
    }

    .portfolio-year-box,
    .portfolio-search-panel,
    .portfolio-table-wrapper {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        transform: none;
    }

    .portfolio-search-wrapper {
        width: 100%;
    }

    #portfolio-table {
        min-width: 700px;
    }

    .portfolio-slicers {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }

    .portfolio-slicer {
        width: 100%;
        height: 300px;
    }
}


/* =========================================================
   موبایل خیلی کوچک
   ========================================================= */

@media (max-width: 480px) {

    #publishers-table {
        min-width: 2500px;
    }

    #publishers-table thead th {
        height: 55px;
    }

    #publishers-table tbody td {
        height: 28px;
        padding: 4px 8px;
    }

    .publishers-scroll-button {
        width: 30px;
        flex-basis: 30px;
    }

    .portfolio-search-wrapper {
        width: 100%;
    }

    #portfolio-year {
        width: 100%;
        max-width: 220px;
    }
}




/* =========================================================
   MARKET DASHBOARD — PREMIUM UNIFIED DESIGN
   Font: B Nazanin
   Existing table column widths preserved
   ========================================================= */

#market-section {
    position: relative;
    margin-top: -20px;
    padding: 18px 28px 320px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    direction: rtl;
    overflow-x: hidden;
    z-index: 1;
    box-sizing: border-box;
    color: #2c4057;
    font-family: "B Nazanin", Tahoma, sans-serif;
    color-scheme: light;
}

#market-section,
#market-section * {
    box-sizing: border-box;
    font-family: "B Nazanin", Tahoma, sans-serif;
}

/* =========================================================
   YEAR SELECT
   ========================================================= */

.market-year-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

#market-year {
    width: 200px;
    padding: 6px 18px;
    font-size: 17px;
    font-weight: bold;
    color: #243b53;
    background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
    border: 1px solid #cbd8e7;
    border-radius: 11px;
    cursor: pointer;
    outline: none;
    text-align: center;
    box-shadow: 0 2px 5px rgba(31, 55, 82, 0.05);
    transition: border-color .2s ease, box-shadow .2s ease;
}

#market-year:hover {
    border-color: #91afd0;
    box-shadow: 0 4px 12px rgba(37, 99, 160, 0.09);
}

#market-year:focus {
    border-color: #4c83bb;
    box-shadow: 0 0 0 3px rgba(59, 130, 190, 0.13);
}

/* =========================================================
   TABLE 1 — MAIN MARKET TABLE
   Corners unified with tables 2 and 3
   Width and minimum width preserved
   ========================================================= */

.market-table-wrapper {
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    box-shadow:
        0 6px 18px rgba(24, 45, 72, 0.07),
        0 1px 3px rgba(24, 45, 72, 0.04);
}

#market-table {
    width: 100%;
    min-width: 1400px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    overflow: hidden;
    border-radius: 15px;
    border: none;
    box-shadow: none;
    font-family: "B Nazanin", Tahoma, sans-serif;
}

#market-table thead th {
    height: 66px;
    padding: 8px 5px;
    background: linear-gradient(180deg, #edf3fa 0%, #e1eaf5 100%);
    color: #2c4059;
    border-left: 1px solid #d5e0ec;
    border-bottom: 1px solid #ccd9e7;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

#market-table thead th:first-child {
    border-top-right-radius: 15px;
}

#market-table thead th:last-child {
    border-left: none;
    border-top-left-radius: 15px;
}

/* Original header group colors */

#market-table .title-header {
    background: #bcfa6a;
    color: #36591d;
}

#market-table .index-header {
    background: #f78fd4;
    color: #8b285e;
}

#market-table .dollar-header {
    background: #f8f531;
    color: #79610a;
}

#market-table .toman-header {
    background: #c5f2f8;
    color: #155e70;
}

#market-table .ratio-header {
    background: #f1dbc9;
    color: #80502b;
}

#market-table tbody td {
    height: 64px;
    padding: 8px 10px;
    border-left: 1px solid #e8edf3;
    border-bottom: 1px solid #e5ebf2;
    color: #3b4d63;
    background: #ffffff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    transition: background-color .16s ease, color .16s ease;
}

#market-table tbody tr:nth-child(even) > td {
    background-color: #f7f9fc;
}

#market-table tbody td:last-child {
    border-left: none;
}

#market-table tbody tr:last-child > td {
    border-bottom: none;
}

#market-table td:first-child {
    color: #2457a6;
    font-weight: 800;
}

#market-table tbody tr:hover > td {
    background-color: #e8f2ff;
    color: #244b79;
}

#market-table tbody tr:hover > td:first-child {
    background-color: #dceaff;
    color: #194a91;
}

/* =========================================================
   GLOBAL SEARCH
   ========================================================= */

#global-search-panel {
    position: absolute !important;
    top: 30px;
    left: 20px;
    width: 350px;
    z-index: 9999;
}

/* =========================================================
   TABLE 2 — PERIOD SUMMARY
   ========================================================= */

.market-period-table-wrapper {
    width: 100%;
    margin-top: 35px;
    overflow-x: hidden;
    overflow-y: visible;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    box-shadow:
        0 6px 18px rgba(24, 45, 72, 0.07),
        0 1px 3px rgba(24, 45, 72, 0.04);
}

.market-period-table-wrapper::-webkit-scrollbar {
    display: none;
}

#market-period-table {
    width: 100%;
    min-width: 1800px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    overflow: hidden;
    table-layout: auto;
    font-family: "B Nazanin", Tahoma, sans-serif;
}

#market-period-table thead th {
    min-width: 125px;
    height: 66px;
    padding: 8px 9px;
    background: linear-gradient(180deg, #f4f7fb 0%, #e9eff7 100%);
    color: #344861;
    border-left: 1px solid #dce5ef;
    border-bottom: 1px solid #d2dce8;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

#market-period-table thead th:first-child {
    min-width: 145px;
    color: #ffffff;
    background: linear-gradient(135deg, #4779b7 0%, #315d99 100%);
    font-size: 17px;
    font-weight: 700;
    border-top-right-radius: 13px;
}

#market-period-table thead th:last-child {
    border-left: none;
    border-top-left-radius: 13px;
}

/* Table 2 header group colors */

#market-period-table thead th:nth-child(2),
#market-period-table thead th:nth-child(3),
#market-period-table thead th:nth-child(4) {
    background: linear-gradient(180deg, #e9f7ef 0%, #d9eee2 100%);
    color: #216341;
}

#market-period-table thead th:nth-child(5),
#market-period-table thead th:nth-child(6),
#market-period-table thead th:nth-child(10),
#market-period-table thead th:nth-child(11) {
    background: linear-gradient(180deg, #edf4fc 0%, #e0ebf8 100%);
    color: #315b89;
}

#market-period-table thead th:nth-child(7),
#market-period-table thead th:nth-child(8),
#market-period-table thead th:nth-child(9) {
    background: linear-gradient(180deg, #fff4df 0%, #f8e8c9 100%);
    color: #895a17;
}

#market-period-table thead th:nth-child(12),
#market-period-table thead th:nth-child(13),
#market-period-table thead th:nth-child(14) {
    background: linear-gradient(180deg, #f3edff 0%, #e8ddfb 100%);
    color: #6539a1;
}

/* Margin header */

#market-period-table .market-margin-header {
    padding-top: 7px;
    padding-bottom: 7px;
}

#market-period-table .market-margin-title {
    margin-bottom: 4px;
    color: #6539a1;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

/* Table 2 selects */

#market-period-table select {
    width: calc(100% + 13px);
    min-width: 145px;
    max-width: none;
    height: 36px;
    margin-right: -7.5px;
    padding: 0 9px;
    border: 1px solid #cbd8e7;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #334861;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(24, 45, 72, 0.04);
    transition:
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}

#market-period-table select:hover {
    border-color: #9bb4d0;
    background: #fbfdff;
}

#market-period-table select:focus {
    border-color: #5687bf;
    box-shadow: 0 0 0 3px rgba(66, 115, 174, 0.12);
}

/* Table 2 body */

#market-period-table tbody td {
    min-width: 125px;
    height: 64px;
    padding: 8px 10px;
    background: #ffffff;
    color: #3d4e63;
    border-left: 1px solid #e7edf4;
    border-bottom: 1px solid #e5ebf2;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    direction: ltr;
    font-variant-numeric: tabular-nums;
    transition: background-color .16s ease, color .16s ease;
}

#market-period-table tbody td:first-child {
    min-width: 145px;
    background: #f1f6ff;
    color: #285ba4;
    font-size: 19px;
    font-weight: 700;
    direction: rtl;
}

#market-period-table tbody tr:nth-child(even) > td {
    background-color: #f7f9fc;
}

#market-period-table tbody tr:nth-child(even) > td:first-child {
    background-color: #edf3ff;
}

#market-period-table tbody tr:last-child td {
    border-bottom: none;
}

#market-period-table th:last-child,
#market-period-table td:last-child {
    border-left: none;
}

#market-period-table tbody tr:hover > td {
    background-color: #e8f2ff;
    color: #244b79;
}

#market-period-table tbody tr:hover > td:first-child {
    background-color: #dceaff;
    color: #194a91;
}

/* Preserve original table 2 column widths */

#market-period-table th:nth-child(1),
#market-period-table td:nth-child(1) {
    min-width: 130px;
}

#market-period-table th:nth-child(2),
#market-period-table th:nth-child(3),
#market-period-table th:nth-child(4),
#market-period-table td:nth-child(2),
#market-period-table td:nth-child(3),
#market-period-table td:nth-child(4) {
    min-width: 180px;
}

#market-period-table th:nth-child(5),
#market-period-table th:nth-child(6),
#market-period-table td:nth-child(5),
#market-period-table td:nth-child(6) {
    min-width: 100px;
}

#market-period-table th:nth-child(7),
#market-period-table th:nth-child(8),
#market-period-table th:nth-child(9),
#market-period-table td:nth-child(7),
#market-period-table td:nth-child(8),
#market-period-table td:nth-child(9) {
    min-width: 180px;
}

#market-period-table th:nth-child(10),
#market-period-table th:nth-child(11),
#market-period-table td:nth-child(10),
#market-period-table td:nth-child(11) {
    min-width: 100px;
}

#market-period-table th:nth-child(12),
#market-period-table th:nth-child(13),
#market-period-table th:nth-child(14),
#market-period-table td:nth-child(12),
#market-period-table td:nth-child(13),
#market-period-table td:nth-child(14) {
    min-width: 180px;
}

/* Existing value-cell styling */

#market-month-value-1,
#market-month-value-2,
#market-month-value-3 {
    color: #216341;
    font-weight: 700;
}

#market-quarter-value-1,
#market-quarter-value-2,
#market-quarter-value-3 {
    color: #895a17;
    font-weight: 700;
}

#market-margin-value-1,
#market-margin-value-2,
#market-margin-value-3 {
    color: #6539a1;
    font-weight: 700;
    direction: ltr;
    unicode-bidi: plaintext;
    font-variant-numeric: tabular-nums;
}

#market-month-growth-value,
#market-month-point-value,
#market-quarter-growth-value,
#market-quarter-point-value {
    direction: ltr;
    unicode-bidi: plaintext;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

/* =========================================================
   TABLE 3 — DOLLAR SALES
   ========================================================= */

.market-dollar-sales-table-wrapper {
    width: 100%;
    margin-top: 28px;
    overflow-x: hidden;
    overflow-y: visible;
    border: 1px solid #dce5f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        0 8px 24px rgba(29, 55, 86, 0.07),
        0 2px 5px rgba(29, 55, 86, 0.035);
}

.market-dollar-sales-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.market-dollar-sales-table-wrapper::-webkit-scrollbar-track {
    background: #edf2f8;
    border-radius: 999px;
}

.market-dollar-sales-table-wrapper::-webkit-scrollbar-thumb {
    background: #9bb4d0;
    border-radius: 999px;
}

#market-dollar-sales-table {
    width: 100%;
    min-width: 1250px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    background: #ffffff;
    font-family: "B Nazanin", Tahoma, sans-serif;
}

#market-dollar-sales-table thead th {
    min-width: 105px;
    height: 82px;
    padding: 10px 9px;
    border-left: 1px solid #dce5ef;
    border-bottom: 1px solid #d2dce8;
    background: linear-gradient(180deg, #f4f7fb 0%, #e8eff8 100%);
    color: #344861;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
}

#market-dollar-sales-table thead th:first-child {
    min-width: 130px;
    background: linear-gradient(135deg, #4779b7 0%, #315d99 100%);
    color: #ffffff;
    border-top-right-radius: 15px;
}

#market-dollar-sales-table thead th:last-child {
    border-left: none;
    border-top-left-radius: 15px;
}

#market-dollar-sales-table thead th:nth-child(2),
#market-dollar-sales-table thead th:nth-child(3),
#market-dollar-sales-table thead th:nth-child(4),
#market-dollar-sales-table thead th:nth-child(7),
#market-dollar-sales-table thead th:nth-child(8),
#market-dollar-sales-table thead th:nth-child(9) {
    min-width: 160px;
}

#market-dollar-sales-table select {
    display: block;
    width: 100%;
    min-width: 80px;
    max-width: none;
    height: 36px;
    margin: 5px auto 0;
    padding: 0 7px;
    border: 1px solid #cbd8e7;
    border-radius: 8px;
    background: #ffffff;
    color: #334861;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    outline: none;
    box-shadow: 0 1px 3px rgba(24, 45, 72, 0.04);
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

#market-dollar-sales-table select:hover {
    border-color: #9bb4d0;
    background: #fafdff;
}

#market-dollar-sales-table select:focus {
    border-color: #5687bf;
    box-shadow: 0 0 0 3px rgba(66, 115, 174, 0.12);
}

#market-dollar-sales-table tbody td {
    min-width: 105px;
    height: 68px;
    padding: 10px 12px;
    border-left: 1px solid #e7edf4;
    border-bottom: 1px solid #e5ebf2;
    background: #ffffff;
    color: #3d4e63;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    direction: ltr;
    font-variant-numeric: tabular-nums;
    transition: background-color .18s ease, color .18s ease;
}

#market-dollar-sales-table tbody td:first-child {
    min-width: 130px;
    background: #f1f6ff;
    color: #285ba4;
    font-size: 19px;
    font-weight: 800;
    direction: rtl;
}

#market-dollar-sales-table tbody tr:nth-child(even) > td {
    background: #f7f9fc;
}

#market-dollar-sales-table tbody tr:nth-child(even) > td:first-child {
    background: #edf3ff;
}

#market-dollar-sales-table tbody td:last-child {
    border-left: none;
}

#market-dollar-sales-table tbody tr:last-child > td {
    border-bottom: none;
}

#market-dollar-sales-table tbody tr:hover > td {
    background: #e8f2ff;
    color: #244b79;
}

#market-dollar-sales-table tbody tr:hover > td:first-child {
    background: #dceaff;
    color: #194a91;
}

#market-dollar-month-growth,
#market-dollar-month-yoy-growth,
#market-dollar-period-growth,
#market-dollar-period-yoy-growth {
    direction: ltr;
    unicode-bidi: plaintext;
    font-weight: 800;
}

/* Monthly columns: 2–6 — mint green */

#market-dollar-sales-table thead th:nth-child(n+2):nth-child(-n+6) {
    background: #c9f5df;
    color: #166534;
    border-color: #a7e8c5;
}

#market-dollar-sales-table tbody td:nth-child(n+2):nth-child(-n+6) {
    background: #edfff5;
    color: #334155;
    border-color: #c9f5df;
}

/* Quarterly columns: 7–11 — light golden yellow */

#market-dollar-sales-table thead th:nth-child(n+7):nth-child(-n+11) {
    background: #ffedb3;
    color: #854d0e;
    border-color: #f5d875;
}

#market-dollar-sales-table tbody td:nth-child(n+7):nth-child(-n+11) {
    background: #fff9e6;
    color: #334155;
    border-color: #f5e5a8;
}

/* Hover colors preserve monthly/quarterly distinction */

#market-dollar-sales-table tbody tr:hover td:nth-child(n+2):nth-child(-n+6) {
    background: #d8f9e7;
}

#market-dollar-sales-table tbody tr:hover td:nth-child(n+7):nth-child(-n+11) {
    background: #fff1c9;
}

/* تنظیم مستقل عرض ستون‌های جدول ۳ */
#market-dollar-sales-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

#market-dollar-sales-table thead th,
#market-dollar-sales-table tbody td {
    box-sizing: border-box;
    padding-right: 3px;
    padding-left: 3px;
}

#market-dollar-sales-table th:nth-child(1),
#market-dollar-sales-table td:nth-child(1) {
    min-width: 130px;
}

#market-dollar-sales-table th:nth-child(2),
#market-dollar-sales-table th:nth-child(3),
#market-dollar-sales-table th:nth-child(4),
#market-dollar-sales-table td:nth-child(2),
#market-dollar-sales-table td:nth-child(3),
#market-dollar-sales-table td:nth-child(4) {
    min-width: 180px;
}

#market-dollar-sales-table th:nth-child(5),
#market-dollar-sales-table th:nth-child(6),
#market-dollar-sales-table td:nth-child(5),
#market-dollar-sales-table td:nth-child(6) {
    min-width: 100px;
}

#market-dollar-sales-table th:nth-child(7),
#market-dollar-sales-table th:nth-child(8),
#market-dollar-sales-table th:nth-child(9),
#market-dollar-sales-table td:nth-child(7),
#market-dollar-sales-table td:nth-child(8),
#market-dollar-sales-table td:nth-child(9) {
    min-width: 180px;
}

#market-dollar-sales-table th:nth-child(10),
#market-dollar-sales-table th:nth-child(11),
#market-dollar-sales-table td:nth-child(10),
#market-dollar-sales-table td:nth-child(11) {
    min-width: 100px;
}

#market-dollar-sales-table select {
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
}

/* =========================================================
   DOLLAR SALES CHARTS — PREMIUM DESIGN
   ========================================================= */

.market-dollar-sales-container {
    width: 100%;
    min-width: 0;
    margin-top: 24px;
    direction: rtl;
    font-family: "B Nazanin", Tahoma, sans-serif;
}

.market-dollar-chart-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 18px;
}

.market-dollar-chart-tab {
    position: relative;
    min-height: 46px;
    padding: 10px 24px;
    border: 1px solid #d5dfed;
    border-radius: 13px;
    background: linear-gradient(145deg, #ffffff 0%, #f3f7fc 100%);
    color: #405572;
    font-family: "B Nazanin", Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 3px 10px rgba(25, 48, 78, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.market-dollar-chart-tab:hover {
    border-color: #91b7e8;
    background: linear-gradient(145deg, #ffffff 0%, #edf5ff 100%);
    color: #174f9c;
    transform: translateY(-1px);
    box-shadow:
        0 6px 16px rgba(37, 99, 235, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.market-dollar-chart-tab.active {
    border-color: #245bd2;
    background: linear-gradient(135deg, #3478ed 0%, #1746a2 100%);
    color: #ffffff;
    box-shadow:
        0 6px 16px rgba(37, 99, 235, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.market-dollar-chart-tab:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.35);
    outline-offset: 3px;
}

.market-dollar-sales-charts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
    width: 100%;
    min-width: 0;
    margin-top: 0;
    direction: rtl;
}

.market-dollar-chart-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    min-width: 0;
    height: 520px;
    padding: 20px;
    overflow: hidden;
    box-sizing: border-box;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(59, 130, 246, 0.08),
            transparent 42%
        ),
        linear-gradient(160deg, #ffffff 0%, #f8faff 65%, #f3f7fd 100%);

    border: 1px solid #d7e2f0;
    border-radius: 18px;

    box-shadow:
        0 8px 26px rgba(24, 48, 78, 0.065),
        0 2px 6px rgba(24, 48, 78, 0.025),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.market-dollar-chart-wrapper:hover {
    border-color: #b8cfe9;
    box-shadow:
        0 11px 28px rgba(24, 48, 78, 0.085),
        0 3px 8px rgba(24, 48, 78, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.market-dollar-chart-wrapper canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
}

/* Tablet */
@media (max-width: 1200px) {
    .market-dollar-sales-container {
        margin-top: 20px;
    }

    .market-dollar-chart-wrapper {
        height: 330px;
        padding: 16px;
        border-radius: 16px;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .market-dollar-chart-tabs {
        gap: 5px;
        margin-bottom: 14px;
    }

    .market-dollar-chart-tab {
        flex: 1 1 140px;
        min-height: 42px;
        padding: 9px 12px;
        font-size: 15px;
    }

    .market-dollar-chart-wrapper {
        height: 300px;
        padding: 12px;
        border-radius: 14px;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .market-dollar-chart-tab {
        flex-basis: 100%;
    }

    .market-dollar-chart-wrapper {
        height: 270px;
        padding: 8px;
    }
}

/* Large screens */
@media (min-width: 1600px) {
    .market-dollar-chart-wrapper {
        height: 410px;
        padding: 24px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .market-dollar-chart-tab,
    .market-dollar-chart-wrapper {
        transition: none;
    }
}

/* =========================================================
   DEDICATED SITE SCROLLBAR — PRESERVED
   ========================================================= */

.market-horizontal-scroll {
    position: fixed;
    left: 10px;
    right: 15px;
    bottom: 0;
    height: 38px;
    display: flex;
    align-items: center;
    direction: rtl;
    padding: 0 8px;
    box-sizing: border-box;
    z-index: 100000;
    user-select: none;
    background: rgba(248, 250, 253, 0.97);
    border: 1px solid #dbe4ef;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -3px 14px rgba(24, 45, 72, 0.09);
    backdrop-filter: blur(12px);
}

.market-scroll-button {
    width: 36px;
    height: 30px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #496783;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.market-scroll-button:hover {
    background: #e1edf9;
    color: #285b8c;
}

.market-horizontal-scroll-track {
    position: relative;
    flex: 1;
    height: 12px;
    margin: 0 8px;
    background: #e5ebf3;
    border: 1px solid #d5dfeb;
    border-radius: 999px;
    overflow: hidden;
}

.market-horizontal-scroll-thumb {
    position: absolute;
    top: 0;
    width: 76px;
    min-width: 45px;
    height: 12px;
    background: linear-gradient(90deg, #83a7d0 0%, #315d99 100%);
    border-radius: 999px;
    cursor: grab;
    touch-action: pan-y;
}

.market-horizontal-scroll-thumb:hover {
    background: linear-gradient(90deg, #a7c8ed 0%, #4779b7 100%);
}

.market-horizontal-scroll-thumb:active {
    cursor: grabbing;
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1200px) {
    #market-section {
        margin-top: -12px;
        padding: 16px 18px 320px;
    }

    .market-period-table-wrapper {
        margin-top: 25px;
    }

    #market-table thead th,
    #market-period-table thead th {
        height: 66px;
    }

    #market-table tbody td,
    #market-period-table tbody td {
        height: 64px;
    }

    #market-period-table select {
        height: 35px;
        font-size: 14px;
    }

    #market-period-table .market-margin-title {
        font-size: 14px;
    }

    .market-dollar-sales-table-wrapper {
        margin-top: 24px;
    }

    .market-dollar-sales-charts {
        gap: 16px;
        margin-top: 22px;
    }

    .market-dollar-chart-wrapper {
        height: 320px;
        padding: 18px;
    }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 700px) {
    #market-section {
        margin-top: -8px;
        padding: 12px 10px 320px;
        overflow-x: hidden;
    }

    #market-year {
        width: 200px;
        max-width: 100%;
        font-size: 16px;
    }

    #global-search-panel {
        width: min(350px, calc(100% - 20px));
        left: 10px;
    }

    #market-table thead th,
    #market-period-table thead th {
        height: 66px;
        padding: 6px 5px;
        font-size: 14px;
    }

    #market-table tbody td,
    #market-period-table tbody td {
        height: 64px;
        padding: 7px 6px;
        font-size: 16px;
    }

    #market-period-table select {
        height: 33px;
        padding: 0 5px;
        border-radius: 7px;
        font-size: 13px;
    }

    #market-period-table .market-margin-title {
        margin-bottom: 3px;
        font-size: 13px;
    }

    .market-dollar-sales-table-wrapper {
        margin-top: 20px;
        border-radius: 12px;
    }

    #market-dollar-sales-table thead th {
        height: 76px;
        padding: 8px 7px;
        font-size: 14px;
    }

    #market-dollar-sales-table tbody td {
        height: 62px;
        padding: 8px 9px;
        font-size: 16px;
    }

    #market-dollar-sales-table select {
        height: 32px;
        font-size: 13px;
    }

    .market-dollar-sales-charts {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin-top: 20px;
    }

    .market-dollar-chart-wrapper {
        height: 300px;
        padding: 14px;
        border-radius: 14px;
    }

    .market-horizontal-scroll {
        left: 5px;
        right: 5px;
        height: 34px;
        padding: 0 4px;
    }

    .market-scroll-button {
        width: 30px;
        flex-basis: 30px;
    }

    .market-horizontal-scroll-track {
        margin: 0 5px;
    }
}

/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 380px) {
    #market-section {
        padding-right: 7px;
        padding-left: 7px;
    }

    .market-dollar-chart-wrapper {
        height: 270px;
        padding: 10px;
    }

    #market-dollar-sales-table thead th {
        padding: 7px 5px;
        font-size: 13px;
    }

    #market-dollar-sales-table tbody td {
        padding: 7px;
        font-size: 15px;
    }
}

/* =========================================================
   LARGE SCREENS
   ========================================================= */

@media (min-width: 1600px) {
    .market-dollar-sales-charts {
        gap: 26px;
        margin-top: 30px;
    }

    .market-dollar-chart-wrapper {
        height: 390px;
        padding: 26px;
    }
}

/* =========================================================
   ACCESSIBILITY — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    #market-section *,
    #market-section *::before,
    #market-section *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}



/* =========================================================
   ناشران۳۶۰ | خرید اشتراک
   کانتینر، معرفی دوستان، پلن‌ها، پرداخت و ریسپانسیو
========================================================= */


/* =========================================================
   ۱. کانتینر اصلی خرید اشتراک
========================================================= */

.subscription-container,
.subscription-buy-box {
    --subscription-primary: #15803d;
    --subscription-primary-dark: #14532d;
    --subscription-green: #22c55e;
    --subscription-text: #263b35;
    --subscription-muted: #64748b;
    --subscription-border: #d1e7d8;

    box-sizing: border-box;
    direction: rtl;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

.subscription-container *,
.subscription-buy-box * {
    box-sizing: border-box;
}

.subscription-container {
    width: 100%;
    max-width: 1200px;
    margin: -8px auto 0;
    padding: 0 15px 10px;
}

.subscription-container h2 {
    margin: 0 0 12px;
    color: var(--subscription-primary-dark);
    text-align: center;
    font-size: clamp(22px, 2.3vw, 27px);
    font-weight: 800;
    line-height: 1.6;
}


/* =========================================================
   ۲. کادر معرفی دوستان
========================================================= */

.referral-box {
    width: min(100%, 470px);
    margin: 0 auto 15px;
    padding: 14px 17px;
    background: linear-gradient(145deg, #ffffff, #f0fdf4);
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.06);
}

.referral-box h3 {
    margin: 0 0 10px;
    color: var(--subscription-primary-dark);
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.7;
}

.referral-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.referral-input-group input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 8px 10px;
    color: var(--subscription-text);
    background: #fff;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    direction: ltr;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.referral-input-group button {
    min-height: 40px;
    padding: 0 15px;
    color: #fff;
    background: var(--subscription-primary);
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease;
}

.referral-input-group button:hover {
    background: var(--subscription-primary-dark);
}

.referral-message {
    margin-top: 7px;
    color: var(--subscription-muted);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
}


/* =========================================================
   ۳. چیدمان چهار پلن اشتراک
========================================================= */

.subscription-plans {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.subscription-plan {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 255px;
    padding: 17px 12px;
    background: #fff;
    border: 1px solid var(--subscription-border);
    border-radius: 16px;
    box-shadow: 0 4px 13px rgba(15, 23, 42, 0.045);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.subscription-plan:hover {
    border-color: #86efac;
    box-shadow: 0 8px 20px rgba(22, 101, 52, 0.09);
    transform: translateY(-2px);
}

.subscription-plan h3 {
    margin: 0 0 9px;
    color: var(--subscription-primary-dark);
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.7;
}

.subscription-duration {
    color: var(--subscription-muted);
    text-align: center;
    font-size: 16px;
    line-height: 1.7;
}

.subscription-price {
    margin: 11px 0 !important;
    color: var(--subscription-text);
    text-align: center !important;
    font-size: 20px !important;
    font-weight: 700;
    line-height: 1.7;
}

.old-price {
    display: block;
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 13px;
    line-height: 1.7;
}

.new-price {
    display: block;
    color: var(--subscription-primary);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.7;
}


/* =========================================================
   ۴. دکمه انتخاب پلن
========================================================= */

.subscription-plan a,
.subscription-plan button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #15803d);
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.subscription-plan a:hover,
.subscription-plan button:hover {
    background: linear-gradient(135deg, #16a34a, #14532d);
    transform: translateY(-1px);
}


/* =========================================================
   ۵. صفحه خرید اشتراک
========================================================= */

.subscription-buy-box {
    width: min(95%, 600px);
    margin: 22px auto;
    padding: 25px;
    color: var(--subscription-text);
    background: linear-gradient(160deg, #fff, #f8fdf9);
    border: 1px solid var(--subscription-border);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    text-align: center;
}

.subscription-buy-box h2 {
    margin: 0 0 16px;
    color: var(--subscription-primary-dark);
    font-size: clamp(22px, 3vw, 29px);
    font-weight: 900;
    line-height: 1.8;
}

.subscription-buy-box h3 {
    margin: 0 0 12px;
    color: var(--subscription-primary-dark);
    font-size: clamp(18px, 2vw, 23px);
    font-weight: 800;
    line-height: 1.8;
}

.subscription-buy-box p {
    color: var(--subscription-text);
    font-size: clamp(15px, 2vw, 18px);
    line-height: 2;
}


/* =========================================================
   ۶. ورودی اعتبار معرف
========================================================= */

#referral-credit-input {
    display: block;
    width: 90%;
    max-width: 350px;
    min-height: 45px;
    margin: 13px auto;
    padding: 10px 12px;
    color: var(--subscription-text);
    background: #fff;
    border: 1px solid var(--subscription-border);
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


/* =========================================================
   ۷. مبلغ نهایی پرداخت
========================================================= */

#final-price {
    color: var(--subscription-primary);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
    line-height: 1.8;
}


/* =========================================================
   ۸. دکمه ادامه خرید
========================================================= */

.subscription-buy-box button {
    width: 90%;
    max-width: 350px;
    min-height: 46px;
    margin-top: 20px;
    padding: 10px 16px;
    color: #fff;
    background: linear-gradient(135deg, #15803d, #14532d);
    border: none;
    border-radius: 13px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.8;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.subscription-buy-box button:hover {
    background: var(--subscription-primary-dark);
    transform: translateY(-2px);
}


/* =========================================================
   ۹. نمایشگرهای متوسط
========================================================= */

@media (max-width: 1000px) {
    .subscription-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .subscription-plan {
        min-height: 245px;
    }
}


/* =========================================================
   ۱۰. موبایل
========================================================= */

@media (max-width: 600px) {
    .subscription-container {
        margin-top: -3px;
        padding: 0 10px 10px;
    }

    .subscription-container h2 {
        margin-bottom: 10px;
        font-size: 22px;
    }

    .referral-box {
        width: min(100%, 420px);
        margin-bottom: 12px;
        padding: 12px 14px;
    }

    .referral-input-group {
        flex-direction: column;
        gap: 7px;
    }

    .referral-input-group input,
    .referral-input-group button {
        width: 100%;
        min-height: 40px;
    }

    .subscription-plans {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
    }

    .subscription-plan {
        min-height: 235px;
        padding: 16px 15px;
    }

    .subscription-buy-box {
        width: 100%;
        margin: 18px auto;
        padding: 19px 14px;
        border-radius: 18px;
    }

    #referral-credit-input,
    .subscription-buy-box button {
        width: 100%;
    }
}


/* =========================================================
   ۱۱. موبایل کوچک
========================================================= */

@media (max-width: 360px) {
    .subscription-container {
        padding-right: 8px;
        padding-left: 8px;
    }

    .subscription-plan {
        padding: 15px 11px;
    }

    .new-price {
        font-size: 19px;
    }

    .subscription-buy-box {
        padding: 16px 11px;
    }
}


/* =========================================================
   ۱۲. دسترس‌پذیری و کاهش حرکت
========================================================= */

.subscription-plan a:focus-visible,
.subscription-plan button:focus-visible,
.referral-input-group button:focus-visible,
.subscription-buy-box button:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.45);
    outline-offset: 3px;
}

.referral-input-group input:focus,
#referral-credit-input:focus {
    border-color: var(--subscription-primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .subscription-plan,
    .subscription-plan a,
    .subscription-plan button,
    .referral-input-group button,
    .referral-input-group input,
    #referral-credit-input,
    .subscription-buy-box button {
        transition: none;
    }

    .subscription-plan:hover,
    .subscription-plan a:hover,
    .subscription-plan button:hover,
    .subscription-buy-box button:hover {
        transform: none;
    }
}




/* =========================================================
   NASHRAN360 — PREMIUM PROFILE DESIGN
   Modern RTL | Responsive | Unified Cards
   ========================================================= */

.profile-page {
    --profile-text: #334155;
    --profile-heading: #172554;
    --profile-muted: #64748b;
    --profile-border: #dce7f5;
    --profile-blue: #2563eb;
    --profile-cyan: #06b6d4;
    --profile-indigo: #6366f1;
    --profile-green: #15803d;
    --profile-teal: #0f766e;
    --profile-surface: #ffffff;
    --profile-soft: #f5f9ff;
    --profile-shadow:
        0 12px 30px rgba(15, 23, 42, 0.055),
        0 2px 7px rgba(15, 23, 42, 0.025);
    --profile-shadow-hover:
        0 17px 38px rgba(37, 99, 235, 0.10),
        0 5px 12px rgba(15, 23, 42, 0.035);

    width: min(96%, 1200px);
    margin: 22px auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
    direction: rtl;
    color: var(--profile-text);
    font-family: "B Nazanin", Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.8;
    box-sizing: border-box;
}

.profile-page *,
.profile-page *::before,
.profile-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   ALL PROFILE CARDS — SHARED PREMIUM APPEARANCE
   ========================================================= */

.profile-page > .profile-box {
    position: relative;
    isolation: isolate;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 23px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(59, 130, 246, 0.075),
            transparent 40%
        ),
        linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--profile-border);
    border-radius: 21px;
    box-shadow: var(--profile-shadow);
    transition:
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        transform 0.24s ease;
}

.profile-page > .profile-box::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--profile-cyan) 0%,
        var(--profile-blue) 52%,
        var(--profile-indigo) 100%
    );
}

/* =========================================================
   PROFILE HEADINGS
   ========================================================= */

.profile-title {
    position: relative;
    margin: 0 0 19px;
    padding: 0 0 13px;
    color: var(--profile-heading);
    font-family: "B Nazanin", Tahoma, sans-serif;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.7;
    border-bottom: 1px solid #e4edf8;
}

.profile-card-title,
.withdrawal-history-title {
    margin: 0 0 15px;
    color: var(--profile-heading);
    font-family: "B Nazanin", Tahoma, sans-serif;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.8;
}

.profile-mobile {
    margin: 0 0 12px;
    color: #475569;
    font-size: 18px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

/* =========================================================
   FIRST CARD — PROFILE SUMMARY
   ========================================================= */

.profile-page > .profile-box:first-child {
    padding: 25px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(59, 130, 246, 0.11),
            transparent 43%
        ),
        linear-gradient(145deg, #ffffff 0%, #f7faff 100%);
    border-color: #d5e4f7;
    border-radius: 22px;
    box-shadow:
        0 13px 34px rgba(15, 23, 42, 0.065),
        0 3px 8px rgba(37, 99, 235, 0.025);
}

.profile-page > .profile-box:first-child::before {
    height: 5px;
    background: linear-gradient(
        90deg,
        #06b6d4 0%,
        #3b82f6 50%,
        #6366f1 100%
    );
}

.profile-page > .profile-box:first-child .profile-title {
    margin-bottom: 20px;
    padding-bottom: 15px;
    color: #14213d;
    font-size: 26px;
    font-weight: 900;
    border-bottom-color: #e1eaf6;
}

.profile-page > .profile-box:first-child .profile-mobile {
    margin: 0 0 12px;
    padding: 13px 15px;
    color: #475569;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #e0eaf6;
    border-radius: 13px;
    font-size: 18px;
    line-height: 1.9;
    overflow-wrap: anywhere;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.profile-page > .profile-box:first-child .profile-mobile:last-child {
    margin-bottom: 0;
    background: linear-gradient(135deg, #eef6ff, #f8faff);
    border-color: #d5e5fa;
}

.profile-page > .profile-box:first-child .profile-mobile strong {
    color: #172554;
    font-weight: 900;
}

.profile-page > .profile-box:first-child
.profile-mobile a[href="#edit-profile"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 5px;
    padding: 5px 12px;
    color: #1d4ed8 !important;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    font-weight: 900;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.profile-page > .profile-box:first-child .subscription-renew-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 10px;
    padding: 9px 19px;
    color: #ffffff !important;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: 1px solid #1d4ed8;
    border-radius: 11px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.18);
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* =========================================================
   REFERRAL CARD CONTAINER
   ========================================================= */

.profile-page .profile-box:has(> .referral-card) {
    padding: 23px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(96, 165, 250, 0.11),
            transparent 42%
        ),
        linear-gradient(145deg, #ffffff 0%, #f7faff 100%);
    border-color: #d8e6f8;
}

.profile-page .profile-box:has(> .referral-card)::before {
    height: 5px;
}

.profile-page .profile-box:has(> .referral-card) > .profile-card-title {
    margin: 0 0 17px;
    padding-bottom: 12px;
    color: #172554;
    font-size: 22px;
    font-weight: 900;
    border-bottom: 1px solid #e3edf9;
}

/* =========================================================
   REFERRAL CARD — DEEP BLUE PREMIUM STYLE
   ========================================================= */

.profile-page .referral-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    min-width: 0;
    margin: 0;
    padding: 21px 17px;
    color: #ffffff;
    text-align: center;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(255, 255, 255, 0.16),
            transparent 43%
        ),
        linear-gradient(145deg, #172554 0%, #1e40af 55%, #2563eb 100%);
    border: 1px solid rgba(147, 197, 253, 0.48);
    border-radius: 17px;
    box-shadow:
        0 12px 27px rgba(30, 64, 175, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.profile-page .referral-card p {
    margin: 0;
    color: #eff6ff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.9;
}

.profile-page .referral-card .referral-code {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 56px;
    margin: 0;
    padding: 11px 13px;
    color: #1e3a8a;
    background: linear-gradient(145deg, #ffffff, #eff6ff);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.09),
        inset 0 1px 0 #ffffff;
    font-family: Consolas, Tahoma, sans-serif;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.6;
    letter-spacing: 0.5px;
    overflow-wrap: anywhere;
    word-break: break-word;
    user-select: text;
}

.profile-page .referral-card .referral-description {
    margin: 0;
    color: #dbeafe;
    font-size: 16px;
    line-height: 1.9;
}

.profile-page .referral-card .copy-button,
.copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    border: 1px solid #0f766e;
    border-radius: 11px;
    box-shadow:
        0 5px 13px rgba(13, 148, 136, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
    font-family: "B Nazanin", Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.6;
    cursor: pointer;
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* =========================================================
   REFERRAL STATISTICS
   ========================================================= */

.profile-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.profile-page .stat-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 91px;
    padding: 11px 7px;
    text-align: center;
    background:
        linear-gradient(145deg, #ffffff 0%, #f3f8ff 100%);
    border: 1px solid #dce8f7;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(30, 64, 175, 0.035);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.profile-page .stat-number {
    margin: 0 0 5px;
    color: #1d4ed8;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.profile-page .stat-label {
    margin: 0;
    color: #475569;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* =========================================================
   PERSONAL INFORMATION
   ========================================================= */

.profile-page .profile-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.profile-page .profile-info p {
    margin: 0;
    padding: 11px 13px;
    color: #475569;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #e2eaf5;
    border-radius: 11px;
    font-size: 18px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.profile-page .profile-info strong {
    color: #172554;
    font-weight: 900;
}

/* =========================================================
   WITHDRAWAL HISTORY
   ========================================================= */

.profile-page .withdrawal-history {
    max-height: 310px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #bfcee2 #f3f7fc;
}

.profile-page .withdrawal-history-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    color: #475569;
    border-bottom: 1px solid #e2eaf5;
    font-size: 17px;
    line-height: 1.8;
}

.profile-page .withdrawal-history-item:last-child {
    border-bottom: 0;
}

.profile-page .withdrawal-history-empty {
    margin: 0;
    padding: 13px;
    color: #475569;
    background: linear-gradient(135deg, #f8fbff, #f1f6fd);
    border: 1px dashed #c5d5e8;
    border-radius: 11px;
    font-size: 17px;
    line-height: 1.9;
    text-align: center;
}

/* =========================================================
   PROFILE MESSAGES
   ========================================================= */

.profile-page .profile-message {
    position: static !important;
    margin: 0 0 14px;
    padding: 12px 15px;
    color: #9a3412;
    background: linear-gradient(135deg, #fff7ed, #fffaf5);
    border: 1px solid #fed7aa;
    border-radius: 11px;
    font-size: 17px;
    line-height: 1.9;
}

/* =========================================================
   PROFILE FORMS
   ========================================================= */

.profile-page .profile-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
    min-width: 0;
}

.profile-page .profile-form p {
    min-width: 0;
    margin: 0;
}

.profile-page .profile-form label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.7;
}

.profile-page .profile-form input,
.profile-page .profile-form select,
.profile-page .profile-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 13px;
    color: #172033;
    background: #ffffff;
    border: 1px solid #cbd9eb;
    border-radius: 11px;
    font-family: "B Nazanin", Tahoma, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.profile-page .profile-form textarea {
    min-height: 100px;
    resize: vertical;
}

.profile-page .profile-form input:focus,
.profile-page .profile-form select:focus,
.profile-page .profile-form textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.profile-page .withdrawal-amount-input,
.profile-page .withdrawal-card-input {
    text-align: center;
}

/* =========================================================
   SAVE BUTTON
   ========================================================= */

.profile-page .save-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 145px;
    min-height: 46px;
    padding: 10px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #15803d, #16a34a);
    border: 1px solid #15803d;
    border-radius: 11px;
    box-shadow:
        0 5px 13px rgba(21, 128, 61, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    font-family: "B Nazanin", Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.6;
    cursor: pointer;
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.profile-page .profile-form .save-profile-btn {
    align-self: flex-start;
}

.profile-page .withdrawal-box,
.profile-page .edit-profile-box {
    align-self: stretch;
    height: 100%;
}

/* =========================================================
   INTERACTIONS — DESKTOP POINTERS ONLY
   ========================================================= */

@media (hover: hover) and (pointer: fine) {
    .profile-page > .profile-box:hover {
        border-color: #c5d8f1;
        box-shadow: var(--profile-shadow-hover);
        transform: translateY(-2px);
    }

    .profile-page > .profile-box:first-child .profile-mobile:hover {
        background-color: #ffffff;
        border-color: #cbdcf2;
        box-shadow: 0 5px 14px rgba(15, 23, 42, 0.045);
    }

    .profile-page > .profile-box:first-child
    .profile-mobile a[href="#edit-profile"]:hover {
        color: #ffffff !important;
        background: #2563eb;
        border-color: #2563eb;
    }

    .profile-page > .profile-box:first-child .subscription-renew-link:hover {
        color: #ffffff !important;
        background: linear-gradient(135deg, #1d4ed8, #1e40af);
        box-shadow: 0 8px 19px rgba(37, 99, 235, 0.25);
        transform: translateY(-1px);
    }

    .profile-page .stat-box:hover {
        background: linear-gradient(145deg, #ffffff, #eaf3ff);
        border-color: #b7d2f5;
        box-shadow: 0 7px 17px rgba(37, 99, 235, 0.08);
        transform: translateY(-2px);
    }

    .profile-page .profile-info p:hover {
        background: #ffffff;
        border-color: #cfdef0;
    }

    .profile-page .referral-card .copy-button:hover,
    .profile-page .copy-button:hover {
        color: #ffffff;
        background: linear-gradient(135deg, #115e59, #0f766e);
        box-shadow: 0 8px 19px rgba(13, 148, 136, 0.26);
        transform: translateY(-2px);
    }

    .profile-page .save-profile-btn:hover {
        color: #ffffff;
        background: linear-gradient(135deg, #166534, #15803d);
        box-shadow: 0 8px 18px rgba(21, 128, 61, 0.23);
        transform: translateY(-1px);
    }
}

/* =========================================================
   FOCUS ACCESSIBILITY
   ========================================================= */

.profile-page .copy-button:focus-visible,
.profile-page .save-profile-btn:focus-visible,
.profile-page .subscription-renew-link:focus-visible,
.profile-page a[href="#edit-profile"]:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.45);
    outline-offset: 3px;
}

.profile-page .referral-card .copy-button:active,
.profile-page .save-profile-btn:active {
    transform: scale(0.985);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
    .profile-page {
        width: 96%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin: 18px auto;
    }

    .profile-page > .profile-box {
        padding: 19px;
        border-radius: 18px;
    }

    .profile-page > .profile-box:first-child {
        padding: 21px;
    }

    .profile-title {
        font-size: 23px;
    }

    .profile-card-title,
    .withdrawal-history-title {
        font-size: 20px;
    }

    .profile-page .stat-number {
        font-size: 18px;
    }

    .profile-page .profile-form label,
    .profile-page .profile-form input,
    .profile-page .profile-form select,
    .profile-page .profile-form textarea {
        font-size: 17px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 560px) {
    .profile-page {
        width: 94%;
        margin: 13px auto;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        font-size: 17px;
        line-height: 1.8;
    }

    .profile-page > .profile-box {
        height: auto;
        padding: 17px;
        border-radius: 16px;
        box-shadow:
            0 8px 22px rgba(15, 23, 42, 0.05),
            0 2px 6px rgba(15, 23, 42, 0.02);
    }

    .profile-page > .profile-box:first-child {
        padding: 18px;
        border-radius: 17px;
    }

    .profile-title {
        margin-bottom: 15px;
        padding-bottom: 11px;
        font-size: 23px;
    }

    .profile-page > .profile-box:first-child .profile-title {
        margin-bottom: 16px;
        padding-bottom: 12px;
        font-size: 24px;
    }

    .profile-card-title,
    .withdrawal-history-title {
        margin-bottom: 12px;
        font-size: 20px;
    }

    .profile-mobile {
        font-size: 17px;
    }

    .profile-page > .profile-box:first-child .profile-mobile {
        padding: 11px 12px;
        border-radius: 11px;
        font-size: 17px;
    }

    .profile-page .stats-grid {
        gap: 8px;
    }

    .profile-page .stat-box {
        min-height: 79px;
        padding: 9px 5px;
        border-radius: 10px;
    }

    .profile-page .stat-number {
        font-size: 18px;
    }

    .profile-page .stat-label {
        font-size: 15px;
    }

    .profile-page .profile-info {
        gap: 8px;
    }

    .profile-page .profile-info p {
        padding: 10px 11px;
        font-size: 17px;
    }

    .profile-page .referral-card {
        gap: 12px;
        padding: 16px 12px;
        border-radius: 13px;
    }

    .profile-page .profile-box:has(> .referral-card) {
        padding: 17px;
        border-radius: 16px;
    }

    .profile-page .profile-box:has(> .referral-card) > .profile-card-title {
        margin-bottom: 13px;
        font-size: 20px;
    }

    .profile-page .referral-card p {
        font-size: 17px;
    }

    .profile-page .referral-card .referral-code {
        min-height: 49px;
        padding: 9px;
        font-size: 19px;
        letter-spacing: 0;
    }

    .profile-page .referral-card .copy-button,
    .profile-page .copy-button {
        min-height: 45px;
        padding: 9px 12px;
        font-size: 17px;
    }

    .profile-page .withdrawal-history-item {
        flex-direction: column;
        gap: 5px;
        font-size: 16px;
    }

    .profile-page .profile-form {
        gap: 11px;
    }

    .profile-page .profile-form label,
    .profile-page .profile-form input,
    .profile-page .profile-form select,
    .profile-page .profile-form textarea {
        font-size: 17px;
    }

    .profile-page .profile-form .save-profile-btn {
        width: 100%;
        align-self: stretch;
        min-height: 45px;
    }

    .profile-page .subscription-renew-link {
        width: 100%;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .profile-page > .profile-box,
    .profile-page .profile-mobile,
    .profile-page .stat-box,
    .profile-page .copy-button,
    .profile-page .save-profile-btn,
    .profile-page .subscription-renew-link,
    .profile-page .profile-form input,
    .profile-page .profile-form select,
    .profile-page .profile-form textarea,
    .profile-page a[href="#edit-profile"] {
        transition: none;
    }
}


/* ============================================================
   INVOICE & PAYMENT — PREMIUM FINTECH UI
============================================================ */

.invoice-page,
.payment-page {
    --pay-ink: #172033;
    --pay-muted: #64748b;
    --pay-border: #e2e8f0;
    --pay-blue: #2563eb;
    --pay-blue-dark: #1d4ed8;
    --pay-green: #15803d;

    box-sizing: border-box;
    width: 100%;
    min-height: calc(100vh - 80px);
    min-height: calc(100dvh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 5vw, 64px) 18px;
    direction: rtl;
    color: var(--pay-ink);
    font-family: "B Nazanin", Tahoma, sans-serif;
    background:
        radial-gradient(
            ellipse at 10% 10%,
            rgba(147, 197, 253, 0.30),
            transparent 36%
        ),
        radial-gradient(
            ellipse at 90% 90%,
            rgba(165, 180, 252, 0.24),
            transparent 34%
        ),
        linear-gradient(145deg, #f8fafc 0%, #eef2ff 100%);
}

.invoice-page *,
.payment-page * {
    box-sizing: border-box;
}

/* کارت فاکتور و پرداخت */

.invoice-card,
.payment-card {
    position: relative;
    isolation: isolate;
    width: min(100%, 500px);
    min-width: 0;
    padding: clamp(24px, 5vw, 40px);
    overflow-wrap: anywhere;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 26px;
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.09),
        0 5px 16px rgba(15, 23, 42, 0.035);
    animation: premiumPaymentEnter 0.4s ease-out both;
}

.invoice-card::before,
.payment-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    border-radius: 26px 26px 0 0;
    background: linear-gradient(
        90deg,
        #818cf8 0%,
        #3b82f6 50%,
        #06b6d4 100%
    );
}

@keyframes premiumPaymentEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* عنوان صفحه */

.invoice-card h2,
.payment-card h2 {
    margin: 0 0 26px;
    color: #111827;
    font-family: "B Nazanin", Tahoma, sans-serif;
    font-size: clamp(25px, 4vw, 32px);
    font-weight: 900;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* جداکننده */

.invoice-card hr,
.payment-card hr {
    height: 1px;
    margin: 0 0 18px;
    border: 0;
    background: linear-gradient(
        90deg,
        transparent,
        #dbe3ef 15%,
        #dbe3ef 85%,
        transparent
    );
}

/* اطلاعات فاکتور و پرداخت */

.invoice-row,
.payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid #edf2f7;
    color: var(--pay-muted);
    font-size: 17px;
    line-height: 1.7;
    text-align: right;
}

.invoice-row strong,
.payment-row strong {
    max-width: 68%;
    color: #1e293b;
    font-weight: 800;
    text-align: left;
    overflow-wrap: anywhere;
}

/* مبلغ نهایی */

.invoice-price,
.payment-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 28px 0 24px;
    padding: 24px 16px;
    border: 1px solid #c7d2fe;
    border-radius: 21px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(191, 219, 254, 0.65),
            transparent 60%
        ),
        linear-gradient(145deg, #eff6ff, #eef2ff);
    color: #1d4ed8;
    font-size: clamp(26px, 5vw, 35px);
    font-weight: 900;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* وضعیت پرداخت */

.payment-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 16px 0;
    padding: 10px 20px;
    border: 1px solid #fde68a;
    border-radius: 999px;
    background: #fffbeb;
    color: #92400e;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* دکمه اصلی پرداخت */

.payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    margin-top: 28px;
    padding: 13px 20px;
    border: 1px solid #1d4ed8;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        #3b82f6 0%,
        #2563eb 52%,
        #1d4ed8 100%
    );
    color: #fff;
    font-family: "B Nazanin", Tahoma, sans-serif;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.6;
    text-align: center;
    cursor: pointer;
    box-shadow:
        0 10px 24px rgba(37, 99, 235, 0.23),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.payment-btn:focus-visible,
.invoice-link:focus-visible,
.test-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 4px;
}

.payment-btn:active {
    transform: scale(0.99);
}

@media (hover: hover) and (pointer: fine) {
    .payment-btn:hover {
        transform: translateY(-2px);
        background: linear-gradient(
            135deg,
            #2563eb,
            #1e40af
        );
        box-shadow:
            0 15px 30px rgba(37, 99, 235, 0.29),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* لینک بازگشت یا ادامه */

.invoice-link {
    display: inline-block;
    max-width: 100%;
    margin-top: 23px;
    color: #2563eb;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.8;
    text-decoration: none;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.invoice-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* دکمه تست پرداخت */

.test-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 46px;
    margin-top: 18px;
    padding: 10px 24px;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #166534;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.test-btn:hover {
    background: #dcfce7;
    border-color: #86efac;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 768px) {
    .invoice-page,
    .payment-page {
        align-items: flex-start;
        min-height: calc(100vh - 64px);
        min-height: calc(100dvh - 64px);
        padding: 30px 15px;
    }

    .invoice-card,
    .payment-card {
        width: 100%;
        max-width: 500px;
        padding: 28px 23px;
        border-radius: 22px;
    }

    .invoice-card::before,
    .payment-card::before {
        border-radius: 22px 22px 0 0;
    }

    .invoice-row,
    .payment-row {
        gap: 12px;
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .invoice-page,
    .payment-page {
        padding: 18px 11px;
    }

    .invoice-card,
    .payment-card {
        padding: 24px 17px;
        border-radius: 19px;
    }

    .invoice-card::before,
    .payment-card::before {
        border-radius: 19px 19px 0 0;
    }

    .invoice-card h2,
    .payment-card h2 {
        margin-bottom: 20px;
        font-size: 25px;
    }

    .invoice-row,
    .payment-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 12px 0;
    }

    .invoice-row strong,
    .payment-row strong {
        max-width: 100%;
        text-align: right;
    }

    .invoice-price,
    .payment-price {
        margin: 22px 0;
        padding: 20px 12px;
        border-radius: 17px;
    }

    .payment-btn {
        min-height: 53px;
        font-size: 18px;
    }
}

/* ============================================================
   PROFILE LINKS — PRESERVED
============================================================ */

.profile-mobile a[href="#edit-profile"] {
    color: #2563eb !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.profile-mobile a[href="#edit-profile"]:hover {
    color: #dc2626 !important;
}

.subscription-renew-link {
    color: #2563eb !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.subscription-renew-link:hover {
    color: #dc2626 !important;
}

/* کاهش حرکت برای کاربرانی که این گزینه را فعال کرده‌اند */

@media (prefers-reduced-motion: reduce) {
    .invoice-card,
    .payment-card {
        animation: none;
    }

    .payment-btn,
    .invoice-link,
    .test-btn,
    .profile-mobile a[href="#edit-profile"],
    .subscription-renew-link {
        transition: none;
    }
}


/* ============================================================
   SITE LOGOUT MODAL — MODERN FINTECH DESIGN
============================================================ */

.support-logout-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;

    background: rgba(15, 23, 42, 0.62);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);

    opacity: 0;
    transition: opacity 0.22s ease;
}

.support-logout-modal.show {
    display: flex;
    opacity: 1;
}

/* کارت تأیید خروج */

.support-logout-modal-box {
    position: relative;
    width: min(100%, 410px);
    max-width: 100%;
    min-width: 0;

    box-sizing: border-box;
    padding: 34px 30px 28px;

    direction: rtl;
    text-align: center;

    background: linear-gradient(
        155deg,
        #ffffff 0%,
        #fbfdff 100%
    );

    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 25px;

    box-shadow:
        0 30px 85px rgba(15, 23, 42, 0.24),
        0 8px 24px rgba(15, 23, 42, 0.08);

    font-family: "B Nazanin", Tahoma, sans-serif;

    animation: supportLogoutEnter 0.28s ease-out both;
}



/* انیمیشن ورود */

@keyframes supportLogoutEnter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* آیکون خروج */

.support-logout-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;
    margin: 0 auto 20px;

    box-sizing: border-box;

    border: 1px solid #fecaca;
    border-radius: 22px;

    background: linear-gradient(
        145deg,
        #fff1f2,
        #fee2e2
    );

    color: #dc2626;
    font-size: 30px;
    line-height: 1;

    box-shadow:
        0 8px 20px rgba(239, 68, 68, 0.10);
}

/* عنوان */

.support-logout-modal-title {
    margin: 0 0 12px;

    color: #172033;
    font-family: "B Nazanin", Tahoma, sans-serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.6;

    overflow-wrap: anywhere;
}

/* متن توضیح */

.support-logout-modal-text {
    margin: 0 0 28px;

    color: #64748b;
    font-family: "B Nazanin", Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.9;

    overflow-wrap: anywhere;
}

/* ردیف دکمه‌ها */

.support-logout-modal-actions {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;

    width: 100%;
    min-width: 0;
}

/* دکمه‌های پنجره */

.support-logout-modal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 1 1 0;
    min-width: 0;
    min-height: 50px;

    box-sizing: border-box;
    padding: 11px 16px;

    border: 1px solid transparent;
    border-radius: 14px;

    font-family: "B Nazanin", Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;

    cursor: pointer;
    overflow-wrap: anywhere;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.support-logout-modal-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 3px;
}

.support-logout-modal-button:active {
    transform: scale(0.98);
}

/* انصراف */

.support-logout-modal-cancel {
    border-color: #e2e8f0;
    background: linear-gradient(
        135deg,
        #ffffff,
        #f1f5f9
    );

    color: #334155;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.04);
}

@media (hover: hover) and (pointer: fine) {
    .support-logout-modal-cancel:hover {
        border-color: #cbd5e1;
        background: #eaf0f7;
        transform: translateY(-2px);
    }
}

/* تأیید خروج */

.support-logout-modal-confirm {
    border-color: #dc2626;
    background: linear-gradient(
        135deg,
        #f87171,
        #ef4444 55%,
        #dc2626
    );

    color: #ffffff;

    box-shadow:
        0 7px 17px rgba(220, 38, 38, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

@media (hover: hover) and (pointer: fine) {
    .support-logout-modal-confirm:hover {
        border-color: #b91c1c;
        background: linear-gradient(
            135deg,
            #ef4444,
            #b91c1c
        );

        box-shadow:
            0 10px 23px rgba(220, 38, 38, 0.27);

        transform: translateY(-2px);
    }
}

/* نمایش در موبایل */

@media (max-width: 480px) {
    .support-logout-modal {
        padding: 16px;
    }

    .support-logout-modal-box {
        width: 100%;
        padding: 29px 20px 22px;
        border-radius: 21px;
    }

    .support-logout-modal-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 17px;
        border-radius: 19px;
        font-size: 27px;
    }

    .support-logout-modal-title {
        font-size: 22px;
    }

    .support-logout-modal-text {
        margin-bottom: 23px;
        font-size: 17px;
    }

    .support-logout-modal-actions {
        gap: 9px;
    }

    .support-logout-modal-button {
        min-height: 48px;
        padding: 10px 11px;
        border-radius: 12px;
        font-size: 17px;
    }
}

/* رعایت تنظیم کاهش حرکت کاربر */

@media (prefers-reduced-motion: reduce) {
    .support-logout-modal,
    .support-logout-modal-box,
    .support-logout-modal-button {
        animation: none;
        transition: none;
    }
}



/* =========================
   SITE FOOTER — PREMIUM FINTECH
   ========================= */

.site-footer {
    position: relative;
    isolation: isolate;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 85% 0%,
            rgba(59, 130, 246, 0.12),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #111b27 0%,
            #172432 52%,
            #101923 100%
        );
    color: #d9e2ec;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    direction: rtl;
    font-family: inherit;
}

.site-footer,
.site-footer * {
    box-sizing: border-box;
}

.site-footer-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 46px 30px 38px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.5fr)
        repeat(3, minmax(0, 1fr))
        minmax(120px, 0.9fr);
    gap: 30px;
    align-items: start;
}

.site-footer-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer-column h3 {
    position: relative;
    margin: 0 0 23px;
    padding: 0 0 12px;
    color: #f8fafc;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.8;
}

.site-footer-column h3::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        #60a5fa,
        #2563eb
    );
}

.site-footer-column p {
    max-width: 100%;
    margin: 0;
    color: #aab8c8;
    font-size: 14px;
    font-weight: 400;
    line-height: 2.15;
    text-align: right;
    overflow-wrap: anywhere;
}

.site-footer-column a {
    max-width: 100%;
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 13px;
    color: #b8c5d4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.9;
    overflow-wrap: anywhere;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.site-footer-column a:last-child {
    margin-bottom: 0;
}

.site-footer-column a i {
    flex: 0 0 auto;
    margin-top: 4px;
    color: #60a5fa;
    font-size: 15px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.site-footer-column .enamad-placeholder {
    width: 124px;
    min-height: 124px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    color: #aab8c8;
    font-size: 13px;
    line-height: 1.9;
    text-align: center;
    overflow-wrap: anywhere;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.site-footer-bottom {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 19px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #8797a8;
    font-size: 12px;
    line-height: 1.9;
    text-align: right;
}

.site-footer-bottom > * {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* دسکتاپ و لپ‌تاپ */
@media (hover: hover) and (pointer: fine) {
    .site-footer-column a:hover {
        color: #ffffff;
        transform: translateX(-3px);
    }

    .site-footer-column a:hover i {
        color: #93c5fd;
    }

    .site-footer-column .enamad-placeholder:hover {
        border-color: rgba(96, 165, 250, 0.45);
        background: rgba(96, 165, 250, 0.07);
    }
}

/* تبلت */
@media (max-width: 1024px) {
    .site-footer-container {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
        gap: 34px 26px;
        padding: 38px 24px 32px;
    }

    .site-footer-column:first-child {
        grid-column: span 2;
    }

    .site-footer-column h3 {
        font-size: 16px;
    }

    .site-footer-bottom {
        padding-right: 24px;
        padding-left: 24px;
    }
}

/* موبایل */
@media (max-width: 768px) {
    .site-footer-container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
        padding: 32px 18px 28px;
    }

    .site-footer-column {
        width: 100%;
        min-width: 0;
        align-items: flex-start;
    }

    .site-footer-column:first-child {
        grid-column: 1 / -1;
    }

    .site-footer-column h3 {
        margin-bottom: 17px;
        padding-bottom: 9px;
        font-size: 15px;
    }

    .site-footer-column p {
        font-size: 13px;
        line-height: 2.1;
    }

    .site-footer-column a {
        gap: 7px;
        margin-bottom: 11px;
        font-size: 13px;
        line-height: 1.9;
    }

    .site-footer-column a i {
        font-size: 14px;
    }

    .site-footer-column .enamad-placeholder {
        width: 112px;
        min-height: 112px;
        border-radius: 14px;
    }

    .site-footer-bottom {
        padding: 17px 18px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        text-align: center;
    }

    .site-footer-bottom > * {
        width: 100%;
        text-align: center;
    }
}

/* موبایل باریک */
@media (max-width: 380px) {
    .site-footer-container {
        gap: 26px 14px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .site-footer-column h3 {
        font-size: 14px;
    }

    .site-footer-column p,
    .site-footer-column a {
        font-size: 12px;
    }

    .site-footer-column a {
        gap: 6px;
    }

    .site-footer-bottom {
        padding-right: 14px;
        padding-left: 14px;
    }
}

/* رعایت تنظیم کاهش حرکت کاربر */
@media (prefers-reduced-motion: reduce) {
    .site-footer-column a,
    .site-footer-column a i,
    .site-footer-column .enamad-placeholder {
        transition: none;
    }
}


/* جلوگیری از خروج افقی صفحه */

*{

    box-sizing:border-box;

}


html,body{

    width:100%;

    max-width:100%;

    overflow-x:hidden;

}




.info-page-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 35px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    line-height: 2;
    text-align: right;
}

.info-page-container h2 {
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
}

.info-page-container h3 {
    margin-top: 25px;
    font-size: 20px;
}

.info-page-container p {
    font-size: 16px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {

    .info-page-container {
        width: 95%;
        padding: 20px;
    }

    .info-page-container h2 {
        font-size: 22px;
    }

}

/* ============================================================
   EDUCATION PAGE — MODERN DESIGN SYSTEM
   ============================================================ */

.education-container,
.education-page-container {
    width: 100%;
    max-width: 1280px;
    margin: 5px auto 0;
    padding: 24px 24px 60px;
    box-sizing: border-box;
    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;
}


/* ============================================================
   HEADER
   ============================================================ */

.education-page-header {

    position: relative;
    margin: -25px 0 25px;
    padding: 20px 28px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.97),
            rgba(248, 250, 252, 0.94)
        );

    border: 1px solid rgba(148, 163, 184, 0.16);

    border-radius: 22px;

    box-shadow:
        0 10px 35px rgba(15, 23, 42, 0.06);

    overflow: hidden;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;
}


.education-page-header::before {

    content: "";

    position: absolute;

    top: -90px;
    left: -70px;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(37, 99, 235, 0.08),
            transparent 70%
        );

    pointer-events: none;
}


.education-page-header::after {

    content: "";

    position: absolute;

    right: -80px;
    bottom: -110px;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(15, 118, 110, 0.07),
            transparent 70%
        );

    pointer-events: none;
}


.education-page-header h1 {

    position: relative;

    z-index: 1;

    margin: 0 0 7px;

    color: #0f172a;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;

    font-size: 27px;

    font-weight: 700;

    line-height: 1.6;
}


.education-page-header p {

    position: relative;

    z-index: 1;

    max-width: 760px;

    margin: 0 auto;

    color: #64748b;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;

    font-size: 14px;

    font-weight: 400;

    line-height: 1.8;
}


/* ============================================================
   CATEGORY / VIDEO GRID
   ============================================================ */

.education-category-grid {

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 18px;

    width: 100%;

    margin: 0;

    transform: none;
}


/* ============================================================
   CATEGORY / VIDEO CARD
   ============================================================ */

.education-category-card {

    position: relative;

    display: flex;

    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    text-decoration: none;

    color: inherit;

    background:
        rgba(255, 255, 255, 0.98);

    border: 1px solid rgba(148, 163, 184, 0.17);

    border-radius: 18px;

    box-shadow:
        0 7px 22px rgba(15, 23, 42, 0.055);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;
}


.education-category-card::after {

    content: "";

    position: absolute;

    inset: 0;

    border-radius: inherit;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.16),
            transparent 45%
        );

    opacity: 0;

    transition:
        opacity 0.25s ease;
}


button.education-category-card {

    width: 100%;

    padding: 0;

    border: 1px solid rgba(148, 163, 184, 0.17);

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;

    font-size: inherit;

    text-align: inherit;

    cursor: pointer;

    appearance: none;

    -webkit-appearance: none;
}


.education-category-card:hover {

    transform:
        translateY(-5px);

    border-color:
        rgba(37, 99, 235, 0.20);

    box-shadow:
        0 15px 34px rgba(15, 23, 42, 0.10);
}


.education-category-card:hover::after {

    opacity: 1;
}


/* ============================================================
   VIDEO PREVIEW
   ============================================================ */

.education-video-preview {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #0f172a 0%,
            #172554 48%,
            #0f766e 100%
        );
}


.education-video-frame {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease,
        filter 0.3s ease;
}


.education-category-card:hover
.education-video-frame {

    transform:
        scale(1.035);

    filter:
        brightness(0.94);
}


.education-video-source {

    display: none !important;
}


/* ============================================================
   PLAY ICON
   ============================================================ */

.education-video-play-icon {

    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding-right: 1px;

    border:
        1px solid rgba(255, 255, 255, 0.32);

    border-radius: 50%;

    background:
        rgba(15, 23, 42, 0.70);

    color:
        #ffffff;

    font-family:
        Tahoma,
        sans-serif;

    font-size: 17px;

    box-shadow:
        0 9px 22px rgba(0, 0, 0, 0.23);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);

    pointer-events: none;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.education-category-card:hover
.education-video-play-icon {

    transform:
        translate(-50%, -50%)
        scale(1.08);

    background:
        rgba(37, 99, 235, 0.88);

    box-shadow:
        0 11px 27px rgba(37, 99, 235, 0.25);
}


/* ============================================================
   CATEGORY CONTENT
   ============================================================ */

.education-category-content {

    min-height: 66px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 11px 10px 13px;

    box-sizing: border-box;

    text-align: center;

    background:
        rgba(255, 255, 255, 0.98);

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;
}


.education-category-content h2 {

    margin: 0;

    color:
        #0f172a;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;

    font-size: 16px;

    font-weight: 700;

    line-height: 1.55;
}

.education-category-content > div {

    font-size: 18px !important;
}

.education-category-content > div:last-child {

    font-size: 22px !important;
}


/* ============================================================
   PLACEHOLDER
   ============================================================ */

.education-category-image-placeholder {

    width: 100%;
    height: 100%;

    min-height: 150px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    text-align: center;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 255, 255, 0.18),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #0f766e,
            #2563eb
        );

    color:
        #ffffff;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;

    font-size: 16px;

    font-weight: 700;

    line-height: 1.6;
}


/* ============================================================
   OLD COURSE GRID
   ============================================================ */

.education-course-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;

    width: 100%;
}


.education-course-card {

    overflow: hidden;

    background:
        #ffffff;

    border:
        1px solid rgba(148, 163, 184, 0.16);

    border-radius: 20px;

    box-shadow:
        0 9px 27px rgba(15, 23, 42, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;
}


.education-course-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        0 17px 38px rgba(15, 23, 42, 0.11);
}


.education-course-image {

    width: 100%;

    height: 220px;

    object-fit: cover;
}


.education-course-image-placeholder {

    height: 220px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #0f766e,
            #2563eb
        );

    color:
        #ffffff;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;

    font-size: 21px;

    font-weight: 700;
}


.education-course-content {

    padding: 20px;

}


.education-course-content h2 {

    margin: 0 0 12px;

    color:
        #111827;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;

    font-size: 19px;

    font-weight: 700;

    line-height: 1.6;
}


.education-course-description {

    min-height: 55px;

    color:
        #64748b;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;

    font-size: 14px;

    line-height: 1.8;
}


.education-course-info {

    margin: 18px 0;

}


/* ============================================================
   BADGES
   ============================================================ */

.education-free-badge,
.education-paid-badge {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 5px 12px;

    border-radius: 999px;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;

    font-size: 13px;

    font-weight: 700;

    line-height: 1.4;
}


.education-free-badge {

    background:
        #dcfce7;

    color:
        #166534;
}


.education-paid-badge {

    background:
        #dbeafe;

    color:
        #1d4ed8;
}


/* ============================================================
   PRICE
   ============================================================ */

.education-price-box {

    margin: 18px 0;

    padding: 14px;

    background:
        #f8fafc;

    border:
        1px solid rgba(148, 163, 184, 0.14);

    border-radius: 14px;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;
}


.education-old-price {

    text-decoration:
        line-through;

    color:
        #94a3b8;

    font-size:
        13px;
}


.education-discount {

    margin: 5px 0;

    color:
        #dc2626;

    font-size:
        13px;

    font-weight:
        700;
}


.education-final-price {

    color:
        #0f766e;

    font-size:
        20px;

    font-weight:
        700;
}


.free-price {

    color:
        #16a34a;
}


/* ============================================================
   COURSE BUTTON
   ============================================================ */

.education-course-button {

    display: block;

    padding: 10px 15px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #0f766e,
            #0d9488
        );

    color:
        #ffffff;

    text-align: center;

    text-decoration: none;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;

    font-size: 14px;

    font-weight: 700;

    box-shadow:
        0 6px 16px rgba(15, 118, 110, 0.17);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.education-course-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 22px rgba(15, 118, 110, 0.23);
}


/* ============================================================
   EMPTY BOX
   ============================================================ */

.education-empty-box {

    grid-column:
        1 / -1;

    padding:
        48px 28px;

    text-align:
        center;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.98),
            rgba(248, 250, 252, 0.96)
        );

    border:
        1px solid rgba(148, 163, 184, 0.16);

    border-radius:
        20px;

    box-shadow:
        0 9px 27px rgba(15, 23, 42, 0.055);

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;
}


.education-empty-box h3 {

    margin:
        0 0 7px;

    color:
        #0f172a;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;

    font-size:
        19px;

    font-weight:
        700;
}


.education-empty-box p {

    margin:
        0;

    color:
        #64748b;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;

    font-size:
        14px;

    line-height:
        1.8;
}


/* ============================================================
   VIDEO MODAL
   ============================================================ */

.education-video-modal {

    position:
        fixed;

    inset:
        0;

    z-index:
        99999;

    display:
        none;

    align-items:
        center;

    justify-content:
        center;

    padding:
        24px;

    box-sizing:
        border-box;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;
}


.education-video-modal.is-open {

    display:
        flex;
}


.education-video-modal-overlay {

    position:
        absolute;

    inset:
        0;

    background:
        rgba(2, 6, 23, 0.82);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    cursor:
        pointer;
}


.education-video-modal-content {

    position:
        relative;

    z-index:
        2;

    width:
        100%;

    max-width:
        1000px;

    max-height:
        92vh;

    padding:
        22px;

    box-sizing:
        border-box;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f8fafc
        );

    border:
        1px solid rgba(255, 255, 255, 0.65);

    border-radius:
        22px;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.42);
}


.education-video-modal-close {

    position:
        absolute;

    top:
        9px;

    left:
        11px;

    z-index:
        5;

    width:
        40px;

    height:
        40px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        0;

    border:
        1px solid rgba(255, 255, 255, 0.18);

    border-radius:
        50%;

    background:
        #0f172a;

    color:
        #ffffff;

    font-family:
        Tahoma,
        sans-serif;

    font-size:
        25px;

    line-height:
        1;

    cursor:
        pointer;
}


.education-video-modal-close:hover {

    background:
        #dc2626;
}


.education-video-modal-title {

    margin:
        0 52px 15px 0;

    color:
        #0f172a;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;

    font-size:
        19px;

    font-weight:
        700;

    line-height:
        1.6;
}


.education-video-modal-player {

    display:
        block;

    width:
        100%;

    height:
        auto;

    max-height:
        75vh;

    aspect-ratio:
        16 / 9;

    object-fit:
        contain;

    border-radius:
        16px;

    background:
        #020617;

    outline:
        none;
}


.education-video-player-shell {

    position:
        relative;

    overflow:
        hidden;

    width:
        100%;

    border-radius:
        16px;

    background:
        #020617;

    box-shadow:
        0 18px 55px rgba(2, 6, 23, 0.22);
}


.education-video-player-shell
.education-video-modal-player {

    margin:
        0;
}


.education-video-controls {

    position:
        absolute;

    right:
        0;

    bottom:
        0;

    left:
        0;

    z-index:
        4;

    padding:
        42px 18px 14px;

    background:
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(2, 6, 23, 0.18) 22%,
            rgba(2, 6, 23, 0.92) 100%
        );

    opacity:
        1;

    transition:
        opacity 0.25s ease;
}


.education-video-progress {

    width:
        100%;

    padding:
        8px 0;

    cursor:
        pointer;
}


.education-video-progress-track {

    position:
        relative;

    width:
        100%;

    height:
        4px;

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, 0.25);
}


.education-video-progress-buffer,
.education-video-progress-fill {

    position:
        absolute;

    top:
        0;

    right:
        auto;

    bottom:
        0;

    left:
        0;

    width:
        0;

    border-radius:
        inherit;
}


.education-video-progress-buffer {

    background:
        rgba(255, 255, 255, 0.28);
}


.education-video-progress-fill {

    background:
        #ffffff;
}


.education-video-progress-thumb {

    position:
        absolute;

    top:
        50%;

    left:
        0;

    width:
        12px;

    height:
        12px;

    border-radius:
        50%;

    background:
        #ffffff;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.35);

    transform:
        translate(-50%, -50%);
}


.education-video-controls-row {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        16px;
}


.education-video-controls-left,
.education-video-controls-right {

    display:
        flex;

    align-items:
        center;

    gap:
        8px;
}


.education-video-control-button,
.education-video-seek-button,
.education-video-speed-button,
.education-video-fullscreen-button {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    flex:
        0 0 auto;

    border:
        0;

    color:
        #ffffff;

    background:
        transparent;

    cursor:
        pointer;

    -webkit-tap-highlight-color:
        transparent;
}


.education-video-control-button {

    width:
        42px;

    height:
        42px;

    border-radius:
        50%;

    background:
        rgba(255, 255, 255, 0.12);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);

    font-size:
        17px;
}


.education-video-seek-button {

    width:
        44px;

    height:
        44px;

    padding:
        0;
}


.education-video-seek-ring {

    position:
        relative;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        39px;

    height:
        39px;

    border:
        2px solid rgba(255, 255, 255, 0.82);

    border-right-color:
        transparent;

    border-radius:
        50%;

    transform:
        rotate(-42deg);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}


.education-video-seek-ring-forward {

    transform:
        rotate(138deg);
}


.education-video-seek-number {

    color:
        #ffffff;

    font-family:
        Tahoma,
        sans-serif;

    font-size:
        13px;

    font-weight:
        700;

    transform:
        rotate(42deg);
}


.education-video-seek-ring-forward
.education-video-seek-number {

    transform:
        rotate(-138deg);
}


.education-video-time {

    display:
        flex;

    align-items:
        center;

    gap:
        5px;

    margin-right:
        5px;

    color:
        rgba(255, 255, 255, 0.9);

    direction:
        ltr;

    font-family:
        Tahoma,
        sans-serif;

    font-size:
        12px;

    white-space:
        nowrap;
}


.education-video-time-divider {

    color:
        rgba(255, 255, 255, 0.45);
}


.education-video-speed-button {

    min-width:
        46px;

    height:
        34px;

    padding:
        0 10px;

    border:
        1px solid rgba(255, 255, 255, 0.22);

    border-radius:
        10px;

    background:
        rgba(255, 255, 255, 0.10);

    font-family:
        Tahoma,
        sans-serif;

    font-size:
        12px;

    font-weight:
        700;
}


.education-video-fullscreen-button {

    width:
        38px;

    height:
        38px;

    border-radius:
        10px;

    background:
        rgba(255, 255, 255, 0.10);

    font-size:
        19px;
}


.education-video-control-button:hover,
.education-video-speed-button:hover,
.education-video-fullscreen-button:hover {

    background:
        rgba(255, 255, 255, 0.18);
}


.education-video-seek-button:hover
.education-video-seek-ring {

    border-color:
        #ffffff;

    border-right-color:
        transparent;

    transform:
        rotate(-42deg)
        scale(1.06);
}


.education-video-seek-button:hover
.education-video-seek-ring-forward {

    transform:
        rotate(138deg)
        scale(1.06);
}


/* ============================================================
   VIDEO DETAIL PAGE
   ============================================================ */

.education-video-player-container {

    width:
        100%;

    max-width:
        950px;

    margin:
        35px auto;

    padding:
        0 10px;

    box-sizing:
        border-box;

    position:
        relative;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;
}


.education-video-player {

    display:
        block;

    width:
        100%;

    max-width:
        950px;

    border-radius:
        19px;

    background:
        #020617;

    box-shadow:
        0 17px 42px rgba(15, 23, 42, 0.13);
}

.education-video-play-button {

    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 70px;
    height: 70px;

    border-radius: 50%;

    border: none;

    background: rgba(0,0,0,0.55);

    color: white;

    font-size: 32px;

    cursor: pointer;

    z-index: 5;

}


.education-video-open-button {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    margin-top:
        13px;

    padding:
        9px 16px;

    border-radius:
        11px;

    background:
        linear-gradient(
            135deg,
            #0f766e,
            #0d9488
        );

    color:
        #ffffff;

    text-align:
        center;

    font-family:
        "B Nazanin",
        Tahoma,
        sans-serif;

    font-size:
        14px;

    font-weight:
        700;

    text-decoration:
        none;
}


/* ============================================================
   RESPONSIVE — LAPTOP
   ============================================================ */

@media (max-width: 1100px) {

    .education-container,
    .education-page-container {

        max-width:
            1100px;

        padding-left:
            26px;

        padding-right:
            26px;
    }


    .education-category-grid {

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap:
            16px;
    }

}


/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 850px) {

    .education-container,
    .education-page-container {

        padding-top:
            24px;
    }


    .education-page-header {

        padding:
            22px 18px;

        border-radius:
            19px;
    }


    .education-page-header h1 {

        font-size:
            25px;
    }


    .education-category-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap:
            14px;
    }


    .education-course-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .education-container,
    .education-page-container {

        width:
            100%;

        margin:
            32px auto 0;

        padding:
            16px 10px 40px;
    }


    .education-page-header {

        margin-bottom:
            18px;

        padding:
            20px 14px;

        border-radius:
            17px;
    }


    .education-page-header h1 {

        font-size:
            22px;

        line-height:
            1.55;
    }


    .education-page-header p {

        font-size:
            13px;

        line-height:
            1.75;
    }


    .education-category-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            11px;
    }


    .education-category-card {

        border-radius:
            14px;
    }


    .education-video-preview {

        aspect-ratio:
            16 / 10;
    }


    .education-video-play-icon {

        width:
            40px;

        height:
            40px;

        font-size:
            15px;
    }


    .education-category-content {

        min-height:
            59px;

        padding:
            9px 6px 11px;
    }


    .education-category-content h2 {

        font-size:
            14px;

        line-height:
            1.55;
    }


    .education-course-grid {

        grid-template-columns:
            1fr;

        gap:
            15px;
    }


    .education-course-card {

        border-radius:
            17px;
    }


    .education-course-image,
    .education-course-image-placeholder {

        height:
            195px;
    }


    .education-course-content {

        padding:
            17px;
    }


    .education-video-modal {

        padding:
            8px;
    }


    .education-video-modal-content {

        padding:
            13px;

        border-radius:
            16px;
    }


    .education-video-modal-close {

        width:
            37px;

        height:
            37px;

        top:
            7px;

        left:
            7px;

        font-size:
            23px;
    }


    .education-video-modal-title {

        margin-right:
            43px;

        font-size:
            16px;
    }


    .education-video-modal-player {

        max-height:
            76vh;

        border-radius:
            10px;
    }


    .education-video-player-container {

        margin-top:
            20px;

        padding:
            0;
    }


    .education-video-player {

        border-radius:
            13px;
    }


    .education-empty-box {

        padding:
            38px 16px;

        border-radius:
            16px;
    }

}


/* ============================================================
   RESPONSIVE — SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .education-container,
    .education-page-container {

        margin-top:
            26px;

        padding-left:
            8px;

        padding-right:
            8px;
    }


    .education-category-grid {

        gap:
            8px;
    }


    .education-category-card {

        border-radius:
            12px;
    }


    .education-category-content h2 {

        font-size:
            13px;
    }


    .education-video-play-icon {

        width:
            36px;

        height:
            36px;

        font-size:
            14px;
    }

}


/* ============================================================
   ACCESSIBILITY / REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .education-category-card,
    .education-video-frame,
    .education-video-play-icon,
    .education-course-card,
    .education-course-button,
    .education-video-modal-close {

        transition:
            none;
    }

}


/* ============================================================
   EDUCATION PAYMENT BUTTON
   ============================================================ */

.education-payment-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 150px;
    min-height: 46px;

    padding: 10px 28px;

    border: none;
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #2563eb 0%,
            #4f46e5 55%,
            #7c3aed 100%
        );

    color: #ffffff;

    font-family: inherit;
    font-size: 18px;
    font-weight: 800;

    line-height: 1;
    text-align: center;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.24);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}


.education-payment-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 26px rgba(37, 99, 235, 0.32);

    filter: brightness(1.06);
}


.education-payment-button:active {
    transform: translateY(0);

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.22);
}


.education-payment-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 3px;
}


@media (max-width: 600px) {

    .education-payment-button {
        width: 100%;
        min-height: 44px;
        font-size: 14px;
    }

}

.education-purchase-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;

    direction: rtl;
}

.education-purchase-modal.is-open {
    display: flex;
}

.education-purchase-modal-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(37, 99, 235, 0.10),
            transparent 42%
        ),
        rgba(15, 23, 42, 0.68);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.education-purchase-modal-content {
    position: relative;
    z-index: 1;

    width: min(470px, 100%);
    box-sizing: border-box;

    padding: 38px 32px 30px;

    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f8fafc 100%
        );

    text-align: center;

    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.30),
        0 8px 24px rgba(15, 23, 42, 0.12);

    animation: educationPurchaseModalIn 0.22s ease-out;
}

@keyframes educationPurchaseModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.education-purchase-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 1px solid #e2e8f0;
    border-radius: 50%;

    background: #f8fafc;
    color: #475569;

    font-family: inherit;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.education-purchase-modal-close:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
    transform: rotate(4deg);
}

.education-purchase-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;

    margin: 0 auto 18px;

    border: 1px solid #dbeafe;
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #eff6ff,
            #dbeafe
        );

    color: #2563eb;

    font-size: 34px;

    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.12);
}

.education-purchase-modal-content h2 {
    margin: 0 0 12px;

    color: #172554;

    font-size: 23px;
    font-weight: 800;
    line-height: 1.6;
}

.education-purchase-modal-content p {
    max-width: 390px;

    margin: 0 auto;

    color: #475569;

    font-size: 15px;
    font-weight: 500;
    line-height: 2;
}

.education-purchase-modal-actions {
    display: flex;
    align-items: stretch;
    justify-content: space-between;

    gap: 12px;

    width: 100%;

    margin-top: 28px;

    direction: ltr;
}

.education-purchase-modal-actions form {
    display: block;

    width: calc(100% - 6px);

    margin: 0;
    padding: 0;
}

.education-purchase-modal-buy,
.education-purchase-modal-cancel {
    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    width: 100%;
    height: 48px;

    margin: 0;
    padding: 0 18px;

    border-radius: 13px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;

    cursor: pointer;
}

.education-purchase-modal-buy {
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: #ffffff;

    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.25);
}

.education-purchase-modal-buy:hover {
    background:
        linear-gradient(
            135deg,
            #1d4ed8,
            #1e40af
        );

    transform: translateY(-1px);

    box-shadow:
        0 12px 24px rgba(37, 99, 235, 0.30);
}

.education-purchase-modal-cancel {
    background: #f1f5f9;

    color: #334155;

    border: 1px solid #e2e8f0;

    box-shadow:
        0 4px 10px rgba(15, 23, 42, 0.05);
}

.education-purchase-modal-cancel:hover {
    background: #e2e8f0;

    transform: translateY(-1px);
}

.education-purchase-modal-buy:active,
.education-purchase-modal-cancel:active {
    transform: translateY(0);
}

@media (max-width: 600px) {

    .education-purchase-modal {
        padding: 16px;
    }

    .education-purchase-modal-content {
        width: 100%;
        padding: 34px 20px 22px;

        border-radius: 20px;
    }

    .education-purchase-modal-icon {
        width: 60px;
        height: 60px;

        margin-bottom: 15px;

        border-radius: 17px;

        font-size: 30px;
    }

    .education-purchase-modal-content h2 {
        font-size: 20px;
    }

    .education-purchase-modal-content p {
        font-size: 14px;
        line-height: 1.9;
    }

    .education-purchase-modal-actions {
        gap: 10px;

        margin-top: 24px;
    }

    .education-purchase-modal-buy,
    .education-purchase-modal-cancel {
        height: 46px;

        font-size: 14px;
    }
}


/* ============================================================
   SUBSCRIPTION REQUIRED MODAL BUTTONS — PREMIUM FINTECH
   ============================================================ */

#subscription-required-buy,
#subscription-required-close {
    width: 140px;
    min-height: 44px;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
        background-color 0.2s ease,
        background-image 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* خرید اشتراک */
#subscription-required-buy {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #2563eb 0%,
        #1d4ed8 55%,
        #1e40af 100%
    );
    border-color: rgba(29, 78, 216, 0.5);
    box-shadow:
        0 4px 10px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* بستن پنجره */
#subscription-required-close {
    color: #334155;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f1f5f9 100%
    );
    border-color: #dbe3ed;
    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* وضعیت فوکوس برای صفحه‌کلید */
#subscription-required-buy:focus-visible,
#subscription-required-close:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.65);
    outline-offset: 3px;
}

/* افکت هاور فقط برای دستگاه‌های دارای ماوس */
@media (hover: hover) and (pointer: fine) {
    #subscription-required-buy:hover {
        color: #ffffff;
        background: linear-gradient(
            135deg,
            #1d4ed8 0%,
            #1e40af 55%,
            #1e3a8a 100%
        );
        border-color: #1e40af;
        transform: translateY(-2px);
        box-shadow:
            0 8px 18px rgba(37, 99, 235, 0.27),
            inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }

    #subscription-required-close:hover {
        color: #1e40af;
        background: #eff6ff;
        border-color: #bfdbfe;
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.09);
    }
}

/* حالت فشردن دکمه */
#subscription-required-buy:active,
#subscription-required-close:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.1);
}

/* موبایل */
@media (max-width: 480px) {
    #subscription-required-buy,
    #subscription-required-close {
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 11px;
        font-size: 13px;
    }
}

/* رعایت تنظیم کاهش حرکت کاربر */
@media (prefers-reduced-motion: reduce) {
    #subscription-required-buy,
    #subscription-required-close {
        transition: none;
    }
}


