/* AI satış asistanı balonu — site v7 "Ember" ile aynı dil: koyu yüzey, hap butonlar, tek vurgu marka kırmızısı */
.asst { position: fixed; right: calc(clamp(16px, 2vw, 36px) + clamp(54px, 4.4vw, 70px) + 12px); bottom: clamp(16px, 2vw, 36px); z-index: 61; font-family: var(--f); }
.asst-launch { height: clamp(54px, 4.4vw, 70px); padding: 0 24px 0 20px; border-radius: 999px; display: inline-flex; align-items: center; gap: 12px; background: var(--c1); color: #fff; font-weight: 600; font-size: .95rem; box-shadow: 0 18px 40px -14px rgba(var(--c1-rgb), .7), inset 0 0 0 1px rgba(255,255,255,.12); transition: transform .16s ease-out, background-color .2s ease; }
.asst-launch:hover { background: var(--c2); } .asst-launch:active { transform: scale(.97); }
.asst-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: asst-pulse 2.4s ease-out infinite; }
@keyframes asst-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }
.asst.open .asst-launch, .asst.open .asst-tease { display: none; }

.asst-tease { position: absolute; right: 0; bottom: calc(100% + 12px); width: max-content; max-width: min(300px, calc(100vw - 32px)); padding: 14px 36px 14px 16px; border-radius: var(--r); background: #141925; color: var(--tx); font-size: .9rem; line-height: 1.45; box-shadow: inset 0 0 0 1px var(--ln-2), 0 24px 50px -20px rgba(0,0,0,.9); cursor: pointer; animation: asst-in .35s var(--e-out); }
.asst-tease-x { position: absolute; top: 6px; right: 8px; width: 24px; height: 24px; color: var(--tx-3); font-size: 1.1rem; line-height: 1; }

.asst-win { position: fixed; right: clamp(16px, 2vw, 36px); bottom: clamp(16px, 2vw, 36px); width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 120px)); display: flex; flex-direction: column; border-radius: var(--r-l); background: #0C1019; box-shadow: inset 0 0 0 1px var(--ln-2), 0 40px 90px -30px rgba(0,0,0,.95); overflow: hidden; transform-origin: 100% 100%; animation: asst-in .3s var(--e-out); }
.asst-win[hidden] { display: none; }
@keyframes asst-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.asst-h { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 18px; border-bottom: 1px solid var(--ln); }
.asst-h > div { flex: 1; min-width: 0; display: grid; } .asst-h b { font-weight: 600; font-size: .98rem; }
.asst-h small { color: var(--tx-3); font-size: .78rem; display: flex; align-items: center; gap: 6px; } .asst-h small i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.asst-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; flex: none; }
.asst-x { width: 34px; height: 34px; border-radius: 50%; color: var(--tx-2); font-size: 1.4rem; line-height: 1; } .asst-x:hover { background: var(--glass-2); color: var(--tx); }

.asst-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; scrollbar-width: thin; }
.asst-m { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.asst-m.a { align-self: flex-start; background: var(--glass-2); border-bottom-left-radius: 6px; }
.asst-m.u { align-self: flex-end; background: var(--c1); color: #fff; border-bottom-right-radius: 6px; }
.asst-m a { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; } .asst-m.a a { color: var(--hi); }
.asst-m b { font-weight: 600; }
.asst-m.typing { display: inline-flex; gap: 5px; padding: 14px 16px; } .asst-m.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--tx-3); animation: asst-dots 1.2s infinite ease-in-out; } .asst-m.typing i:nth-child(2) { animation-delay: .15s; } .asst-m.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes asst-dots { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.asst-m.ok { align-self: center; max-width: 100%; background: rgba(61,214,140,.1); color: var(--ok); font-size: .82rem; border-radius: 999px; padding: 6px 14px; }

.asst-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 16px 10px; } .asst-chips[hidden] { display: none; }
.asst-chips button { padding: 7px 13px; border-radius: 999px; font-size: .82rem; color: var(--tx); box-shadow: inset 0 0 0 1px var(--ln-2); transition: background .2s; } .asst-chips button:hover { background: var(--glass-2); }

.asst-f { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 16px; border-radius: 24px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--ln-2); }
.asst-f:focus-within { box-shadow: inset 0 0 0 1px rgba(var(--c1-rgb), .7); }
.asst-f textarea { flex: 1; resize: none; border: 0; outline: 0; background: none; color: var(--tx); font: inherit; font-size: 16px; line-height: 1.4; padding: 9px 0; max-height: 120px; }
.asst-f button { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c1); color: #fff; transition: opacity .2s, transform .16s; } .asst-f button:disabled { opacity: .4; } .asst-f button:active { transform: scale(.94); }
.asst-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.asst-legal { margin: 0; padding: 8px 16px 12px; color: var(--tx-3); font-size: .7rem; text-align: center; }

@media (max-width: 640px) {
  .asst { right: calc(16px + 54px + 10px); bottom: 16px; }
  .asst-launch { height: 54px; padding: 0 18px 0 16px; font-size: .9rem; }
  .asst.open { z-index: 120; }
  body:has(.asst.open) .fab { display: none; }
  .asst-win { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  body:has(.dbar:not([hidden])) .asst { bottom: 292px; }
}
@media (max-width: 380px) { .asst-launch-t { display: none; } .asst-launch { padding: 0; width: 54px; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .asst-dot, .asst-win, .asst-tease { animation: none; } }
