/* Elite Move — chat assistant (Elite Bot). Pure CSS, no dependencies. */
.eb-root { --eb-navy: #032B44; --eb-navy2: #0a4a73; --eb-cyan: #00bcd4; --eb-green: #16a34a; --eb-ease: cubic-bezier(.2,.8,.2,1); font-family: inherit; }
.eb-root *, .eb-root *::before, .eb-root *::after { box-sizing: border-box; }

/* launcher */
.eb-launcher { position: fixed; right: 18px; bottom: 84px; z-index: 960; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(150deg, var(--eb-navy2), var(--eb-navy)); box-shadow: 0 14px 32px rgba(3,43,68,.45), inset 0 1px 0 rgba(255,255,255,.2);
  display: grid; place-items: center; animation: ebFloat 4s ease-in-out infinite, ebIn .7s var(--eb-ease) 1.2s both; -webkit-tap-highlight-color: transparent; }
.eb-launcher::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--eb-cyan); opacity: 0; animation: ebRing 2.8s ease-out 3s infinite; }
.eb-launcher:hover { transform: scale(1.06); }
.eb-launcher:focus-visible { outline: 3px solid var(--eb-cyan); outline-offset: 3px; }
.eb-launcher svg { width: 42px; height: 42px; display: block; }
.eb-badge { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }

/* greeting bubble */
.eb-hint { position: fixed; right: 94px; bottom: 98px; z-index: 960; max-width: 230px; padding: 11px 34px 11px 14px; background: #fff; color: #0f172a; border-radius: 16px 16px 4px 16px;
  font-size: 14px; line-height: 1.4; font-weight: 600; box-shadow: 0 12px 30px rgba(3,43,68,.25); opacity: 0; transform: translateY(8px) scale(.96); pointer-events: none; transition: opacity .35s, transform .35s var(--eb-ease); }
.eb-hint.is-show { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }
.eb-hint-x { position: absolute; top: 4px; right: 6px; width: 24px; height: 24px; border: 0; background: transparent; color: #64748b; font-size: 18px; line-height: 1; cursor: pointer; }

/* panel */
.eb-panel { position: fixed; right: 18px; bottom: 160px; z-index: 970; width: 372px; max-width: calc(100vw - 24px); height: min(600px, calc(100vh - 255px)); height: min(600px, calc(100dvh - 255px));
  display: flex; flex-direction: column; background: #f3f8fb; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(3,43,68,.4), 0 0 0 1px rgba(3,43,68,.08);
  transform-origin: right bottom; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.94); transition: opacity .3s, transform .35s var(--eb-ease), visibility .35s; }
.eb-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.eb-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px; color: #fff; background: linear-gradient(135deg, var(--eb-navy2), var(--eb-navy)); }
.eb-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.eb-avatar svg { width: 30px; height: 30px; }
.eb-title { flex: 1; min-width: 0; }
.eb-title strong { display: block; font-size: 16px; line-height: 1.2; }
.eb-title span { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .85; margin-top: 2px; }
.eb-title span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
.eb-hbtn { height: 32px; min-width: 32px; padding: 0 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 16px; background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.eb-hbtn:hover { background: rgba(255,255,255,.14); }
.eb-hbtn:focus-visible, .eb-chip:focus-visible, .eb-send:focus-visible, .eb-input:focus-visible { outline: 2px solid var(--eb-cyan); outline-offset: 2px; }

/* messages */
.eb-body { flex: 1; overflow-y: auto; padding: 16px 14px 6px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
.eb-msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; word-wrap: break-word; animation: ebMsg .35s var(--eb-ease) both; }
.eb-msg a { color: #0a6fa8; font-weight: 700; }
.eb-bot { align-self: flex-start; background: #fff; color: #0f172a; border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(3,43,68,.08); }
.eb-user { align-self: flex-end; background: linear-gradient(135deg, #16a34a, #0f8a3e); color: #fff; border-bottom-right-radius: 4px; }
.eb-typing { align-self: flex-start; display: flex; gap: 5px; padding: 13px 15px; background: #fff; border-radius: 16px; border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(3,43,68,.08); }
.eb-typing i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: ebDot 1.1s infinite ease-in-out; }
.eb-typing i:nth-child(2) { animation-delay: .15s; } .eb-typing i:nth-child(3) { animation-delay: .3s; }
.eb-card { align-self: flex-start; width: 92%; background: #fff; border: 1px solid #dbe7ef; border-radius: 14px; padding: 12px 14px; font-size: 14px; animation: ebMsg .35s var(--eb-ease) both; }
.eb-card div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed #e2e8f0; }
.eb-card div:last-child { border-bottom: 0; }
.eb-card b { color: #475569; font-weight: 600; flex: 0 0 auto; }
.eb-card span { text-align: right; color: #0f172a; font-weight: 600; word-break: break-word; }

/* quick replies */
.eb-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 2px; animation: ebMsg .35s var(--eb-ease) both; }
.eb-chip { padding: 9px 14px; border: 1.5px solid var(--eb-navy2); border-radius: 20px; background: #fff; color: var(--eb-navy); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.eb-chip:hover { background: var(--eb-navy); color: #fff; transform: translateY(-1px); }
.eb-chip.eb-primary { background: var(--eb-green); border-color: var(--eb-green); color: #fff; }
.eb-chip.eb-primary:hover { background: #15803d; }

/* input row */
.eb-foot { display: flex; gap: 8px; padding: 10px 12px 12px; background: #fff; border-top: 1px solid #e2e8f0; }
.eb-input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid #cbd5e1; border-radius: 22px; font: inherit; font-size: 16px; color: #0f172a; background: #f8fafc; }
.eb-send { width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 50%; background: var(--eb-green); color: #fff; display: grid; place-items: center; cursor: pointer; }
.eb-send svg { width: 20px; height: 20px; }
.eb-note { padding: 0 14px 10px; background: #fff; font-size: 11.5px; color: #64748b; text-align: center; }

body.eb-open .social-dock { opacity: 0; visibility: hidden; pointer-events: none; }
.eb-launcher.eb-away, .eb-hint.eb-away { opacity: 0 !important; visibility: hidden; pointer-events: none; }

@keyframes ebFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ebIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; } }
@keyframes ebRing { 0% { transform: scale(1); opacity: .7; } 70%,100% { transform: scale(1.7); opacity: 0; } }
@keyframes ebMsg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ebDot { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.eb-eye { transform-origin: center; animation: ebBlink 5s infinite; }
@keyframes ebBlink { 0%,92%,100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.eb-ant { animation: ebAnt 1.6s ease-in-out infinite; }
@keyframes ebAnt { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

@media (max-width: 768px) {
  .eb-launcher { right: 12px; bottom: 14px; width: 58px; height: 58px; }
  .eb-launcher svg { width: 38px; height: 38px; }
  .eb-hint { right: 78px; bottom: 24px; max-width: 200px; font-size: 13px; }
  .eb-panel { right: 12px; bottom: 84px; height: min(600px, calc(100vh - 185px)); height: min(600px, calc(100dvh - 185px)); }
}
@media (max-width: 700px) {
  .eb-panel { left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; height: 84vh; height: 84dvh; border-radius: 22px 22px 0 0; transform-origin: center bottom; }
  body.eb-open { overflow: hidden; }
  body.eb-open .eb-launcher, body.eb-open .eb-hint { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (max-height: 520px) and (min-width: 701px) { .eb-launcher { right: 76px; bottom: 14px; } .eb-hint { right: 148px; bottom: 28px; } .eb-panel { height: calc(100vh - 176px); bottom: 84px; } }
@media (prefers-reduced-motion: reduce) { .eb-launcher, .eb-launcher::before, .eb-eye, .eb-ant, .eb-msg, .eb-chips, .eb-card, .eb-typing i { animation: none !important; } .eb-panel, .eb-hint { transition-duration: .01ms; } .eb-body { scroll-behavior: auto; } }
@media print { .eb-root { display: none !important; } }

.eb-note a { color: #0a6fa8; font-weight: 700; }
