.support-badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding-inline: 4px; border-radius: 999px; color: #18101e; background: #ffc861; font-size: 12px; font-style: normal; font-weight: 800; line-height: 1; flex-shrink: 0; }
.support-badge[hidden],.support-modal [hidden],#adminSupport [hidden] { display: none !important; }
.support-account-button { display: flex; align-items: center; justify-content: center; gap: 10px; }
.support-needs-attention { border-color: #ffc86188 !important; }
.support-modal { z-index: 140; }
.support-dialog { width: min(1040px, calc(100vw - 28px)); max-width: 1040px; height: min(760px,calc(100dvh - 28px)); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.support-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-inline-end: 28px; }
.support-heading h2 { font-size: 21px; margin: 0; }
.support-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 18px; min-height: 0; flex: 1; }
.support-sidebar { min-width: 0; overflow-y: auto; border-inline-end: 1px solid #ffffff15; padding-inline-end: 12px; }
.support-ticket { display: grid; gap: 6px; width: 100%; padding: 14px; margin-bottom: 9px; text-align: start; background: #ffffff04; color: #dce2f1; border: 1px solid #ffffff18; border-radius: 12px; cursor: pointer; font: inherit; }
.support-ticket:hover,.support-ticket.is-selected { background: #7c5cff18; border-color: #7c5cff88; }
.support-ticket.has-unread { border-color: #ffc86166; }
.support-ticket__top { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.support-ticket__top b { font-size: 14px; overflow-wrap: anywhere; }
.support-ticket small { color: #94a0b9; font-size: 11px; }
.support-ticket__preview { font-size: 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.support-pagination { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-block: 10px; font-size: 12px; }
.support-pagination .btn { padding: 8px; font-size: 11px; }
.support-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.support-conversation { display: flex; flex-direction: column; min-height: 0; flex: 1; gap: 12px; }
.support-conversation > header h3 { margin-bottom: 5px; font-size: 18px; overflow-wrap: anywhere; }
.support-conversation > header small { color: #94a0b9; overflow-wrap: anywhere; }
.support-conversation > header p { margin-top: 6px; font-size: 12px; color: #ffc861; }
.support-messages { flex: 1; min-height: 100px; overflow-y: auto; padding: 12px; border-radius: 14px; background: #0003; }
.support-message { padding: 13px 15px; margin-bottom: 12px; border-radius: 14px; border: 1px solid #ffffff12; background: #ffffff04; }
.support-message--admin { background: #23e6c80a; border-color: #23e6c833; }
.support-message header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; margin-bottom: 9px; }
.support-message header b { color: #aeb7ff; }.support-message--admin header b { color: #23e6c8; }
.support-message time { font-size: 11px; color: #94a0b9; }
.support-message p { white-space: pre-wrap; overflow-wrap: anywhere; color: #e3e8f5; line-height: 1.65; font-size: 14px; }
.support-compose,.support-reply { display: grid; gap: 12px; min-width: 0; }
.support-compose { overflow-y: auto; padding-inline-end: 4px; }
.support-compose p { color: #94a0b9; font-size: 13px; }
.support-compose label { display: grid; gap: 8px; font-size: 13px; }
.support-reply label { color: #adb8cf; font-size: 12px; }
.support-compose input,.support-compose textarea,.support-reply textarea,.support-filter { width: 100%; padding: 11px 13px; border: 1px solid #ffffff20; border-radius: 10px; color: #e9edf7; background: #0a0e19; font: inherit; font-size: 14px; }
.support-compose textarea,.support-reply textarea { resize: vertical; max-height: 180px; min-height: 65px; }
.support-status { min-height: 16px; color: #23e6c8; font-size: 13px; }.support-status.is-error { color: #ff9eb0; }
.support-empty { padding: 20px 8px; color: #94a0b9; font-size: 14px; }
.support-back { display: none; align-self: start; }
.support-admin-layout { height: 650px; padding: 20px; border: 1px solid #ffffff16; border-radius: 16px; background: #080b14; }
.support-admin-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-block: 14px; }
.support-filter { max-width: 280px; }
.support-admin-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
#adSupportThread { min-height: 0; }
#adSupportEmpty { padding: 24px; color: #94a0b9; }
@media(max-width:700px) {
  .support-dialog { padding: 18px; }.support-heading h2 { font-size: 17px; }
  .support-layout { grid-template-columns: minmax(0,1fr); }
  .support-back { display: inline-flex; margin-bottom: 10px; }
  .support-modal .support-layout[data-view="list"] .support-main { display: none; }
  .support-modal .support-layout[data-view="thread"] .support-sidebar,.support-modal .support-layout[data-view="new"] .support-sidebar { display: none; }
  .support-sidebar { border-inline-end: 0; padding-inline-end: 0; }
  .support-admin-layout { height: auto; max-height: none; padding: 12px; }
  .support-admin-layout .support-sidebar { max-height: 260px; }
  .support-admin-layout .support-messages { min-height: 260px; max-height: 420px; }
  .support-admin-layout .support-main { min-height: 460px; }
}
