*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Segoe UI',Arial,sans-serif;
  background:linear-gradient(135deg,#0a2a1f 0%,#0d1117 60%,#0a1628 100%);
  display:flex;justify-content:center;align-items:center;
  min-height:100vh;overflow:hidden}
body::before{content:'';position:fixed;width:500px;height:500px;
  background:radial-gradient(circle,rgba(18,140,126,0.12),transparent 70%);
  top:-100px;left:-100px;animation:b1 9s infinite alternate;pointer-events:none}
body::after{content:'';position:fixed;width:400px;height:400px;
  background:radial-gradient(circle,rgba(37,211,102,0.07),transparent 70%);
  bottom:-80px;right:-80px;animation:b2 11s infinite alternate;pointer-events:none}
@keyframes b1{to{transform:translate(80px,70px)}}
@keyframes b2{to{transform:translate(-60px,-60px)}}

.chat-wrap{width:560px;height:900px;border-radius:20px;
  background:rgba(22,27,34,0.95);
  backdrop-filter:blur(30px);
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 30px 80px rgba(0,0,0,0.6),
             0 0 0 1px rgba(37,211,102,0.05);
  display:flex;flex-direction:column;overflow:hidden;
  position:relative;z-index:5}

.header{background:linear-gradient(135deg,#0d4a3a,#075e54);
  padding:16px 18px;display:flex;align-items:center;gap:12px;
  border-bottom:1px solid rgba(255,255,255,0.06);
  position:relative;overflow:hidden;flex-shrink:0}
.header::before{content:'';position:absolute;
  width:200px;height:200px;
  background:radial-gradient(circle,rgba(37,211,102,0.15),transparent 70%);
  top:-60px;right:-40px;pointer-events:none}
.avatar{width:44px;height:44px;
  background:linear-gradient(135deg,#25d366,#128c7e);
  border-radius:50%;display:flex;align-items:center;
  justify-content:center;font-size:20px;flex-shrink:0;
  box-shadow:0 0 20px rgba(37,211,102,0.4);
  animation:glow 3s infinite alternate}
@keyframes glow{
  from{box-shadow:0 0 10px rgba(37,211,102,0.3)}
  to{box-shadow:0 0 25px rgba(37,211,102,0.6)}}
.hinfo{flex:1;min-width:0}
.hinfo h3{font-size:15px;font-weight:700;color:#fff}
.hinfo small{font-size:11px;color:rgba(255,255,255,0.6);
  display:flex;align-items:center;gap:4px}
.online{display:inline-block;width:7px;height:7px;
  background:#25d366;border-radius:50%;
  box-shadow:0 0 6px #25d366;animation:blink-dot 2s infinite}
@keyframes blink-dot{0%,100%{opacity:1}50%{opacity:.4}}
.msgs{flex:1;overflow-y:auto;padding:14px;
  display:flex;flex-direction:column;gap:10px;
  background:rgba(13,17,23,0.6);min-height:0}
.msgs::-webkit-scrollbar{width:4px}
.msgs::-webkit-scrollbar-thumb{background:rgba(37,211,102,0.2);border-radius:4px}
.msg{max-width:80%;padding:10px 14px;border-radius:14px;
  font-size:13.5px;line-height:1.6;animation:msgIn .2s ease;
  word-wrap:break-word;overflow-wrap:break-word}
@keyframes msgIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.msg .time{font-size:10px;text-align:right;margin-top:4px;opacity:.5}
.user-msg{background:linear-gradient(135deg,#1a4a2e,#0d3a22);
  border:1px solid rgba(37,211,102,0.2);
  color:#d2f8e4;align-self:flex-end;border-bottom-right-radius:4px}
.user-msg .time{color:#69f0ae}
.bot-msg{background:rgba(30,37,48,0.9);
  border:1px solid rgba(255,255,255,0.07);
  color:#cdd9e5;align-self:flex-start;border-bottom-left-radius:4px}
.bot-msg .time{color:rgba(255,255,255,.3)}
.warn-msg{background:rgba(74,47,13,0.8);
  border:1px solid rgba(240,165,0,0.2);
  border-left:3px solid #f0a500;
  color:#ffd54f;align-self:flex-start}
.day{text-align:center;font-size:11px;
  color:rgba(255,255,255,0.25);
  background:rgba(255,255,255,0.04);
  padding:4px 14px;border-radius:20px;align-self:center;
  border:1px solid rgba(255,255,255,0.06)}
.typing{background:rgba(30,37,48,0.9);
  border:1px solid rgba(255,255,255,0.07);
  align-self:flex-start;border-bottom-left-radius:4px;
  padding:12px 16px;border-radius:14px}
.dot{width:7px;height:7px;background:rgba(37,211,102,0.6);
  border-radius:50%;display:inline-block;
  margin:0 2px;animation:bounce 1.2s infinite}
.dot:nth-child(2){animation-delay:.2s}
.dot:nth-child(3){animation-delay:.4s}
@keyframes bounce{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-7px)}}
.msg a{color:#69f0ae;text-decoration:underline;word-break:break-all;cursor:pointer}
.msg a:hover{color:#b9f6ca}
.msg strong{color:#fff}
.ibar{padding:12px 14px;
  background:rgba(13,17,23,0.8);
  border-top:1px solid rgba(255,255,255,0.06);
  display:flex;gap:10px;align-items:center;flex-shrink:0}
.ibar input{flex:1;padding:10px 16px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:24px;font-size:13.5px;color:#e6edf3;outline:none;transition:.2s}
.ibar input::placeholder{color:rgba(255,255,255,0.25)}
.ibar input:focus{border-color:rgba(37,211,102,0.5);
  background:rgba(37,211,102,0.06);
  box-shadow:0 0 0 3px rgba(37,211,102,0.1)}
.sbtn{width:42px;height:42px;flex-shrink:0;
  background:linear-gradient(135deg,#25d366,#128c7e);
  border:none;border-radius:50%;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px rgba(37,211,102,0.35);transition:.2s}
.sbtn:hover{transform:scale(1.08);box-shadow:0 6px 20px rgba(37,211,102,0.5)}
.sbtn svg{fill:#fff;width:18px;height:18px}
.end-chat-bar{padding:10px 14px;
  background:rgba(13,17,23,0.85);
  border-top:1px solid rgba(255,255,255,0.05);
  display:none;justify-content:center;align-items:center;flex-shrink:0}
.end-chat-bar.show{display:flex}
.end-btn{
  background:linear-gradient(135deg,rgba(37,211,102,0.12),rgba(18,140,126,0.12));
  border:1px solid rgba(37,211,102,0.35);
  color:#7fffcf;
  padding:8px 32px;border-radius:30px;
  cursor:pointer;font-size:12px;font-weight:700;letter-spacing:.5px;
  transition:.25s;display:flex;align-items:center;gap:8px;
  box-shadow:0 0 14px rgba(37,211,102,0.08),inset 0 1px 0 rgba(255,255,255,0.05)}
.end-btn svg{width:13px;height:13px;fill:none;stroke:#7fffcf;stroke-width:2.5;
  stroke-linecap:round;flex-shrink:0;transition:.25s}
.end-btn:hover{
  background:linear-gradient(135deg,rgba(37,211,102,0.22),rgba(18,140,126,0.22));
  border-color:rgba(37,211,102,0.7);color:#fff;
  box-shadow:0 0 22px rgba(37,211,102,0.2);
  transform:translateY(-1px)}
.end-btn:hover svg{stroke:#fff}
.poweredby{text-align:center;font-size:12px;font-weight:600;
  letter-spacing:0.4px;
  color:rgba(37,211,102,0.75);padding:8px 5px;
  background:rgba(0,0,0,0.25);
  border-top:1px solid rgba(37,211,102,0.12);
  flex-shrink:0}
