/* Support Chat Widget — Gamble.Services casino dark theme */

.sc-bubble{position:fixed;bottom:24px;right:24px;width:56px;height:56px;border-radius:50%;background:var(--sc-accent,#fbbf24);color:#000;border:none;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.4);z-index:9990;display:flex;align-items:center;justify-content:center;transition:transform .2s,box-shadow .2s}
.sc-bubble:hover{transform:scale(1.08);box-shadow:0 6px 24px rgba(0,0,0,.5)}
.sc-bubble svg{width:28px;height:28px;fill:currentColor}
.sc-bubble .sc-close{display:none}
.sc-bubble.open .sc-chat-icon{display:none}
.sc-bubble.open .sc-close{display:block}

.sc-panel{position:fixed;bottom:92px;right:24px;width:380px;max-width:calc(100vw - 32px);height:520px;max-height:calc(100vh - 120px);border-radius:16px;background:#0a0a0a;border:1px solid #1f1f1f;box-shadow:0 12px 40px rgba(0,0,0,.6);z-index:9989;display:none;flex-direction:column;overflow:hidden;font-family:'Inter',system-ui,sans-serif;transition:all .3s ease;color:#e5e7eb}
.sc-panel.open{display:flex}

.sc-panel.maximized{width:560px;height:80vh;max-height:calc(100vh - 48px);bottom:50%;right:50%;transform:translate(50%,50%);border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.7)}

.sc-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.6);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);z-index:9988;opacity:0;pointer-events:none;transition:opacity .3s ease}
.sc-backdrop.show{opacity:1;pointer-events:auto}

.sc-header{padding:16px 20px;background:linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);color:#fbbf24;font-weight:600;font-size:15px;display:flex;align-items:center;gap:10px}
.sc-header .sc-logo{height:24px;width:auto;flex-shrink:0}
.sc-header .sc-title{font-size:14px;font-weight:600;color:#fbbf24}
.sc-maximize{background:none;border:none;color:#fbbf24;cursor:pointer;margin-left:auto;padding:4px;opacity:.8;transition:opacity .15s}
.sc-maximize:hover{opacity:1}
.sc-maximize svg{width:16px;height:16px;fill:currentColor}

.sc-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px}
.sc-msg{max-width:85%;padding:10px 14px;border-radius:12px;font-size:14px;line-height:1.5;word-wrap:break-word}
.sc-msg.user{align-self:flex-end;background:#fbbf24;color:#000;border-bottom-right-radius:4px}
.sc-msg.assistant{align-self:flex-start;background:#1a1a2e;color:#e5e7eb;border:1px solid #2d2d4a;border-bottom-left-radius:4px}
.sc-msg.assistant strong{color:#fbbf24}
.sc-msg.assistant code{background:rgba(251,191,36,.1);padding:1px 4px;border-radius:3px;font-size:13px;color:#fbbf24}
.sc-msg.assistant .sc-heading{font-weight:700;font-size:15px;margin:12px 0 6px;color:#fbbf24}
.sc-msg.assistant .sc-heading:first-child{margin-top:0}
.sc-msg.assistant .sc-list-item{padding-left:12px;position:relative;margin:3px 0}
.sc-msg.assistant .sc-list-item::before{content:'•';position:absolute;left:0;color:#fbbf24}
.sc-msg.system{align-self:center;font-size:12px;color:#6b7280;padding:4px 12px}

.sc-typing{align-self:flex-start;padding:10px 14px;background:#1a1a2e;border-radius:12px;border-bottom-left-radius:4px;display:none}
.sc-typing.show{display:flex;gap:4px;align-items:center}
.sc-typing span{width:6px;height:6px;border-radius:50%;background:#6b7280;animation:sc-bounce .6s infinite alternate}
.sc-typing span:nth-child(2){animation-delay:.15s}
.sc-typing span:nth-child(3){animation-delay:.3s}
@keyframes sc-bounce{to{opacity:.3;transform:translateY(-4px)}}

.sc-quick-replies{display:flex;flex-wrap:wrap;gap:6px;padding:4px 0}
.sc-quick-btn{background:transparent;border:1px solid #fbbf24;color:#fbbf24;border-radius:20px;padding:6px 14px;font-size:13px;cursor:pointer;transition:all .15s;font-family:inherit}
.sc-quick-btn:hover{background:#fbbf24;color:#000}

.sc-input-area{padding:12px 16px;border-top:1px solid #1f1f1f;display:flex;gap:8px;background:#0a0a0a}
.sc-input{flex:1;border:1px solid #1f1f1f;border-radius:24px;padding:10px 16px;font-size:14px;outline:none;background:#111;color:#e5e7eb;font-family:inherit;resize:none;max-height:80px}
.sc-input::placeholder{color:#6b7280}
.sc-input:focus{border-color:#fbbf24}
.sc-send{width:40px;height:40px;border-radius:50%;background:#fbbf24;color:#000;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:opacity .15s}
.sc-send:disabled{opacity:.4;cursor:default}
.sc-send svg{width:18px;height:18px;fill:currentColor}

@media(max-width:480px){
  .sc-panel,.sc-panel.maximized{bottom:0;right:0;width:100%;max-width:100%;height:100vh;max-height:100vh;border-radius:0;transform:none}
  .sc-bubble{bottom:16px;right:16px}
}
