/* Canlı destek penceresi (sağ alt) — site stillerinden bağımsız, yalnız .sup- sınıfları */
.sup-fab {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 900;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px 12px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--sup-accent, #ff0f50); color: #fff;
  font: 800 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .03em; text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 4px rgba(255, 255, 255, .06);
  transition: transform .15s ease, filter .15s ease;
}
.sup-fab:hover { transform: translateY(-2px); filter: brightness(1.08); }
.sup-fab svg { width: 20px; height: 20px; flex: none; }
.sup-fab__dot { position: absolute; top: 4px; right: 6px; width: 11px; height: 11px; border-radius: 50%; background: #2ee59d; box-shadow: 0 0 0 2px var(--sup-accent, #ff0f50); }
.sup-fab__badge {
  position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #fff; color: var(--sup-accent, #ff0f50); font-size: 11px; line-height: 20px; text-align: center;
}
.sup-open .sup-fab { display: none; }

.sup-win {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 901;
  width: 360px; height: min(540px, calc(100vh - 40px)); display: flex; flex-direction: column;
  background: #0b0f24; color: #e9ebf8; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.sup-win[hidden] { display: none; }
.sup-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; background: var(--sup-accent, #ff0f50); color: #fff; }
.sup-head__ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); flex: none; }
.sup-head__ic svg { width: 20px; height: 20px; }
.sup-head__t { flex: 1; min-width: 0; }
.sup-head__t b { display: block; font-size: 15px; }
.sup-head__t small { display: flex; align-items: center; gap: 6px; opacity: .9; font-size: 12px; }
.sup-head__t small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2ee59d; }
.sup-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .18); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.sup-x:hover { background: rgba(0, 0, 0, .3); }

.sup-body { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; background: #0b0f24; }
.sup-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.sup-msg small { display: block; margin-top: 3px; font-size: 10.5px; opacity: .6; }
.sup-msg--user { align-self: flex-end; background: var(--sup-accent, #ff0f50); color: #fff; border-bottom-right-radius: 4px; }
.sup-msg--agent { align-self: flex-start; background: #1a2042; border-bottom-left-radius: 4px; }
.sup-msg--sys { align-self: center; max-width: 100%; padding: 4px 10px; background: transparent; color: #8a90b8; font-size: 12px; text-align: center; }
.sup-hello { align-self: flex-start; max-width: 88%; padding: 10px 12px; border-radius: 14px; border-bottom-left-radius: 4px; background: #1a2042; }

.sup-foot { border-top: 1px solid rgba(255, 255, 255, .08); padding: 10px; background: #0e1330; }
.sup-name { width: 100%; box-sizing: border-box; margin: 0 0 8px; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: #151a3a; color: #fff; font: inherit; }
.sup-row { display: flex; gap: 8px; align-items: flex-end; }
.sup-input {
  flex: 1; min-height: 42px; max-height: 120px; resize: none; box-sizing: border-box;
  padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: #151a3a; color: #fff; font: inherit;
}
.sup-input:focus, .sup-name:focus { outline: none; border-color: var(--sup-accent, #ff0f50); }
.sup-send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; background: var(--sup-accent, #ff0f50); color: #fff; cursor: pointer; display: grid; place-items: center; }
.sup-send:disabled { opacity: .5; cursor: default; }
.sup-send svg { width: 18px; height: 18px; }
.sup-err { color: #ff8da6; font-size: 12px; margin: 6px 2px 0; min-height: 0; }
.sup-err:empty { display: none; }

@media (max-width: 900px) {
  .sup-fab { padding: 0; width: 52px; height: 52px; justify-content: center; right: 14px; }
  .sup-fab span:not(.sup-fab__badge) { display: none; }
  .sup-fab svg { width: 24px; height: 24px; }
  body:has(.mobile-nav) .sup-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body:has(.mobile-coupon-bar:not([hidden])) .sup-fab { bottom: calc(146px + env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) {
  .sup-win { right: 0; left: 0; bottom: 0; width: auto; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
}
