.msb-support-root,.msb-support-root *{box-sizing:border-box;font-family:"Vazirmatn","IRANSansX","Dana","Yekan Bakh",Tahoma,Arial,sans-serif}
.msb-support-root{direction:rtl;color:#fff}
.msb-support-root button,.msb-support-root input,.msb-support-root select,.msb-support-root textarea{font-family:"Vazirmatn","IRANSansX","Dana","Yekan Bakh",Tahoma,Arial,sans-serif}
.msb-support-trigger{position:relative}
.msb-support-unread-badge{position:absolute;top:-6px;left:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ff335f;color:#fff;border:2px solid #111;font-size:10px;font-weight:900;line-height:15px;text-align:center;display:inline-flex;align-items:center;justify-content:center}
.msb-support-unread-badge[hidden]{display:none!important}
.msb-support-login-box{background:#181818;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:18px;color:#ddd;text-align:center}
.msb-support-login-box a{color:#1ed760}
.msb-support-launcher{display:none}
.msb-support-root.is-dashboard .msb-support-launcher{display:none}
.msb-support-launcher-dot{display:none}
.msb-support-panel{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.66);display:none;align-items:center;justify-content:center;padding:10px}
.msb-support-panel.is-visible{display:flex}
.msb-support-root.is-inline .msb-support-panel{position:relative;display:flex;inset:auto;background:transparent;z-index:1;padding:0}
.msb-support-shell{width:min(1120px,calc(100vw - 20px));height:min(840px,calc(100vh - 20px));background:linear-gradient(145deg,#111 0%,#0d0f0e 100%);border:1px solid rgba(255,255,255,.09);border-radius:24px;display:grid;grid-template-columns:330px minmax(0,1fr);overflow:hidden;box-shadow:0 28px 80px rgba(0,0,0,.5)}
.msb-support-root.is-inline .msb-support-shell{height:760px;box-shadow:none}
.msb-support-sidebar{background:linear-gradient(180deg,#161a18 0%,#121413 100%);border-left:1px solid rgba(255,255,255,.07);display:flex;flex-direction:column;min-width:0}
.msb-support-head{padding:18px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(255,255,255,.07)}
.msb-support-brand{display:flex;align-items:center;gap:11px;min-width:0}
.msb-support-brand-mark{width:42px;height:42px;display:block;flex:0 0 42px;filter:drop-shadow(0 8px 16px rgba(30,215,96,.18))}
.msb-support-brand>div{min-width:0}
.msb-support-head strong,.msb-support-chat-head strong{display:block;font-size:16px;line-height:1.7}
.msb-support-head small,.msb-support-chat-head small{display:block;color:#9b9b9b;font-size:12px;margin-top:3px;line-height:1.7}
.msb-support-close,.msb-support-head-icon{width:36px;height:36px;border:0;border-radius:12px;background:rgba(255,255,255,.08);color:#fff;font-size:22px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.msb-support-new{margin:14px 18px;border:0;border-radius:14px;background:#1ed760;color:#000;font-weight:900;padding:12px;cursor:pointer}
.msb-support-thread-list{overflow:auto;padding:0 12px 14px;display:flex;flex-direction:column;gap:8px}
.msb-support-thread-list.is-empty{align-items:stretch;justify-content:center;gap:0}
.msb-support-thread{border:1px solid rgba(255,255,255,.06);background:#1b1b1b;border-radius:14px;padding:12px;text-align:right;cursor:pointer;color:#fff;width:100%}
.msb-support-thread.is-active{border-color:#1ed760;background:rgba(30,215,96,.11)}
.msb-support-thread-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.msb-support-thread strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msb-support-thread small{color:#8f8f8f;font-size:11px}
.msb-support-thread p{margin:8px 0 0;color:#bdbdbd;font-size:12px;line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.msb-support-badge{background:rgba(30,215,96,.14);color:#1ed760;border-radius:999px;padding:3px 8px;font-size:10px;white-space:nowrap}
.msb-support-badge.closed{background:rgba(255,255,255,.08);color:#aaa}
.msb-support-chat{display:flex;flex-direction:column;min-width:0;min-height:0;background:linear-gradient(180deg,#121212,#0c0c0c)}
.msb-support-chat-head{padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.07);display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:70px}
.msb-support-chat-head>div:first-child{min-width:0}
.msb-support-chat-head strong,.msb-support-chat-head small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msb-support-status-line{display:flex!important;align-items:center;gap:8px;min-width:0}
.msb-support-status-line span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.msb-support-status-pill{display:inline-flex;align-items:center;max-width:170px;border-radius:999px;padding:2px 8px;font-size:10px;font-weight:900;white-space:nowrap}
.msb-support-status-pill.reviewing{background:rgba(255,193,7,.14);color:#ffd45a}
.msb-support-status-pill.answered{background:rgba(30,215,96,.14);color:#1ed760}
.msb-support-status-pill.closed{background:rgba(255,255,255,.08);color:#aaa}
.msb-support-chat-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.msb-support-head-btn{border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.06);color:#ddd;border-radius:12px;padding:8px 10px;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap}
.msb-support-head-btn:hover,.msb-support-head-icon:hover,.msb-support-close:hover{background:rgba(255,255,255,.12)}
.msb-support-list-btn{display:none}
.msb-support-category-row{padding:12px 18px;border-bottom:1px solid rgba(255,255,255,.06)}
.msb-support-category-row select{width:100%;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:#1b1b1b;color:#fff;padding:12px;outline:none}
.msb-support-category-chips{display:none}
.msb-support-category-chip{border:1px solid rgba(255,255,255,.1);background:#1b1b1b;color:#eee;border-radius:999px;padding:10px 13px;font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer}
.msb-support-category-chip.is-active{background:#1ed760;border-color:#1ed760;color:#050505}
.msb-support-messages{flex:1 1 auto;min-height:0;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.msb-support-empty,.msb-support-loading{color:#aaa;text-align:center;padding:28px 16px;line-height:2}
.msb-support-empty-state{display:flex;justify-content:center;align-items:center;padding:14px 6px 8px;flex:1;min-height:100%}
.msb-support-empty-card{position:relative;overflow:hidden;width:100%;max-width:320px;min-height:340px;padding:24px 18px 18px;border-radius:28px;background:radial-gradient(circle at top,rgba(30,215,96,.18),transparent 44%),linear-gradient(180deg,#171717,#101010);border:1px solid rgba(30,215,96,.16);box-shadow:0 18px 44px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.05);display:flex;flex-direction:column;justify-content:center;text-align:center}
.msb-support-empty-card:before{content:"";position:absolute;inset:-40px auto auto -18px;width:110px;height:110px;background:radial-gradient(circle,rgba(30,215,96,.18),rgba(30,215,96,0));pointer-events:none}
.msb-support-empty-card:after{content:"";position:absolute;left:14px;right:14px;top:0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.14),transparent)}
.msb-support-empty-badge{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);color:#c9c9c9;font-size:10px;font-weight:800;line-height:1;margin:0 auto 12px}
.msb-support-empty-badge:before{content:"";width:7px;height:7px;border-radius:50%;background:#1ed760;box-shadow:0 0 10px rgba(30,215,96,.55)}
.msb-support-empty-emoji{width:68px;height:68px;margin:0 auto 12px;border-radius:22px;background:linear-gradient(135deg,rgba(30,215,96,.28),rgba(30,215,96,.08));display:flex;align-items:center;justify-content:center;font-size:32px;box-shadow:0 10px 30px rgba(30,215,96,.12),inset 0 1px 0 rgba(255,255,255,.08)}
.msb-support-empty-title{font-size:21px;font-weight:900;color:#fff;margin-bottom:10px;line-height:1.35;text-shadow:0 0 20px rgba(30,215,96,.18),0 2px 10px rgba(0,0,0,.22)}
.msb-support-empty-subtitle{font-size:12px;color:#c6d1c6;line-height:2.05;max-width:240px;margin:0 auto;text-align:center}
.msb-support-empty-features{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:15px}
.msb-support-empty-features span{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.06);color:#f1f1f1;font-size:11px;font-weight:700;text-align:center}
.msb-support-empty-note{margin-top:13px;font-size:11px;color:#95a295;line-height:1.95;text-align:center}
.msb-support-msg{max-width:76%;padding:12px 14px;border-radius:18px;background:#202020;color:#f5f5f5;line-height:1.9;font-size:14px;overflow-wrap:anywhere}
.msb-support-msg.user{align-self:flex-end;background:#1ed760;color:#050505;border-bottom-right-radius:6px}
.msb-support-msg.admin{align-self:flex-start;background:#242424;border-bottom-left-radius:6px}
.msb-support-msg.is-image-only{background:transparent;padding:0;max-width:min(280px,78%);box-shadow:none}
.msb-support-msg.user.is-image-only,.msb-support-msg.admin.is-image-only{background:transparent;color:#fff}
.msb-support-msg-text a,.msb-support-text-link{color:inherit;text-decoration:underline;text-underline-offset:3px;word-break:break-all;font-weight:800}
.msb-support-msg.user .msb-support-text-link{color:#064f24}
.msb-support-msg.admin .msb-support-text-link{color:#7ff0a8}
.msb-support-msg-time{display:block;font-size:10px;opacity:.68;margin-top:5px}
.msb-support-msg.is-image-only .msb-support-msg-time{text-align:center;opacity:.76;margin-top:7px;padding:0 4px}
.msb-support-msg img{display:block;max-width:min(260px,100%);border-radius:12px;margin-top:8px}
.msb-support-msg.is-image-only img{max-width:100%;margin-top:0;border-radius:16px;box-shadow:0 10px 28px rgba(0,0,0,.22);background:transparent}
.msb-support-composer{flex:0 0 auto;padding:10px 12px;border-top:1px solid rgba(255,255,255,.07);display:grid;grid-template-columns:74px minmax(0,1fr);grid-template-rows:46px 46px;gap:8px;align-items:stretch;background:#121212;direction:ltr}
.msb-support-composer textarea{grid-column:2;grid-row:1/3;resize:none;border:1px solid rgba(255,255,255,.09);background:#1a1a1a;color:#fff;border-radius:24px;padding:11px 16px;min-height:100px;max-height:136px;outline:none;line-height:1.8;direction:rtl}
.msb-support-composer textarea:focus{border-color:#1ed760;box-shadow:0 0 0 3px rgba(30,215,96,.12)}
.msb-support-composer textarea:disabled{opacity:.6;cursor:not-allowed}
.msb-support-file{grid-column:1;grid-row:1}
.msb-support-composer button{grid-column:1;grid-row:2}
.msb-support-file input{display:none}
.msb-support-file span,.msb-support-composer button{width:100%;height:100%;border-radius:999px;border:0;display:flex;align-items:center;justify-content:center;font-weight:900;cursor:pointer}
.msb-support-composer button svg{width:20px;height:20px;stroke:currentColor;stroke-width:2;fill:none}
.msb-support-file span{background:#242424;color:#fff;border:1px solid rgba(255,255,255,.1);font-size:24px}
.msb-support-file.is-disabled span{opacity:.55;cursor:not-allowed}
.msb-support-composer button{min-width:0;background:#1ed760;color:#000;padding:0 12px}
.msb-support-composer button[disabled]{opacity:.55;cursor:not-allowed}
.msb-support-attachment-preview{display:none;padding:0 18px 10px;background:#121212}
.msb-support-attachment-preview.is-visible{display:block}
.msb-support-preview-card{display:flex;align-items:center;gap:12px;width:max-content;max-width:100%;background:#1a1a1a;border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:10px;box-shadow:0 10px 30px rgba(0,0,0,.16)}
.msb-support-preview-card img{width:78px;height:78px;object-fit:cover;border-radius:14px;background:#0c0c0c;flex:0 0 auto}
.msb-support-preview-meta{min-width:0;color:#ddd;font-size:12px;line-height:1.7}
.msb-support-preview-meta strong{display:block;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.msb-support-preview-meta small{display:block;color:#9fd9af}
.msb-support-preview-remove{width:30px;height:30px;border:0;border-radius:10px;background:rgba(255,255,255,.08);color:#fff;cursor:pointer;font-size:18px;line-height:1}
.msb-support-file-name{min-height:18px;color:#aaa;font-size:11px;padding:0 18px 10px;line-height:1.7}
.msb-support-toast{position:absolute;left:26px;bottom:86px;background:#222;color:#fff;border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:10px 12px;display:none;max-width:min(340px,calc(100vw - 40px));line-height:1.8}
.msb-support-toast.is-visible{display:block}
.msb-support-dashboard-card{margin:18px 0;background:linear-gradient(135deg,rgba(30,215,96,.13),rgba(18,18,18,.96));border:1px solid rgba(30,215,96,.2);border-radius:18px;padding:18px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#fff}
.msb-support-dashboard-copy{display:flex;align-items:center;gap:12px;min-width:0}
.msb-support-dashboard-icon{width:38px;height:38px;border-radius:14px;background:rgba(30,215,96,.16);display:inline-flex;align-items:center;justify-content:center;font-size:19px;flex:0 0 auto}
.msb-support-dashboard-card h3{margin:0 0 6px;font-size:17px}
.msb-support-dashboard-card p{margin:0;color:#bcbcbc;font-size:13px;line-height:1.8}
.msb-support-dashboard-card button{border:0;border-radius:14px;background:#1ed760;color:#000;font-weight:900;padding:12px 16px;cursor:pointer;white-space:nowrap}
@media (max-width:760px){
  .msb-support-panel{padding:0;align-items:stretch;background:#0c0c0c}
  .msb-support-shell{width:100%;height:100vh;height:100dvh;border:0;border-radius:0;grid-template-columns:1fr;box-shadow:none}
  .msb-support-root.is-inline .msb-support-shell{height:calc(100vh - 120px);height:calc(100dvh - 120px);min-height:560px}
  .msb-support-sidebar,.msb-support-chat{grid-column:1;grid-row:1;min-height:0}
  .msb-support-sidebar{display:none;border-left:0}
  .msb-support-chat{display:flex}
  .msb-support-root.show-list .msb-support-sidebar{display:flex}
  .msb-support-root.show-list .msb-support-chat{display:none}
  .msb-support-root.show-chat .msb-support-sidebar{display:none}
  .msb-support-root.show-chat .msb-support-chat{display:flex}
  .msb-support-head{padding:14px 16px}
  .msb-support-new{margin:12px 16px}
  .msb-support-thread-list{padding:0 10px 12px}
  .msb-support-thread-list.is-empty{padding:0 10px 12px}
  .msb-support-chat-head{padding:10px 12px;gap:8px;min-height:64px}
  .msb-support-chat-head strong{font-size:14px}
  .msb-support-chat-head small{font-size:11px}
  .msb-support-chat-actions{gap:5px}
  .msb-support-head-btn{padding:7px 8px;font-size:11px;border-radius:10px}
  .msb-support-list-btn{display:inline-flex}
  .msb-support-head-icon{width:34px;height:34px;border-radius:10px}
  .msb-support-category-row{padding:10px 12px}
  .msb-support-root.is-new-thread:not(.has-category) .msb-support-composer,.msb-support-root.is-new-thread:not(.has-category) .msb-support-attachment-preview,.msb-support-root.is-new-thread:not(.has-category) .msb-support-file-name{display:none}
  .msb-support-root.is-new-thread:not(.has-category) .msb-support-category-row{padding:18px 12px;border-bottom:0}
  .msb-support-category-row select{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
  .msb-support-category-chips{display:flex;gap:8px;overflow:auto;padding:2px 0 4px;scrollbar-width:none}
  .msb-support-category-chips::-webkit-scrollbar{display:none}
  .msb-support-category-chip{min-height:42px;padding:10px 14px}
  .msb-support-root.is-new-thread:not(.has-category) .msb-support-category-chips{display:grid;grid-template-columns:1fr;gap:10px;overflow:visible;padding:4px 0}
  .msb-support-root.is-new-thread:not(.has-category) .msb-support-category-chip{width:100%;justify-content:center;min-height:48px;border-radius:16px;font-size:13px}
  .msb-support-root.is-new-thread.has-category .msb-support-category-row{padding:8px 10px}
  .msb-support-root.is-new-thread.has-category .msb-support-category-chip:not(.is-active){display:none}
  .msb-support-root.is-new-thread.has-category .msb-support-category-chip.is-active{min-height:34px;padding:7px 12px;font-size:11px;background:rgba(30,215,96,.14);color:#1ed760;border-color:rgba(30,215,96,.32)}
  .msb-support-messages{padding:12px 10px;gap:8px}
  .msb-support-root.is-new-thread:not(.has-category) .msb-support-messages{align-items:center;justify-content:center;text-align:center}
  .msb-support-root.is-new-thread:not(.has-category) .msb-support-empty{font-size:15px;color:#d8d8d8;max-width:260px}
  .msb-support-empty-state{padding:0;min-height:100%}
  .msb-support-empty-card{max-width:100%;min-height:100%;padding:20px 14px 16px;border-radius:24px}
  .msb-support-empty-badge{font-size:10px;padding:6px 10px;margin-bottom:10px}
  .msb-support-empty-emoji{width:64px;height:64px;border-radius:20px;font-size:30px;margin-bottom:12px}
  .msb-support-empty-title{font-size:20px}
  .msb-support-empty-subtitle{font-size:11px;max-width:240px}
  .msb-support-empty-features{gap:7px;margin-top:12px}
  .msb-support-empty-features span{font-size:10px;min-height:28px;padding:6px 9px}
  .msb-support-empty-note{font-size:10px;margin-top:10px}
  .msb-support-msg{max-width:88%;font-size:13px;border-radius:16px;padding:10px 12px}
  .msb-support-msg.is-image-only{max-width:min(250px,88%)}
  .msb-support-msg img{max-width:min(220px,100%)}
  .msb-support-composer{grid-template-columns:58px minmax(0,1fr);grid-template-rows:44px 44px;padding:10px;gap:7px}
  .msb-support-composer textarea{min-height:95px;border-radius:22px;font-size:16px}
  .msb-support-file span,.msb-support-composer button{height:44px;border-radius:999px}
  .msb-support-composer button{min-width:0;padding:0;font-size:0}
  .msb-support-attachment-preview{padding:0 12px 8px}
  .msb-support-preview-card{width:100%;align-items:flex-start}
  .msb-support-preview-card img{width:84px;height:84px}
  .msb-support-preview-meta{flex:1}
  .msb-support-file-name{padding:0 12px 8px}
  .msb-support-toast{left:12px;right:12px;bottom:74px;text-align:center}
  .msb-support-dashboard-card{margin:8px 0;padding:7px 8px;border-radius:12px;flex-direction:row;align-items:center;gap:8px;min-height:42px}
  .msb-support-dashboard-copy{gap:7px;min-width:0}
  .msb-support-dashboard-icon{width:26px;height:26px;border-radius:9px;font-size:14px}
  .msb-support-dashboard-card h3{margin:0;font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .msb-support-dashboard-card p{display:none}
  .msb-support-dashboard-card button{width:auto;min-width:78px;min-height:32px;padding:7px 10px;border-radius:999px;font-size:12px;margin-right:auto}
}
