/* ==========================================================================
   GPT Interface - پیکربندی ساختاری ظاهر چت
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* جلوگیری از اسکرول کل صفحه؛ اسکرول فقط داخل ناحیه پیام‌هاست.
                         محتوای سئویی که بیرون از این wrapper در صفحه قرار دارد
                         پشت این رابط ثابت (position: fixed) مخفی می‌ماند اما در
                         HTML باقی می‌ماند، پس برای گوگل/موتورهای جستجو همچنان
                         قابل‌خواندن است. */
}
.gpt-interface-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    font-family: inherit;
    z-index: 9999;
}

/* مدیریت رنگ‌بندی دو تم مجزا (تاریک / روشن) */
.theme-dark { background-color: #212121; color: #ececec; }
.theme-dark .gpt-sidebar { background-color: #171717; }
.theme-dark .history-item { color: #b4b4b4; }
.theme-dark .history-item i { color: #b4b4b4; }
.theme-dark .history-item.active, .theme-dark .history-item:hover { background-color: #212121; color: #fff; }
.theme-dark .history-item.active i, .theme-dark .history-item:hover i { color: #fff; }
.theme-dark .sidebar-tools-links a { color: #b4b4b4; }
.theme-dark .sidebar-tools-links a i { color: #b4b4b4; }
.theme-dark .sidebar-tools-links a:hover { background-color: #212121; color: #fff; }
.theme-dark .sidebar-tools-links a:hover i { color: #fff; }
.theme-dark .user-status-card { background-color: #212121; }
.theme-dark .prompt-card { background-color: #2f2f2f; border-color: #424242; }
.theme-dark .prompt-card h4 { color: #fff; }
.theme-dark .input-container-inner { background-color: #2f2f2f; border-color: #424242; }
.theme-dark .input-container-inner textarea { color: #fff; }
.theme-dark .input-container-inner button { background-color: #fff; color: #212121; }
.theme-dark .msg-bubble-row { border-bottom-color: #2f2f2f; }
.theme-dark .msg-text-content { color: #e3e3e3; }
.theme-dark .welcome-container h2 { color: #fff; }
.theme-dark .new-chat-btn { border-color: #4d4d4d; color: #fff; }
.theme-dark .sg-enamad-box { background-color: #212121; }

.theme-dark .sg-inline-code { background: #2f2f2f; color: #f78c6c; }
.theme-dark .sg-code-block { background: #1a1a1a; border-color: #333; }
.theme-dark .sg-code-header { background: #2a2a2a; color: #cfcfcf; border-bottom: 1px solid #333; }
.theme-dark .sg-code-copy-btn { color: #cfcfcf; }
.theme-dark .sg-code-copy-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.theme-dark .sg-code-block pre code { color: #e3e3e3; }
.theme-dark .hljs-keyword,
.theme-dark .hljs-selector-tag,
.theme-dark .hljs-literal,
.theme-dark .hljs-operator { color: #c792ea; }
.theme-dark .hljs-string,
.theme-dark .hljs-regexp,
.theme-dark .hljs-symbol { color: #c3e88d; }
.theme-dark .hljs-comment,
.theme-dark .hljs-quote { color: #7d8799; font-style: italic; }
.theme-dark .hljs-number { color: #f78c6c; }
.theme-dark .hljs-title,
.theme-dark .hljs-title.function_,
.theme-dark .hljs-section,
.theme-dark .hljs-title.class_ { color: #82aaff; }
.theme-dark .hljs-built_in,
.theme-dark .hljs-tag,
.theme-dark .hljs-name { color: #ffcb6b; }
.theme-dark .hljs-attr,
.theme-dark .hljs-attribute,
.theme-dark .hljs-variable,
.theme-dark .hljs-template-variable,
.theme-dark .hljs-params { color: #f07178; }
.theme-dark .hljs-meta { color: #80cbc4; }
.theme-dark .hljs-deletion { background: #4b1113; }
.theme-dark .hljs-addition { background: #0c3a1a; }
.theme-dark .hljs-emphasis { font-style: italic; }
.theme-dark .hljs-strong { font-weight: bold; }

.theme-light { background-color: #ffffff; color: #212121; }
.theme-light .gpt-sidebar { background-color: #f7f7f8; border-left: 1px solid #e5e5e5; }
.theme-light .sidebar-section-title { color: #8e8e93; }
.theme-light .history-item { color: #212121; }
.theme-light .history-item i { color: #212121; }
.theme-light .history-item.active, .theme-light .history-item:hover { background-color: #e5e5e5; color: #000; }
.theme-light .sidebar-tools-links a { color: #4f4f4f; }
.theme-light .sidebar-tools-links a i { color: #4f4f4f; }
.theme-light .sidebar-tools-links a:hover { background-color: #e5e5e5; color: #000; }
.theme-light .user-status-card { background-color: #f7f7f8; border: 1px solid #e5e5e5; }
.theme-light .user-info-mini .u-name { color: #000; }
.theme-light .prompt-card { background-color: #f7f7f8; border-color: #e5e5e5; }
.theme-light .prompt-card h4 { color: #000; }
.theme-light .input-container-inner { background-color: #ffffff; border-color: #cccccc; }
.theme-light .input-container-inner textarea { color: #000; }
.theme-light .input-container-inner button { background-color: #212121; color: #fff; }
.theme-light .msg-bubble-row { border-bottom-color: #e5e5e5; }
.theme-light .msg-text-content { color: #212121; }
.theme-light .welcome-container h2 { color: #000; }
.theme-light .new-chat-btn { border-color: #cccccc; color: #212121; }
.theme-light .sg-enamad-box { background-color: #ebebeb; }

.theme-light .sg-inline-code { background: #eef0f2; color: #c2410c; }
.theme-light .sg-code-block { background: #f6f8fa; border-color: #d0d7de; }
.theme-light .sg-code-header { background: #eaeef2; color: #3d444d; border-bottom: 1px solid #d0d7de; }
.theme-light .sg-code-copy-btn { color: #3d444d; }
.theme-light .sg-code-copy-btn:hover { background: rgba(0,0,0,.06); color: #000; }
.theme-light .sg-code-block pre code { color: #24292e; }
.theme-light .hljs-keyword,
.theme-light .hljs-selector-tag,
.theme-light .hljs-literal,
.theme-light .hljs-operator { color: #cf222e; }
.theme-light .hljs-string,
.theme-light .hljs-regexp,
.theme-light .hljs-symbol { color: #0a3069; }
.theme-light .hljs-comment,
.theme-light .hljs-quote { color: #6e7781; font-style: italic; }
.theme-light .hljs-number { color: #005cc5; }
.theme-light .hljs-title,
.theme-light .hljs-title.function_,
.theme-light .hljs-section,
.theme-light .hljs-title.class_ { color: #6639ba; }
.theme-light .hljs-built_in,
.theme-light .hljs-tag,
.theme-light .hljs-name { color: #b35900; }
.theme-light .hljs-attr,
.theme-light .hljs-attribute,
.theme-light .hljs-variable,
.theme-light .hljs-template-variable,
.theme-light .hljs-params { color: #116329; }
.theme-light .hljs-meta { color: #005cc5; }
.theme-light .hljs-deletion { background: #ffebe9; }
.theme-light .hljs-addition { background: #dafbe1; }
.theme-light .hljs-emphasis { font-style: italic; }
.theme-light .hljs-strong { font-weight: bold; }

/* دکمه ویژه فروشگاه گرافیک فوق‌العاده شیک */
.sg-brand-button {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b); color: #fff !important;
    padding: 12px; border-radius: 10px; font-weight: bold; font-size: 15px;
    text-decoration: none !important; margin-bottom: 15px; text-align: center;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.3); transition: transform 0.2s, opacity 0.2s;
}
.sg-brand-button:hover { transform: translateY(-2px); opacity: 0.95; }

/* سایدبار کناری (Sidebar) */
.gpt-sidebar {
    width: 260px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 12px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.new-chat-btn {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    transition: background 0.2s;
    text-align: right;
}
.new-chat-btn:hover { background-color: rgba(128,128,128,0.1); }
.sidebar-toggle-mobile {
    display: none;
    background: transparent;
    border: none;
    color: #b4b4b4;
    font-size: 18px;
    cursor: pointer;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
}
.sidebar-section-title {
    font-size: 11px;
    color: #666;
    font-weight: bold;
    margin: 15px 5px 8px;
}

/* استایل پیشرفته دکمه‌های لیست گفتگوها به سبک چت جی پی تی همراه دکمه دلیت المان */
.chat-history-list .history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    position: relative;
    group: hover;
    overflow: hidden;
}
.chat-history-list .history-item span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 20px;
}
.delete-chat-item-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    display: none;
    line-height: 1;
}
.chat-history-list .history-item:hover .delete-chat-item-btn {
    display: block;
}
.delete-chat-item-btn:hover {
    color: #f44336 !important;
}

.sidebar-spacer {
    height: 40px; /* ایجاد فاصله مناسب و اصولی جهت مدیریت آسان چت‌های اخیر */
}

/* بخش ابزارها و آکاردئون کشویی */
.sidebar-tools-links { display: flex; flex-direction: column; gap: 4px; }
.sidebar-tools-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: background 0.2s;
}
.tools-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tools-accordion-content.expanded {
    max-height: 200px;
}
.toggle-accordion-btn {
    background: transparent;
    border: none;
    color: #7c21ab;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: bold;
}

/* فوتر سایدبار */
.sidebar-footer {
    border-top: 1px solid rgba(128,128,128,0.2);
    padding-top: 12px;
    margin-top: auto;
}
.user-status-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
}
.user-avatar-mini {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(128,128,128,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.plan-active .user-avatar-mini { background: #e6a817; color: #5a3700; }
.user-info-mini {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    text-align: right;
}
.user-info-mini .u-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.user-info-mini .u-plan { font-size: 11px; color: #b4b4b4; }
.mini-action-btn { background: transparent; border: none; color: #b4b4b4; cursor: pointer; }
.mini-action-btn:hover { color: #fff; }
.mini-upgrade-btn {
    background-color: #7c21ab;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

/* باکس لوگوهای اینماد محتوی دو عکس متقارن، هم‌اندازه و واکنش‌گرا در یک ردیف */
.sg-enamad-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
}
.enamad-link-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sg-enamad-box img {
    width: 100%;
    max-height: 52px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
}
.sg-enamad-box img:hover {
    transform: scale(1.04);
}

/* دکمه تم شناور پیشرفته دسکتاپ */
.theme-switch-btn-desktop {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(128,128,128,0.15);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: inherit;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background 0.2s;
}
.theme-switch-btn-desktop:hover { background: rgba(128,128,128,0.25); }

/* ==========================================================================
   منطقه محتوای چت (Main Chat View)
   ========================================================================== */
.gpt-main-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.chat-top-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(128,128,128,0.2);
}
.menu-toggle-btn {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
}
.top-bar-title { font-size: 15px; font-weight: bold; }
.tg-bot-link-top { color: #0088cc; font-size: 18px; display: flex; align-items: center; }

/* محیط مسیج‌ها */
.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 40px 15% 20px;
    display: flex;
    flex-direction: column;
}

/* استایل صفحه خوش آمدگویی ابتدایی */
.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    text-align: center;
    max-width: 580px;
}
.ai-logo-large {
    width: 60px;
    height: 60px;
    background-color: #7c21ab;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}
.welcome-container h2 { font-size: 24px; margin-bottom: 8px; }
.welcome-container p { font-size: 14px; color: #8e8e93; margin-bottom: 30px; }

.suggested-prompts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}
.prompt-card {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 14px;
    text-align: right;
    cursor: pointer;
    transition: background 0.2s;
}
.prompt-card:hover { background-color: rgba(128,128,128,0.1); }
.prompt-card h4 { margin: 0 0 4px 0; font-size: 13px; }
.prompt-card p { margin: 0; font-size: 12px; color: #b4b4b4; }

/* طراحی حباب‌های چت (Chat Bubbles) */
.msg-bubble-row {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid transparent;
    width: 100%;
}
.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}
.user-row .msg-avatar { background-color: #5a189a; color: #fff; }
.bot-row .msg-avatar { background-color: #10a37f; color: #fff; }

.msg-text-content {
    flex: 1;
    font-size: 15px;
    line-height: 1.7;
    white-space: normal;
    word-break: break-word;
    text-align: justify;
}

.sg-msg-paragraph {
    margin: 0 0 10px;
    text-align: justify;
}
.sg-msg-paragraph:last-child { margin-bottom: 0; }

.sg-inline-code {
    font-family: 'Consolas', 'Menlo', 'Monaco', monospace;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 13px;
    unicode-bidi: plaintext;
    direction: ltr;
    display: inline-block;
}

/* باکس مجزای کد: هدر با نام زبان + دکمه کپی، بدنه با هایلایت نحوی */
.sg-code-block {
    margin: 10px 0;
    border-radius: 10px;
    overflow: hidden;
    font-family: 'Consolas', 'Menlo', 'Monaco', monospace;
    font-size: 13px;
    border: 1px solid;
    text-align: left;
    direction: ltr;
}
.sg-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    font-size: 12px;
}
.sg-code-lang {
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: .5px;
}
.sg-code-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 9px;
    border-radius: 6px;
    transition: background .15s, color .15s;
    font-family: inherit;
}
.sg-code-copy-btn.copied { color: #4CAF50 !important; }
.sg-code-block pre {
    margin: 0;
    padding: 14px;
    overflow-x: auto;
}
.sg-code-block pre code {
    font-family: inherit;
    white-space: pre;
    background: none !important;
    padding: 0 !important;
}

/* لودینگ تایپینگ مدرن ۳ نقطه */
.typing-dots { display: flex; align-items: center; gap: 4px; height: 24px;}
.typing-dots span { width: 8px; height: 8px; background-color: #b4b4b4; border-radius: 50%; animation: blink 1.4s infinite both; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0% { opacity: .2; } 20% { opacity: 1; } 100% { opacity: .2; } }

/* باکس پایینی دریافت ورودی متنی */
.chat-input-area {
    padding: 0 15% 24px;
}
.input-container-inner {
    position: relative;
    border: 1px solid transparent;
    border-radius: 16px;
    display: flex;
    align-items: flex-end;
    padding: 10px 14px;
}
.input-container-inner textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-size: 15px;
    line-height: 1.5;
    padding: 4px 0;
    max-height: 120px;
    font-family: inherit;
}
.input-container-inner button {
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 10px;
    transition: opacity 0.2s;
}
.input-container-inner button:hover { opacity: 0.85; }
.chat-disclaimer {
    text-align: center;
    font-size: 11px;
    color: #666;
    margin-top: 8px;
}

.seo-description-section {
    display: none;
}

/* پاپ‌آپ‌ها */
#sg-overlay, #sg-sub-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7);
    z-index: 999998; opacity: 0; transition: opacity .3s; backdrop-filter: blur(4px);
}
#sg-overlay.visible, #sg-sub-overlay.visible { opacity: 1; }
#sg-popup, #sg-sub-popup {
    display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-60%);
    background: #2f2f2f; color: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
    z-index: 999999; width: 92%; max-width: 440px; max-height: 90vh; overflow-y: auto;
    padding: 30px; opacity: 0; transition: opacity .3s, transform .3s; direction: rtl;
}
#sg-popup.visible, #sg-sub-popup.visible { opacity: 1; transform: translate(-50%,-50%); }
.sg-close-btn { position: absolute; top: 15px; left: 15px; background: #424242; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center; }
.sg-popup-icon { width: 55px; height: 55px; background: linear-gradient(135deg,#9b3fd4,#7c21ab); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; margin: 0 auto 15px; }
.sg-popup-icon.gold { background: linear-gradient(135deg,#f6c90e,#e6a817); color: #5a3700; }
#sg-popup h2, #sg-sub-popup h2 { font-size: 18px; text-align: center; margin-bottom: 15px; }
.sg-subtitle { font-size: 13px; color: #b4b4b4; text-align: center; margin-bottom: 15px; }
.sg-plan-preview { background-color: #212121; border: 1px solid #424242; border-radius: 10px; padding: 15px; text-align: center; margin-bottom: 50px !important; }
.sg-plan-badge { display: inline-block; background: #e6a817; color: #5a3700; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: bold; margin-bottom: 8px;}
.sg-plan-price { font-size: 20px; font-weight: bold; color: #fff; }
.sg-plan-features { list-style: none; padding: 0; margin: 10px 0 0; text-align: right; font-size: 13px; color: #b4b4b4;}
.sg-plan-features li { margin-bottom: 4px; }
.sg-plan-features li i { color: #10a37f; margin-left: 5px; }
.sg-payment-plan { background-color: #212121; border: 1px solid #424242; border-radius: 12px; padding: 15px; margin-bottom: 15px; }
.sg-plan-name { font-size: 14px; font-weight: bold; color: #e6a817; }
.sg-payment-amount { text-align: center; margin: 10px 0; font-size: 24px; font-weight: bold; }
.sg-payment-features { list-style: none; padding: 0; font-size: 13px; color: #b4b4b4; }
.sg-payment-features li { padding: 6px 0; border-bottom: 1px dashed #424242; }
.sg-btn-payment { width: 100%; padding: 12px; background: linear-gradient(135deg, #10a37f, #0d8568); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sg-payment-note { font-size: 11px; color: #666; text-align: center; margin-top: 8px; }
.sg-sub-info-card { background: #212121; border-radius: 12px; padding: 15px; }
.sg-sub-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #424242; font-size: 13px; }
.sg-sub-row.highlight { color: #e6a817; font-weight: bold; border-bottom: none; }
.sg-progress-bar { height: 8px; background: #424242; border-radius: 10px; overflow: hidden; margin-top: 10px; }
.sg-progress-fill { height: 100%; background: #e6a817; }
.sg-progress-labels { display: flex; justify-content: space-between; font-size: 10px; color: #666; margin-top: 2px; }
.sg-close-sub-btn { width: 100%; padding: 10px; background: #424242; color: #fff; border: none; border-radius: 10px; cursor: pointer; margin-top: 15px; }
.sg-btn-logout { width: 100%; padding: 10px; background: transparent; color: #ff6b6b; border: 1px solid #5c2020; border-radius: 10px; cursor: pointer; margin-top: 15px; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sg-btn-logout:hover { background: #5c2020; color: #fff; }
.sg-btn-logout:disabled { opacity: .6; cursor: default; }
.sg-error-msg { background: #5c2020; color: #ffb4b4; padding: 10px; border-radius: 8px; font-size: 13px; margin-bottom: 10px; display: none; }

#sg-mobits-form-wrapper input[type="text"],
#sg-mobits-form-wrapper input[type="tel"] {
    width: 100%; padding: 10px; background: #212121; border: 1px solid #424242; border-radius: 8px; color: #fff; text-align: center; margin-bottom: 10px;
}
#sg-mobits-form-wrapper button[type="submit"],
#sg-mobits-form-wrapper .dlr-submit {
    width: 100%; padding: 11px; background: #7c21ab; color: #fff; border: none; border-radius: 8px; font-weight: bold; cursor: pointer;
}

/* ==========================================================================
   مدیا کوئری‌ها و بهینه‌سازی رسپانسیو (Responsive Mobile View)
   ========================================================================== */
@media (max-width: 1024px) {
    .chat-messages-area, .chat-input-area { padding-left: 5%; padding-right: 5%; }
}

@media (max-width: 768px) {
    .gpt-sidebar {
        position: fixed;
        right: 0;
        top: 0;
        transform: translateX(100%);
        z-index: 99999;
        box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    }
    .gpt-sidebar.mobile-open { transform: translateX(0); }
    .sidebar-toggle-mobile { display: block; }
    .chat-top-bar { display: flex; }
    .theme-switch-btn-desktop { display: none; }
    .welcome-container h2 { font-size: 20px; }
    .suggested-prompts { grid-template-columns: 1fr; }
    .msg-bubble-row { gap: 12px; padding: 16px 0; }
}