* {
    margin: 0;
    font-family: 'IranSans', 'Gilroy-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

body {
    font-family: 'IranSans', 'Gilroy-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#dark {
    background-color: #202020;
}

#light {
    background-color: #ffffff;
}

/* 🎨 فونت فارسی IranSans */
@font-face {
    font-family: 'IranSans';
    src: url(/static/media/IranSans.b405362106aecf6bb79b.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IranSans';
    src: url(/static/media/irsaniansans.767a6ff251a0cddf1531.ttf) format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* فونت‌های Gilroy (انگلیسی) */
@font-face {
    font-family: 'Gilroy';
    src: url(/static/media/Gilroy-Black.bf3a5f799e6799d48062.ttf) format('truetype');
}

@font-face {
    font-family: 'Gilroy-Regular';
    /*400*/
    src: url(/static/media/Gilroy-Regular.b91b0127c56a8e5f9e83.ttf) format('truetype');
}

@font-face {
    font-family: 'Gilroy-Medium';
    /*500*/
    src: url(/static/media/Gilroy-Medium.f9f832b0ed3f1ab138c9.ttf) format('truetype');
}

@font-face {
    font-family: 'Gilroy-SemiBold';
    /*600*/
    src: url(/static/media/Gilroy-SemiBold.6780292641f883b3dad3.ttf) format('truetype');
}

@font-face {
    font-family: 'Gilroy-Bold';
    /*700*/
    src: url(/static/media/Gilroy-Bold.b900325e44ec0c673e88.ttf) format('truetype');
}





.navbar_profileDiv__6MvIl {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.navbar_headerAvatar__y9b7t {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8c36a;
    box-shadow: 0 0 0 2px rgba(232, 195, 106, 0.35);
    flex-shrink: 0;
}
.navbar_headerAvatarFallback__jCNRD {
    height: 28px;
    width: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.navbar_profileDiv__6MvIl:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar_profileImage__OwgyF, .navbar_avatarImage__oaNfj {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.navbar_profileName__qwlWZ {
    color: var(--text-color);
    font-size: 14px;
}

.navbar_arrowIcon__1qXn6 {
    width: 16px;
    height: 16px;
}


.navbar_userName__71GcJ {
    color: white;
    font-size: 14px;
}
.navbar_extraStyles__L7y7A {
    margin: 10px;
}


.navbar_loginButton__Gwe9b {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar_loginButton__Gwe9b:hover {
    background-color: var(--primary-color-dark);
}

.navbar_profileContainer__OjEAg {
    display: flex;
    align-items: center;
    gap: 8px;
}


.navbar_emptyProfile__mEdGx {
    width: 10px;
    height: 10px;
    padding: 10px;
    border-radius: 50%;
    background-color: #4c4d4c;
}

.navbar_profileOptionModalStyle__\+d7YM {
    outline: none;
    width: 240px;
    position: fixed;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    /* RTL: left برای سمت چپ */
    left: 20px;
    right: auto;
    top: 70px;
    padding-top: 0.8rem;
    /* 🎨 پس‌زمینه - توسط inline style کنترل میشه */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    /* z-index بالا */
    z-index: 1000;
}

.navbar_modelHeading__ElUp- {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-family: Gilroy-Medium, sans-serif;
}


.navbar_listStyle__bcLQs {
    display: flex;
    margin: 10px;
    cursor: pointer;
}

.navbar_listStyle__bcLQs:hover {
    transform: scale(1.4);
}

.navbar_dropdownMargin__9EWtX {
    width: 20%;
}

.navbar_sync__\+A76u {
    animation: navbar_rotation__lQ3\+h infinite 2s linear
}

@keyframes navbar_rotation__lQ3\+h {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.navbar_modalIcon__4ErDa {
    height: 24px;
    width: 24px;
}

.navbar_modalText__JyEa5 {
    font-size: 20px;
}

.navbar_Edit__hLJ\+V {
    border: none;
    background-color: #2e8fd6;
    color: white;
    font-size: 20px;
    line-height: 24px;
    font-family: "Gilroy-SemiBold", serif;
    max-width: 500px !important;
}

.navbar_Edit__hLJ\+V:focus, .navbar_Edit__hLJ\+V:focus {
    outline: none;
}

.navbar_successAlertBox__icubX {
    margin-left: 20px;
    padding-left: 10px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    height: 40px;
    width: 30%;
    background-color: rgba(91, 188, 115, 0.1);
    color: #5BBC73;
}

.navbar_errorAlertBox__zFzHw {
    background-color: rgba(197, 78, 48, 0.1);
    color: #C54E30;
}

.navbar_option__UoWYf {
    height: auto;
    width: auto;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    border-radius: 10px;
    font-family: IranSans, Vazirmatn, Tahoma, sans-serif;
    min-width: 208px;
}

.navbar_projectMenu__dKUuM {
    direction: rtl;
    padding: 6px 0;
    overflow: hidden;
    box-sizing: border-box;
}

.navbar_projectMenu__dKUuM.navbar_darkTitleModel__uTl8e {
    background: #252a33;
    color: #f3f4f6;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

.navbar_projectMenu__dKUuM.navbar_lightTitleModel__Po5h1 {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

.navbar_item__r5XFf {
    font-size: 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    box-sizing: border-box;
    text-align: right;
}

.navbar_projectMenu__dKUuM .navbar_item__r5XFf {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    min-height: 42px;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 10px 14px !important;
    margin: 0 !important;
    gap: 12px;
    border: none !important;
}

.navbar_menuDivider__EXqiP {
    height: 1px;
    margin: 4px 10px;
    background: rgba(148, 163, 184, 0.35);
}

.navbar_projectMenu__dKUuM.navbar_darkTitleModel__uTl8e .navbar_menuDivider__EXqiP {
    background: rgba(255, 255, 255, 0.1);
}

.navbar_renameDivMargin__lUnvX {
    padding-right: 14px;
    margin-top: 0;
}

.navbar_deleteDivMargin__9FWBx {
    padding-right: 14px;
}

.navbar_editProfileMargin__irTNy {
    padding-right: 3.5rem;
    /*padding-top: 0.5rem;*/
    margin-bottom: 0.5rem;
}

.navbar_inRowText__84s5b {
    width: 70%;
}

.navbar_logOutMargin__MBd4U {
    padding-right: 7.3rem;
}

.navbar_darkItem__aF4FC {
    border: none;
}

.navbar_lightItem__cngCI {
    border: none;
}

.navbar_lightItem__cngCI:hover {
    background: #f3f4f6;
}

.navbar_darkItem__aF4FC:hover {
    background: rgba(255, 255, 255, 0.08);
}

.navbar_projectMenu__dKUuM .navbar_icon__OoySh {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain;
    display: block;
}

.navbar_projectMenu__dKUuM .navbar_renameText__Y4LFz,
.navbar_projectMenu__dKUuM .navbar_deleteText__KAkJF {
    flex: 1 1 auto;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.navbar_projectMenu__dKUuM .navbar_dangerItem__5ncTh .navbar_deleteText__KAkJF {
    color: #f87171;
}

.navbar_projectMenu__dKUuM.navbar_lightTitleModel__Po5h1 .navbar_dangerItem__5ncTh .navbar_deleteText__KAkJF {
    color: #dc2626;
}

.navbar_projectMenu__dKUuM .navbar_dangerItem__5ncTh:hover {
    background: rgba(220, 38, 38, 0.12);
}

.navbar_icon__OoySh {
    width: 18px;
    height: 18px;
    margin: 0;
}

.navbar_editProfileModal__jUYgL {
    outline: none;
    display: flex;
    flex-direction: column;
    width: min(560px, 92vw);
    max-height: 88vh;
    overflow: hidden;
    border-radius: 16px;
    padding: 16px 16px 12px;
    /* هماهنگ با سایه‌های نئونی آبی‌رنگ صفحهٔ home */
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12), 0 20px 60px rgba(37, 99, 235, 0.2), 0 12px 40px rgba(0,0,0,.25);
    position: relative;
    direction: rtl;
}

.navbar_lightEditProfileModal__OG08x {
    background: #ffffff;
    color: #111827;
}

.navbar_darkEditProfileModal__tvHoe {
    /* هماهنگ با پالت رنگ کلاسیک بقیهٔ برنامه (مثلاً ExamplesGallery/SubscriptionModal) */
    background: #2d3748;
    color: #f5f5f5;
}

.navbar_profileImg__GUx-R {
    display: flex;
    height: 100px;
    width: 100px;
    border-radius: 90px;
    margin-left: 20px;
    align-items: flex-end;
    justify-content: flex-end;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* 🎨 Wrapper جدید برای نمایش تصویر پروفایل */
.navbar_profileImageWrapper__QEPmI {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}

.navbar_profileImgDisplay__EkcJW {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0071C5;
    box-shadow: 0 4px 12px rgba(0, 113, 197, 0.2);
}

.navbar_profileImgPlaceholder__YIZC8 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f4f8 0%, #e1e8ed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed #ccc;
    /* هماهنگ با سایه‌های نئونی صفحهٔ home */
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08), 0 8px 20px rgba(37, 99, 235, 0.15);
    transition: box-shadow 0.3s ease;
}

.navbar_profileImgPlaceholder__YIZC8:hover {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 10px 28px rgba(37, 99, 235, 0.3);
}

.navbar_profileImgLoader__mIU2U {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 10px;
}

.navbar_loader__fSSyv {
    align-items: center;
    justify-content: center;
}

.navbar_editProfileIcon__Oli4p {
    height: 30px;
    width: 30px;
    cursor: pointer;
}

.navbar_inputExtraStyle__KeYWy {
    width: 28%;
}

.navbar_emailInputExtraStyle__kBT1T {
    width: 60%;
}

.navbar_buttonSection__z40Gg {
    display: flex;
}

.navbar_crossIconDiv__fAT4G {
    display: flex;
    justify-content: flex-end;
    margin: 20px 20px 0 0;
}

.navbar_crossIcon__QBn0H {
    height: 13px !important;
    width: 13px !important;
    cursor: pointer;
    padding: 5px;
}


.navbar_logoutModal__17JYy {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar_logoutModalBox__TuNvy {
    outline: none;
    margin: 0 20px 0 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 170px;
    width: 400px;
    border-radius: 6px;
}

.navbar_darkLogoutModalBox__rqrmG {
    background-color: #303030;
}

.navbar_lightLogoutModalBox__jXxaf {
    background-color: #ffffff;
}

.navbar_cancel__6vnjS {
    margin-right: 0px !important;
}

.navbar_logoutButtonsExtraStyle__7mH5Q {
    height: 40px !important;
    width: 100px !important;
    font-size: 18px;
    margin: 2px;
}

.navbar_buttonStyle__kKd\+4 {
    margin: 2px !important;
}

.navbar_logoutButtonsDiv__8omyk {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    top: 50px;
    right: 5px;
}


.navbar_darkLogoutMessageModal__GRpB- {
    color: rgba(255, 255, 255, 0.5)
}

.navbar_lightLogoutMessageModal__x7cEY {
    color: rgba(0, 0, 0, 0.5);
}

.navbar_helpCenterModalBox__crjHR {
    outline: none;
    display: flex;
    height: 80%;
    max-height: 620px;
    font-family: IranSans, Gilroy-Regular, sans-serif;
    width: 70%;
    max-width: 900px;
    border-radius: 12px;
    /* ⚠️ رفع باگ گزارش‌شده: قبلاً ارتفاع/عرض فقط با درصد بدون overflow کنترل می‌شد،
       یعنی روی خیلی از اندازه‌های صفحه متن از مرز جعبه بیرون می‌زد. حالا با
       max-height مشخص + overflow، متن همیشه داخل خودِ جعبه اسکرول می‌شود، نه این‌که
       از مرزها بیرون بریزد. */
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.navbar_darkHelpCenterModal__LkMU1 {
    /* هماهنگ با پالت رنگ کلاسیک بقیهٔ برنامه (مثل ExamplesGallery/SubscriptionModal) */
    background-color: #2d3748;
    color: #f5f5f5;
}

.navbar_lightHelpCenterModal__0Ein5 {
    background-color: white;
}

/* RTL overrides for Help Center modal */
.navbar_rtl__Eqpch {
    direction: rtl;
    text-align: right;
}

.navbar_rtl__Eqpch .navbar_dragAndDropDiv__NOfPV {
    /* keep vertical separator, but add right spacing */
    padding-right: 5%;
    padding-left: 0;
}

.navbar_rtl__Eqpch .navbar_saveAndDownloadDiv__9kAUT,
.navbar_rtl__Eqpch .navbar_connectAndDriveDiv__Q2gQ5 {
    padding-right: 5%;
    padding-left: 0;
}

.navbar_rtl__Eqpch .navbar_dragAndDropPara__E7e09 {
    margin-right: 10%;
    margin-left: 0;
}

.navbar_rtl__Eqpch .navbar_saveAndDownloadDivContent__MCV9T,
.navbar_rtl__Eqpch .navbar_connectAndDriveDivPara__PK9aB {
    padding-right: 5%;
    padding-left: 0;
}

.navbar_dragAndDropDiv__NOfPV {
    border-right: 1px solid #D9D9D9;
    width: 35%;
    height: 100%;
    padding-left: 5%;
}

.navbar_screenDisplayImage__XkMo0 {
    width: 80%;
    margin-top: 15%
}


.navbar_darkModeRightBorder__jE5nQ {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar_integerNumber__bSP3\+ {
    position: absolute;
    opacity: 0.05;
    font-family: Gilroy-Bold, sans-serif !important;
    font-size: 90px !important;
    font-weight: bold !important;
    line-height: 50px;
}

.navbar_helpCenterPara__QhJZV {
    font-size: 14px;
    font-family: IranSans, Gilroy-Regular, sans-serif !important;
    /* ⚠️ رفع درخواست: متن کامل راست‌چین و justify شود */
    text-align: justify;
    text-align-last: right;
    direction: rtl;
    line-height: 1.9;
}

.navbar_helpCenterCrossIconDiv__b5M2W {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}

.navbar_saveAndDownloadDiv__9kAUT {
    width: 95%;
    height: 50%;
    padding-left: 5%;
    border-bottom: 1px solid #D9D9D9;
}

.navbar_darkModeBottomBorder__4zuR5 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar_connectAndDriveDiv__Q2gQ5 {
    width: 95%;
    height: 50%;
    padding-left: 5%;
}

.navbar_darkTitleModel__uTl8e {
    background-color: #303030;
    color: #F2F2F2;
}

.navbar_lightTitleModel__Po5h1 {
    background-color: #ffffff;
    color: #0071C5;
}

.navbar_navbarDiv__QUxBr {
    display: flex;
    background-color: rgb(0, 113, 197);
    justify-content: space-between;
    height: 3.25rem; /* فشرده برای فضای بیشتر workspace */
    align-items: center;
}

.navbar_navbarHome__43YNE {
    height: 3.6rem;
}

.navbar_navbarTitleDiv__ev7AW {
    margin-left: 4rem;
    display: flex;
    align-items: center;
}

.navbar_navbarHeadDiv__zHR7P {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.navbar_logoDivider__SdJ5e {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.35);
}

.navbar_logoTag__RnWak {
    font-family: IranSans, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
}

.navbar_navbarIconDiv__78e0q {
    display: flex;
    align-items: center;
    margin-right: 4rem;
}

/* مرکز نوار بالا برای متن‌های صفحه خانه */
.navbar_navbarCenterDiv__inEG3 {
    flex: 1 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 12px;
}

.navbar_homeBanner__5VVGq {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    font-family: IranSans, sans-serif;
}

.navbar_homeBannerTitle__J01KG {
    font-family: IranSans, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    font-size: clamp(13px, 1.8vw, 16px);
    line-height: 1.2;
    white-space: nowrap;
}

.navbar_homeBannerPills__Qdwi- {
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar_homeBannerPills__Qdwi- span {
    font-family: IranSans, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #0b3a66;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 3px 10px;
    line-height: 1.4;
}

.navbar_homeBannerSubtitle__gz25l {
    font-family: IranSans, sans-serif;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(11px, 1.3vw, 12.5px);
    width: 100%;
    text-align: center;
    line-height: 1.3;
}

@keyframes navbar_gradient-flow__7hnN1 {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.navbar_mainIcon__dScQh {
    height: 1.85rem;
    width: 1.85rem;
    cursor: pointer;
}

.navbar_mainTitle__J1d4P {
    font-size: 1.3rem;
    font-family: IranSans, sans-serif;
    color: rgb(255, 255, 255);
    cursor: pointer;
}

.navbar_subTitle__wNHWo {
    font-family: IranSans, sans-serif;
}

.navbar_infoIcon__OxHCd {
    height: 1.5rem;
    width: 1.5rem;
    cursor: pointer;
}

.navbar_darkThemeIcon__MbqTU {
    height: 23px;
    width: 23px;
    cursor: pointer;
}

.navbar_lightThemeIcon__9qEkQ {
    height: 23px;
    width: 23px;
    cursor: pointer;
}

.navbar_lightThemeIcon__9qEkQ:hover {
    transform: scale(1.4);
}

.navbar_darkThemeIcon__MbqTU:hover {
    transform: scale(1.4);
}

.navbar_lineIcon__IBQne {
    width: 0.5%;
}

.navbar_buttonIcon__C3dxr {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px 12px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar_iconMargin__c372u {
    margin: 10px;
}

.navbar_arrowMargin__tocTz {
    margin: 2px;
}

.navbar_playgroundName__NCmZ4 {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.navbar_cancelExtraStyle__E0BLo {
    margin-right: 15px !important;
}

.navbar_helpCentreHeader__avUsM {
    font-family: IranSans, Gilroy-Bold, sans-serif !important;
    font-weight: 800 !important;
    text-align: right;
    direction: rtl;
}


.navbar_dragAndDropDivContent__z\+a3o {
    width: 80%;
    margin-top: 15%;
}

.navbar_dragAndDropPara__E7e09 {
    margin-left: 10%;
    padding-top: 8%;
}

.navbar_connectAndDriveDivPara__PK9aB {
    width: 70%;
    padding-left: 5%;
}

.navbar_saveAndDownloadDivContent__MCV9T {
    width: 70%;
    padding-left: 5%;
}

@media (max-width: 767px) {

    .navbar_navbarCenterDiv__inEG3 {
        padding: 0 6px;
    }
    .navbar_homeBanner__5VVGq {
        gap: 6px 8px;
    }
    .navbar_homeBannerTitle__J01KG { font-size: 13px; }
    .navbar_homeBannerPills__Qdwi- { display: none; }
    .navbar_homeBannerSubtitle__gz25l { font-size: 10.5px; }
    .navbar_logoTag__RnWak { display: none; }
    .navbar_logoDivider__SdJ5e { display: none; }

    .navbar_saveAndDownloadDivContent__MCV9T {
        width: 90%;
    }

    .navbar_dropdownMargin__9EWtX {
        width: 40%;
    }

    .navbar_modelHeading__ElUp- {
        font-size: 16px;
    }

    .navbar_connectAndDriveDivPara__PK9aB {
        width: 90%;
    }

    .navbar_mainTitle__J1d4P {
        font-size: 1.0rem;
    }

    /* CSS styles for screens smaller than 768px */
    .navbar_navbarTitleDiv__ev7AW {
        margin-left: 1rem;
    }

    .navbar_iconMargin__c372u {
        margin: 0px 10px 0px -2px;
    }

    .navbar_changeThemeIcon__cXjpz {
        margin-left: 20px;
    }

    .navbar_navbarIconDiv__78e0q {
        margin-right: 0.5rem;
    }

    .navbar_lineIcon__IBQne {
        width: 0.7%;
    }

    .navbar_mainIcon__dScQh {
        height: 2rem;
        width: 2rem;
    }

    .navbar_profileOptionModalStyle__\+d7YM {
        width: 9.75rem;
        padding-top: 0.5rem;
    }

    .navbar_modalText__JyEa5 {
        font-size: 13px;
        padding-bottom: 2px;
    }

    .navbar_modalIcon__4ErDa {
        width: 16px;
        height: 16px;
        margin-top: 5px;
    }

    .navbar_editProfileMargin__irTNy {
        margin-bottom: 0.2rem;
        margin-right: 2rem;
    }

    .navbar_item__r5XFf {
        padding: 0rem 1rem 0.5rem 1rem;
        justify-content: space-between;
        width: 80%;
    }

    .navbar_inRowText__84s5b {
        width: 82%;
    }

    .navbar_logoutModalBox__TuNvy {
        width: 80%;
        padding: 20px 20px 0px 20px;
    }

    .navbar_logoutButtonsExtraStyle__7mH5Q {
        margin: 2px !important;
    }

    .navbar_cancelExtraStyle__E0BLo {
        margin-right: 10px !important;
    }

    .navbar_editProfileModal__jUYgL {
        width: 90%;
        height: 390px;
        padding-left: 2%;
    }

    .navbar_profileImg__GUx-R {
        height: 60px;
        width: 60px;
        border-radius: 100px;
        /*aspect-ratio: 1/1;*/
    }

    .navbar_profileImg__GUx-R img {
        height: 22px;
        width: 22px;
    }

    .navbar_inputExtraStyle__KeYWy {
        width: 34.5%;
        height: 50%;
        /*margin: 20px 10px 20px 10px;*/
    }

    .navbar_emailInputExtraStyle__kBT1T {
        width: 80% !important;
    }

    .navbar_headStyle__wAeFh {
        font-size: 12px !important;
    }

    .navbar_extraInputStyle__zDMO1 {
        font-size: 13px !important;
    }

    .navbar_buttonSection__z40Gg {
        display: flex;
    }

    .navbar_buttonText__rmo6U {
        font-size: 13px;
    }

    .navbar_successAlertBox__icubX {
        margin-left: 20px;
        padding-left: 10px;
        border-radius: 6px;
        height: 30px;
        width: 70%;
        background-color: rgba(91, 188, 115, 0.1);
        color: #5BBC73;
    }

    .navbar_headerStyle__pceH8 {
        font-weight: bold;
        font-size: 16px;
    }

    .navbar_option__UoWYf {
        height: auto;
        width: auto;
        min-width: 140px;
    }

    .navbar_option__UoWYf .navbar_item__r5XFf {
        font-size: 0.8rem;
        padding: 0.1rem 0 0.5rem 0 !important;
        justify-content: start;
    }

    .navbar_renameDivMargin__lUnvX {
        margin-top: 1.2rem;
        padding-right: 1rem !important;
    }

    .navbar_renameText__Y4LFz {
        margin-left: 1rem;
    }

    .navbar_deleteText__KAkJF {
        margin-left: 1rem;
    }

    .navbar_option__UoWYf .navbar_icon__OoySh {
        width: 18px;
        height: 18px;
        margin-left: 16px;
    }

    .navbar_darkItem__aF4FC {
        border-width: 0;
    }

    .navbar_lightItem__cngCI {
        border-width: 0;
    }

    .navbar_lightItem__cngCI:hover {
        border-width: 0;
        background: #ffffff;
    }

    .navbar_darkItem__aF4FC:hover {
        border-width: 0;
        background: #303030;
    }

    /*    TODO when click on rename a blue color appears */
    .navbar_Edit__hLJ\+V {
        font-size: 1rem !important;
        line-height: 10px;
    }

    .navbar_helpCenterModalBox__crjHR {
        width: 94%;
        height: auto;
        max-height: 88vh;
        flex-direction: column;
        border-radius: 8px;
    }

    .navbar_dragAndDropDiv__NOfPV {
        width: 100%;
        height: auto;
        padding-left: 4%;
        border-right: none;
        border-bottom: 1px solid #D9D9D9;
    }

    .navbar_screenDisplayImage__XkMo0 {
        width: 70%;
        height: auto;
        margin-top: 8%;
        max-height: 140px;
        object-fit: contain;
    }

    .navbar_helpCentreRightSide__ZrEEb {
        width: 100%;
    }

    .navbar_integerNumber__bSP3\+ {
        font-size: 35px !important;
        line-height: 30px;
    }

    .navbar_helpCenterPara__QhJZV {
        font-size: 0.6rem !important;
    }

    .navbar_helpDetailsModelDiv__lrXOL {
        display: flex;
        flex-direction: column;
    }

    .navbar_buttonIcon__C3dxr {
        font-size: 15px;
    }

    .navbar_dragAndDropDivContent__z\+a3o {
        width: 100%;
    }

    .navbar_dragAndDropPara__E7e09 {
        margin-left: 0;
        margin-right: 0;
    }

}

@media (max-width: 480px) {
    .navbar_navbarTitleDiv__ev7AW {
        margin-left: 12px;
    }

    .navbar_navbarIconDiv__78e0q {
        margin-right: 12px;
    }

    .navbar_mainTitle__J1d4P {
        font-size: 1rem;
    }

    .navbar_subTitle__wNHWo {
        display: none;
    }

    .navbar_playgroundName__NCmZ4 {
        max-width: 110px;
        overflow: hidden;
    }

    .navbar_playgroundName__NCmZ4 span {
        display: block;
        max-width: 88px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

@media (max-width: 400px) and (max-height: 670px) {
    .navbar_helpCenterPara__QhJZV {
        font-size: 10px !important;
    }
}

/*tablet portrait mode*/
@media (min-width: 744px) and (max-width: 1024px) and (min-height: 650px) {

    .navbar_inputExtraStyle__KeYWy {
        width: 37.5% !important;
    }

 
    .navbar_dragAndDropPara__E7e09 {
        margin-left: 6%;
        padding-top: 12%;
    }

    .navbar_navbarDiv__QUxBr {
        height: 6rem;
    }

    .navbar_navbarTitleDiv__ev7AW {
        margin-left: 1.5rem;
    }

    .navbar_navbarIconDiv__78e0q {
        margin-right: 1rem;
    }

    .navbar_mainIcon__dScQh {
        height: 3rem;
        width: 3rem;
    }

    .navbar_mainTitle__J1d4P {
        font-size: 22px;
    }

    .navbar_lineIcon__IBQne {
        margin-right: 15px;
        margin-left: 5px;
    }

    .navbar_profileOptionModalStyle__\+d7YM {
        width: 13.75rem;
        padding-top: 1.5rem;
    }

    .navbar_item__r5XFf {
        padding: 0rem 1.5rem 0.7rem .5rem !important;
        font-size: 22px;
    }

    .navbar_modalText__JyEa5 {
        font-size: 16px;

    }

    .navbar_editProfileModal__jUYgL {
        width: 90%;
        height: 520px;
        padding-left: 2%;
    }

    .navbar_profileImg__GUx-R {
        height: 100px;
        width: 100px;
        border-radius: 221px;
        margin-bottom: 20px;
    }

    .navbar_profileImg__GUx-R img {
        height: 30px;
        width: 30px;
    }

    .navbar_inputExtraStyle__KeYWy {
        width: 40%;
        height: 50%;
        /*margin: 20px 10px 20px 10px;*/
    }

    .navbar_emailInputExtraStyle__kBT1T {
        width: 80% !important;
    }

    .navbar_headStyle__wAeFh {
        font-size: 18px !important;
    }

    .navbar_extraInputStyle__zDMO1 {
        font-size: 20px !important;
    }

    .navbar_helpDetailsModelDiv__lrXOL {
        display: flex;
        flex-direction: row;
    }

    .navbar_option__UoWYf {
        height: auto;
        width: auto;
        min-width: 140px;
    }

    .navbar_option__UoWYf .navbar_item__r5XFf {
        font-size: 0.8rem;
        padding: 2px 0 10px 10px !important;
        justify-content: start;
    }

    .navbar_renameText__Y4LFz {
        margin-left: 1rem;
    }

    .navbar_deleteText__KAkJF {
        margin-left: 1rem;
    }

    .navbar_helpCenterModalBox__crjHR {
        width: 90%;
        height: 65%;
    }

    .navbar_helpCentreRightSide__ZrEEb {
        width: 50%;
    }

    .navbar_dragAndDropDiv__NOfPV {
        width: 48%;
    }

    .navbar_screenDisplayImage__XkMo0 {
        /*width: 90%;*/
        /*height: 25%;*/
        margin-top: 20%;
        width: 300px;
    }

    .navbar_dragAndDropDivContent__z\+a3o {
        width: 90%;
        margin-top: 25%;
    }

    .navbar_integerNumber__bSP3\+ {
        line-height: 100%;
    }

    .navbar_saveAndDownloadDivContent__MCV9T {
        width: 85%;
        padding-top: 8%;
    }

    .navbar_connectAndDriveDivPara__PK9aB {
        padding-top: 2%;
        width: 87%;
        padding-left: 5%;
    }

    .navbar_crossIcon__QBn0H {
        height: 20px !important;
        width: 20px !important;
    }
}

@media only screen and (max-height: 440px) and (min-width: 400px) and (max-width: 1024px) and (orientation: landscape) {
    /* CSS rules for mobile landscape view */
    .navbar_navbarDiv__QUxBr {
        height: 4rem;
    }

    .navbar_dropdownMargin__9EWtX {
        width: 30%;
    }

    .navbar_modelHeading__ElUp- {
        font-size: 17px;
    }

    .navbar_lineIcon__IBQne {
        width: 0.7%;
    }

    .navbar_mainTitle__J1d4P {
        font-size: 16px;
    }

    .navbar_mainIcon__dScQh {
        height: 1.8rem;
        width: 1.8rem;
    }

    .navbar_iconMargin__c372u {
        margin: 0px 10px 0px 0px;
    }

    .navbar_profileOptionModalStyle__\+d7YM {
        width: 13.50rem;
    }

    .navbar_item__r5XFf {
        padding-left: 0.5rem;
        font-size: 16px;
    }

    .navbar_helpCenterModalBox__crjHR {
        margin-top: 260px;
        height: 490px;
        width: 90%;
    }

    .navbar_dragAndDropDiv__NOfPV {
        width: 60%;
        padding-left: 2.3%;
    }

    .navbar_integerNumber__bSP3\+ {
        font-size: 48px !important;
        line-height: 44px;
    }

    .navbar_screenDisplayImage__XkMo0 {
        width: 224px;
        height: 127px;
        margin-top: 20%;
    }

    .navbar_helpCenterPara__QhJZV {
        font-size: 16px !important;
    }

    .navbar_helpCentreHeader__avUsM {
        font-family: IranSans, Gilroy-Bold, sans-serif !important;
        font-weight: bolder !important;
    }

    .navbar_editProfileModal__jUYgL {
        margin-top: 220px;
        width: 90%;
        height: 500px;
        padding-left: 2%;
    }

    .navbar_successAlertBox__icubX {
        width: 40%;
    }

    .navbar_Edit__hLJ\+V {
        font-size: 1rem !important;
        line-height: 10px;
    }
    .navbar_buttonIcon__C3dxr:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .navbar_avatarIcon__0AtxU {
        width: 24px;
        height: 24px;
        border-radius: 50%;
    }
    
    .navbar_iconMargin__c372u {
        margin: 0 4px;
    }

    .navbar_option__UoWYf {
        height: auto;
        width: auto;
        min-width: 140px;
    }

    .navbar_option__UoWYf .navbar_icon__OoySh {
        width: 18px;
        height: 18px;
        padding-left: 0;
    }

    .navbar_option__UoWYf .navbar_item__r5XFf {
        padding-left: 0;
        font-size: 14px;
    }

    .navbar_renameText__Y4LFz {
        padding-right: 13px;
    }

    .navbar_dragAndDropDivContent__z\+a3o {
        width: 95%;
    }

    .navbar_dragAndDropPara__E7e09 {
        padding-top: 6%;
    }

    .navbar_connectAndDriveDivPara__PK9aB {
        width: 90%;
    }

    .navbar_saveAndDownloadDivContent__MCV9T {
        width: 90%;
    }

    .navbar_darkThemeIcon__MbqTU {
        height: 20px;
        width: 20px;
    }

    .navbar_lightThemeIcon__9qEkQ {
        height: 20px;
        width: 20px;
    }

    .navbar_editProfileMargin__irTNy {
        padding-right: 0;
    }

    .navbar_inputExtraStyle__KeYWy {
        width: 24.4%;
    }



    /* ==================== */
    /* استایل مودال آپلود مدل */
    
.navbar_modelHeading__ElUp- {
    text-align: center;
    font-weight: 700;
    margin: 8px 0 4px;
}

/* ظرف واحد: فرم + توضیح + دکمه‌ها */
.navbar_modelContentWrapper__XVTzu {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;   /* فرم، توضیح، دکمه‌ها */
    grid-gap: 16px;
    gap: 16px;
    padding: 12px;
    background: inherit;       /* یکنواخت با والد */
    overflow: auto;            /* اسکرول داخلی */
    max-height: calc(90vh - 80px);
    border-radius: 12px;
}

/* دسکتاپ: فرم و توضیحات کنار هم */
@media (min-width: 900px) {
    .navbar_modelContentWrapper__XVTzu {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;  /* ردیف سوم را با grid-column می‌گیریم */
        align-items: start;
    }
    .navbar_modelFormSection__Ifezy { grid-column: 1/2; }
    .navbar_modelDescriptionSection__yIyg5 { grid-column: 2/3; }
}

/* فرم — رفع باگ واقعی: قبلاً direction: ltr مستقیم روی این بخش ست شده بود، یعنی حتی در یک
   برنامهٔ کاملاً فارسی/RTL، فرم مدل برعکس (چپ‌چین) نمایش داده می‌شد. */
.navbar_modelFormSection__Ifezy {
    background: inherit;
    direction: rtl;
    text-align: right;
}

/* توضیحات وسط‌چین و تمیز */
.navbar_modelDescriptionSection__yIyg5 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    direction: rtl;
    text-align: right;
    gap: 12px;
}

.navbar_descriptionBox__jn7PH {
    width: 100%;
    max-width: 520px;
    padding: 12px 14px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    background: inherit;
    direction: rtl;
    text-align: right;
}

/* دکمه‌ها: یک‌دست، ته ظرف، وسط */
.navbar_buttonSection__z40Gg {
    grid-column: 1 / -1;       /* تمام عرض شبکه (هم موبایل هم دسکتاپ) */
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,.08);
}
  
}

.helpCenter_overlay__BzU6\+ {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.helpCenter_box__Gn2WK {
    outline: none;
    direction: rtl;
    text-align: right;
    font-family: IranSans, sans-serif;
    width: min(920px, 94vw);
    max-height: min(88vh, 720px);
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(8, 16, 32, 0.45);
}

.helpCenter_dark__0b\+nF {
    background: linear-gradient(180deg, #243044 0%, #1a2332 100%);
    color: #f4f7fb;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.helpCenter_light__Vpy5\+ {
    background: #f7f9fc;
    color: #1c2430;
    border: 1px solid #dbe4f0;
}

.helpCenter_header__u6KkX {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 16px;
    border-bottom: 1px solid rgba(127, 148, 176, 0.28);
}

.helpCenter_headerCopy__auB5s {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.helpCenter_kicker__UPAxh {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #7dd3fc;
}

.helpCenter_light__Vpy5\+ .helpCenter_kicker__UPAxh {
    color: #0369a1;
}

.helpCenter_title__-xOzG {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
}

.helpCenter_lead__oXL0H {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
    opacity: 0.82;
    max-width: 62ch;
}

.helpCenter_closeBtn__OVG-f {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
}

.helpCenter_light__Vpy5\+ .helpCenter_closeBtn__OVG-f {
    background: #e8eef6;
}

.helpCenter_closeBtn__OVG-f:hover {
    background: rgba(255, 255, 255, 0.16);
}

.helpCenter_closeIcon__ixmiZ {
    width: 14px;
    height: 14px;
}

.helpCenter_body__N\+Z1g {
    padding: 18px 20px 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.helpCenter_step__GAn42 {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 14px;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.helpCenter_light__Vpy5\+ .helpCenter_step__GAn42 {
    background: #ffffff;
    border-color: #e3ebf5;
    box-shadow: 0 8px 20px rgba(28, 48, 80, 0.05);
}

.helpCenter_badge__XfCGE {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 15px;
    color: #0b1220;
    background: linear-gradient(160deg, #7dd3fc, #38bdf8);
}

.helpCenter_stepTitle__sepWo {
    margin: 0 0 6px;
    font-size: 15.5px;
    font-weight: 800;
}

.helpCenter_stepBody__LhchB {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.85;
    opacity: 0.9;
}

.helpCenter_tips__i20DW {
    margin: 4px 0 0;
    padding: 0 18px 0 0;
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.88;
}

.helpCenter_tips__i20DW li + li {
    margin-top: 4px;
}

.helpCenter_footerNote__2Z4i1 {
    margin: 4px 4px 0;
    font-size: 12.5px;
    line-height: 1.7;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .helpCenter_header__u6KkX {
        padding: 16px 14px 12px;
    }

    .helpCenter_title__-xOzG {
        font-size: 18px;
    }

    .helpCenter_body__N\+Z1g {
        padding: 12px;
    }

    .helpCenter_step__GAn42 {
        grid-template-columns: 1fr;
    }
}

.persian-date-picker {
    position: relative;
    display: inline-block;
    width: 100%;
}

.date-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background-color: white;
    direction: rtl;
    text-align: right;
}

.date-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.calendar-popup {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px;
    direction: rtl;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 5px;
}

.calendar-header button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 16px;
    color: #666;
}

.calendar-header button:hover {
    background-color: #f0f0f0;
    color: #333;
}

.calendar-header span {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 2px;
    gap: 2px;
    margin-bottom: 5px;
}

.day-name {
    text-align: center;
    font-weight: bold;
    padding: 8px 4px;
    font-size: 12px;
    color: #666;
    background-color: #f8f9fa;
    border-radius: 3px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 2px;
    gap: 2px;
}

.calendar-day {
    text-align: center;
    padding: 8px 4px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background-color: #e3f2fd;
    color: #1976d2;
}

.calendar-day.selected {
    background-color: #1976d2;
    color: white;
    font-weight: bold;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.empty:hover {
    background-color: transparent;
    color: inherit;
}

.calendar-footer {
    margin-top: 10px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

.today-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.today-btn:hover {
    background-color: #218838;
}

/* Dark theme support */
.darkEditProfileModal .persian-date-picker .date-input {
    background-color: #2d3748;
    border-color: #4a5568;
    color: white;
}

.darkEditProfileModal .persian-date-picker .calendar-popup {
    background-color: #2d3748;
    border-color: #4a5568;
    color: white;
}

.darkEditProfileModal .persian-date-picker .day-name {
    background-color: #4a5568;
    color: #e2e8f0;
}

.darkEditProfileModal .persian-date-picker .calendar-day:hover {
    background-color: #4a5568;
    color: #90cdf4;
}

.darkEditProfileModal .persian-date-picker .calendar-header button {
    color: #e2e8f0;
}

.darkEditProfileModal .persian-date-picker .calendar-header button:hover {
    background-color: #4a5568;
    color: white;
}

.darkEditProfileModal .persian-date-picker .calendar-header span {
    color: white;
}

.darkEditProfileModal .persian-date-picker .calendar-footer {
    border-top-color: #4a5568;
}
.buttonComponent_containedButton__JTh6N {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 150px;
    border-radius: 6px;
    font-family: Gilroy-SemiBold, serif;
    color: #ffffff;
    font-size: 22px;
    background: #0071C5;
    margin: 20px;
    cursor: pointer;

}

.buttonComponent_normalButton__yrnIz {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 150px;
    border: 1px solid #0071C5;
    border-radius: 6px;
    font-family: Gilroy-SemiBold, serif;
    color: #0071C5;
    font-size: 22px;
    margin: 20px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .buttonComponent_containedButton__JTh6N {
        height: 35px;
        width: 85px;
        font-size: 14px;
        margin: 20px 0 20px 20px;
        font-weight: 700;
    }
    .buttonComponent_normalButton__yrnIz {
        height: 35px;
        width: 85px;
        font-size: 14px;
        margin: 20px 0px 20px 20px;
        font-weight: 700;
    }
}

@media (min-width: 744px) and (max-width: 1024px){
    .buttonComponent_containedButton__JTh6N {
        height: 53px;
        width: 167px;
        font-size: 18px;
        margin: 20px 0px 20px 20px;
    }
    .buttonComponent_normalButton__yrnIz {
        height: 53px;
        width: 167px;
        font-size: 18px;
        margin: 20px 0px 20px 20px;
    }
}

.fontStyle_whiteFont__CnFZI {
    /*font-size: 18px;*/
    color: #f2f2f2;
    font-family: IranSans, sans-serif;
}

.fontStyle_blackFont__I4MX1 {
    font-size: 18px;
    font-family: IranSans, sans-serif;
}

.fontStyle_BlackTextDarkFont__Yr7Gt {
    color: #FFFFFF
}

.fontStyle_BlackTextLightFont__uGdy3 {
    color: #000000;
}

.fontStyle_blueFont__zsqgN {
    color: #0071C5;
    font-family: IranSans, sans-serif;
}

@media (max-width: 768px) {
    .fontStyle_blackFont__I4MX1{
        font-size: 14px;
    }

    .fontStyle_blueFont__zsqgN {
        font-size: 14px;
    }
}
@media (min-width: 744px) and (max-width: 1024px){

    .fontStyle_blueFont__zsqgN {
        font-size: 18px;
    }
    .fontStyle_whiteFont__CnFZI {
        font-size: 18px;
    }
    .fontStyle_blackFont__I4MX1 {
        font-size: 16px;
    }

}
/* تم مشترک منوی حساب: کلاسیک + نوجوان‌پسند (سرمه‌ای، طلایی، کرم) */

.accountUi_shell__6zudc {
  direction: rtl;
  font-family: IranSans, Tahoma, sans-serif;
  outline: none;
}

.accountUi_panel__2IOlO {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(232, 195, 106, 0.22), transparent 55%),
    linear-gradient(180deg, #fffaf1 0%, #f3e6d0 100%);
  color: #1e2a3a;
  border: 1px solid rgba(212, 160, 23, 0.45);
  box-shadow: 0 18px 40px rgba(20, 32, 54, 0.28);
  border-radius: 22px;
}

.accountUi_panelDark__NDugN {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(232, 195, 106, 0.18), transparent 50%),
    linear-gradient(180deg, #24344a 0%, #16202f 100%);
  color: #f7f1e6;
  border: 1px solid rgba(232, 195, 106, 0.35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.accountUi_menuPanel__oAiLw {
  width: min(300px, calc(100vw - 24px));
  position: fixed;
  left: 16px;
  right: auto;
  top: 62px;
  padding: 12px;
  z-index: 1400;
}

.accountUi_menuHeader__2ahfM {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.35);
}

.accountUi_menuAvatar__D9a1f {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d4a017;
  box-shadow: 0 0 0 3px rgba(232, 195, 106, 0.35);
}

.accountUi_menuName__5wd7q {
  font-weight: 700;
  font-size: 15px;
  margin: 0;
}

.accountUi_menuHint__FIQtt {
  margin: 2px 0 0;
  font-size: 11px;
  opacity: 0.7;
}

.accountUi_item__ZVsbu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 4px 0;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.accountUi_item__ZVsbu:hover {
  background: rgba(212, 160, 23, 0.16);
  transform: translateX(-2px);
}

.accountUi_itemDanger__9IGe\+:hover {
  background: rgba(232, 93, 76, 0.16);
}

.accountUi_iconWell__UFQ5j {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.accountUi_panelDark__NDugN .accountUi_iconWell__UFQ5j {
  background: rgba(255, 255, 255, 0.08);
}

.accountUi_iconWell__UFQ5j img {
  width: 20px;
  height: 20px;
}

.accountUi_itemLabel__B3QTX {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.accountUi_dialog__Hlr6H {
  width: min(560px, 92vw);
  max-height: 88vh;
  overflow: auto;
  padding: 22px 22px 18px;
  position: relative;
}

.accountUi_dialogWide__ggoc6 {
  width: min(920px, 94vw);
}

.accountUi_dialogTitle__kJbki {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #1e3a5f;
}

.accountUi_panelDark__NDugN .accountUi_dialogTitle__kJbki {
  color: #f3e6c0;
}

.accountUi_dialogSub__UQU2n {
  margin: 0 0 18px;
  font-size: 13px;
  opacity: 0.75;
}

.accountUi_closeBtn__xbG2B {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(30, 58, 95, 0.08);
  cursor: pointer;
}

.accountUi_cards__O2BXg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.accountUi_card__Kr-eL {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(212, 160, 23, 0.28);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.accountUi_panelDark__NDugN .accountUi_card__Kr-eL {
  background: rgba(255, 255, 255, 0.05);
}

.accountUi_card__Kr-eL h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #1e3a5f;
}

.accountUi_panelDark__NDugN .accountUi_card__Kr-eL h3 {
  color: #e8c36a;
}

.accountUi_card__Kr-eL p {
  margin: 6px 0;
  font-size: 13px;
}

.accountUi_goldBtn__NIkO8 {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #e8c36a, #d4a017);
  color: #1e2a3a;
  box-shadow: 0 8px 18px rgba(212, 160, 23, 0.35);
}

.accountUi_ghostBtn__TPF8G {
  border: 1px solid rgba(30, 58, 95, 0.2);
  background: transparent;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
}

.accountUi_actions__81hQj {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 18px;
}

.accountUi_avatarRing__C\+ILw {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #d4a017;
  box-shadow: 0 0 0 5px rgba(232, 195, 106, 0.28);
  margin: 0 auto 18px;
}

.accountUi_avatarRing__C\+ILw img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newProject_Main__EJNgf {
    min-height: 307px;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    padding-left: 7%;
    padding-top: 5.6%;
    padding-bottom: 4.3%;
}

.newProject_Heading__DhSYY {
    font-size: 25px;
    font-family: IranSans, Gilroy-SemiBold, sans-serif;
    font-weight: 700;
    line-height: 30px;
    background: linear-gradient(90deg, #93c5fd, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: newProject_heading-gradient-flow__KI9O1 8s linear infinite;
    display: block;
    width: 100%;
    text-align: right;
    margin: 0;
}

.newProject_HeadingIcon__LfIj5 {
    font-size: 28px;
    display: inline-block;
    filter: grayscale(0);
}

.newProject_projectsHeader__K0HoE {
    width: 100%;
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 8px;
}

.newProject_projectsKicker__XcabP {
    margin: 0 0 6px;
    width: 100%;
    text-align: right;
    font-family: IranSans, Vazirmatn, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #f4bf3a;
}

.newProject_projectsLead__TduZ4 {
    margin: 6px 0 0;
    width: 100%;
    text-align: right;
    font-family: IranSans, Vazirmatn, system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.75;
}

.page-root.light .newProject_projectsKicker__XcabP {
    color: #b45309;
}

.newProject_ButtonsMessage__IUMr6 {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.newProject_loaderStyle__96C-E {
    justify-content: center;
    flex-direction: row;
    align-items: center;
    padding-top: 20px;
    padding-left: 45%;
}

.newProject_Content__Ih\+LU {
    margin-top: 22px;
    display: flex;
    width: 260px;
    align-items: center;
    cursor: pointer;
}

.newProject_Button__N68Fm {
    width: 260px;
    height: 160px;
    background-color: #ffffff;
    /* تعریف صریح border برای تمام طرف‌ها برای رفع مشکل RTL */
    border-top: 1.3px dashed #0071C5;
    border-right: 1.3px dashed #0071C5;
    border-bottom: 1.3px dashed #0071C5;
    border-left: 1.3px dashed #0071C5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.newProject_ButtonLight__pqe\+d {
    box-shadow: rgb(0 0 0 / 13%) 0px 2px 7px;
    background-color: #f8f9fb;
    color: #202020;
}

.newProject_ButtonDark__pDjqj {
    box-shadow: 2px 2px 10px rgba(255, 255, 255, 0.13);
    background-color: #202020;
    color: #ffffff;
}

.newProject_AddIconImage__PNyaE {
    width: 23%;
    height: 36%;
    border: 1.5px solid #0071C5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newProject_Message__2hZm1 {
    width: 76%;
    height: 100%;
    background: #FFFFFF;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Gilroy-Medium, sans-serif;
    font-size: 18px;
    line-height: 21px;
    margin-left: -1px;
    color: #292929;
    padding: 25px 25px;
}

.newProject_MessageIcon__77cnQ {
    display: flex;
    width: 24%;
    align-items: center;
    justify-content: center;
}

.newProject_TriangleIcon__CCv2Q {
    width: 7%;
    height: 7%;
}

.newProject_plus__whCYd {
    width: 36%;
    height: 36%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: #0071C5;
}

.newProject_model__nIdBb {
    width: 694px;
    height: 343px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: rgb(0 0 0 / 25%) 0px 4px 15px;
    border-radius: 6px;
    outline: none;
}

.newProject_modelDark__rSyk9 {
    background: #303030;
}

.newProject_modelLight__H8sCN {
    background: #FFFFFF;
}

.newProject_ModelHeading__gpWh2 {
    font-family: Gilroy-SemiBold, sans-serif;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    padding: 25px 25px 20px 25px;
    justify-content: space-between;
}

.newProject_ModelHeadingDark__FcOid {
    color: #FFFFFF;
    border-color: #4d4c4c;
}

.newProject_ModelHeadingLight__8VTnQ {
    color: #000000;
    border-color: #CCCCCC;
}

.newProject_CrossIcon__\+DIi5 {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.newProject_Input__SDduM {
    display: flex;
    flex-direction: column;
    padding-top: 2%;
    padding-left: 4%;
    margin-bottom: 5%;
}

.newProject_label__PZU3k {
    font-family: Gilroy-Medium, sans-serif;
    font-size: 18px;
    line-height: 21px;
    color: #000000;
    margin-bottom: 5%;
}

.newProject_InputArea__6qTCl {
    height: 100%;
    width: 87%;
    font-family: Gilroy-Regular, sans-serif;
    padding: 13px 20px;
    font-size: 20px;
    line-height: 27px;
    border-width: 1px;
    border-color: #0071C5;
    background-color: #FFFFFF;
    color: #000000;
    border-style: solid;
    border-radius: 6px;
}

.newProject_SaveBtn__-2khB {
    width: 21%;
    height: 14.5%;
    border-radius: 6px;
    font-family: Gilroy-SemiBold, sans-serif;
    color: #ffffff;
    font-size: 22px;
    background: #0071c5;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    margin-left: 73%;
}

.newProject_MainDark__dquuA {
    background-color: #202020;
    color: #ffffff;
}

.newProject_MainLight__oVNXu {
    background-color: #f8f9fb;
    color: #202020;
}

.newProject_MessageDark__vEd6r {
    background-color: #303030;
    color: #ffffff;
}

.newProject_MessageLight__cWo1l {
    background-color: #FFFFFF;
    color: #292929;
}

.newProject_inputExtraStyle__uD5AG {
    width: 90%;
    height: 75px;
}

.newProject_inputBoxMargin__1pYKe {
    margin-top: 30px;
}


.newProject_cardContent__XalOS {
    margin-top: 22px;
    display: flex;
    align-items: center;
}

.newProject_optionExtraStyle__YCMJ- {
    z-index: 1000;
    min-width: 208px;
    width: max-content;
}

.newProject_Card__wkhyq {
    width: 260px;
    height: 162px;
    background-color: transparent;
    border-radius: 12px;
    cursor: pointer;
    margin-right: 42px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.newProject_rowDiv__y4Ue1 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.newProject_lightBoxShadow__Ak2Dh {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.newProject_darkBoxShadow__gASzt {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

/* ✨ سایه رنگی مشابه Feature Cards برای پروژه‌ها */
.newProject_Card__wkhyq:hover {
    transform: translateY(-8px) scale(1.02);
}

/* سایه رنگی برای حالت Light Mode */
.page-root.light .newProject_Card__wkhyq:hover {
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.35);
    border-color: rgba(59, 130, 246, 0.5);
}

/* سایه رنگی برای حالت Dark Mode */
.page-root.dark .newProject_Card__wkhyq:hover {
    box-shadow: 0 16px 48px rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.6);
}

/* افکت glow برای پروژه‌ها */
.newProject_Card__wkhyq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.page-root.dark .newProject_Card__wkhyq::before {
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.3), transparent 70%);
}

.newProject_Card__wkhyq:hover::before {
    opacity: 0.15;
}

@keyframes newProject_heading-gradient-flow__KI9O1 {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.newProject_CardHeadingIcon__VXuPa {
    display: flex;
    margin-left: 31px;
    margin-top: 33px;
    align-items: center;
    /* Vector */
}

.newProject_CardHeading__W6m3Z {
    font-family: Gilroy-SemiBold, sans-serif;
    font-weight: 600;
    font-size: 25px;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
}

/* پس‌زمینه روشن‌تر برای نام پروژه‌ها بر اساس تم */
.page-root.dark .newProject_CardHeading__W6m3Z {
    background: rgba(255, 255, 255, 0.08);
}
.page-root.light .newProject_CardHeading__W6m3Z {
    background: rgba(0, 0, 0, 0.05);
}


.newProject_PencilIcon__WeQLE {
    /*background-color: red;*/
    width: 18px;
    height: 18px;
    margin: 18px 20px 0 0;
    display: inline-block;
    padding: 3px 10px 10px 10px;
    pointer-events: auto;
}

.newProject_Date__3CYE8 {
    padding-left: 31px;
    padding-top: 5px;
    font-family: Gilroy-Regular, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
}

.newProject_Description__dRKRO {
    padding-left: 31px;
    padding-top: 3px;
    font-family: Gilroy-Regular, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #666666;
    font-style: italic;
}

.newProject_line__WiRCC {
    border: 0.5px solid;
    opacity: 0.2;
    margin: 5px 0px 0 0px;
}

.newProject_inputTitle__BVNHB {
    /*margin-left: -10px;*/
}

@media (max-width: 767px) {
    .newProject_Main__EJNgf {
        padding-left: 3.8%;
        padding-top: 12.6%;
    }

    .newProject_Heading__DhSYY {
        font-size: 16px;
        font-weight: 500;
        line-height: 21px;
    }

    .newProject_Content__Ih\+LU {
        width: 50%;
    }

    .newProject_MessageIcon__77cnQ {
        width: 50%;
        line-height: 12px;
        margin-left: -5%;
        margin-top: 20px;
    }

    .newProject_Message__2hZm1 {
        font-size: 10px;
        padding: 10px 10px;
    }

    .newProject_Button__N68Fm {
        width: 100%;
        height: 99.07px;
    }

    .newProject_cardContent__XalOS {
        width: 50%;
        margin-top: 26px;
    }

    .newProject_Card__wkhyq {
        width: 90%;
        height: 99.07px;
        margin-right: 0;
    }

    .newProject_CardHeadingIcon__VXuPa {
        margin-left: 15%;
        margin-top: 10%;
    }

    .newProject_CardHeading__W6m3Z {
        font-weight: 600;
        font-size: 1rem !important;
    }

    .newProject_PencilIcon__WeQLE {
        margin: 12% 10% 0 0px;
    }

    .newProject_Date__3CYE8 {
        padding-left: 15%;
        font-size: 10px !important;
        font-weight: 200;
    }

    .newProject_Description__dRKRO {
        padding-left: 15%;
        font-size: 9px !important;
        font-weight: 200;
        color: #888888;
    }

    .newProject_model__nIdBb {
        width: 80%;
        height: 11rem;
        padding: 18px 20px 0px 20px;
    }

    .newProject_ModelHeading__gpWh2 {
        padding: 5px 5px 5px 5px;
        font-size: 15px;
    }

    .newProject_CrossIcon__\+DIi5 {
        width: 12px;
        height: 12px;
        margin-left: 10px;
    }

    .newProject_line__WiRCC {
        border: 0.5px solid;
        opacity: 0.2;
        margin: 5px -20px 0 -20px;
    }

    .newProject_Input__SDduM {
        padding-top: 10px;
        padding-left: 0%;
        margin: -20px;
    }

    .newProject_inputTitle__BVNHB {
        /*margin-left: -10px;*/
    }

    .newProject_inputExtraStyle__uD5AG {
        height: 50px;
        width: 80%;
    }

    .newProject_extraInputStyle__a2TaU {
        font-size: 13px !important;
    }

    .newProject_SaveBtn__-2khB {
        width: 150px;
        height: 30px;
        font-size: 14px;
        margin-left: 62%;
        font-family: Gilroy-Regular, sans-serif;
    }

    .newProject_creatButton__UbR3h {
        width: 91%;
        margin-top: 35px;
        display: flex;
    }

    .newProject_iosButton__2RfpH {
        width: 91%;
        margin-top: 35px;
        display: flex;
    }

    .newProject_androidButton__989sQ {
        width: 91%;
        margin-top: 35px;
        display: flex;
    }

    .newProject_inputBoxMargin__1pYKe {
        margin-top: 15px;
    }
}

/* ===================== RTL Overrides ===================== */
.rtl .newProject_Main__EJNgf {
    padding-right: 7%;
    padding-left: 0;
    align-items: flex-end;
}

.rtl .newProject_Heading__DhSYY {
    align-self: flex-end;
    text-align: right;
    width: 100%;
    justify-content: flex-end;
}

.rtl .newProject_projectsHeader__K0HoE,
.rtl .newProject_projectsKicker__XcabP,
.rtl .newProject_projectsLead__TduZ4 {
    text-align: right;
    align-items: flex-end;
}

/* افزایش اختصاصیت برای اطمینان از راست‌چین‌شدن تیتر در صفحات RTL */
.rtl .newProject_content-container__G\+3\+c .newProject_Heading__DhSYY {
    align-self: flex-end !important;
    text-align: right !important;
    width: 100% !important;
    margin-right: 0 !important;
}

.rtl .newProject_ButtonsMessage__IUMr6 {
    justify-content: flex-end;
}

.rtl .newProject_Card__wkhyq {
    margin-left: 42px;
    margin-right: 0;
}

.rtl .newProject_CardHeadingIcon__VXuPa {
    margin-right: 31px;
    margin-left: 0;
}

.rtl .newProject_PencilIcon__WeQLE {
    /* جابه‌جایی آیکن سه‌نقطه به لبه مخالف در RTL */
    margin: 18px 0 0 20px;
}

.rtl .newProject_Date__3CYE8,
.rtl .newProject_Description__dRKRO {
    padding-right: 31px;
    padding-left: 0;
    text-align: right;
}

@media (max-width: 767px) {
    .rtl .newProject_Card__wkhyq {
        margin-left: 0;
    }
    .rtl .newProject_CardHeadingIcon__VXuPa {
        margin-right: 15%;
        margin-left: 0;
    }
    .rtl .newProject_Date__3CYE8,
    .rtl .newProject_Description__dRKRO {
        padding-right: 15%;
        padding-left: 0;
    }
}


/*tablet portrait mode*/
@media (min-width: 744px) and (max-width: 1024px) {
    .newProject_Main__EJNgf {
        padding-left: 3.8%;
        padding-top: 12.6%;
    }

    .newProject_Button__N68Fm {
        width: 100%;
        height: 140px;
    }

    .newProject_MessageIcon__77cnQ {
        width: 45%;
        margin-top: 3%;
        margin-left: -3%;
    }

    .newProject_Message__2hZm1 {
        font-size: 12px;
        padding: 10px 2px;
        margin-left: -15px;
    }

    .newProject_cardContent__XalOS {
        width: 33%;
    }

    .newProject_Card__wkhyq {
        width: 100%;
        height: 140px;
    }

    .newProject_Content__Ih\+LU {
        width: 33%;
    }

    .newProject_SaveBtn__-2khB {
        width: 150px;
        padding: 0.5rem;
        margin-left: 70%;
    }
}

@media only screen and (min-width: 350px) and (max-width: 1024px) and (orientation: landscape) {

    .newProject_Card__wkhyq {
        width: 100%;
        height: 130px;
        margin-right: 42px;
    }

    .newProject_cardContent__XalOS {
        width: 33%;
    }

    .newProject_Button__N68Fm {
        width: 100%;
        height: 130px;
    }

    .newProject_Content__Ih\+LU {
        width: 33%;
    }

    .newProject_AddIconImage__PNyaE {
        width: 18%;
        height: 30%;
    }

    .newProject_CardHeading__W6m3Z {
        font-weight: 600;
        font-size: 1rem !important;
    }

    .newProject_ModelHeading__gpWh2 {
        font-size: 15px;
        padding: 2px 2px 10px 2px;
    }

    .newProject_CrossIcon__\+DIi5 {
        width: 14px;
        height: 14px;
        margin-right: 10px;
    }

    .newProject_inputExtraStyle__uD5AG {
        height: 50px;
        width: 80%;
    }

    .newProject_inputBoxMargin__1pYKe {
        margin-top: 15px;
    }

    .newProject_SaveBtn__-2khB {
        width: 100px;
        height: 30px;
        font-size: 14px;
        font-family: Gilroy-Medium, sans-serif;
    }

    .newProject_model__nIdBb {
        width: 50%;
        height: 13rem;
        padding: 18px 20px 0px 20px;
    }

    .newProject_androidButton__989sQ {
        width: 84%;
    }

    .newProject_iosButton__2RfpH {
        width: 100%;
    }

    .newProject_creatButton__UbR3h {
        width: 91%;
    }

    .newProject_line__WiRCC {
        margin: 5px -20px 0 -20px;
    }

}

.newProject_createDialog__iJ\+Ch {
    direction: rtl;
    text-align: right;
    font-family: IranSans, sans-serif;
    width: min(520px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    padding: 22px 24px 20px;
    outline: none;
    box-shadow: 0 24px 60px rgba(16, 28, 48, 0.35);
}

.newProject_createDialogDark__G2Wub {
    background: #2a3344;
    color: #f4f7fb;
    border: 1px solid rgba(232, 195, 106, 0.28);
}

.newProject_createDialogLight__fnnjg {
    background: #fbf8f1;
    color: #1d2430;
    border: 1px solid #d8c9a4;
}

.newProject_createDialogHeader__ZcpTw {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.newProject_createKicker__o6hKy {
    margin: 0 0 4px;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: #c9a227;
    font-weight: 700;
}

.newProject_createDialogTitle__8gXol {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    font-family: IranSans, sans-serif;
}

.newProject_createLead__ZDhP2 {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.8;
}

.newProject_createLabel__A5F69 {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 12px 0 6px;
    font-family: IranSans, sans-serif;
}

.newProject_requiredMark__0oXDV {
    color: #c0392b;
}

.newProject_createInput__jrj8K,
.newProject_createTextarea__bKvN3 {
    width: 100%;
    box-sizing: border-box;
    font-family: IranSans, sans-serif;
    font-size: 14px;
    border-radius: 10px;
    padding: 10px 12px;
    outline: none;
    resize: vertical;
}

.newProject_createDialogDark__G2Wub .newProject_createInput__jrj8K,
.newProject_createDialogDark__G2Wub .newProject_createTextarea__bKvN3 {
    background: #1c2433;
    color: #f4f7fb;
    border: 1px solid #4a6280;
}

.newProject_createDialogLight__fnnjg .newProject_createInput__jrj8K,
.newProject_createDialogLight__fnnjg .newProject_createTextarea__bKvN3 {
    background: #fffdf8;
    color: #1d2430;
    border: 1px solid #cbb98a;
}

.newProject_createInput__jrj8K:focus,
.newProject_createTextarea__bKvN3:focus {
    border-color: #c9a227;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.newProject_createError__EIJa9 {
    margin: 10px 0 0;
    color: #e07070;
    font-size: 12.5px;
}

.newProject_createActions__sRuGn {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 18px;
}

.newProject_createPrimaryBtn__Aaqwj,
.newProject_createGhostBtn__FpADC {
    font-family: IranSans, sans-serif;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    padding: 8px 16px;
    cursor: pointer;
}

.newProject_createPrimaryBtn__Aaqwj {
    border: none;
    background: #1d4f91;
    color: #fff;
}

.newProject_createPrimaryBtn__Aaqwj:disabled {
    opacity: 0.6;
    cursor: default;
}

.newProject_createGhostBtn__FpADC {
    background: transparent;
    border: 1px solid rgba(127, 148, 176, 0.45);
    color: inherit;
}
.Forms_confirmDialog__jv\+di {
    background: white;
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
    direction: rtl;
}

.Forms_dialogTitle__v3yyj {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.Forms_dialogMessage__gmmQB {
    margin-bottom: 20px;
}

.Forms_dialogButtons__TX0he {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.Forms_confirmButton__Y7PRA, .Forms_cancelButton__HEcyA {
    padding: 8px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.Forms_confirmButton__Y7PRA {
    background: #007bff;
    color: white;
}

.Forms_confirmButton__Y7PRA:hover {
    background: #0056b3;
}

.Forms_cancelButton__HEcyA {
    background: #6c757d;
    color: white;
}

.Forms_cancelButton__HEcyA:hover {
    background: #5a6268;
}

/* Modal Styles */
.Forms_modalContainer__vEQKA {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1300;
}

.Forms_modalContent__tzJBI {
    background: white;
    border-radius: 12px;
    padding: 24px;
    min-width: 400px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    direction: rtl;
    font-family: IranSans, sans-serif;
    position: relative;
}

.Forms_closeButton__ApqAM {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.Forms_closeButton__ApqAM:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* Form Container Styles */
.Forms_formContainer__ByIQc {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.Forms_formTitle__6seYF {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.Forms_formField__HVKYl {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.Forms_formLabel__9Etwf {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.Forms_formInput__zxsqv {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    direction: rtl;
}

.Forms_formInput__zxsqv:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.Forms_formInput__zxsqv.Forms_error__Z\+zJo {
    border-color: #dc3545;
}

.Forms_errorMessage__AxZXA {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.Forms_formButton__HWcyc {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.Forms_primaryButton__IvfH\+ {
    background: #007bff;
    color: white;
}

.Forms_primaryButton__IvfH\+:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-1px);
}

.Forms_primaryButton__IvfH\+:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.Forms_secondaryButton__6sMHI {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.Forms_secondaryButton__6sMHI:hover:not(:disabled) {
    background: #007bff;
    color: white;
}

.Forms_linkButton__wol0b {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 0;
}

.Forms_linkButton__wol0b:hover {
    color: #0056b3;
}

.Forms_buttonGroup__X21\+q {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.Forms_buttonGroup__X21\+q .Forms_formButton__HWcyc {
    flex: 1 1;
}

/* Loading Spinner */
.Forms_loadingSpinner__CvXs4 {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: Forms_spin__jsZXE 1s linear infinite;
}

@keyframes Forms_spin__jsZXE {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Countdown Display */
.Forms_countdownText__G4oNX {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    margin: 8px 0;
}

/* Phone Number Display */
.Forms_phoneDisplay__cncPT {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 16px;
    font-weight: 500;
    color: #495057;
}

/* Responsive Design */
@media (max-width: 480px) {
    .Forms_modalContent__tzJBI {
        min-width: 320px;
        padding: 16px;
        margin: 16px;
    }
    
    .Forms_formTitle__6seYF {
        font-size: 20px;
    }
    
    .Forms_buttonGroup__X21\+q {
        flex-direction: column;
    }
}
.subscriptionModel_planExpirationModel__1TwdR {
    outline: none;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 390px;
    border-radius: 16px;
    max-height: 90vh !important; /* اضافه کردن حداکثر ارتفاع */
    overflow-y: auto !important;
    align-items: center;
    justify-content: center;
    /* ⚠️ بازطراحی درخواست‌شده: قبلاً هیچ پس‌زمینه/سایه‌ای تعریف نشده بود (به رنگ سفید
       پیش‌فرض MUI متکی بود) — حالا با پالت کلاسیک بقیهٔ برنامه و یک سایهٔ نئونی ملایم
       هماهنگ شد، دقیقاً مثل SubscriptionModal.module.css و ExamplesGallery. */
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15), 0 20px 60px rgba(37, 99, 235, 0.25), 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 24px;
}

.subscriptionModel_planExpirationModel__1TwdR.subscriptionModel_dark__JHdFg {
    background: #2d3748;
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.25), 0 20px 60px rgba(59, 130, 246, 0.35), 0 8px 32px rgba(0, 0, 0, 0.4);
    color: #f5f5f5;
}

.subscriptionModel_expireModel__3-vcS {
    display: flex;
    justify-content: center;
    align-items: center;
}

.subscriptionModel_expire__N-TIk {
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.subscriptionModel_expireMain__Uq8Uc{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.subscriptionModel_expireText__5w9fz {
    font-family: Gilroy-Medium, sans-serif;
    font-size: 18px;
    font-weight: 600;
    font-family: -apple-system, Tahoma, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

.subscriptionModel_expirationDescription__Vy1zt{
    font-family: Gilroy-Medium, sans-serif;
    font-size: 13px;
}

.subscriptionModel_subscribeButton__KWyiw{
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 95%;
    height: 36px;
    font-family: Gilroy-Medium, sans-serif;
    border: none;
    color: #FFFFFF;
    border-radius: 15px;
    background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.4);
    transition: all 0.25s ease;
}

.subscriptionModel_subscribeButton__KWyiw:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.6);
}

.subscriptionModel_closeModelDiv__rrjxM{
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: 10px;
    margin-right: 10px
}

.subscriptionModel_plansContainer__l6W3I {
    display: flex;
    flex-direction: row;  /* تغییر به حالت افقی */
    justify-content: space-between;  /* فاصله مساوی بین پلن‌ها */
    gap: 20px;  /* فاصله بین پلن‌ها */
    margin-top: 30px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.subscriptionModel_planCard__WtGk4 {
    flex: 1 1;  /* هر کارت به صورت مساوی فضا بگیرد */
    min-width: 200px;  /* حداقل عرض هر کارت */
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(37, 99, 235, 0.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.subscriptionModel_planCard__WtGk4:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.25);
}

/* برای موبایل، به حالت عمودی تغییر کند */
@media (max-width: 768px) {
    .subscriptionModel_plansContainer__l6W3I {
        flex-direction: column;
    }
    
    .subscriptionModel_planCard__WtGk4 {
        width: 90%;
    }
    .subscriptionModel_planExpirationModel__1TwdR {
        width: 90vw !important;
        min-width: 90% !important;
    }

    .subscriptionModel_plansContainer__l6W3I {
        flex-direction: column;
        margin: 20px 10px;
    }
}
.AiVisionPanel_hud__G3S1t {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 5 / 4;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  font-family: IranSans, Vazirmatn, system-ui, sans-serif;
}

.AiVisionPanel_dark__8MwJT {
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(79, 209, 197, 0.16), transparent 50%),
    radial-gradient(90% 70% at 100% 100%, rgba(244, 191, 58, 0.12), transparent 46%),
    linear-gradient(165deg, #0b1220 0%, #111827 55%, #0a1628 100%);
  border: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.AiVisionPanel_light__RXOK2 {
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(14, 116, 144, 0.12), transparent 50%),
    linear-gradient(165deg, #f8fafc 0%, #e8eef6 100%);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.AiVisionPanel_scanline__xu5bh {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(255, 255, 255, 0.03) 3px 4px
  );
  z-index: 4;
}

.AiVisionPanel_dark__8MwJT .AiVisionPanel_scanline__xu5bh {
  mix-blend-mode: overlay;
}

.AiVisionPanel_corner__kcNUA {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 5;
  border-color: #f4bf3a;
  border-style: solid;
  border-width: 0;
}

.AiVisionPanel_tl__7Jqeu { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.AiVisionPanel_tr__fTxuR { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.AiVisionPanel_bl__jnRti { bottom: 36px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }
.AiVisionPanel_br__D-YK7 { bottom: 36px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }

.AiVisionPanel_lidar__i2c0t {
  position: absolute;
  width: 160%;
  height: 160%;
  right: -30%;
  top: -40%;
  background: conic-gradient(from 200deg, transparent 0 78%, rgba(79, 209, 197, 0.18) 88%, transparent 100%);
  animation: AiVisionPanel_lidar-spin__5srim 7s linear infinite;
  z-index: 1;
}

.AiVisionPanel_light__RXOK2 .AiVisionPanel_lidar__i2c0t {
  background: conic-gradient(from 200deg, transparent 0 78%, rgba(14, 116, 144, 0.16) 88%, transparent 100%);
}

.AiVisionPanel_stageBody__smKQW {
  position: absolute;
  inset: 28px 28px 48px;
  z-index: 3;
}

/* —— detect —— */
.AiVisionPanel_person__nLt4r {
  position: absolute;
  right: 38%;
  top: 28%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.AiVisionPanel_head__pgKZM {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e2e8f0, #94a3b8);
}

.AiVisionPanel_torso__OlvHJ {
  width: 54px;
  height: 62px;
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, #64748b, #334155);
}

.AiVisionPanel_lockBox__4YZIZ {
  position: absolute;
  right: 28%;
  top: 18%;
  width: 42%;
  height: 62%;
  border: 2px solid #f4bf3a;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(244, 191, 58, 0.25), 0 0 24px rgba(244, 191, 58, 0.25);
  animation: AiVisionPanel_lock-pulse__z4a4V 2.2s ease-in-out infinite;
}

.AiVisionPanel_lockLabel__e5CkE {
  position: absolute;
  top: -12px;
  right: 8px;
  background: #f4bf3a;
  color: #1a1304;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
}

/* —— decide —— */
.AiVisionPanel_branches__PI1pa {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 8px;
}

.AiVisionPanel_branch__BRaBi {
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.AiVisionPanel_yes__qoqDk {
  background: rgba(79, 209, 197, 0.14);
  border: 1px solid rgba(79, 209, 197, 0.45);
  animation: AiVisionPanel_branch-glow__AAVFD 2.4s ease-in-out infinite;
}

.AiVisionPanel_no__8fOYl {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  animation: AiVisionPanel_branch-glow__AAVFD 2.4s ease-in-out infinite 1.2s;
}

.AiVisionPanel_fork__DsEKr {
  width: 2px;
  height: 10px;
  margin: 0 24px 0 auto;
  background: rgba(148, 163, 184, 0.7);
}

.AiVisionPanel_branchIf__THWbd {
  font-size: 12px;
  opacity: 0.75;
}

.AiVisionPanel_branchThen__B1sm9 {
  font-size: 15px;
  font-weight: 800;
}

.AiVisionPanel_dark__8MwJT .AiVisionPanel_branchThen__B1sm9 { color: #f8fafc; }
.AiVisionPanel_light__RXOK2 .AiVisionPanel_branchThen__B1sm9 { color: #0f172a; }

/* —— act —— */
.AiVisionPanel_pathSvg__vDETy {
  position: absolute;
  inset: 10px 6px;
  width: calc(100% - 12px);
  height: calc(100% - 20px);
}

.AiVisionPanel_road__tyxlc {
  stroke: rgba(125, 211, 252, 0.55);
  stroke-width: 3;
  stroke-dasharray: 8 10;
  stroke-linecap: round;
  animation: AiVisionPanel_dash-move__uV6wN 2.8s linear infinite;
}

.AiVisionPanel_car__b4YFT {
  position: absolute;
  width: 46px;
  height: 26px;
  border-radius: 8px 14px 8px 8px;
  background: linear-gradient(90deg, #38bdf8, #0369a1);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.55);
  animation: AiVisionPanel_drive__dLts1 5.5s ease-in-out infinite;
}

.AiVisionPanel_sonarPing__viNRc {
  position: absolute;
  left: 18%;
  top: 22%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #f87171;
  animation: AiVisionPanel_ping__GVbju 1.8s ease-out infinite;
}

.AiVisionPanel_hudMeta__lO2eu {
  position: absolute;
  bottom: 10px;
  right: 16px;
  left: 16px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.AiVisionPanel_live__E1Q60 {
  color: #f87171;
  font-weight: 800;
  animation: AiVisionPanel_blink__Z1vOz 1.4s step-end infinite;
}

.AiVisionPanel_metaText__1rzeF {
  opacity: 0.7;
}

.AiVisionPanel_dark__8MwJT .AiVisionPanel_metaText__1rzeF { color: #cbd5e1; }
.AiVisionPanel_light__RXOK2 .AiVisionPanel_metaText__1rzeF { color: #334155; }

@keyframes AiVisionPanel_lidar-spin__5srim {
  to { transform: rotate(360deg); }
}

@keyframes AiVisionPanel_lock-pulse__z4a4V {
  0%, 100% { box-shadow: 0 0 0 1px rgba(244, 191, 58, 0.2), 0 0 16px rgba(244, 191, 58, 0.2); }
  50% { box-shadow: 0 0 0 4px rgba(244, 191, 58, 0.08), 0 0 28px rgba(244, 191, 58, 0.45); }
}

@keyframes AiVisionPanel_branch-glow__AAVFD {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}

@keyframes AiVisionPanel_dash-move__uV6wN {
  to { stroke-dashoffset: -36; }
}

@keyframes AiVisionPanel_drive__dLts1 {
  0% { right: 12%; top: 68%; transform: rotate(-8deg); }
  45% { right: 42%; top: 28%; transform: rotate(-28deg); }
  100% { right: 8%; top: 38%; transform: rotate(18deg); }
}

@keyframes AiVisionPanel_ping__GVbju {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes AiVisionPanel_blink__Z1vOz {
  50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  .AiVisionPanel_lidar__i2c0t,
  .AiVisionPanel_lockBox__4YZIZ,
  .AiVisionPanel_yes__qoqDk,
  .AiVisionPanel_no__8fOYl,
  .AiVisionPanel_road__tyxlc,
  .AiVisionPanel_car__b4YFT,
  .AiVisionPanel_sonarPing__viNRc,
  .AiVisionPanel_live__E1Q60 {
    animation: none;
  }
}

/* 🎨 Wrapper برای کل carousel */
.carousel_carouselWrapper__7c87- {
    position: relative;
    width: 100%;
    overflow: visible;
}

/* 🎨 Simple Carousel Wrapper */
.carousel_simpleCarouselWrapper__CqTmG {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 10px 0;
    box-sizing: border-box;
    font-family: IranSans, Vazirmatn, system-ui, sans-serif;
}

.carousel_academy__SGp-- {
    position: relative;
    width: 100%;
    border-radius: 24px;
    padding: 28px 4% 32px;
    box-sizing: border-box;
    overflow: hidden;
    direction: rtl;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.carousel_academyGrid__PARwO {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.15fr);
    grid-gap: 28px 36px;
    gap: 28px 36px;
    align-items: center;
}

.carousel_stageRail__Kf2u2 {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.carousel_stageTab__YZYGS {
    display: flex;
    align-items: baseline;
    gap: 8px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    background: rgba(15, 23, 42, 0.28);
    color: inherit;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.carousel_lightBg__NUrLl .carousel_stageTab__YZYGS {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

.carousel_stageTab__YZYGS:hover {
    transform: translateY(-1px);
}

.carousel_stageTabActive__MYddu {
    background: linear-gradient(135deg, rgba(244, 191, 58, 0.2), rgba(79, 209, 197, 0.18));
    border-color: rgba(244, 191, 58, 0.7);
}

.carousel_stageNum__06EBU {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    opacity: 0.65;
}

.carousel_stageKicker__phLaQ {
    font-size: 15px;
    font-weight: 800;
}

.carousel_lessonChip__Y4aWs {
    display: inline-flex;
    align-self: flex-end;
    margin: 0;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(79, 209, 197, 0.14);
    border: 1px solid rgba(79, 209, 197, 0.35);
}

.carousel_cta__35aGg {
    margin-top: 8px;
    align-self: flex-end;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    font-size: 15px;
    color: #0b1220;
    background: linear-gradient(135deg, #f4bf3a, #f59e0b);
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel_cta__35aGg:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.38);
}

/* Container برای تصویر */
.carousel_imageContainer__cIFeD {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    padding: 0;
}

/* Placeholder اگه تصویر نبود */
.carousel_imagePlaceholder__aVL75 {
    width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 113, 197, 0.1);
    border-radius: 16px;
    font-size: 48px;
}

/* دکمه‌های Navigation */
.carousel_navBtn__f\+eT- {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 113, 197, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.carousel_Content__7Tbl3:hover .carousel_navBtn__f\+eT-,
.carousel_academy__SGp--:hover .carousel_navBtn__f\+eT- {
    opacity: 1;
}

.carousel_navBtn__f\+eT-:hover {
    background: rgba(0, 113, 197, 1);
    transform: translateY(-50%) scale(1.1);
}

/* RTL: دکمه قبلی سمت راست، دکمه بعدی سمت چپ */
.carousel_prevBtn__MAeU- {
    right: 10px; /* سمت راست (RTL) */
}

.carousel_nextBtn__oDs\+g {
    left: 10px; /* سمت چپ (RTL) */
}

/* Pagination Dots */
.carousel_paginationDots__\+hGM3 {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 10px 0;
}

.carousel_dot__HEoYi {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel_dot__HEoYi:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.carousel_dotActive__XVi7Q {
    background: #0071C5;
    width: 32px;
    border-radius: 6px;
}

.carousel_Content__7Tbl3 {
    justify-content: space-between;
    display: flex;
    /* جلوگیری از collapse ارتفاع در carousel */
    height: auto;
    min-height: 320px;
    width: 100%;
    max-width: 100%;
    padding: 40px 5%;
    align-items: center;
    /* RTL: راست‌چین */
    direction: rtl;
    flex-direction: row-reverse;
    /* 🎨 استایل زیبا برای پس‌زمینه */
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

/* 🎨 حالت Dark با گرادیانت زیبا */
.carousel_darkBg__Dxixl {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.carousel_darkBg__Dxixl:hover {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 50%, #1a1a2e 100%);
    box-shadow: 0 12px 48px rgba(0, 113, 197, 0.3);
    transform: translateY(-2px);
}

/* 🎨 حالت Light با گرادیانت ملایم */
.carousel_lightBg__NUrLl {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 50%, #e1e8ed 100%);
    box-shadow: 0 8px 32px rgba(0, 113, 197, 0.1);
}

.carousel_lightBg__NUrLl:hover {
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 50%, #e8f0f7 100%);
    box-shadow: 0 12px 48px rgba(0, 113, 197, 0.2);
    transform: translateY(-2px);
}

.carousel_HeadingContent__FrV1I {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
    z-index: 1;
}

.carousel_Content__7Tbl3:hover .carousel_HeadingContent__FrV1I {
    transform: translateX(-3px);
}

.carousel_DragAndDropHeading__xaM-z {
    font-family: IranSans, Vazirmatn, system-ui, sans-serif;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.35;
    font-weight: 800;
    color: #000000;
    text-align: right;
    direction: rtl;
    position: relative;
    padding-bottom: 8px;
    margin: 0;
}

/* خط زیر عنوان */
.carousel_DragAndDropHeading__xaM-z::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0071C5, #00A8E8);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.carousel_Content__7Tbl3:hover .carousel_DragAndDropHeading__xaM-z::after {
    width: 60%;
}

.carousel_DragAndDropContent__077k7 {
    font-family: IranSans, Vazirmatn, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: #000000;
    text-align: right;
    direction: rtl;
    width: 100%;
    max-width: 560px;
    opacity: 0.92;
    margin: 0;
    z-index: 1;
}

.carousel_Content__7Tbl3:hover .carousel_DragAndDropContent__077k7 {
    opacity: 1;
}

.carousel_ImageDrag__MERFB {
    padding-top: 50px;
    /* 🎨 افکت hover برای تصویر */
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.95);
    display: block;
}

.carousel_Content__7Tbl3:hover .carousel_ImageDrag__MERFB {
    transform: scale(1.05);
    filter: brightness(1);
}

.carousel_videoStyle__zwLXd{
    width: 100% !important;
    max-width: 350px;
    min-width: 250px;
    height: auto !important;
    /* 🎨 گوشه‌های گرد بیشتر */
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    display: block;
    object-fit: contain;
    z-index: 1;
}

.carousel_Content__7Tbl3:hover .carousel_videoStyle__zwLXd {
    box-shadow: 0 8px 24px rgba(0, 113, 197, 0.3);
}

.carousel_ImageSave__JGYWH {
    width: 35.5% !important;
    height: 374px;
}

.carousel_MainDark__rtq1\+ {
    color: #FFFFFF;
    /* 🎨 سایه متن برای خوانایی بهتر */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel_MainLight__oLJJh {
    color: #1a1a2e;
    /* 🎨 سایه ملایم */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.carousel_loading__eamb9 {
    width: 100%;
    margin-top: 27%;
    display: flex;
    justify-content: center;
}

.carousel_spin__n2RxJ {
    animation: carousel_spin__n2RxJ 1ms 1;
    margin-top: 15px;
    padding-right: 2px;
    color: #333e48;
}

.carousel .control-dots {
    /* جایگاه شاخص اسلایدها داخل کادر اسلایدر */
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px !important;
    display: flex !important;
    background: transparent !important;
    margin: 0 !important;
    height: auto;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.carousel .control-dots .dot {
    width: 10px !important;
    height: 10px !important;
    background-color: #0071C5 !important;
    box-shadow: none !important;
}

.carousel .thumbs-wrapper {
    display: none;
}

.carousel .control-arrow {
    display: none;
}

.carousel .carousel-status {
    display: none;
}

.carousel .carousel-slider {
    /* حفظ رفتار پیش‌فرض برای حرکت نرم اسلایدها */
    overflow: hidden !important;
    position: relative; /* برای جای‌گذاری کنترل‌دات‌ها */
}

.carousel .slider-wrapper,
.carousel .slider {
    /* تضمین ارتفاع کافی برای رندر محتوای داخلی */
    min-height: 280px;
    height: auto;
}

/* بهبود ظاهر اسلایدها با گوشه‌های گرد و سایه */
.carousel .slide {
    /* تضمین ارتفاع قابل‌نمایش برای محتوای اسلاید */
    min-height: 280px;
    display: flex;
    align-items: center;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.carousel_ImageDrag__MERFB,
.carousel_ImageSave__JGYWH,
.carousel_videoStyle__zwLXd {
    border-radius: 12px;
}

.carousel_carousel__vp5x1 .carousel_control-dots__5wfoZ .carousel_dot__HEoYi{
    margin: 0 8px;
}

@media (max-width: 979px) {
    .carousel_academy__SGp-- {
        padding: 22px 5% 26px;
    }

    .carousel_academyGrid__PARwO {
        grid-template-columns: 1fr;
    }

    .carousel_HeadingContent__FrV1I {
        order: 1;
        gap: 16px;
        margin: 0;
        padding: 0;
        align-items: center;
        max-width: 100%;
        width: 100%;
    }

    .carousel_cta__35aGg,
    .carousel_lessonChip__Y4aWs {
        align-self: center;
    }

    .carousel_Content__7Tbl3:hover .carousel_HeadingContent__FrV1I {
        transform: translateX(0);
    }

    .carousel_DragAndDropHeading__xaM-z {
        font-size: 1.25rem;
        line-height: 1.4;
        text-align: center;
    }

    .carousel_DragAndDropContent__077k7 {
        font-size: 15px;
        line-height: 1.75;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .carousel_ImageDrag__MERFB {
        padding-top: 30px;
    }

    .carousel_imageContainer__cIFeD {
        order: 2;
        max-width: 100%;
        padding: 0;
    }

    .carousel .slide {
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }

    .carousel_videoStyle__zwLXd {
        width: 70% !important;
        max-width: 300px;
        min-width: 200px;
        margin: 0 auto;
    }

    .carousel_navBtn__f\+eT- {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .carousel_prevBtn__MAeU- {
        right: 5px;
    }

    .carousel_nextBtn__oDs\+g {
        left: 5px;
    }

    .carousel .control-dots .dot {
        width: 8px !important;
        height: 8px !important;
    }
}


/*tablet portrait mode*/
@media (min-width: 744px) and (max-width: 800px){
    .carousel_DragAndDropHeading__xaM-z{
        font-size: 22px;
    }
    .carousel_DragAndDropContent__077k7{
        font-size: 18px;
    }
}

@media (hover: none) {
    .carousel_navBtn__f\+eT- {
        opacity: 0.8;
    }
}
.cookies_main__7LmQv {
    width: 88% !important;
    height: 164px !important;
    border-radius: 20px !important;
    box-shadow: 0px 14px 42px rgba(8, 15, 52, 0.06);
    left: 87px !important;
    bottom: 37px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 100px;
}

.cookies_mainDark__1jfsS {
    background-color: #303030 !important;
    border: none;
}

.cookies_mainLight__0KpsE {
    background-color: #FFFFFF !important;
    border: 1px solid #D9DBE9;
}

.cookies_ContentAndImage__OmeVK {
    font-family: 'Gilroy-Regular', serif;
    font-size: 18px;
    line-height: 30px;
    margin: 0px !important;
    display: flex;
    flex: 0 1 auto !important;
    padding-left: 48px;
    gap: 22px;
    width: 735px;
}

.cookies_ContentAndImageLight__2ub1R {
    color: #6F6C90;
}

.cookies_ContentAndImageDark__74Gs4 {
    color: #FFFFFF;
}

.cookies_cookieImage__DR-h\+ {
    width: 68px;
    height: 68px;
}

.cookies_buttonWrapper__mR5Aq {
    display: flex;
    flex-direction: row-reverse;
}

.cookies_iosButtonDiv__1dXEX{
    display: flex;
    flex-direction: row-reverse;
}

.cookies_androidButtonDiv__5vVDf{
    display: flex;
    flex-direction: row-reverse;
}

.cookies_acceptButton__h6V2h {
    width: 185px;
    height: 54px;
    background: #0071C5 !important;
    box-shadow: 0px 3px 12px rgba(74, 58, 255, 0.18) !important;
    border-radius: 7px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0px !important;
    margin: 10px !important;
}

.cookies_declineButton__FaKns {
    width: 107px;
    height: 54px;
    border-radius: 7px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0px !important;
    margin: 10px !important;
}

.cookies_declineButtonDark__0Pju5 {
    background: #303030 !important;
    border: 1px solid #EFF0F7 !important;

}

.cookies_declineButtonLight__dkZ41 {
    background: #FFFFFF !important;
    box-shadow: 0px 3px 12px rgba(74, 58, 255, 0.18) !important;
}

.cookies_btnDeclineText__9qDi0 {
    font-family: 'Gilroy-Medium', serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 18px;

}

.cookies_btnDeclineTextDark__mxKZw {
    color: #FFFFFF;
}

.cookies_btnDeclineTextLight__\+jIXC {
    color: #0071C5;
}

.cookies_btnText__DWuYp {
    font-family: 'Gilroy-Medium', serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 18px;
    color: #FFFFFF;
}

.cookies_btnImage__VfNZZ {
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .cookies_main__7LmQv {
        width: 92% !important;
        left: 16px !important;
        right: 20px !important;
        height: 180px !important;
        gap: 10px;
    }

    .cookies_ContentAndImage__OmeVK {
        font-size: 10px !important;
        line-height: 20px;
        padding: 20px 20px 0px 20px;
        gap: 20px;
    }

    .cookies_cookieImage__DR-h\+ {
        width: 35px;
        height: 35px;
    }

    .cookies_acceptButton__h6V2h {
        width: 42%;
        height: 38px;
    }

    .cookies_btnText__DWuYp {
        font-size: 12px;
    }

    .cookies_declineButton__FaKns {
        width: 42%;
        height: 38px;
    }

    .cookies_btnDeclineText__9qDi0 {
        font-size: 12px;
    }

    .cookies_buttonWrapper__mR5Aq {
        margin: 0px 10px 10px 15px;
        padding-right: 20px;
        width: 100%;
    }
    .cookies_iosButtonDiv__1dXEX{
        margin: 0px 10px 10px 15px;
        padding-right: 20px;
        width: 100%;
    }
    .cookies_androidButtonDiv__5vVDf{
        margin: 0px 10px 10px 15px;
        padding-right: 20px;
        width: 100%;
    }
}

@media only screen and (max-height: 440px) and (min-width: 400px) and (max-width: 1024px) and (orientation: landscape) {
    .cookies_main__7LmQv {
        left: 4% !important;
    }

    .cookies_ContentAndImage__OmeVK {
        padding: 20px 0 0 30px;
        width:90% ;
    }

    .cookies_cookieImage__DR-h\+ {
        width: 40px;
        height: 40px;
    }

    .cookies_buttonWrapper__mR5Aq {
    }

    .cookies_iosButtonDiv__1dXEX{
        margin: -20px 0 0 0;
    }

    .cookies_androidButtonDiv__5vVDf{
        margin: -110px 0 0 80px;

    }

    .cookies_btnText__DWuYp {
        font-size: 12px;
    }
}

/* RTL support */
.cookies_rtlMain__KT3fv { right: 87px !important; left: auto !important; }
.cookies_rtlContent__1k46M { direction: rtl; text-align: right; padding-right: 48px; padding-left: 0; }

@media (max-width: 768px) {
  .cookies_rtlMain__KT3fv { right: 16px !important; left: 20px !important; }
  .cookies_rtlContent__1k46M { padding: 20px 20px 0 20px; }
}

/* ===========================================================
   Enhanced Visual Theme for CarBot Playground
   Suitable for kids, teens & young learners
   Preserves layout and structure 100%
   =========================================================== */

:root {
  --container-max: 1100px;
  --radius: 16px;
  --shadow-elevated: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===================== Base Layout ===================== */
.page-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background 0.6s ease, color 0.3s ease;
}

/* Decorative soft radial accents */
.page-root::before,
.page-root::after {
  content: "";
  position: absolute;
  width: 65vmax;
  height: 65vmax;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.3;
  z-index: 0;
}

/* ===================== LIGHT MODE ===================== */
.page-root.light {
  /* گرادیانت چندلایه با رنگ‌های نرم و زیبا */
  background: radial-gradient(circle at 30% 20%, rgba(147, 197, 253, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(199, 210, 254, 0.25) 0%, transparent 50%),
              linear-gradient(135deg, #f8fafc 0%, #e0f2fe 40%, #dbeafe 70%, #ede9fe 100%);
  color: #1e293b;
  background-attachment: fixed;
}
.page-root.light::before {
  background: radial-gradient(circle at 25% 15%, rgba(96, 165, 250, 0.25), transparent 70%);
  top: -25vmax;
  left: -25vmax;
  animation: float-light 14s ease-in-out infinite alternate;
}
.page-root.light::after {
  background: radial-gradient(circle at 85% 85%, rgba(196, 181, 253, 0.2), transparent 70%);
  bottom: -25vmax;
  right: -25vmax;
  animation: float-light 18s ease-in-out infinite alternate;
}

/* ===================== DARK MODE ===================== */
/* ===================== DARK MODE (Refined Gradient & Depth) ===================== */
.page-root.dark {
  /* گرادیانت چندلایه با عمق بیشتر و رنگ‌های زیبا */
  background: radial-gradient(circle at 25% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 75% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
              linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #334155 80%, #1e293b 100%);
  color: #e2e8f0;
  background-attachment: fixed;
  background-size: cover;
}

/* نقاط نورانی (soft accent) با رنگ‌های جذاب‌تر */
.page-root.dark::before {
  background: radial-gradient(circle at 15% 10%, rgba(59, 130, 246, 0.18), transparent 70%);
  top: -20vmax;
  left: -25vmax;
  animation: float-dark 16s ease-in-out infinite alternate;
}

.page-root.dark::after {
  background: radial-gradient(circle at 80% 85%, rgba(139, 92, 246, 0.15), transparent 70%);
  bottom: -20vmax;
  right: -25vmax;
  animation: float-dark 20s ease-in-out infinite alternate;
}

/* انیمیشن ملایم */
@keyframes float-dark {
  0% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(15px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.9; }
}


/* Floating animations */
@keyframes float-light {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}
@keyframes float-dark {
  0% { transform: translateY(0); }
  50% { transform: translateY(15px); }
  100% { transform: translateY(0); }
}

/* ===================== Content Area ===================== */
.content-container {
  width: 100%;
  max-width: 1100px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px 20px 40px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* فاصله‌گذاری یکنواخت بین سکشن‌ها */
.section-spaced { margin: 18px 0; }

/* Utilities برای ستون‌بندی با فاصله */
.stack-gap-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-gap-24 { display: flex; flex-direction: column; gap: 24px; }

/* ===================== Hero Section ===================== */
.hero {
  text-align: center;
  margin: 20px auto 30px;
}
.hero-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% auto;
  animation: gradient-flow 6s linear infinite;
}
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-subtitle {
  font-size: clamp(14px, 2.2vw, 18px);
  opacity: 0.85;
}
.page-root.dark .hero-subtitle { color: #cbd5e1; }
.page-root.light .hero-subtitle { color: #334155; }

/* ===================== Section Cards ===================== */
.section-card {
  border-radius: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
          backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Light Mode: پس‌زمینه سفید ناب برای حذف کنتراست */
.page-root.light .section-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(203, 213, 225, 0.3);
  box-shadow: 0 4px 20px rgba(100, 116, 139, 0.08);
}

.page-root.dark .section-card {
  background: rgba(28, 31, 38, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

.section-card:hover {
  transform: translateY(-3px);
}

.page-root.light .section-card:hover {
  box-shadow: 0 8px 28px rgba(100, 116, 139, 0.12);
}

.page-root.dark .section-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* ===================== Playground Layout ===================== */
.playground-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.playground-workspace {
  min-height: 60vh;
  padding: 12px;
}
.blockly-host {
  width: 100%;
  height: calc(70vh);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease;
}
.page-root.light .blockly-host {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.08);
}

/* ======================================================================
   ⚠️ رفع باگ بنیادین: کلاس‌های واقعی pages/playground/index.js
   (playground-full / workspace-row / workspace-main / blockly-host-full)
   هیچ‌کدام در این فایل تعریف نشده بودند (فقط نسخهٔ قدیمی‌تر بدون "-full" تعریف
   شده بود که دیگر جایی استفاده نمی‌شود). یعنی کل چیدمان صفحهٔ Playground با
   رفتار پیش‌فرض بلوکی مرورگر رندر می‌شد، بدون ارتفاع/فضای مشخص برای نوار پایین.
   همین موضوع علت اصلی نامرئی‌شدن سطل بازیافت Blockly (که داخل ورک‌اسپیس، نزدیک
   لبهٔ پایین آن رندر می‌شود) و همپوشانی‌های گزارش‌شده بود.
   ====================================================================== */
.playground-full {
  flex: 1 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.workspace-row {
  flex: 1 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
}

.workspace-main {
  flex: 1 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.blockly-host-full {
  flex: 1 1;
  min-height: 0;
  width: 100%;
  /* فضای نوار پایین + دکمهٔ «مثال‌ها» رزرو می‌شود تا سطل بازیافت Blockly (که نزدیک
     لبهٔ پایین‌سمت‌راست ورک‌اسپیس رندر می‌شود) بالاتر از هر دو قرار بگیرد، نه زیرشان. */
  padding-bottom: 6.5rem;
  box-sizing: border-box;
  /* ⚠️ اصلاحیهٔ مهم: نسخهٔ قبلی این‌جا position:relative + z-index:16 گذاشته بود تا
     سطل بازیافت را بالای پنل کد بیاورد — ولی این کار کل ورک‌اسپیس (نه فقط سطل
     بازیافت) را روی پنل کد می‌آورد و کل پنل را کاملاً مخفی می‌کرد (باگ گزارش‌شده).
     z-index این کانتینر اصلاً نباید دست بخورد؛ فقط خودِ سطل بازیافت باید بالا بیاید
     (پایین‌تر، با selector اختصاصی .blocklyTrash).
  */
}

/* رفع دقیق و محدود: فقط خودِ سطل بازیافت (نه کل ورک‌اسپیس) بالای پنل کد بیاید.
   با isolation:isolate یک stacking context محلی و مستقل برای خودِ گروه SVG سطل
   بازیافت می‌سازیم، بدون این‌که روی سایر اجزای ورک‌اسپیس (بلوک‌ها، پس‌زمینه) اثر بگذارد. */
.blocklyTrash {
  isolation: isolate;
  z-index: 16 !important;
}

.code-toggle-rail {
  display: flex;
  align-items: center;
}

/* ===================== Buttons ===================== */
.toggle-btn {
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 600;
  color: white;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease, transform 0.3s ease;
}
.toggle-btn:hover {
  background: linear-gradient(90deg, #2563eb, #16a34a);
  transform: translateY(-2px);
}

/* ===================== Code Panel ===================== */
.code-panel-fixed {
  position: fixed;
  top: 3.25rem;
  bottom: 3.2rem;
  right: 0;
  width: clamp(340px, 34vw, 560px);
  border-radius: 12px 0 0 12px;
  overflow: hidden; /* Ace خودش اسکرول دارد */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  box-shadow: var(--shadow-elevated);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-left: 1px solid rgba(0,0,0,0.08);
  transform: translateX(100%);
  transition: transform 240ms ease, width 240ms ease;
  visibility: hidden;
  pointer-events: none;
  z-index: 15;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.code-panel-fixed.code-panel-wide {
  /* حالت «کد»: تمام عرض صفحهٔ کاری */
  top: 3.25rem;
  bottom: 3.2rem;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  border-radius: 0;
  border-left: none;
}
.page-root.dark .code-panel-fixed {
  background: rgba(26,28,33,0.88);
  border-left-color: rgba(255,255,255,0.08);
}
.code-panel-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.code-panel-fixed pre {
  margin: 0;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #0f172a;
}
.page-root.dark .code-panel-fixed pre { color: #cbd5e1; }

/* ===================== Code Toggle Rail ===================== */
.code-toggle-rail {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 32px;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px 0 0 10px;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
          backdrop-filter: saturate(160%) blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  box-shadow: var(--shadow-elevated);
  z-index: 21;
}
.code-toggle-rail.open { right: clamp(340px, 34vw, 560px); }
.code-toggle-rail.open.wide {
  /* در حالت تمام‌صفحه، دستگیره روی لبهٔ چپ می‌نشیند تا پنل کد آزاد بماند */
  right: auto;
  left: 0;
  border-radius: 0 10px 10px 0;
}
.page-root.dark .code-toggle-rail { background: rgba(30,32,37,0.75); }

.toggle-vertical-btn {
  border: none;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(180deg, #3b82f6, #22c55e);
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}
.toggle-vertical-btn:hover {
  background: linear-gradient(180deg, #2563eb, #16a34a);
}
.toggle-chevron {
  font-size: 18px;
  line-height: 1;
}
.toggle-mode-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.95;
  font-weight: 800;
}

/* ===================== Floating Controls ===================== */
.controls-bar {
  position: fixed;
  top: 3.25rem;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.8);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
          backdrop-filter: saturate(160%) blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  box-shadow: var(--shadow-elevated);
  z-index: 20;
  transition: var(--transition);
}
.page-root.dark .controls-bar {
  background: rgba(30,32,37,0.75);
}

/* ===================== Responsive ===================== */
@media (max-width: 768px) {
  .content-container { padding: 16px 14px 32px; }
  .blockly-host { height: 60vh; }
}

/* ===================== Extras ===================== */
.playground-bg.light {
  background: #eef3f9;
}
.playground-bg.dark {
  background: #161a20;
}


/* ==========================================================
   Visible Gradient Background for Dark Mode
   (applied directly on #blocklyDiv for visual impact)
   ========================================================== */

.page-root.dark #blocklyDiv {
  background: linear-gradient(145deg, #0f141a 0%, #1c2230 40%, #252c3a 100%);
  background-attachment: fixed;
  transition: background 0.6s ease-in-out;
}

/* جلوه‌های نوری ملایم در گوشه‌ها */
.page-root.dark #blocklyDiv::before,
.page-root.dark #blocklyDiv::after {
  content: "";
  position: absolute;
  width: 50vmax;
  height: 50vmax;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  z-index: 0;
}

.page-root.dark #blocklyDiv::before {
  background: radial-gradient(circle at 20% 10%, rgba(0, 180, 255, 0.3), transparent 70%);
  top: -20vmax;
  left: -20vmax;
  animation: softMove 18s ease-in-out infinite alternate;
}

.page-root.dark #blocklyDiv::after {
  background: radial-gradient(circle at 80% 85%, rgba(80, 255, 160, 0.25), transparent 70%);
  bottom: -20vmax;
  right: -20vmax;
  animation: softMove 24s ease-in-out infinite alternate;
}

@keyframes softMove {
  0% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-15px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.8; }
}



.page-root.dark #blocklyDiv {
  background: linear-gradient(135deg, #10151c 0%, #1c2430 40%, #262f3c 100%) !important;
  background-attachment: fixed !important;
}

/* ===================== RTL Utility ===================== */
.rtl {
  direction: rtl;
  text-align: right;
}
.rtl .section-card,
.rtl .hero,
.rtl .hero-subtitle {
  text-align: right;
}


/* داک پایین‌وسط workspace — مثال‌ها + ویجت سینک */
.bottom-center-dock {
  position: fixed;
  left: 50%;
  bottom: 3.4rem; /* بالای نوار ابزار پایین */
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 999;
  pointer-events: none; /* کلیک فقط روی دکمه‌ها */
}

.examples-dock-btn {
  pointer-events: auto;
  padding: 10px 16px;
  border-radius: 50px;
  background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.4);
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.examples-dock-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px rgba(25, 118, 210, 0.55);
}

/* =================================================================
   Modern Home Page Styles - Vibrant & Engaging for Young Learners
   ================================================================= */

.home-modern {
  position: relative;
  overflow-x: hidden;
}

/* ================== Hero Section ================== */
.hero-section {
  position: relative;
  padding: 80px 20px 60px;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2));
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  margin-bottom: 24px;
  animation: badge-float 3s ease-in-out infinite;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.page-root.dark .hero-badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(168, 85, 247, 0.15));
  border-color: rgba(255, 255, 255, 0.1);
}

.badge-emoji {
  font-size: 24px;
  animation: rotate-emoji 4s linear infinite;
}

.badge-text {
  font-size: 14px;
  font-weight: 600;
  color: #3b82f6;
}

.page-root.dark .badge-text {
  color: #60a5fa;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes rotate-emoji {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

/* Hero Title */
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.title-gradient {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.title-text {
  color: #1e293b;
}

.page-root.dark .title-text {
  color: #f1f5f9;
}

.title-emoji {
  font-size: clamp(40px, 6vw, 64px);
  display: inline-block;
  animation: bounce-emoji 2s ease-in-out infinite;
}

@keyframes bounce-emoji {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.title-highlight {
  position: relative;
  color: #8b5cf6;
  font-weight: 900;
}

.page-root.dark .title-highlight {
  color: #a78bfa;
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.6;
  margin: 0 0 40px;
  opacity: 0.9;
}

.page-root.light .hero-subtitle {
  color: #475569;
}

.page-root.dark .hero-subtitle {
  color: #cbd5e1;
}

.subtitle-highlight {
  font-weight: 700;
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ================== Hero Stats ================== */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.stats-card {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 20px 30px;
  min-width: 140px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-root.dark .stats-card {
  background: rgba(30, 35, 45, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.stats-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
}

.stats-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.stats-value {
  font-size: 28px;
  font-weight: 900;
  color: #3b82f6;
  margin-bottom: 4px;
}

.page-root.dark .stats-value {
  color: #60a5fa;
}

.stats-label {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.7;
}

/* ================== Floating Shapes ================== */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
}

.page-root.dark .shape {
  opacity: 0.1;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  top: -100px;
  left: -100px;
  animation: float-shape 20s ease-in-out infinite;
}

.shape-2 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #ec4899, #f59e0b);
  top: 50%;
  right: -80px;
  animation: float-shape 25s ease-in-out infinite reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #06b6d4, #22c55e);
  bottom: -50px;
  left: 20%;
  animation: float-shape 18s ease-in-out infinite;
}

.shape-4 {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  top: 20%;
  right: 15%;
  animation: float-shape 22s ease-in-out infinite reverse;
}

@keyframes float-shape {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -30px) rotate(90deg); }
  50% { transform: translate(-20px, 20px) rotate(180deg); }
  75% { transform: translate(40px, 10px) rotate(270deg); }
}

/* ================== Features Grid ================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin: 40px 0;
}

/* برای 6 کارت، در صفحات بزرگ 3 ستون */
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* برای تبلت، 2 ستون */
@media (min-width: 768px) and (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.page-root.dark .feature-card {
  background: rgba(30, 35, 45, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.3);
  box-shadow: 0 16px 48px var(--feature-color, rgba(59, 130, 246, 0.3));
  border-color: #3b82f6;
  border-color: var(--feature-color, #3b82f6);
}

.feature-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, #3b82f6, transparent 70%);
  background: radial-gradient(circle at 50% 0%, var(--feature-color, #3b82f6), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card:hover .feature-glow {
  opacity: 0.15;
}

.feature-icon {
  font-size: 56px;
  margin-bottom: 16px;
  display: inline-block;
  animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.feature-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #1e293b;
}

.page-root.dark .feature-title {
  color: #f1f5f9;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  opacity: 0.8;
}

/* ================== Section Headers ================== */
.section-header {
  margin-bottom: 24px;
  text-align: center;
}

.section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.title-icon {
  font-size: 1.3em;
  display: inline-block;
  animation: icon-wiggle 2s ease-in-out infinite;
}

@keyframes icon-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}

.section-desc,
.section-description {
  font-size: 16px;
  margin: 0 auto;
  opacity: 0.75;
  max-width: 38rem;
  line-height: 1.8;
}

.ai-academy-header {
  margin-bottom: 20px;
}

.ai-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #f4bf3a;
  text-transform: uppercase;
}

.ai-eye {
  display: inline-flex;
  color: #4fd1c5;
  filter: drop-shadow(0 0 10px rgba(79, 209, 197, 0.45));
}

.page-root.light .ai-kicker {
  color: #b45309;
}

.page-root.light .ai-eye {
  color: #0e7490;
  filter: none;
}

/* ================== Enhanced Sections ================== */
.carousel-wrapper,
.projects-wrapper {
  padding: 32px;
}

/* ================== Quick Actions ================== */
.quick-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 40px 0;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: #3b82f6;
  background: var(--action-color, #3b82f6);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.quick-action-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.quick-action-btn:hover::before {
  width: 300px;
  height: 300px;
}

.quick-action-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px var(--action-color);
}

.action-icon {
  font-size: 24px;
  position: relative;
  z-index: 1;
}

.action-label {
  position: relative;
  z-index: 1;
}

/* ================== Floating Action Button ================== */
.fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: none;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 12px 48px rgba(59, 130, 246, 0.6);
}

.fab-icon {
  font-size: 28px;
  animation: pulse-fab 2s ease-in-out infinite;
}

@keyframes pulse-fab {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ================== Responsive ================== */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 16px 40px;
  }

  .hero-stats {
    gap: 12px;
  }

  .stats-card {
    min-width: 110px;
    padding: 16px 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .quick-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-action-btn {
    justify-content: center;
  }

  .fab {
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
  }

  .fab-icon {
    font-size: 24px;
  }

  .carousel-wrapper,
  .projects-wrapper {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .stats-card {
    min-width: 90px;
    padding: 12px 16px;
  }

  .stats-icon {
    font-size: 28px;
  }

  .stats-value {
    font-size: 22px;
  }

  .stats-label {
    font-size: 12px;
  }
}

/* ================== Animations ================== */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fade-in-up 0.8s ease-out backwards;
}

.hero-badge { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.3s; }
.hero-stats { animation-delay: 0.4s; }

.feature-card {
  animation: fade-in-up 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }


/* =================================================================
   Welcome Tutorial Dialog Styles - Beautiful & Modern
   ================================================================= */

/* Overlay */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fade-in 0.3s ease-out;
}

.tutorial-overlay.dark {
    background: rgba(0, 0, 0, 0.85);
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Dialog Container */
.tutorial-dialog {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    animation: slide-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.tutorial-overlay.dark .tutorial-dialog {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header
   ⚠️ بازطراحی درخواست‌شده: قبلاً آیکون/عنوان/زیرعنوان زیر هم (ستونی) با padding
   بزرگ (40px بالا) بودند که ارتفاع هدر را خیلی زیاد می‌کرد و کل دیالوگ را مجبور به
   اسکرول می‌کرد. حالا هدر افقی است: متن سمت راست (چون اولین فرزند در RTL)، آیکون
   دست‌تکان‌دهنده سمت چپ، و padding به‌شدت کم شده. */
.tutorial-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 22px 22px 0 0;
    position: relative;
    overflow: hidden;
}

.tutorial-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate-glow 10s linear infinite;
}

@keyframes rotate-glow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.tutorial-header-text {
    position: relative;
    z-index: 1;
}

.tutorial-icon-wrapper {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.tutorial-main-icon {
    font-size: 40px;
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

.tutorial-title {
    position: relative;
    z-index: 1;
    font-size: 20px;
    font-weight: 900;
    color: white;
    margin: 0 0 2px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.tutorial-subtitle {
    position: relative;
    z-index: 1;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* Content — فاصله‌ها کم‌تر شد تا بدون اسکرول در یک صفحه جا شود */
.tutorial-content {
    padding: 16px 30px;
}

.tutorial-step {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    animation: fade-in-step 0.6s ease-out backwards;
}

.tutorial-step:nth-child(1) { animation-delay: 0.1s; }
.tutorial-step:nth-child(2) { animation-delay: 0.2s; }
.tutorial-step:nth-child(3) { animation-delay: 0.3s; }
.tutorial-step:nth-child(4) { animation-delay: 0.4s; }
.tutorial-step:nth-child(5) { animation-delay: 0.5s; }
.tutorial-step:nth-child(6) { animation-delay: 0.6s; }

@keyframes fade-in-step {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tutorial-step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.tutorial-step:hover .step-number {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.step-content {
    flex: 1 1;
    padding-top: 6px;
}

.step-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
    font-weight: 500;
}

.tutorial-overlay.dark .step-content p {
    color: #e2e8f0;
}

.step-content .highlight {
    color: #8b5cf6;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.tutorial-overlay.dark .step-content .highlight {
    color: #a78bfa;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
}

/* Footer */
.tutorial-footer {
    padding: 24px 30px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
    animation: fade-in-step 0.6s ease-out backwards 0.7s;
}

.tutorial-overlay.dark .tutorial-footer {
    border-top-color: rgba(255, 255, 255, 0.05);
}

/* Checkbox */
.dont-show-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    -webkit-user-select: none;
            user-select: none;
}

.dont-show-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #8b5cf6;
    border-radius: 4px;
}

.checkbox-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.tutorial-overlay.dark .checkbox-label {
    color: #94a3b8;
}

/* Button */
.tutorial-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.tutorial-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.tutorial-btn:hover::before {
    width: 300px;
    height: 300px;
}

.tutorial-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.6);
}

.tutorial-btn:active {
    transform: translateY(0) scale(1);
}

.btn-icon {
    font-size: 20px;
    position: relative;
    z-index: 1;
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* Decorative Elements */
.tutorial-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.decoration-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    top: -50px;
    right: -50px;
    animation: float-decoration 8s ease-in-out infinite;
}

.decoration-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #ec4899, #f59e0b);
    bottom: -30px;
    left: -30px;
    animation: float-decoration 10s ease-in-out infinite reverse;
}

.decoration-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #06b6d4, #22c55e);
    top: 50%;
    left: 50%;
    animation: float-decoration 12s ease-in-out infinite;
}

@keyframes float-decoration {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

/* Scrollbar Styling */
.tutorial-dialog::-webkit-scrollbar {
    width: 8px;
}

.tutorial-dialog::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0 24px 24px 0;
}

.tutorial-overlay.dark .tutorial-dialog::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.tutorial-dialog::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
}

.tutorial-dialog::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

/* Responsive */
@media (max-width: 640px) {
    .tutorial-dialog {
        border-radius: 16px;
        max-width: 95%;
    }

    .tutorial-header {
        padding: 12px 18px;
    }

    .tutorial-main-icon {
        font-size: 32px;
    }

    .tutorial-title {
        font-size: 17px;
    }

    .tutorial-subtitle {
        font-size: 12px;
    }

    .tutorial-content {
        padding: 12px 18px;
    }

    .tutorial-step {
        gap: 12px;
        margin-bottom: 10px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .step-content p {
        font-size: 14px;
    }

    .tutorial-footer {
        padding: 20px 20px 24px;
        flex-direction: column;
        align-items: stretch;
    }

    .tutorial-btn {
        width: 100%;
        justify-content: center;
    }

    .dont-show-checkbox {
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .tutorial-main-icon {
        font-size: 28px;
    }

    .tutorial-title {
        font-size: 15px;
    }

    .tutorial-subtitle {
        font-size: 11px;
    }

    .step-content p {
        font-size: 13px;
    }

    .step-content .highlight {
        padding: 1px 6px;
        font-size: 13px;
    }
}


/* ==========================================================
   Modern Educational Blockly Theme
   Enhanced visuals for children, teens & young learners
   Preserves layout and structure
   ========================================================== */

#blocklyDiv {
  color: #000;
  background-color: #f8fafc;
  position: fixed;
  top: 5rem;
  bottom: 4.4rem;
  left: 0;
  right: 0;
  box-sizing: border-box;
  overflow: hidden;
  transition: background 0.5s ease;
}

.page-root.dark #blocklyDiv {
  background: radial-gradient(circle at 40% 40%, #101318 0%, #181c23 100%);
}

/* ---------------- Toolbox & Flyout ---------------- */
.blocklyToolboxContents {
  padding-top: 1.5rem;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  height: 100%;
  position: relative;
  left: 0;
  /* عرض منو بر اساس طول متن تنظیم می‌شود، با محدوده‌ی امن */
  display: inline-block;
  width: fit-content;
  min-width: 140px;
  max-width: 280px;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.7);
}
.page-root.dark .blocklyToolboxContents {
  background: rgba(25, 28, 33, 0.7);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------------- Flyout ---------------- */
.blocklyFlyout {
  /* کاهش عرض ناحیه نمایش بلوک‌ها برای هم‌ترازی با متن منو */
  width: 280px !important;
  overflow: visible !important;
  position: relative;
  /* حذف فاصله بین منو و ناحیه بلوک‌ها */
  transform: translateX(-16px);
  z-index: 50;
  transition: transform 0.3s ease-in-out, background 0.5s ease;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-radius: 0 16px 16px 0;
}
.page-root.dark .blocklyFlyout {
  background: rgba(30, 33, 39, 0.85);
  /* جلوگیری از ایجاد خط مضاعف کنار منو */
  border-left: none;
}

/* ---------------- Tree Rows (Categories) ---------------- */
.blocklyTreeRow {
  height: 2.5rem;
  line-height: 2.5rem;
  padding: 4px 12px;
  border-radius: 8px;
  margin: 4px 8px;
  font-family: IranSans, sans-serif;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.2s ease;
}

.blocklyTreeRow:hover {
  background-color: rgba(59, 130, 246, 0.1);
  transform: translateX(4px);
}

/* Dark theme */
.page-root.dark .blocklyTreeRow:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* ---------------- Category Colors ---------------- */
.blocklyTreeLabel {
  font-size: 15px;
  color: #1e293b;
}
.page-root.dark .blocklyTreeLabel {
  color: #e2e8f0;
}

.blocklyTreeRow[aria-label="Motion"] .blocklyTreeLabel { color: #3b82f6; }
.blocklyTreeRow[aria-label="Control"] .blocklyTreeLabel { color: #f59e0b; }
.blocklyTreeRow[aria-label="Sensors"] .blocklyTreeLabel { color: #10b981; }
.blocklyTreeRow[aria-label="Lights"] .blocklyTreeLabel { color: #e11d48; }
.blocklyTreeRow[aria-label="Logic"] .blocklyTreeLabel { color: #8b5cf6; }
.blocklyTreeRow[aria-label="Variables"] .blocklyTreeLabel { color: #ec4899; }
.blocklyTreeRow[aria-label="Loops"] .blocklyTreeLabel { color: #22c55e; }

/* ---------------- Main Workspace ---------------- */
.blocklyMainBackground {
  stroke: none;
  fill: transparent;
}

/* Subtle grid lines for clarity */
.blocklyGridPattern {
  stroke: rgba(0, 0, 0, 0.05);
}
.page-root.dark .blocklyGridPattern {
  stroke: rgba(255, 255, 255, 0.06);
}

/* ---------------- Field Toggles ---------------- */
.blocklyFieldToggle text {
  fill: white !important;
}
.field-toggle-on {
  fill: #22c55e !important;
}
.field-toggle-off {
  fill: #94a3b8 !important;
}

/* ---------------- Dropdown Menu ---------------- */
.blocklyDropDownMenu {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
}
.page-root.dark .blocklyDropDownMenu {
  background: rgba(30, 30, 35, 0.9);
}

/* ---------------- Hover Glow for Blocks ---------------- */
.blocklySelected > path.blocklyPath {
  stroke: #00c3ff;
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(0, 195, 255, 0.6));
}
.page-root.dark .blocklySelected > path.blocklyPath {
  stroke: #00ffaa;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(0, 255, 170, 0.6));
}

/* ---------------- Labels ---------------- */
.sensorsHeading > .blocklyFlyoutLabelText,
.Heading > .blocklyFlyoutLabelText {
  font-size: 1.4rem !important;
  fill: #ffffff !important;
  font-family: IranSans, sans-serif;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ---------------- Responsiveness ---------------- */
@media (max-width: 767px) {
  #blocklyDiv { bottom: 9%; }
  .blocklyTreeLabel { font-size: 1rem; }
  .blocklyTreeRow { padding: 4px; }
  .blocklyToolboxContents {
    height: 130%;
    border-right: 0.5px solid rgba(0,0,0,0.2);
  }
}



.page-root.dark #blocklyDiv {
  background: linear-gradient(135deg, #10151c 0%, #1c2430 40%, #262f3c 100%) !important;
  background-attachment: fixed !important;
}


/* متن انگلیسی روی بلوک‌ها: IranSans برای لاتین خیلی نازک است */
.blocklyText,
.blocklyDropdownText,
.blocklyEditableText > text,
.blocklyNonEditableText > text {
  font-size: 13px !important;
  font-family: "Nunito", "Segoe UI", "Trebuchet MS", Tahoma, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em;
}
.blocklyHtmlInput {
  font-size: 13px !important;
  font-family: "Nunito", "Segoe UI", Tahoma, sans-serif !important;
  font-weight: 700 !important;
}
.blocklyTreeLabel,
.blocklyFlyoutLabelText,
.blocklyDropDownDiv,
.blocklyWidgetDiv,
.blocklyMenuItem,
.blocklyContextMenu {
  font-family: IranSans, sans-serif !important;
}

.qrCode_slider__sEdYM {
    width: 22px;
    height: 149px;
    background-color: rgba(76, 156, 214, 0.15);
    border: 1px solid #4C9CD626;
    border-radius: 0 15px 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qrCode_leftSlider__NDtYq {
    border-radius: 15px 0 0 15px;
}


@media only screen and (min-width: 400px) and (max-width: 1024px) and (orientation: landscape) {
    .qrCode_slider__sEdYM {
        margin-top: -180px;
    }

    .qrCode_heading__mjTGJ {
        margin-top: 0px !important;
    }
}
.CommandPalette_overlay__6nXmM {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8vh;
  direction: rtl;
}

.CommandPalette_panel__KGclu {
  width: min(720px, 96vw);
  max-height: 78vh;
  background: #1e1e2e;
  color: #e8e8f0;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.CommandPalette_header__ltwYB {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 8px;
  gap: 8px;
  flex-shrink: 0;
}

.CommandPalette_title__2Anjs {
  font-weight: 700;
  font-size: 15px;
}

.CommandPalette_hint__AfEWT {
  font-size: 11px;
  opacity: 0.65;
  direction: ltr;
}

.CommandPalette_body__zNF7P {
  display: flex;
  flex-direction: row-reverse; /* ریل دسته سمت چپ بصری مثل toolbox */
  flex: 1 1;
  min-height: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

/* ریل دسته‌بندی — شبیه toolbox سمت چپ Blockly */
.CommandPalette_catRail__D6p37 {
  width: 118px;
  flex-shrink: 0;
  overflow-y: auto;
  background: #12121a;
  border-left: 1px solid rgba(148, 163, 184, 0.2);
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.CommandPalette_catItem__EpHju {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  color: #cbd5e1;
  padding: 10px 10px;
  cursor: pointer;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  border-right: 3px solid transparent;
}

.CommandPalette_catItem__EpHju:hover {
  background: rgba(148, 163, 184, 0.1);
}

.CommandPalette_catItemActive__D8yuv {
  background: rgba(56, 189, 248, 0.12);
  border-right-color: #38bdf8;
  color: #f8fafc;
}

.CommandPalette_catDot__DcoK6 {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.CommandPalette_catName__Jrbwf {
  flex: 1 1;
  line-height: 1.2;
}

.CommandPalette_mainCol__k\+gqE {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.CommandPalette_search__YDIxv {
  margin: 10px 12px 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #12121a;
  color: #f1f5f9;
  font-size: 14px;
  outline: none;
  flex-shrink: 0;
}

.CommandPalette_search__YDIxv:focus {
  border-color: #38bdf8;
}

.CommandPalette_list__K7WKJ {
  overflow-y: auto;
  flex: 1 1;
  padding: 4px 8px 12px;
}

.CommandPalette_group__HT8eh {
  margin-bottom: 8px;
}

.CommandPalette_groupTitle__ZqraP {
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  padding: 8px 10px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.CommandPalette_groupSwatch__fFSr0 {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.CommandPalette_groupCount__r4s-V {
  margin-right: auto;
  font-size: 10px;
  opacity: 0.55;
  font-weight: 600;
}

.CommandPalette_item__tU6tP {
  display: block;
  width: 100%;
  text-align: right;
  border: none;
  background: transparent;
  color: inherit;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 2px;
}

.CommandPalette_item__tU6tP:hover,
.CommandPalette_itemActive__C1eNd {
  background: rgba(56, 189, 248, 0.15);
}

.CommandPalette_itemMain__4fbox {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.CommandPalette_itemLabel__iaFJa {
  font-weight: 600;
  font-size: 13px;
}

.CommandPalette_itemCode__OlxpQ {
  font-size: 11px;
  direction: ltr;
  opacity: 0.85;
  background: rgba(15, 23, 42, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
}

.CommandPalette_itemDetail__20lgJ {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 2px;
}

.CommandPalette_coach__KdHW1 {
  margin-top: 6px;
  font-size: 12px;
  color: #fde68a;
  background: rgba(253, 230, 138, 0.08);
  padding: 6px 8px;
  border-radius: 6px;
}

.CommandPalette_empty__2jw0y {
  padding: 24px;
  text-align: center;
  opacity: 0.7;
}

.CommandPalette_footer__P7lYd {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 8px 14px;
  font-size: 11px;
  opacity: 0.7;
  flex-shrink: 0;
}


.CommandPalette_searchRow__qp5ja {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 12px 8px;
  flex-shrink: 0;
}

.CommandPalette_searchRow__qp5ja .CommandPalette_search__YDIxv {
  margin: 0;
  flex: 1 1;
}

.CommandPalette_helpBtn__m4eU0 {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #12121a;
  color: #7dd3fc;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.CommandPalette_helpBtn__m4eU0:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.CommandPalette_catHelpBox__mDABB {
  margin: 0 12px 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.25);
  font-size: 12px;
  line-height: 1.55;
  color: #e0f2fe;
  flex-shrink: 0;
}

.CommandPalette_itemHelpRow__BP5NU {
  margin-top: 6px;
}

.CommandPalette_itemHelpBtn__WKlsU {
  border: none;
  background: rgba(148, 163, 184, 0.15);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.CommandPalette_itemHelpBtn__WKlsU:hover {
  background: rgba(56, 189, 248, 0.2);
}

.CommandPalette_helpText__tWeKp {
  margin: 8px 0 0;
  padding: 10px;
  border-radius: 8px;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  direction: rtl;
  text-align: right;
  font-family: IranSans, sans-serif;
}

.GuidedEditor_wrapper__uaIVs {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  /* نوار ابزار فارسی RTL؛ Ace جداگانه LTR است */
  direction: rtl;
}

.GuidedEditor_toolbar__8SCyC {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  z-index: 2;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.GuidedEditor_toolbarLeft__W4c12,
.GuidedEditor_toolbarRight__DRA\+a {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.GuidedEditor_btn__Qdpzq,
.GuidedEditor_btnPrimary__\+Kuaf,
.GuidedEditor_btnDanger__WLmsk,
.GuidedEditor_btnUndoBanner__D14Tm {
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.GuidedEditor_btn__Qdpzq {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.GuidedEditor_btnPrimary__\+Kuaf {
  background: #0ea5e9;
  color: #0f172a;
  font-weight: 700;
}

.GuidedEditor_btnDanger__WLmsk {
  background: rgba(248, 113, 113, 0.25);
  color: #fecaca;
}

.GuidedEditor_btnUndoBanner__D14Tm {
  margin-top: 6px;
  background: #fef3c7;
  color: #78350f;
  font-weight: 700;
}

.GuidedEditor_badge__auewO {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
}

.GuidedEditor_badgeOk__bXTsN {
  background: rgba(52, 211, 153, 0.25);
  color: #a7f3d0;
}

.GuidedEditor_badgeErr__lXK1B {
  background: rgba(248, 113, 113, 0.3);
  color: #fecaca;
}

.GuidedEditor_badgePending__8EHw5 {
  background: rgba(251, 191, 36, 0.25);
  color: #fde68a;
}

.GuidedEditor_banner__2wzgY {
  padding: 8px 10px;
  font-size: 12px;
  z-index: 2;
  max-height: 30%;
  overflow-y: auto;
}

.GuidedEditor_bannerError__NFP98 {
  background: #450a0a;
  color: #fecaca;
  border-bottom: 1px solid rgba(248, 113, 113, 0.4);
}

.GuidedEditor_bannerWarn__oaAjw {
  background: #1e293b;
  color: #fde68a;
  border-bottom: 1px solid rgba(251, 191, 36, 0.3);
}

.GuidedEditor_issueList__suNs2 {
  margin: 0;
  padding-right: 18px;
}

.GuidedEditor_coach__zGVR2 {
  margin-top: 4px;
  opacity: 0.95;
}

.GuidedEditor_aceHost__MrbSX {
  position: relative;
  flex: 1 1;
  min-height: 120px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  z-index: 1;
  /* حیاتی: کل ویرایشگر کد ایزولهٔ LTR — والد RTL باعث جابه‌جایی caret و bracket می‌شود */
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: isolate;
  /* فونت متناسب والد (Tahoma) عرض کاراکتر را غلط اندازه می‌گیرد → کلیک/حذف چند کاراکتر جابه‌جا می‌شود */
  font-family: Consolas, "Courier New", Monaco, monospace !important;
}

/* همهٔ لایه‌های داخلی Ace هم LTR اجباری */
.GuidedEditor_aceHost__MrbSX .ace_editor,
.GuidedEditor_aceHost__MrbSX .ace_scroller,
.GuidedEditor_aceHost__MrbSX .ace_content,
.GuidedEditor_aceHost__MrbSX .ace_text-layer,
.GuidedEditor_aceHost__MrbSX .ace_cursor-layer,
.GuidedEditor_aceHost__MrbSX .ace_marker-layer {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: isolate;
  font-family: Consolas, "Courier New", Monaco, monospace !important;
}

.GuidedEditor_aceHost__MrbSX .ace_gutter,
.GuidedEditor_aceHost__MrbSX .ace_gutter-layer {
  direction: ltr !important;
  text-align: right !important;
  unicode-bidi: isolate;
  z-index: 5;
}

.GuidedEditor_aceHost__MrbSX .ace_gutter {
  left: 0 !important;
}

.GuidedEditor_aceHost__MrbSX .ace_gutter-layer {
  margin-left: 0 !important;
}

/* Ace textarea مخفی را روی مکان‌نما جابه‌جا می‌کند. left/top/transform قفل‌شده
   کلیک و Backspace را حدود عرض gutter (~۵ کاراکتر) جابه‌جا می‌کرد. */
.GuidedEditor_aceHost__MrbSX .ace_text-input {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: isolate;
}

/* نشانگر تطبیق براکت که در RTL به‌هم می‌ریزد و مثل «دو المان اضافه» دیده می‌شود */
.GuidedEditor_aceHost__MrbSX .ace_bracket {
  display: none !important;
}

.GuidedEditor_aceHost__MrbSX .ace_line {
  direction: ltr !important;
  unicode-bidi: isolate;
}

.style_modelModal__18D4F {
    background-color: var(--modal-bg);
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.style_modelHeader__W0Q3N {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.style_modelHeader__W0Q3N h2 {
    color: var(--text-primary);
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

.style_closeIcon__0Rbhb {
    cursor: pointer;
    width: 24px;
    height: 24px;
}

.style_modelContent__0FDb9 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.style_inputGroup__uETSv {
    display: flex;
    gap: 16px;
}

.style_modelDescription__Bm17c {
    background-color: var(--description-bg);
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.style_descriptionText__6DfhH h4 {
    color: var(--primary-color);
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 500;
}

.style_descriptionText__6DfhH p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.style_modelActions__dPm2j {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Dark Theme */
:root[data-theme='dark'] {
    --modal-bg: #202020;
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --description-bg: #2A2A2A;
    --primary-color: #0071c5;
}

/* Light Theme */
:root[data-theme='light'] {
    --modal-bg: #FFFFFF;
    --text-primary: #333333;
    --text-secondary: #666666;
    --description-bg: #F5F5F5;
    --primary-color: #0071c5;
}

/* Responsive */
@media (max-width: 600px) {
    .style_modelModal__18D4F {
        width: 95%;
        padding: 16px;
    }

    .style_inputGroup__uETSv {
        flex-direction: column;
    }

    .style_modelHeader__W0Q3N h2 {
        font-size: 20px;
    }
}










.style_barDiv__Bk-79 {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 3.2rem; /* فشرده */
    border-top: 0.5px solid gray;
    z-index: 30;
}

.style_loaderBarDiv__Iapa2 {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 20%;
    border-top: 0.5px solid gray;
}

.style_buttonsDiv__YOjur {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    /* RTL: اطمینان از positioning */
    right: 0;
    left: 0;
    width: 100%;
    /* z-index بالاتر از code-panel (15) */
    z-index: 30;
}

.style_loaderText__bPfXj {
    position: absolute;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    margin-top: 2%;
}

.style_textItem__mVj7c {
    font-family: Gilroy-medium, sans-serif;
    margin-top: 3px;
}

.style_errorDiv__dgIYl {
    font-family: Gilroy-medium, sans-serif;
    color: #D70000;
    font-weight: 600;
    margin-left: 5%;
    font-size: 20px;
    margin-top: 1%;
}

.style_errorItems__xuWnZ {
    font-size: 15px;
    line-height: 30px;
}

.style_barDivLight__Yf2PQ {
    background-color: white;
}

.style_barDivDark__Qo0d0 {
    background-color: #202020;
}

.style_uploadCodeButton__i-FIk {
    /* RTL: margin-right به جای margin-left */
    margin-right: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    /* RTL: border-radius معکوس */
    border-radius: 0 0.5rem 0.5rem 0;
    height: 2.35rem;
    width: 100%;
    background: rgb(0, 113, 197);
    cursor: pointer;
    /* RTL: z-index برای جلو آوردن */
    position: relative;
    z-index: 31;
}

.style_features__aTuLM {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    /* RTL: border-radius معکوس */
    border-radius: 0.5rem 0 0 0.5rem;
    height: 2.35rem;
    width: 20%;
    background-color: #005B9F;
    cursor: pointer;
    /* RTL: z-index برای جلو آوردن */
    position: relative;
    z-index: 31;
}

.style_features__aTuLM:hover {
    opacity: 85%;
}

.style_leftButton__lfje4 {
    display: flex;
    font-family: IranSans, sans-serif;
    align-items: center;
    font-size: 1.0rem;
    color: rgb(248, 249, 251);
    pointer-events: none;
}

.style_optionExtraStyle__haTH8 {
    height: 125px;
    width: 260px;
    position: sticky;
    top: 65px;
    left: 39vw;
}


.style_iconDiv__p1Lfi {
    height: 1.15rem;
    width: 1.5rem;
    pointer-events: none;
}

.style_operationsDiv__URdyK {
    display: flex;
    align-items: center;
    margin-right: 4rem;
}

.style_driveIconStyle__o0fFf {
    width: 2.2rem;
    cursor: pointer;
}

.style_shrinkDriveIcon__-Td1i {
    width: 1.7rem;
    cursor: pointer;
    margin-bottom: 0.3rem;
}

.style_buttonStyle__1rgBo {
    width: 4.2rem;
    height: 2.35rem;
    border: none;
    background: rgb(0, 113, 197);
    color: rgb(248, 249, 251);
    font-family: Gilroy-Medium, sans-serif;
    cursor: pointer;
}

.style_undoButtonStyle__f-A0A {
    border-radius: 0.4rem 0px 0px 0.4rem;
    border: none;
}

.style_borderStyle__cZwz7 {
    border-right: 1px solid black
}


.style_commandSize__4nsjM {
    width: 1.4rem;
    height: 1.2rem;
    pointer-events: none;
}

.style_minusStyle__ACQFC {
    border-radius: 0.4rem 0 0 0.4rem;
}

.style_plusStyle__8Jx9W {
    border-radius: 0 0.4rem 0.4rem 0
}

.style_operationSize__TDASe {
    font-size: 2.4rem;
    color: white;
    pointer-events: none;
    font-weight: 100
}

.style_iconMargin__wwc9C {
    margin: 10px;
}

.style_noSpace__CDGfB {
    display: flex;
}

.style_driveStyle__xyPP6 {
    border: none;
    background: none;
}

.style_buttonColor__S3JDg {
    background: #0071c5;
    opacity: 0.8;
}

.style_buttonMargin__1P98\+ {
    margin-right: 1px;
}

.style_langOption__VFrP9 {
    height: 140px;
    width: 220px;
    position: absolute;
    top: -190px;
    left: -7vw;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    font-family: Gilroy-Regular, sans-serif;
    /* z-index خیلی بالا برای نمایش بالای code panel */
    z-index: 9999;
}

.style_langItem__z4B1m {
    font-size: 20px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-around;
    cursor: pointer;
    padding: 0 0 0.5rem 1rem;
    border-style: none none none solid;
}

.style_darkTitleModel__CBdWO {
    background-color: #303030;
}

.style_lightTitleModel__Pv66\+ {
    background-color: #ffffff;
}

.style_jsDivMargin__l21mx {
    padding-right: 2rem;
    margin-top: 0.8rem;
    padding-top: 6px;
}

.style_pyDivMargin__W\+D3T {
    padding-top: 6px;
    padding-right: 4rem;
}

.style_langIcon__W15ln {
    width: 24px;
    height: 24px;
}

.style_pyFont__NSxlw {
    padding-left: 6px !important;
}

@media (max-width: 767px) {

    .style_barDiv__Bk-79 {
        height: 9%;
    }

    .style_pyText__vFvdu {
        padding-right: 21px
    }

    .style_langIcon__W15ln {
        width: 18px;
        height: 18px;
    }

    .style_uploadCodeButton__i-FIk {
        height: 2.5rem;
        width: 55%;
        /* RTL: border-radius */
        border-radius: 0 0.4rem 0.4rem 0;
        margin-right: 0.5rem;
        margin-top: 0.40rem;
    }

    .style_features__aTuLM {
        height: 2.5rem;
        /* RTL: border-radius */
        border-radius: 0.4rem 0 0 0.4rem;
        width: 30%;
        cursor: pointer;
        margin-right: 0;
        margin-top: 0.40rem;
    }

    .style_operationsDiv__URdyK {
        margin-right: -7rem;
    }

    .style_buttonMargin__1P98\+ {
        display: flex;
        margin-top: 20px;
    }

    .style_iconMargin__wwc9C {
        width: 40%;
    }

    .style_iconDiv__p1Lfi {
        height: 1.4rem;
        width: 1.5rem;
    }

    .style_iconSpace__HfTUL {
        width: 12%;
        margin-left: 5rem;
    }

    .style_buttonsDiv__YOjur {
        height: 10%;
    }

    .style_shrinkDriveIcon__-Td1i {
        width: 1.5rem;
    }

    .style_driveIconStyle__o0fFf {
        width: 2rem;
        margin-top: 0.5rem;
    }

    .style_buttonStyle__1rgBo {
        width: 7rem;
        height: 2.5rem;
    }

    .style_commandSize__4nsjM {
        width: 1rem;
        height: 0.98rem;
    }

    .style_textItem__mVj7c {
        margin-top: 2px;
        font-size: 12px;
    }

    .style_errorDiv__dgIYl {
        font-size: 15px;
        margin-left: 5%;
        margin-top: 3%;
    }

    .style_loaderText__bPfXj {
        margin-top: 8%;
    }

    .style_errorItems__xuWnZ {
        font-size: 12px;
        line-height: 50px;
    }

    .style_langOption__VFrP9 {
        height: 95px;
        width: 140px;
        top: -135px;
        left: -15vw;
    }

    .style_langItem__z4B1m {
        padding: 0 0 0.5rem 0;
    }

    .style_pyFont__NSxlw {
        padding-left: 6px !important;
    }

    .style_langItem__z4B1m {
        font-size: 15px;
    }

}


@media only screen and (min-width: 400px) and (max-width: 1024px) and (max-height: 500px)  and (orientation: landscape) {

    .style_pyText__vFvdu {
        padding-right: 22px
    }

    .style_langIcon__W15ln {
        width: 18px;
        height: 18px;
    }

    .style_jsDivMargin__l21mx {
        padding-right: 1rem;
        padding-top: 3px;
    }

    .style_pyDivMargin__W\+D3T {
        padding-top: 6px;
        padding-right: 1.3rem;
    }


    .style_barDiv__Bk-79 {
        height: 18%;
    }

    .style_uploadCodeButton__i-FIk {
        height: 2.3rem;
        /* RTL: margin-right */
        margin-right: 1.4rem;
        width: 100px;
        margin-bottom: 0.3rem;
    }

    .style_features__aTuLM {
        height: 2.3rem;
        width: 20%;
        margin-bottom: 0.3rem;
    }

    .style_buttonsDiv__YOjur {
        height: 18%;
    }

    .style_buttonStyle__1rgBo {
        margin-bottom: 0.3rem;
        height: 2.3rem;
    }

    .style_loaderBarDiv__Iapa2 {
        height: 30%;
    }

    .style_loaderText__bPfXj {
        margin-top: 2%;
    }

    .style_textItem__mVj7c {
        margin-top: 3px;
        font-size: 14px;
    }

    .style_errorDiv__dgIYl {
        margin-top: 1.5%;
        font-size: 15px;
    }

    .style_errorItems__xuWnZ {
        font-size: 12px;
        line-height: 20px;
    }

    .style_langOption__VFrP9 {
        height: 130px;
        width: 160px;
        top: -170px;
        left: -10vw;
    }

}


@media (min-width: 768px) and (max-width: 1024px) and (min-height: 650px) {

    .style_features__aTuLM {
        width: 40%;
    }

    .style_jsDivMargin__l21mx {
        padding-right: 1rem;
    }

    .style_pyDivMargin__W\+D3T {
        padding-right: 2.6rem;
    }

    .style_operationsDiv__URdyK {
        margin-right: 2rem;
    }

    .style_noSpace__CDGfB {
        margin-left: -2%;
    }

    .style_loaderText__bPfXj {
        margin-top: 6%;
    }

    .style_textItem__mVj7c {
        margin-top: 10px;
        font-size: 24px;
    }

    .style_langOption__VFrP9 {
        height: 140px;
        width: 160px;
    }

}

/* خوشهٔ وسط نوار پایین — داخل ارتفاع نوار */
.style_barCenterCluster__wOOxk {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 31;
    pointer-events: none;
}

.style_examplesBarBtn__d-EWB {
    pointer-events: auto;
    padding: 5px 12px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
    box-shadow: 0 2px 10px rgba(25, 118, 210, 0.35);
    white-space: nowrap;
}

.style_examplesBarBtn__d-EWB:hover {
    filter: brightness(1.08);
}

.style_helpBarBtn__pzU1Q {
    pointer-events: auto;
    padding: 5px 12px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
    box-shadow: 0 2px 10px rgba(180, 83, 9, 0.35);
    white-space: nowrap;
}

.style_helpBarBtn__pzU1Q:hover {
    filter: brightness(1.08);
}

.inputComponent_mainDiv__jY812 {
    margin: 20px;
}

.inputComponent_inputSection__g4HPb {
    background-color: transparent;
    font-family: Gilroy-Regular, sans-serif;
    font-size: 20px;
    height: 96%;
    width: 100%;
    border: none;
    border-radius: 6px;
    padding: 0 10px;
    outline: none;
}

.inputComponent_inputBorder__9q2mT {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70%;
    width: 100%;
    border: 1px solid rgba(0, 113, 197, 0.4);
    border-radius: 6px;
}

.inputComponent_extensionName__FywPF {
    padding-right: 13%;
    font-family: Gilroy-Regular, sans-serif;
    font-size: 18px;
}

.inputComponent_dropdownItem__o0uJJ {
    font-family: Gilroy-Regular, sans-serif;
    font-size: 17px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}



.SubscriptionModal_modalBox__YSWkC {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 40px 30px;
  outline: none;
  direction: rtl;
  text-align: center;
  animation: SubscriptionModal_slideIn__bJ8Ar 0.3s ease-out;
}

@keyframes SubscriptionModal_slideIn__bJ8Ar {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.SubscriptionModal_closeButton__A3WQO {
  position: absolute;
  left: 10px;
  top: 10px;
  color: #666;
  transition: all 0.2s;
}

.SubscriptionModal_closeButton__A3WQO:hover {
  color: #333;
  background-color: #f0f0f0;
}

.SubscriptionModal_iconContainer__sMZod {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.SubscriptionModal_lockIcon__i5uiN {
  font-size: 64px !important;
  color: #ff9800;
  animation: SubscriptionModal_pulse__zLn9B 2s infinite;
}

@keyframes SubscriptionModal_pulse__zLn9B {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.SubscriptionModal_title__JizV2 {
  font-weight: bold !important;
  color: #333 !important;
  margin-bottom: 16px !important;
  font-family: 'IranSans', sans-serif !important;
}

.SubscriptionModal_message__dQ8Fb {
  color: #666 !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  margin-bottom: 32px !important;
  font-family: 'IranSans', sans-serif !important;
}

.SubscriptionModal_buttonsContainer__EhPua {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-direction: column;
}

.SubscriptionModal_purchaseButton__XBucS {
  background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%) !important;
  color: white !important;
  font-weight: bold !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  transition: all 0.3s !important;
  font-family: 'IranSans', sans-serif !important;
  text-transform: none !important;
}

.SubscriptionModal_purchaseButton__XBucS:hover {
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4) !important;
}

.SubscriptionModal_cancelButton__x6ZFA {
  color: #666 !important;
  border-color: #ddd !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  transition: all 0.3s !important;
  font-family: 'IranSans', sans-serif !important;
  text-transform: none !important;
}

.SubscriptionModal_cancelButton__x6ZFA:hover {
  border-color: #999 !important;
  background-color: #f9f9f9 !important;
}

.SubscriptionModal_footer__wKafm {
  color: #999 !important;
  font-size: 14px !important;
  margin-top: 8px !important;
  font-family: 'IranSans', sans-serif !important;
}

/* Responsive */
@media (max-width: 600px) {
  .SubscriptionModal_modalBox__YSWkC {
    width: 95%;
    padding: 30px 20px;
  }

  .SubscriptionModal_title__JizV2 {
    font-size: 1.5rem !important;
  }

  .SubscriptionModal_message__dQ8Fb {
    font-size: 14px !important;
  }

  .SubscriptionModal_lockIcon__i5uiN {
    font-size: 48px !important;
  }
}


/* ============================================================================
   طراحی بصری جدید (فاز طراحی گرافیک): تم «داشبورد آیندهٔ فناوری» با رنگ‌های
   نئون روی زمینهٔ تیره — هدف این است که وقتی نوجوان این صفحه را باز می‌کند حس
   کند وارد یک کاک‌پیت ربات واقعی/بازی شده، نه یک فرم آموزشی ساده.
   ============================================================================ */

.LiveCodeSimulator_wrapper__mWJLu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  width: 100%;
  height: 100%;
  max-height: 86vh;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(circle at 30% 0%, #1e1b4b 0%, #0f0c29 45%, #050414 100%);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.25),
    0 0 40px rgba(56, 189, 248, 0.12),
    0 20px 50px rgba(0, 0, 0, 0.45);
  position: relative;
}

/* نوار نور متحرک بالای کادر — حس «روشن شدن سیستم» */
.LiveCodeSimulator_wrapper__mWJLu::before {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, #a78bfa, transparent);
  filter: blur(1px);
  animation: LiveCodeSimulator_scanSweep__V6xDj 3.2s ease-in-out infinite;
}

@keyframes LiveCodeSimulator_scanSweep__V6xDj {
  0% { left: -30%; }
  50% { left: 100%; }
  100% { left: -30%; }
}

.LiveCodeSimulator_title__kh8TJ {
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(90deg, #38bdf8, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.LiveCodeSimulator_title__kh8TJ::before {
  content: '🤖';
  -webkit-text-fill-color: initial;
  font-size: 20px;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7));
}

/* کادر بیرونی بوم — شبیه بدنهٔ یک صفحه‌نمایش/مانیتور واقعی با قاب و نور محیطی */
.LiveCodeSimulator_canvasFrame__0uJN4 {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(160deg, #1e293b, #0b1120 70%);
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.15),
    inset 0 2px 8px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(56, 189, 248, 0.18);
}

.LiveCodeSimulator_canvasFrame__0uJN4::after {
  /* شیشهٔ صفحه‌نمایش — یک انعکاس نرم گوشهٔ بالا */
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 30%);
  pointer-events: none;
}

.LiveCodeSimulator_canvas__f47gQ {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
  cursor: grab;
  touch-action: none;
}

.LiveCodeSimulator_canvas__f47gQ:active {
  cursor: grabbing;
}

.LiveCodeSimulator_viewport__59V1N {
  flex: 1 1;
  min-height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 10px;
  background: #020617;
}

.LiveCodeSimulator_worldStage__LOIB9 {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.LiveCodeSimulator_toolbar__qv7tV {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: center;
  direction: rtl;
  grid-area: tools;
}

.LiveCodeSimulator_toolGroup__zPtZP {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #cbd5e1;
}

.LiveCodeSimulator_toolGroup__zPtZP select,
.LiveCodeSimulator_toolGroup__zPtZP button,
.LiveCodeSimulator_toolBtn__i32Ww {
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #e0f2fe;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.LiveCodeSimulator_toolGroup__zPtZP button:disabled,
.LiveCodeSimulator_toolBtn__i32Ww:disabled,
.LiveCodeSimulator_toolGroup__zPtZP select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.LiveCodeSimulator_zoomValue__iwFFX {
  min-width: 42px;
  text-align: center;
  font-family: ui-monospace, monospace;
  color: #7dd3fc;
}

.LiveCodeSimulator_mapHint__kcdcs {
  grid-area: hint;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.5;
  direction: rtl;
}

.LiveCodeSimulator_controls__eIGwL {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.LiveCodeSimulator_playButton__pi95f {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #6366f1 60%, #a855f7);
  color: #ffffff;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 6px 18px rgba(99, 102, 241, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  letter-spacing: 0.2px;
}

.LiveCodeSimulator_playButton__pi95f:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.LiveCodeSimulator_stopButton__NHyoJ {
  border: 1px solid rgba(248, 113, 113, 0.55);
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.85);
  color: #fecaca;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
}

.LiveCodeSimulator_stopButton__NHyoJ:hover {
  background: rgba(185, 28, 28, 0.95);
  color: #fff;
}

.LiveCodeSimulator_playButton__pi95f:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 10px 26px rgba(99, 102, 241, 0.6);
  filter: brightness(1.08);
}

.LiveCodeSimulator_playButton__pi95f:active {
  transform: translateY(0) scale(0.98);
}

.LiveCodeSimulator_telemetry__D0CR- {
  font-size: 13px;
  color: #cbd5e1;
  direction: ltr;
}

.LiveCodeSimulator_error__15Fof {
  font-size: 13px;
  color: #fecaca;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(239, 68, 68, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  padding: 8px 12px;
  max-width: 100%;
  text-align: center;
}

/* «مانیتور فرمان‌ها» — طراحی مثل صفحه‌نمایش کوچک/داشبورد ربات واقعی */
.LiveCodeSimulator_monitor__3JNZQ {
  width: 100%;
  max-width: 100%;
  background: linear-gradient(160deg, #0b1224 0%, #030712 100%);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow:
    inset 0 0 0 1px rgba(56, 189, 248, 0.28),
    inset 0 0 24px rgba(56, 189, 248, 0.06),
    0 6px 20px rgba(0, 0, 0, 0.35);
  direction: rtl;
  position: relative;
}

.LiveCodeSimulator_monitorHeader__KMiWP {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #7dd3fc;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.LiveCodeSimulator_monitorDot__UnRqS {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee, 0 0 16px rgba(34, 211, 238, 0.6);
  animation: LiveCodeSimulator_monitorPulse__m4Ovz 1.4s ease-in-out infinite;
}

@keyframes LiveCodeSimulator_monitorPulse__m4Ovz {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.LiveCodeSimulator_monitorCommand__fcRm2 {
  font-size: 15px;
  font-weight: 700;
  color: #e0f2fe;
  min-height: 22px;
  margin-bottom: 10px;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 10px rgba(125, 211, 252, 0.35);
}

.LiveCodeSimulator_monitorRow__ECUYM {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.LiveCodeSimulator_monitorItem__scv3T {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1;
}

.LiveCodeSimulator_monitorLabel__B\+kBf {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
}

.LiveCodeSimulator_monitorValue__w-cI0 {
  font-size: 12px;
  color: #e2e8f0;
  direction: ltr;
  font-family: 'Courier New', monospace;
}

.LiveCodeSimulator_indicatorIcons__Arn1x {
  display: flex;
  gap: 4px;
}

.LiveCodeSimulator_indicatorOn__iuUId {
  opacity: 1;
  filter: drop-shadow(0 0 6px #fb923c) drop-shadow(0 0 12px rgba(251, 146, 60, 0.6));
}

.LiveCodeSimulator_indicatorOff__cmeGm {
  opacity: 0.2;
}

.LiveCodeSimulator_speedGauge__3aMPL {
  flex: 1 1;
  height: 7px;
  background: rgba(148, 163, 184, 0.18);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.LiveCodeSimulator_speedGaugeFill__s7cxe {
  height: 100%;
  background: linear-gradient(90deg, #22d3ee, #a78bfa, #f472b6);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
  transition: width 0.2s ease;
}

.LiveCodeSimulator_speedValue__7VRYP {
  font-size: 11px;
  color: #e2e8f0;
  direction: ltr;
  min-width: 24px;
  font-family: 'Courier New', monospace;
}

.LiveCodeSimulator_disclaimer__\+aoI\+ {
  font-size: 11px;
  color: #64748b;
  max-width: 380px;
  text-align: center;
  line-height: 1.6;
}

/* پنل لاگ روی صفحه — برای وقتی فیلتر کنسول Errors-only است */
.LiveCodeSimulator_debugPanel__O9A6P {
  width: 100%;
  max-width: 520px;
  margin-top: 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.35);
  overflow: hidden;
  direction: ltr;
  text-align: left;
}

.LiveCodeSimulator_debugPanelHeader__nTJ-a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #7dd3fc;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.LiveCodeSimulator_debugCopyBtn__OVK0D {
  cursor: pointer;
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: rgba(14, 165, 233, 0.15);
  color: #e0f2fe;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
}

.LiveCodeSimulator_debugCopyBtn__OVK0D:hover {
  background: rgba(14, 165, 233, 0.35);
}

.LiveCodeSimulator_debugPre__LpMS3 {
  margin: 0;
  padding: 8px 10px;
  flex: 1 1;
  min-height: 80px;
  max-height: none;
  overflow: auto;
  font-size: 10px;
  line-height: 1.35;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.LiveCodeSimulator_aiPanel__-Zimd {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(30, 27, 75, 0.85);
  border: 1px solid rgba(167, 139, 250, 0.45);
  color: #e9d5ff;
  direction: rtl;
  text-align: right;
}

.LiveCodeSimulator_aiPanelTitle__Ht4TH {
  font-weight: 800;
  font-size: 13px;
  color: #c4b5fd;
  margin-bottom: 4px;
}

.LiveCodeSimulator_aiHint__82dwC {
  margin: 0 0 8px;
  font-size: 11px;
  opacity: 0.85;
  line-height: 1.4;
}

.LiveCodeSimulator_aiToggle__HN-QG {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
}

.LiveCodeSimulator_aiStatus__z15fL {
  margin-top: 8px;
  font-size: 11px;
  font-family: ui-monospace, monospace;
  direction: ltr;
  text-align: left;
  color: #a5b4fc;
}


/* چیدمان عریض: بوم چپ، مانیتور/کنترل راست — ارتفاع کل کمتر */
@media (min-width: 720px) {
  .LiveCodeSimulator_wrapper__mWJLu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    grid-template-areas:
      "title title"
      "tools tools"
      "hint hint"
      "canvas side";
    grid-gap: 10px 14px;
    gap: 10px 14px;
    align-items: stretch;
    height: 86vh;
    max-height: 86vh;
  }
  .LiveCodeSimulator_title__kh8TJ { grid-area: title; text-align: center; }
  .LiveCodeSimulator_canvasFrame__0uJN4 { grid-area: canvas; justify-self: stretch; min-width: 0; height: auto; }
  .LiveCodeSimulator_sideColumn__qIkVA {
    grid-area: side;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    width: auto;
    max-width: none;
    height: 100%;
    max-height: none;
    overflow: hidden;
    z-index: 3;
    position: relative;
  }
  .LiveCodeSimulator_debugPanel__O9A6P {
    max-width: none;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .LiveCodeSimulator_aiPanel__-Zimd { max-width: none; flex: 0 0 auto; }
  .LiveCodeSimulator_monitor__3JNZQ { max-width: none; flex: 0 0 auto; }
  .LiveCodeSimulator_disclaimer__\+aoI\+ { display: none; }
}

@media (max-width: 719px) {
  .LiveCodeSimulator_wrapper__mWJLu {
    height: min(88vh, 100%);
  }
  .LiveCodeSimulator_canvasFrame__0uJN4 {
    min-height: 38vh;
  }
  .LiveCodeSimulator_viewport__59V1N {
    min-height: 38vh;
  }
  .LiveCodeSimulator_sideColumn__qIkVA {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
}

.ExamplesGallery_gallery__6aw8a,
.ExamplesGallery_details__e9QOz {
  font-family: IranSans, sans-serif;
  direction: rtl;
  text-align: right;
}

.ExamplesGallery_gallery__6aw8a {
  width: min(1120px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px 24px 28px;
  border-radius: 18px;
  background: #f7f8fb;
  color: #1e293b;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
}

.ExamplesGallery_gallery__6aw8a.ExamplesGallery_dark__bU707,
.ExamplesGallery_details__e9QOz.ExamplesGallery_dark__bU707 {
  background: #0f172a;
  color: #e2e8f0;
}

.ExamplesGallery_header__65lWP {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.ExamplesGallery_title__DO94m {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  font-family: IranSans, sans-serif;
}

.ExamplesGallery_subtitle__uWs4P {
  margin: 0;
  max-width: 46rem;
  font-size: 13px;
  line-height: 1.8;
  color: #64748b;
  font-family: IranSans, sans-serif;
}

.ExamplesGallery_dark__bU707 .ExamplesGallery_subtitle__uWs4P {
  color: #94a3b8;
}

.ExamplesGallery_closeBtn__ksXf\+ {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  font-size: 22px;
  cursor: pointer;
  font-family: IranSans, sans-serif;
}

.ExamplesGallery_closeBtn__ksXf\+:hover {
  background: rgba(148, 163, 184, 0.18);
}

.ExamplesGallery_legend__ay9a4 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.ExamplesGallery_filterRow__erDVz {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.ExamplesGallery_filterBtn__IYj6n {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  font-family: IranSans, sans-serif;
  cursor: pointer;
}

.ExamplesGallery_filterBtnOn__AFaK4 {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.ExamplesGallery_dark__bU707 .ExamplesGallery_filterBtnOn__AFaK4 {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #0f172a;
}

.ExamplesGallery_filterContest__9de0R.ExamplesGallery_filterBtnOn__AFaK4 {
  background: #c2410c;
  border-color: #c2410c;
  color: #fff;
}

.ExamplesGallery_dark__bU707 .ExamplesGallery_filterContest__9de0R.ExamplesGallery_filterBtnOn__AFaK4 {
  background: #fb923c;
  border-color: #fb923c;
  color: #0f172a;
}

.ExamplesGallery_resultCount__jRwxK {
  margin-right: auto;
  font-size: 12px;
  color: #64748b;
  font-family: IranSans, sans-serif;
}

.ExamplesGallery_dark__bU707 .ExamplesGallery_resultCount__jRwxK {
  color: #94a3b8;
}

.ExamplesGallery_legendSep__tAflf {
  width: 1px;
  height: 16px;
  background: rgba(148, 163, 184, 0.4);
}

.ExamplesGallery_legendItem__NljoK,
.ExamplesGallery_pill__0P-M8 {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: IranSans, sans-serif;
  letter-spacing: 0;
}

.ExamplesGallery_levelIntro__hoNyF { background: #ecfdf5; color: #047857; }
.ExamplesGallery_levelBeginner__FfHgE { background: #e0f2fe; color: #0369a1; }
.ExamplesGallery_levelIntermediate__KW0up { background: #eef2ff; color: #4338ca; }
.ExamplesGallery_levelAdvanced__nUAhn { background: #f5f3ff; color: #6d28d9; }
.ExamplesGallery_levelExpert__qrTfy { background: #fae8ff; color: #a21caf; }
.ExamplesGallery_simOk__u\+h\+D { background: #d1fae5; color: #065f46; }
.ExamplesGallery_simRobot__J2huu { background: #ffedd5; color: #9a3412; }
.ExamplesGallery_proPill__9JzaN { background: #f1f5f9; color: #475569; }
.ExamplesGallery_catPill__6gpIz { background: #f8fafc; color: #334155; border: 1px solid rgba(148, 163, 184, 0.35); }
.ExamplesGallery_contestPill__Bad1p { background: #ffedd5; color: #9a3412; }

.ExamplesGallery_dark__bU707 .ExamplesGallery_levelIntro__hoNyF { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
.ExamplesGallery_dark__bU707 .ExamplesGallery_levelBeginner__FfHgE { background: rgba(14, 165, 233, 0.18); color: #7dd3fc; }
.ExamplesGallery_dark__bU707 .ExamplesGallery_levelIntermediate__KW0up { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.ExamplesGallery_dark__bU707 .ExamplesGallery_levelAdvanced__nUAhn { background: rgba(139, 92, 246, 0.22); color: #c4b5fd; }
.ExamplesGallery_dark__bU707 .ExamplesGallery_levelExpert__qrTfy { background: rgba(192, 38, 211, 0.22); color: #f0abfc; }
.ExamplesGallery_dark__bU707 .ExamplesGallery_simOk__u\+h\+D { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.ExamplesGallery_dark__bU707 .ExamplesGallery_simRobot__J2huu { background: rgba(234, 88, 12, 0.22); color: #fdba74; }
.ExamplesGallery_dark__bU707 .ExamplesGallery_proPill__9JzaN { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
.ExamplesGallery_dark__bU707 .ExamplesGallery_catPill__6gpIz { background: rgba(15, 23, 42, 0.5); color: #cbd5e1; }
.ExamplesGallery_dark__bU707 .ExamplesGallery_contestPill__Bad1p { background: rgba(234, 88, 12, 0.28); color: #fdba74; }

.ExamplesGallery_group__lwPuj {
  margin-bottom: 26px;
}

.ExamplesGallery_groupTitle__JriTL {
  margin: 0 0 12px;
  padding-right: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: IranSans, sans-serif;
  border-right: 3px solid #94a3b8;
}

.ExamplesGallery_track-motion__GQDiK { border-color: #ea580c; }
.ExamplesGallery_track-sensor__woS82 { border-color: #0891b2; }
.ExamplesGallery_track-play__B6TUx { border-color: #d97706; }
.ExamplesGallery_track-nav__4y1cO { border-color: #2563eb; }
.ExamplesGallery_track-ai__xaQQ0 { border-color: #7c3aed; }
.ExamplesGallery_track-general__1j\+-m { border-color: #64748b; }

.ExamplesGallery_grid__gXCv2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  align-content: start;
}

.ExamplesGallery_card__yNMLs {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 0;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ExamplesGallery_dark__bU707 .ExamplesGallery_card__yNMLs {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.2);
}

.ExamplesGallery_card__yNMLs:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.ExamplesGallery_cardAccent__tzJSN {
  flex: 0 0 6px;
  background: #94a3b8;
}

.ExamplesGallery_track-motion__GQDiK > .ExamplesGallery_cardAccent__tzJSN { background: #ea580c; }
.ExamplesGallery_track-sensor__woS82 > .ExamplesGallery_cardAccent__tzJSN { background: #0891b2; }
.ExamplesGallery_track-play__B6TUx > .ExamplesGallery_cardAccent__tzJSN { background: #d97706; }
.ExamplesGallery_track-nav__4y1cO > .ExamplesGallery_cardAccent__tzJSN { background: #2563eb; }
.ExamplesGallery_track-ai__xaQQ0 > .ExamplesGallery_cardAccent__tzJSN { background: #7c3aed; }

.ExamplesGallery_cardBody__H17Qw {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px;
  min-width: 0;
}

.ExamplesGallery_metaRow__0H4nw {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.ExamplesGallery_cardTitle__Px1tv {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  font-family: IranSans, sans-serif;
}

.ExamplesGallery_cardDesc__DKKcm {
  margin: 0 0 12px;
  flex: 1 1;
  font-size: 13px;
  line-height: 1.75;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: IranSans, sans-serif;
}

.ExamplesGallery_dark__bU707 .ExamplesGallery_cardDesc__DKKcm {
  color: #94a3b8;
}

.ExamplesGallery_cardFooter__o9Uoz {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.ExamplesGallery_time__g-eCi {
  font-size: 12px;
  color: #94a3b8;
  font-family: IranSans, sans-serif;
}

.ExamplesGallery_loadBtn__iDQfd,
.ExamplesGallery_ghostBtn__gEXra {
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: IranSans, sans-serif;
}

.ExamplesGallery_loadBtn__iDQfd {
  background: #1d4ed8;
  color: #fff;
}

.ExamplesGallery_loadBtn__iDQfd:hover {
  background: #1e40af;
}

.ExamplesGallery_ghostBtn__gEXra {
  background: transparent;
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.ExamplesGallery_dark__bU707 .ExamplesGallery_ghostBtn__gEXra {
  color: #cbd5e1;
}

.ExamplesGallery_details__e9QOz {
  width: min(720px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 26px;
  border-radius: 18px;
  background: #fff;
  color: #1e293b;
}

.ExamplesGallery_detailsHeader__BIaay {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.ExamplesGallery_detailsTitle__fIdJB {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  font-family: IranSans, sans-serif;
}

.ExamplesGallery_detailsLead__obSYD {
  margin: 12px 0 18px;
  font-size: 14px;
  line-height: 1.9;
  font-family: IranSans, sans-serif;
}

.ExamplesGallery_section__tZSrh {
  margin-bottom: 18px;
}

.ExamplesGallery_section__tZSrh h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1d4ed8;
  font-family: IranSans, sans-serif;
}

.ExamplesGallery_dark__bU707 .ExamplesGallery_section__tZSrh h4 {
  color: #93c5fd;
}

.ExamplesGallery_section__tZSrh ul,
.ExamplesGallery_section__tZSrh ol {
  margin: 0;
  padding-right: 20px;
  padding-left: 0;
}

.ExamplesGallery_section__tZSrh li {
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.8;
  font-family: IranSans, sans-serif;
}

.ExamplesGallery_codeBlock__HVzaY {
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  overflow-x: auto;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.6;
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ExamplesGallery_detailsActions__1aATj {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}

@media (max-width: 700px) {
  .ExamplesGallery_gallery__6aw8a,
  .ExamplesGallery_details__e9QOz {
    padding: 16px;
  }

  .ExamplesGallery_grid__gXCv2 {
    grid-template-columns: 1fr;
  }

  .ExamplesGallery_title__DO94m {
    font-size: 18px;
  }
}

.BlockHelpModal_panel__j19HC {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 16px;
  padding: 20px 22px;
  width: min(720px, 94vw);
  max-height: 88vh;
  overflow: auto;
  direction: rtl;
  text-align: right;
  outline: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.BlockHelpModal_header__LOfh3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.BlockHelpModal_close__xDG4W {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
}

.BlockHelpModal_lead__Z1fBd {
  font-size: 13px;
  line-height: 1.7;
  color: #cbd5e1;
  margin: 0 0 12px;
}

.BlockHelpModal_search__ZtC4b {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #1e293b;
  color: #f8fafc;
  font-size: 14px;
}

.BlockHelpModal_list__zm78A {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.BlockHelpModal_card__PS1UX {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
}

.BlockHelpModal_focused__gYoEv {
  border-color: #fbbf24;
  background: rgba(120, 53, 15, 0.35);
}

.BlockHelpModal_card__PS1UX header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.BlockHelpModal_card__PS1UX p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.65;
}

.BlockHelpModal_how__Gifla {
  color: #93c5fd !important;
}

.BlockHelpModal_star__dvr3F {
  background: #b45309;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.BlockHelpModal_cat__qKjTr {
  margin-right: auto;
  font-size: 11px;
  color: #94a3b8;
}

code {
  direction: ltr;
  font-size: 12px;
  color: #7dd3fc;
}

.MissionSimulator_wrapper__deyfi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.MissionSimulator_title__fdl74 {
  font-weight: 700;
  font-size: 15px;
  color: #111827;
}

.MissionSimulator_canvas__Gkq9m {
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.MissionSimulator_controls__FjUMm {
  display: flex;
  align-items: center;
  gap: 12px;
}

.MissionSimulator_playButton__7UINZ {
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

.MissionSimulator_playButton__7UINZ:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.MissionSimulator_stepCounter__vVpIX {
  font-size: 13px;
  color: #6b7280;
}

.ShowroomPage_stage__eznN1 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(180deg, #0f172a, #1e293b);
  padding: 24px;
}

.ShowroomPage_header__QQ168 {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #e5e7eb;
}

.ShowroomPage_brand__ub7hQ {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.ShowroomPage_counter__uYuHH {
  font-size: 13px;
  opacity: 0.7;
}

.ShowroomPage_description__mWGAh {
  max-width: 480px;
  text-align: center;
  color: #cbd5e1;
  font-size: 14px;
}

.ShowroomPage_message__ybupm {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 15px;
}

.SimulatorPage_page__CGnR6 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 16px;
  min-height: 100vh;
  background: #f3f4f6;
}

.SimulatorPage_heading__5xRwu {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin: 0;
}

.SimulatorPage_subheading__VkMM9 {
  color: #4b5563;
  font-size: 14px;
  max-width: 480px;
  text-align: center;
  margin: 0;
}

.SimulatorPage_exampleList__BwpLn {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 640px;
}

.SimulatorPage_exampleButton__bJMCd {
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  color: #374151;
}

.SimulatorPage_exampleButtonActive__14tCu {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.SimulatorPage_error__N8qxA {
  color: #b91c1c;
  background: #fee2e2;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
}

.SimulatorPage_mismatch__i6P4t {
  color: #92400e;
  background: #fef3c7;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  max-width: 640px;
  text-align: right;
  direction: rtl;
}

.SimulatorPage_codeBlockExpected__\+FaCj {
  background: #1f2937;
  color: #fde68a;
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
  font-size: 12px;
}

.SimulatorPage_codeDetails__h0VvV {
  width: 100%;
  max-width: 480px;
  font-size: 13px;
  color: #374151;
}

.SimulatorPage_codeBlock__vSQZ7 {
  background: #111827;
  color: #d1fae5;
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
  font-size: 12px;
}

.SimulatorPage_comingSoonSection__ZUVty {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed #d1d5db;
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.SimulatorPage_comingSoonHeading__pVavg {
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
  margin: 0 0 4px;
}

.SimulatorPage_exampleButtonDisabled__c3\+KC {
  border: 1px dashed #d1d5db;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: #9ca3af;
  cursor: not-allowed;
}

/* موقعیت‌های مختلف */
.sync-toast, .sync-widget {
  position: fixed;
  z-index: 9999;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bottom-right {
  bottom: 20px;
  right: 20px;
}

.bottom-left {
  bottom: 20px;
  left: 20px;
}

.top-right {
  top: 20px;
  right: 20px;
}

.top-left {
  top: 20px;
  left: 20px;
}

/* ویجت سینک داخل نوار پایین، چپِ دکمهٔ مثال‌ها — بدون پرش روی hover */
.sync-widget.bottom-right {
  left: 50%;
  right: auto;
  bottom: 0.35rem; /* داخل نوار فشرده 3.2rem */
  /* فاصله از مرکز تا کنار «مثال‌ها» */
  transform: translateX(calc(-50% - 88px));
  z-index: 35;
}


/* نوتیفیکیشن موقت (Toast) */
.sync-toast {
  background: rgba(0, 0, 0, 0.9);
  color: white;
  border-radius: 8px;
  padding: 0;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideInToast 0.3s ease-out;
}

.sync-toast.success {
  border-left: 4px solid #4CAF50;
}

.sync-toast.error {
  border-left: 4px solid #F44336;
}

.sync-toast.warning {
  border-left: 4px solid #FF9800;
}

.sync-toast.info {
  border-left: 4px solid #2196F3;
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.toast-message {
  flex: 1 1;
  font-size: 14px;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ویجت همگام‌سازی */
.sync-widget {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.sync-widget:not(.expanded) {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.sync-widget.expanded {
  width: 280px;
  min-height: 200px;
  cursor: default;
}

/* نمایش فشرده */
.widget-compact {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px;
}

.sync-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
}

.pending-badge {
  background: #FF9800;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  animation: pulse 2s infinite;
}

.synced-icon {
  color: #4CAF50;
  font-size: 18px;
  font-weight: bold;
}

.spinner-small {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.connection-dot {
  position: absolute;
  top: 8px;
  right: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.dot.online {
  background: #4CAF50;
  animation: pulse 2s infinite;
}

.dot.offline {
  background: #F44336;
}

/* نمایش کامل */
.widget-expanded {
  padding: 15px;
  color: white;
  display: none;
}

.sync-widget.expanded .widget-expanded {
  display: block;
}

.sync-widget.expanded .widget-compact {
  display: none;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.widget-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* آمار کوچک */
.sync-stats-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 8px;
  gap: 8px;
  margin-bottom: 12px;
}

.stat {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 6px;
  text-align: center;
  font-size: 12px;
}

.stat .label {
  display: block;
  opacity: 0.8;
  margin-bottom: 2px;
}

.stat .value {
  display: block;
  font-weight: bold;
  font-size: 14px;
}

.stat .value.synced {
  color: #4CAF50;
}

.stat .value.pending {
  color: #FF9800;
}

.stat .value.uploaded {
  color: #2196F3;
}

/* وضعیت اتصال کوچک */
.connection-status-mini {
  text-align: center;
  margin-bottom: 10px;
  font-size: 12px;
}

.status.online {
  color: #4CAF50;
}

.status.offline {
  color: #F44336;
}

/* آخرین همگام‌سازی کوچک */
.last-sync-mini {
  text-align: center;
  font-size: 11px;
  opacity: 0.8;
  margin-bottom: 12px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

/* دکمه همگام‌سازی کوچک */
.sync-btn-mini {
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.sync-btn-mini:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
}

.sync-btn-mini:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spinner-mini {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top: 1px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* هشدار کوچک */
.warning-mini {
  background: rgba(255, 152, 0, 0.2);
  border: 1px solid rgba(255, 152, 0, 0.3);
  color: #FFE0B2;
  padding: 8px;
  border-radius: 4px;
  text-align: center;
  font-size: 11px;
  animation: glow 2s ease-in-out infinite alternate;
}

/* انیمیشن‌ها */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes glow {
  from { box-shadow: 0 0 3px rgba(255, 152, 0, 0.3); }
  to { box-shadow: 0 0 8px rgba(255, 152, 0, 0.6); }
}

/* ریسپانسیو */
@media (max-width: 480px) {
  .sync-widget.expanded {
    width: 260px;
    right: 10px !important;
    left: 10px !important;
  }
  
  .sync-toast {
    min-width: 280px;
    right: 10px !important;
    left: 10px !important;
  }
  
  .sync-stats-mini {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

/* حالت تاریک */
@media (prefers-color-scheme: dark) {
  .sync-widget {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
  }
  
  .sync-toast {
    background: rgba(20, 20, 20, 0.95);
  }
}

/* انیمیشن ورود ویجت */
.sync-widget {
  animation: slideInWidget 0.4s ease-out;
}

@keyframes slideInWidget {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* انیمیشن گسترش */
.sync-widget.expanded {
  animation: expandWidget 0.3s ease-out;
}

@keyframes expandWidget {
  from {
    width: 60px;
    height: 60px;
  }
  to {
    width: 280px;
    min-height: 200px;
  }
}

/* هاور: scale را با همان translate ترکیب کن تا ویجت جابه‌جا نشود */
.sync-widget.bottom-right:not(.expanded):hover {
  transform: translateX(calc(-50% - 88px)) scale(1.04);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}
.sync-widget:not(.expanded):hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* نمایش tooltip برای حالت فشرده */
.widget-compact::after {
  content: 'کلیک برای نمایش جزئیات';
  position: absolute;
  bottom: auto;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10000;
}

.sync-widget:not(.expanded):hover .widget-compact::after {
  opacity: 1;
}

/* پنل بازِ همگام‌سازی بالای نوار باز می‌شود */
.sync-widget.bottom-right.expanded {
  bottom: 3.4rem;
  transform: translateX(calc(-50% - 40px));
  z-index: 40;
}

