.main-content{padding:0;max-width:100%}
.chat-layout{display:grid;grid-template-columns:260px 1fr;height:calc(100vh - 57px)}
.chat-sidebar{background:#fff;border-right:1px solid #e5e7eb;padding:1.5rem;display:flex;flex-direction:column;gap:1.25rem;overflow-y:auto}
.sb-icon{width:36px;height:36px;background:#1D9E75;border-radius:9px;display:flex;align-items:center;justify-content:center}
.sb-icon svg{width:18px;height:18px;stroke:#fff}
.sidebar-brand{display:flex;align-items:center;gap:10px}
.sb-title{font-weight:600;font-size:15px}.sb-sub{font-size:12px;color:#999}
.sb-label{font-size:12px;color:#999;margin-bottom:.5rem}
.sb-progress-track{height:5px;background:#f0f0f0;border-radius:5px;overflow:hidden;margin-bottom:.4rem}
.sb-progress-fill{height:100%;background:#1D9E75;border-radius:5px;transition:width .5s ease}
.sb-pct{font-size:12px;color:#1D9E75;font-weight:500;font-family:'DM Mono',monospace}
.sb-steps{display:flex;flex-direction:column;gap:.5rem}
.step-item{display:flex;align-items:center;gap:.6rem;padding:.5rem .6rem;border-radius:8px;font-size:13px;color:#999;transition:all .2s}
.step-active{color:#085041;background:#E1F5EE;font-weight:500}
.step-done{color:#1D9E75}
.step-dot{width:7px;height:7px;border-radius:50%;background:#ddd;flex-shrink:0}
.step-active .step-dot{background:#1D9E75}
.step-done .step-dot{background:#1D9E75}
.sb-tip{background:#FAEEDA;border-radius:10px;padding:.9rem;display:flex;gap:.6rem;margin-top:auto}
.tip-icon{font-size:16px;flex-shrink:0}
.tip-text{font-size:12px;color:#633806;line-height:1.5}

.chat-main{display:flex;flex-direction:column;overflow:hidden}
.chat-topbar{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1.25rem;border-bottom:1px solid #e5e7eb;background:#fff;flex-shrink:0}
.agent-info{display:flex;align-items:center;gap:10px}
.agent-avatar{width:34px;height:34px;border-radius:9px;background:#1D9E75;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}
.agent-name{font-weight:600;font-size:14px}
.agent-status{display:flex;align-items:center;gap:5px;font-size:12px;color:#999}
.status-dot{width:7px;height:7px;border-radius:50%;background:#1D9E75;animation:pulse 2s infinite}
@keyframes pulse{0%,100%{box-shadow:0 0 0 2px #5DCAA533}50%{box-shadow:0 0 0 5px #5DCAA511}}
.progress-inline{display:flex;align-items:center;gap:.6rem}
.prog-track{width:120px;height:4px;background:#f0f0f0;border-radius:4px;overflow:hidden}
.prog-fill{height:100%;background:#1D9E75;border-radius:4px;transition:width .5s ease}
.progress-inline span{font-size:12px;color:#1D9E75;font-weight:500;font-family:'DM Mono',monospace;min-width:30px}

.messages-area{flex:1;overflow-y:auto;padding:1.25rem;display:flex;flex-direction:column;gap:10px;background:#f8f9fa}
.msg-date-sep{text-align:center;font-size:11px;color:#bbb;padding:.25rem 0}
.msg{display:flex;gap:8px;align-items:flex-end;max-width:78%;animation:fadeUp .3s ease}
@keyframes fadeUp{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.msg.bot{align-self:flex-start}
.msg.user{align-self:flex-end;flex-direction:row-reverse}
.msg-av{width:28px;height:28px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;flex-shrink:0}
.msg.bot .msg-av{background:#1D9E75;color:#fff}
.msg.user .msg-av{background:#534AB7;color:#fff}
.bubble{padding:10px 14px;border-radius:12px;font-size:14px;line-height:1.6;max-width:100%}
.msg.bot .bubble{background:#fff;border:1px solid #e5e7eb;border-bottom-left-radius:3px}
.msg.user .bubble{background:#534AB7;color:#fff;border-bottom-right-radius:3px}
.q-num{font-size:11px;color:#1D9E75;font-family:'DM Mono',monospace;margin-bottom:4px;font-weight:500}
.msg.user .q-num{color:#CECBF6}

.typing-indicator{display:flex;align-items:center;gap:4px;padding:10px 14px}
.t-dot{width:6px;height:6px;border-radius:50%;background:#ccc;animation:tdot 1.2s infinite}
.t-dot:nth-child(2){animation-delay:.2s}.t-dot:nth-child(3){animation-delay:.4s}
@keyframes tdot{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-5px)}}

.feedback-line{display:flex;align-items:center;gap:6px;font-size:12px;padding:2px 0 6px 36px;animation:fadeUp .25s ease}
.fb-ok{color:#0F6E56;background:#E1F5EE;padding:3px 10px;border-radius:20px;font-weight:500}
.fb-err{color:#993C1D;background:#FAECE7;padding:3px 10px;border-radius:20px;font-weight:500}

.input-zone{padding:1rem 1.25rem;border-top:1px solid #e5e7eb;background:#fff;flex-shrink:0}
.input-hint{font-size:12px;color:#999;margin-bottom:.5rem;min-height:16px;font-style:italic}
.input-row{display:flex;gap:.6rem;align-items:flex-end}
.text-input-wrap{flex:1}
.text-input-wrap input{width:100%;border:1.5px solid #e5e7eb;border-radius:9px;padding:10px 14px;font-size:14px;font-family:'DM Sans',sans-serif;outline:none;transition:border .2s;background:#fafafa}
.text-input-wrap input:focus{border-color:#1D9E75;background:#fff}
textarea#textareaInput{flex:1;border:1.5px solid #e5e7eb;border-radius:9px;padding:10px 14px;font-size:14px;font-family:'DM Sans',sans-serif;outline:none;resize:none;transition:border .2s;background:#fafafa;width:100%;min-width:0}
textarea#textareaInput:focus{border-color:#1D9E75;background:#fff}
.options-wrap{flex:1;display:flex;flex-wrap:wrap;gap:.5rem}
.opt-btn{font-size:13px;padding:7px 14px;border-radius:20px;border:1.5px solid #e5e7eb;background:#fff;cursor:pointer;font-family:'DM Sans',sans-serif;transition:all .15s;color:#333}
.opt-btn:hover{border-color:#1D9E75;background:#E1F5EE;color:#085041}
.opt-btn.selected{border-color:#1D9E75;background:#1D9E75;color:#fff}
.send-btn{width:40px;height:40px;border-radius:9px;background:#1D9E75;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:opacity .15s,transform .1s}
.send-btn:hover{opacity:.85}.send-btn:active{transform:scale(.95)}
.send-btn:disabled{opacity:.3;cursor:not-allowed}
.send-btn svg{width:15px;height:15px;stroke:#fff}

/* Success overlay */
.success-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:200;animation:fadeIn .3s ease}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.success-modal{background:#fff;border-radius:16px;padding:2.5rem;max-width:400px;width:90%;text-align:center}
.success-anim{width:80px;height:80px;margin:0 auto 1.5rem}
.circle-anim{animation:drawCircle .8s ease forwards .2s}
.check-anim{animation:drawCheck .4s ease forwards 1s}
@keyframes drawCircle{to{stroke-dashoffset:0}}
@keyframes drawCheck{to{stroke-dashoffset:0}}
.success-modal h2{font-size:1.5rem;font-weight:600;margin-bottom:.75rem}
.success-modal p{color:#666;font-size:14px;margin-bottom:1.5rem}
.btn-success{display:inline-block;background:#1D9E75;color:#fff;text-decoration:none;padding:11px 24px;border-radius:9px;font-weight:600;font-size:14px}
