#riftAiChatWidget.rift-support { position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 1500; font-family: 'Manrope', sans-serif; }
.rift-support .support-launcher { display: flex; gap: 10px; align-items: center; min-height: 46px; padding: 12px 17px; border: 1px solid #44303d; border-radius: 12px; color: #eee8ee; background: #151319; box-shadow: 0 6px 20px #0004; font-size: 12px; font-weight: 650; cursor: pointer; transition: background-color 140ms, border-color 140ms; }
.rift-support .support-launcher svg { color: #f46da5; }
.rift-support .support-launcher:hover { background: #241924; border-color: #8a4765; }
.rift-support .support-panel { position: absolute; bottom: 62px; right: 0; width: 370px; height: 550px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 112px); display: flex; flex-direction: column; overflow: hidden; background: #121218; border: 1px solid #39313b; border-radius: 16px; box-shadow: 0 16px 60px #0007; visibility: hidden; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease, visibility 180ms; }
.rift-support .support-panel.is-open { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.rift-support .support-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: #17151d; border-bottom: 1px solid #2c2731; flex-shrink: 0; }
.rift-support .support-brand { display: flex; align-items: center; gap: 11px; }
.rift-support .support-brand img { object-fit: contain; padding: 5px; background: #251c29; border: 1px solid #463044; border-radius: 9px; }
.rift-support .support-brand h2 { font-size: 13px; color: #f4eff6; font-weight: 700; margin: 0; }
.rift-support .support-brand p { font-size: 10px; color: #aaa1b0; margin: 3px 0 0; }
.rift-support .support-close { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #b6aeba; background: transparent; }
.rift-support .support-close:hover { color: #fff; background: #ffffff09; }
.rift-support .support-thread { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 20px 20px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: thin; scrollbar-color: #4a3748 transparent; }
.rift-support .support-welcome-label { font-size: 11px; color: #e78cb5; }
.rift-support .support-welcome h3 { font-size: 27px; line-height: 1.14; letter-spacing: -.8px; font-weight: 700; color: #f3eff5; margin: 10px 0 12px; }
.rift-support .support-welcome p { font-size: 12px; color: #a5a0ae; line-height: 1.65; margin: 0; }
.rift-support .support-topics { display: grid; border: 1px solid #35303c; border-radius: 10px; overflow: hidden; background: #19171f; }
.rift-support .support-topics button { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 11px 13px; font-size: 12px; text-align: left; color: #e0dae7; }
.rift-support .support-topics button + button { border-top: 1px solid #302a36; }
.rift-support .support-topics button:hover { background: #28202d; }
.rift-support .support-topics button span { color: #a586a2; }
.rift-support .support-team { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; color: #89818f; font-size: 10px; text-decoration: none; }
.rift-support .support-team span { color: #d699bb; }
.rift-support .support-composer { padding: 13px 16px 11px; border-top: 1px solid #302a36; background: #16141c; flex-shrink: 0; }
.rift-support .support-form { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border: 1px solid #443548; border-radius: 10px; background: #201a27; transition: border-color 140ms; }
.rift-support .support-form:focus-within { border-color: #c16391; }
.rift-support .support-form input { min-width: 0; flex: 1; font-size: 12px; padding: 8px 0; color: #f0ebf4; background: none; border: 0; outline: none; }
.rift-support .support-form input::placeholder { color: #9e92a6; }
.rift-support #riftChatSendBtn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: #cf3878; color: #fff; flex-shrink: 0; }
.rift-support #riftChatSendBtn:hover { background: #e04d8b; }
.rift-support #riftChatSendBtn:disabled, .rift-support .support-topics button:disabled { opacity: .5; cursor: wait; }
.rift-support .support-composer > p { font-size: 9px; color: #8b8294; text-align: center; margin: 9px 0 0; line-height: 1.4; }
.rift-support .rift-msg { max-width: 92%; animation: support-message-in 160ms ease; display: flex; flex-direction: column; }
.rift-support .rift-msg.bot { align-self: flex-start; }
.rift-support .rift-msg.user { align-self: flex-end; }
.rift-support .msg-bubble { padding: 11px 13px; font-size: 12px; line-height: 1.65; border-radius: 10px; border: 1px solid #37313f; background: #201c28; color: #d9d3e3; word-break: break-word; }
.rift-support .user .msg-bubble { color: #fbe6f1; background: #4e243e; border-color: #754361; border-bottom-right-radius: 3px; white-space: pre-wrap; }
.rift-support .bot .msg-bubble { border-bottom-left-radius: 3px; }
.rift-support .support-typing { padding: 8px 20px; gap: 9px; display: flex; align-items: center; color: #a398ae; font-size: 10px; }
.rift-support .support-typing.hidden { display: none; }
.rift-support .support-typing-dots { display: flex; gap: 4px; }
.rift-support .support-typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: #c184a9; animation: support-thinking 1.2s ease infinite; }
.rift-support .support-typing-dots i:nth-child(2) { animation-delay: 160ms; }
.rift-support .support-typing-dots i:nth-child(3) { animation-delay: 320ms; }
.rift-support button:focus-visible, .rift-support a:focus-visible { outline: 2px solid #ef92be; outline-offset: -3px; }
@keyframes support-message-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes support-thinking { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (max-width: 600px) {
  #riftAiChatWidget.rift-support { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .rift-support .support-panel { bottom: 61px; width: min(370px, calc(100vw - 32px)); height: min(570px, calc(100dvh - 108px)); }
  .rift-support .support-form input { font-size: 16px; }
  .rift-support .support-close { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .rift-support .support-panel, .rift-support .support-form { transition: none; } .rift-support .rift-msg, .rift-support .support-typing-dots i { animation: none; } }
