/**
 * Digitem AI Assistant - Ultra Modern Chat Widget Stylesheet v1.3.0
 * اکوسیستم یکپارچه: digitem.ir • heycode.ir • tanoweb.ir
 * طراحی لوکس، مینیمال، ایزوله و ۱۰۰٪ مصون از تداخل استایل‌های قالب و افزونه‌ها
 */

:root {
    --dgt-ai-primary: #3b82f6;
    --dgt-ai-primary-glow: rgba(59, 130, 246, 0.35);
    --dgt-ai-offset-bottom: 24px;
    --dgt-ai-offset-side: 24px;
    --dgt-ai-width: 385px;
    --dgt-ai-height: 580px;
    --dgt-ai-bg: #ffffff;
    --dgt-ai-text: #0f172a;
    --dgt-ai-font: "peyda", "IranSans", Vazirmatn, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ایزولاسیون کامل کانتینر اصلی */
#dgt-ai-widget-container,
.dgt-ai-container {
    position: fixed !important;
    z-index: 99999999 !important;
    font-family: var(--dgt-ai-font) !important;
    direction: rtl !important;
    text-align: right !important;
    box-sizing: border-box !important;
    line-height: normal !important;
    margin: 0 !important;
    padding: 0 !important;
}

#dgt-ai-widget-container *,
.dgt-ai-container * {
    box-sizing: border-box !important;
    font-family: var(--dgt-ai-font) !important;
    letter-spacing: normal !important;
}

/* موقعیت‌های قرارگیری */
.dgt-ai-container.pos-bottom-right {
    bottom: var(--dgt-ai-offset-bottom) !important;
    right: var(--dgt-ai-offset-side) !important;
    left: auto !important;
}

.dgt-ai-container.pos-bottom-left {
    bottom: var(--dgt-ai-offset-bottom) !important;
    left: var(--dgt-ai-offset-side) !important;
    right: auto !important;
}

/* حباب تیزر و راهنما - مخفی اولیه و نمایش پس از ۳۰ ثانیه */
.dgt-ai-teaser-bubble {
    position: absolute !important;
    bottom: 74px !important;
    background: linear-gradient(135deg, #090d16 0%, #1e1b4b 100%) !important;
    color: #ffffff !important;
    padding: 8px 14px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25) !important;
    display: none !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    user-select: none !important;
    z-index: 10 !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.dgt-ai-teaser-bubble.is-active {
    display: flex !important;
    animation: dgtFloatBounce 3s ease-in-out infinite !important;
}

.dgt-ai-teaser-bubble.is-dismissed,
#dgt-ai-widget-container.is-open #dgt-ai-teaser-bubble,
.dgt-ai-container.is-open .dgt-ai-teaser-bubble {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.dgt-ai-container.pos-bottom-right .dgt-ai-teaser-bubble {
    right: 0 !important;
}

.dgt-ai-container.pos-bottom-left .dgt-ai-teaser-bubble {
    left: 0 !important;
}

.dgt-teaser-close {
    background: rgba(255, 255, 255, 0.18) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

.dgt-teaser-close:hover,
.dgt-teaser-close:active {
    background: #ef4444 !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

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

/* دکمه محرک شناور چت */
.dgt-ai-trigger {
    position: relative !important;
    width: 62px !important;
    height: 62px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #2563eb 0%, #1e1b4b 100%) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dgt-ai-trigger:hover {
    transform: scale(1.08) translateY(-2px) !important;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.5) !important;
}

.dgt-ai-icon-open {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dgt-ai-icon-close {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
}

.dgt-ai-container.is-open .dgt-ai-icon-open {
    display: none !important;
}

.dgt-ai-container.is-open .dgt-ai-icon-close {
    display: flex !important;
}

.dgt-ai-trigger svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
    display: block !important;
}

.dgt-ai-pulse-dot {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    width: 14px !important;
    height: 14px !important;
    background: #10b981 !important;
    border: 2.5px solid #ffffff !important;
    border-radius: 50% !important;
    animation: dgtPulse 2s infinite !important;
}

.dgt-ai-container.is-open .dgt-ai-pulse-dot {
    display: none !important;
}

@keyframes dgtPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* پنجره چت اصلی در دسکتاپ - فوق‌العاده مینیمال، مدرن و حرفه‌ای */
.dgt-ai-window {
    position: absolute !important;
    bottom: 80px !important;
    width: 365px !important;
    height: 540px !important;
    max-height: calc(100vh - 120px) !important;
    max-width: calc(100vw - 32px) !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    display: none !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.dgt-ai-window.is-open {
    display: flex !important;
    animation: dgtWindowOpen 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dgt-ai-container.pos-bottom-right .dgt-ai-window {
    right: 0 !important;
    left: auto !important;
    transform-origin: bottom right !important;
}

.dgt-ai-container.pos-bottom-left .dgt-ai-window {
    left: 0 !important;
    right: auto !important;
    transform-origin: bottom left !important;
}

@keyframes dgtWindowOpen {
    from { opacity: 0; transform: translateY(18px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* هدر چت - تم لوکس ابسیدین و مینیمال */
.dgt-ai-header {
    background: linear-gradient(135deg, #090d16 0%, #151b2e 50%, #1e1b4b 100%) !important;
    color: #ffffff !important;
    padding: 13px 18px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
    z-index: 10 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    align-items: center !important;
    position: relative !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    min-height: 72px !important;
}

.dgt-ai-bot-profile {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.dgt-ai-avatar {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    flex-shrink: 0 !important;
}

.dgt-avatar-status {
    position: absolute !important;
    bottom: -2px !important;
    right: -2px !important;
    width: 12px !important;
    height: 12px !important;
    background: #10b981 !important;
    border: 2px solid #0f172a !important;
    border-radius: 50% !important;
}

.dgt-ai-bot-titles {
    display: flex !important;
    flex-direction: column !important;
    text-align: right !important;
}

.dgt-bot-name {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
    border: none !important;
    background: transparent !important;
}

.dgt-bot-status {
    font-size: 11.5px !important;
    color: #cbd5e1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-top: 3px !important;
    line-height: 1.2 !important;
}

.dgt-live-badge {
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    background: #10b981 !important;
    border-radius: 50% !important;
}

.dgt-ai-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.dgt-header-btn {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}

.dgt-header-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    transform: scale(1.05) !important;
}

.dgt-whatsapp-header-btn {
    background: #25D366 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4) !important;
}

.dgt-whatsapp-header-btn:hover {
    background: #128C7E !important;
    transform: scale(1.08) !important;
}

/* نوار دسترسی مستقیم واتس‌اپ بالای اینپوت */
.dgt-whatsapp-banner {
    margin-bottom: 10px !important;
}

.dgt-wa-banner-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 14px !important;
    padding: 7px 12px !important;
    color: #166534 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    font-size: 11.5px !important;
}

.dgt-wa-banner-link:hover {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #14532d !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.15) !important;
}

.dgt-wa-icon-circle {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #25D366 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.dgt-wa-text {
    flex: 1 !important;
    margin: 0 8px !important;
    text-align: right !important;
    font-weight: 600 !important;
}

.dgt-wa-text strong {
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    direction: ltr !important;
    display: inline-block !important;
}

.dgt-wa-arrow {
    font-size: 13px !important;
    color: #16a34a !important;
    transition: transform 0.2s !important;
}

.dgt-wa-banner-link:hover .dgt-wa-arrow {
    transform: translateX(-3px) !important;
}

.dgt-header-btn svg {
    display: block !important;
}

/* بدنه چت و استریم پیام‌ها */
.dgt-ai-messages {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    background: #f8fafc !important;
    scroll-behavior: smooth !important;
}

.dgt-ai-messages::-webkit-scrollbar {
    width: 5px !important;
}

.dgt-ai-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 10px !important;
}

/* حباب‌های پیام */
.dgt-msg-bubble {
    max-width: 90% !important;
    padding: 14px 18px !important;
    position: relative !important;
    word-break: break-word !important;
    animation: dgtBubbleFade 0.25s ease-out !important;
    line-height: 1.8 !important;
}

@keyframes dgtBubbleFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.dgt-msg-bubble.bot {
    align-self: flex-start !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border-radius: 18px 18px 18px 4px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
}

.dgt-msg-bubble.user {
    align-self: flex-end !important;
    background: linear-gradient(135deg, #2563eb 0%, #1e1b4b 100%) !important;
    color: #ffffff !important;
    border-radius: 18px 18px 4px 18px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
}

.dgt-msg-header-tiny {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    font-size: 11.5px !important;
}

.dgt-bot-tag {
    color: #4f46e5 !important;
    font-weight: 800 !important;
}

.dgt-badge-model-tiny {
    background: #eef2ff !important;
    color: #4338ca !important;
    border: 1px solid #c7d2fe !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
}

.dgt-copy-btn {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.dgt-copy-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.dgt-copy-btn.copied {
    background: #dcfce7 !important;
    color: #15803d !important;
    border-color: #86efac !important;
}

.dgt-msg-footer-tiny {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 6px !important;
}

.dgt-msg-time {
    font-size: 10.5px !important;
    color: #94a3b8 !important;
}

.dgt-msg-time.user {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* قالب‌بندی مارک‌داون */
.dgt-msg-content {
    font-size: 13.5px !important;
    line-height: 1.85 !important;
    color: inherit !important;
}

.dgt-msg-content .dgt-bold {
    font-weight: 800 !important;
    color: #0f172a !important;
}

.dgt-msg-bubble.user .dgt-msg-content .dgt-bold {
    color: #ffffff !important;
}

.dgt-msg-content .dgt-md-p {
    margin: 0 0 10px 0 !important;
    line-height: 1.85 !important;
}

.dgt-msg-content .dgt-md-p:last-child {
    margin-bottom: 0 !important;
}

.dgt-msg-content .dgt-space {
    height: 8px !important;
}

.dgt-msg-content .dgt-md-ol {
    margin: 8px 0 12px 0 !important;
    padding-right: 24px !important;
    list-style-type: decimal !important;
}

.dgt-msg-content .dgt-md-ul {
    margin: 8px 0 12px 0 !important;
    padding-right: 22px !important;
    list-style-type: disc !important;
}

.dgt-msg-content .dgt-md-ol li,
.dgt-msg-content .dgt-md-ul li {
    margin-bottom: 6px !important;
    line-height: 1.8 !important;
}

.dgt-msg-content .dgt-md-link {
    color: #2563eb !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-bottom: 1.5px dashed #93c5fd !important;
    padding-bottom: 1px !important;
}

.dgt-inline-code {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    font-family: monospace !important;
    font-size: 12.5px !important;
    direction: ltr !important;
    display: inline-block !important;
    border: 1px solid #e2e8f0 !important;
}

.dgt-pre {
    background: #0f172a !important;
    color: #f8fafc !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    overflow-x: auto !important;
    font-family: monospace !important;
    font-size: 12.5px !important;
    direction: ltr !important;
    margin: 8px 0 !important;
}

/* سوالات پیشنهادی (Starter Chips) دقیقا مطابق تصویر ۲ */
.dgt-starter-chips-container {
    margin: 8px 0 !important;
    padding: 14px 16px !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    border: 1.5px dashed #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.dgt-chips-label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #475569 !important;
    margin-bottom: 10px !important;
    text-align: right !important;
}

.dgt-chips-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.dgt-chip-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: right !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    line-height: 1.45 !important;
    width: 100% !important;
    display: block !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    outline: none !important;
    margin: 0 !important;
}

.dgt-chip-item:hover {
    background: #f8fafc !important;
    border-color: #3b82f6 !important;
    color: #2563eb !important;
    transform: translateX(-4px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12) !important;
}

/* تایپینگ اندیکاتور (تنها هنگام پردازش پیام فعال می‌شود) */
.dgt-typing-indicator {
    padding: 10px 18px !important;
    background: #f1f5f9 !important;
    display: none !important;
    align-items: center !important;
    gap: 6px !important;
    border-top: 1px solid #e2e8f0 !important;
}

.dgt-typing-indicator.is-active {
    display: flex !important;
}

.dgt-typing-dot {
    width: 7px !important;
    height: 7px !important;
    background: #3b82f6 !important;
    border-radius: 50% !important;
    animation: dgtTypingBounce 1.4s infinite ease-in-out both !important;
}

.dgt-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.dgt-typing-dot:nth-child(2) { animation-delay: -0.16s; }
.dgt-typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes dgtTypingBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.dgt-typing-text {
    font-size: 11.5px !important;
    color: #64748b !important;
    margin-right: 4px !important;
}

/* ورودی چت و کادر قرصی یکپارچه دقیقا مطابق تصویر ۲ */
.dgt-ai-footer {
    background: #ffffff !important;
    padding: 12px 16px 14px 16px !important;
    border-top: 1px solid #f1f5f9 !important;
}

.dgt-chat-form {
    margin: 0 !important;
    padding: 0 !important;
}

.dgt-input-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    border: 2px solid #3b82f6 !important;
    border-radius: 28px !important;
    padding: 4px 6px 4px 14px !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15) !important;
    transition: all 0.2s !important;
}

.dgt-chat-input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 8px 6px !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    height: auto !important;
}

.dgt-chat-input::placeholder {
    color: #94a3b8 !important;
}

.dgt-send-button {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s, background 0.2s !important;
    outline: none !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.dgt-send-button:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45) !important;
}

.dgt-send-button svg {
    display: block !important;
    margin-right: -2px !important;
}

.dgt-ai-powered-by {
    text-align: center !important;
    margin-top: 8px !important;
    font-size: 10.5px !important;
    color: #94a3b8 !important;
}

/* بهینه‌سازی موبایل ریسپانسیو - کاملاً موبایل‌فرست و هماهنگ با نوار ناوبری پایین */
@media (max-width: 768px) {
    .dgt-ai-container.pos-bottom-right {
        bottom: 85px !important;
        right: 18px !important;
        left: auto !important;
    }

    .dgt-ai-container.pos-bottom-left {
        bottom: 85px !important;
        left: 18px !important;
        right: auto !important;
    }

    .dgt-ai-container.pos-bottom-left .dgt-ai-teaser-bubble {
        left: 0 !important;
        right: auto !important;
    }

    .dgt-ai-container.pos-bottom-right .dgt-ai-teaser-bubble {
        right: 0 !important;
        left: auto !important;
    }

    .dgt-ai-teaser-bubble.is-dismissed,
    #dgt-ai-teaser-bubble.is-dismissed {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .dgt-ai-window {
        position: fixed !important;
        top: max(60px, env(safe-area-inset-top, 60px)) !important;
        bottom: 85px !important;
        right: 12px !important;
        left: 12px !important;
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
        height: auto !important;
        max-height: calc(100dvh - 150px) !important;
        border-radius: 22px !important;
        margin: 0 !important;
        z-index: 99999999 !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    }

    .dgt-ai-header {
        padding: 12px 16px !important;
    }

    .dgt-header-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        border-radius: 50% !important;
    }

    .dgt-close-header-btn:hover,
    .dgt-close-header-btn:active {
        background: #ef4444 !important;
        border-color: #ef4444 !important;
        color: #ffffff !important;
    }

    .dgt-ai-trigger {
        width: 56px !important;
        height: 56px !important;
    }
}

/* ==========================================================================
   گیت دریافت اطلاعات کاربر (نام و شماره تماس) قبل از شروع گفتگو
   ========================================================================== */
.dgt-lead-gate {
    position: absolute !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: #ffffff !important;
    z-index: 100 !important;
    padding: 24px 22px !important;
    display: none !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
    border-radius: 0 0 24px 24px !important;
}

.dgt-lead-gate.is-active {
    display: flex !important;
}

.dgt-lead-inner {
    width: 100% !important;
    max-width: 320px !important;
    text-align: center !important;
}

.dgt-lead-icon-wrap {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 28px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.15) !important;
}

.dgt-lead-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
}

.dgt-lead-desc {
    font-size: 12.5px !important;
    color: #64748b !important;
    margin: 0 0 18px 0 !important;
    line-height: 1.6 !important;
}

.dgt-lead-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    text-align: right !important;
}

.dgt-lead-field label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 5px !important;
}

.dgt-lead-field input {
    width: 100% !important;
    height: 42px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 0 12px !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    outline: none !important;
    transition: all 0.2s !important;
    background: #f8fafc !important;
}

.dgt-lead-field input:focus {
    border-color: #3b82f6 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.dgt-lead-error {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #dc2626 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: center !important;
}

.dgt-lead-submit-btn {
    width: 100% !important;
    height: 44px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    transition: all 0.2s !important;
    margin-top: 4px !important;
}

.dgt-lead-submit-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4) !important;
}
