* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: #FDF0E2;
  color: #1E293B;
  height: 100vh;
  overflow: hidden;
  padding: 56px 16px 16px 16px;
}

/* NAV mockup */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: #FFF3E0; border-bottom: 1px solid #FFE0B2;
  display: flex; align-items: center; gap: 2px;
  padding: 0 16px; height: 40px;
}
.nav .nl { font-size:11px; font-weight:800; color:#E65100; letter-spacing:1.5px; text-transform:uppercase; padding-right:14px; margin-right:6px; border-right:1px solid #FFE0B2; white-space:nowrap; line-height:40px; }
.nav button { background:none; border:none; color:#5D4037; font-family:'Be Vietnam Pro',sans-serif; font-size:12px; font-weight:700; padding:6px 12px; cursor:pointer; border-radius:6px; white-space:nowrap; }
.nav button:hover { color:#E65100; background:#FFE0B2; }
.nav button.on { color:#E65100; background:#fff; font-weight:800; }

/* WRAP = khung chứa, 80% center, padding tạo viền kem */
.wrap {
  width: 80%;
  max-width: 1200px;
  height: calc(100vh - 72px);
  margin: 0 auto;
  position: relative;
}
@media (max-width: 1024px) { .wrap { width: 100%; } }

/* SCREEN - position absolute để chồng, không x2 */
.sc {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,.05);
  display: none;
  z-index: 1;
}
.sc.on {
  display: flex;
  z-index: 2;
}

/* LOGIN */
.login-sc { align-items:center; justify-content:center; flex-direction:column; gap:24px; }
.lcard { width:360px; text-align:center; background:#fff; border-radius:16px; padding:32px 28px; box-shadow:0 2px 12px rgba(0,0,0,.04); }
.lcard .logo { font-size:22px; font-weight:900; color:#0284C7; letter-spacing:1.5px; margin-bottom:2px; }
.lcard .slo { font-size:10px; font-weight:700; color:#475569; letter-spacing:1px; margin-bottom:22px; }
.lbtns { display:flex; flex-direction:column; gap:10px; }
.lbtn { display:flex; align-items:center; justify-content:center; gap:10px; padding:11px 0; border:2px dashed #0EA5E9; border-radius:8px; background:transparent; font-family:'Be Vietnam Pro',sans-serif; font-size:13px; font-weight:700; color:#1E293B; cursor:pointer; }
.lbtn:hover { background:#F0F9FF; color:#0284C7; }
.lbtn .zi { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:5px; background:#0068FF; color:#fff; font-size:16px; font-weight:900; line-height:1; }
.login-info { width:360px; text-align:center; font-size:12px; font-weight:600; color:#475569; line-height:1.7; }
.login-info a { color:#0284C7; font-weight:700; text-decoration:none; }
.login-info a:hover { text-decoration:underline; }

/* APP layout */
.app { display:flex; height:100%; overflow:hidden; }

/* SIDEBAR */
.side { width:240px; flex-shrink:0; padding:16px 0; background:linear-gradient(to bottom, #FFF8EE, #F0F7FF); }
.side-brand { padding:0 18px 14px; margin-bottom:8px; }
.side-brand .nm { font-size:20px; font-weight:900; color:#0284C7; letter-spacing:1px; }
.side-brand .sl { font-size:10px; font-weight:700; color:#475569; margin-top:1px; }
.side-menu { padding:0 10px; }
.si { display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:8px; font-size:15px; font-weight:600; color:#1E293B; cursor:pointer; }
.si:hover { color:#0284C7; }
.si.on { color:#0284C7; font-weight:700; }
.si .ic { font-size:18px; width:22px; text-align:center; }
.side-div { height:8px; margin:4px 18px; }
.ocr-si { font-size:14px; display:flex; align-items:center; }
.ocr-si .ic { font-size:20px; }
.tg { width:28px; height:16px; border-radius:8px; background:#E2E8F0; position:relative; cursor:pointer; flex-shrink:0; margin-left:auto; }
.tg.on { background:#0EA5E9; }
.tg::after { content:''; position:absolute; top:2px; left:2px; width:12px; height:12px; border-radius:50%; background:#fff; }
.tg.on::after { left:14px; }
.tdb { display:flex; align-items:center; gap:8px; padding:8px 12px; margin:6px 10px 0; font-size:13px; font-weight:700; color:#059669; }
.tdb .ti { font-size:16px; }
.side-bot { padding:8px 18px; margin-top:6px; font-size:11px; font-weight:600; color:#475569; display:flex; align-items:center; justify-content:space-between; }
.side-bot .lo { cursor:pointer; font-weight:700; }
.side-bot .lo:hover { color:#0284C7; }

/* MAIN */
.ma { flex:1; display:flex; flex-direction:column; overflow:hidden; }
.tb { height:48px; flex-shrink:0; display:flex; align-items:center; justify-content:space-between; padding:0 24px; background:#FFF8EE; }
.tb-t { font-size:14px; font-weight:700; color:#1E293B; }
.tb-u { font-size:11px; font-weight:500; color:#475569; display:flex; align-items:center; gap:6px; }
.tb-u .dot { width:6px; height:6px; background:#059669; border-radius:50%; }
.ca { flex:1; overflow-y:auto; padding:20px; }
.mc { padding:24px; }
.mc .sh { font-size:14px; font-weight:800; color:#1E293B; padding-bottom:10px; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.mc .sh .ic { font-size:16px; }
.sg { height:20px; }

/* BTN */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; border:none; border-radius:6px; font-family:'Be Vietnam Pro',sans-serif; font-weight:800; cursor:pointer; }
.btn-s { background:#0EA5E9; color:#fff; padding:8px 16px; font-size:12px; }
.btn-s:hover { background:#0284C7; }
.btn-o { background:transparent; border:1.5px solid #E2E8F0; color:#1E293B; font-weight:700; padding:8px 16px; font-size:12px; }
.btn-o:hover { border-color:#0EA5E9; color:#0EA5E9; }

/* UPLOAD */
.up-row { display:flex; align-items:center; gap:14px; padding:12px 16px; background:#F0F9FF; border:1.5px dashed #0EA5E9; border-radius:8px; cursor:pointer; }
.up-row:hover { background:#E0F2FE; }
.up-row .up-ic { font-size:22px; flex-shrink:0; }
.up-row .t1 { font-size:13px; font-weight:700; color:#1E293B; }
.up-row .t2 { font-size:11px; font-weight:600; color:#475569; margin-top:1px; }
.up-row .up-btn { padding:7px 14px; background:#0EA5E9; color:#fff; border:none; border-radius:6px; font-family:'Be Vietnam Pro',sans-serif; font-size:11px; font-weight:700; cursor:pointer; flex-shrink:0; }
.fa { display:flex; align-items:center; gap:8px; padding:8px 12px; background:#F0F9FF; border:1px solid #E0F2FE; border-radius:6px; font-size:12px; font-weight:700; color:#0284C7; margin-top:8px; }
.fa .rm { margin-left:auto; cursor:pointer; color:#475569; font-weight:800; }

/* CONFIG */
.cfg { display:flex; border:1.5px solid #E2E8F0; border-radius:8px 8px 0 0; overflow:hidden; }
.cfg-c { padding:14px 16px; }
.cfg-c:first-child { flex:65; }
.cfg-c:last-child { flex:35; }
.cfg-c+.cfg-c { border-left:1.5px solid #E2E8F0; }
.cfg-c .cl { font-size:11px; font-weight:800; color:#0284C7; margin-bottom:8px; }
.pills { display:flex; gap:5px; }
.p { flex:1; text-align:center; padding:6px 0; border-radius:16px; border:1.5px solid #E2E8F0; background:#fff; font-family:'Be Vietnam Pro',sans-serif; font-size:12px; font-weight:700; color:#1E293B; cursor:pointer; white-space:nowrap; }
.p:hover { border-color:#0EA5E9; color:#0EA5E9; }
.p.on { background:#0EA5E9; border-color:#0EA5E9; color:#fff; }
.cost-row { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; background:#FFFCF8; border:1.5px solid #E2E8F0; border-top:none; border-radius:0 0 8px 8px; }
.cost-row .c1 { font-size:11px; font-weight:700; color:#475569; }
.cost-row .btn-run { padding:7px 14px; background:#0EA5E9; color:#fff; border:none; border-radius:6px; font-family:'Be Vietnam Pro',sans-serif; font-size:11px; font-weight:700; cursor:pointer; }

/* PIPELINE */
.psteps { max-width:500px; }
.ps { display:flex; align-items:flex-start; gap:12px; padding:12px 0; position:relative; }
.ps:not(:last-child)::after { content:''; position:absolute; left:15px; top:44px; bottom:0; width:2px; background:#F1F5F9; }
.ps.d:not(:last-child)::after { background:#059669; }
.ps.r:not(:last-child)::after { background:linear-gradient(to bottom,#0EA5E9,#F1F5F9); }
.pd { width:32px; height:32px; flex-shrink:0; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; border:2px solid #E2E8F0; background:#fff; z-index:1; }
.ps.d .pd { background:#059669; border-color:#059669; color:#fff; }
.ps.r .pd { border-color:#0EA5E9; color:#0EA5E9; animation:pu 1.5s infinite; }
@keyframes pu { 0%,100%{box-shadow:0 0 0 0 rgba(14,165,233,.3)} 50%{box-shadow:0 0 0 6px rgba(14,165,233,0)} }
.pi { flex:1; padding-top:2px; }
.pi .pn { font-size:13px; font-weight:800; color:#1E293B; }
.pi .pd2 { font-size:11px; font-weight:600; color:#475569; margin-top:1px; }
.pi .pt { font-size:10px; font-weight:700; color:#475569; margin-top:1px; }
.ps.w .pi .pn { color:#475569; }
.pb-bg { height:5px; background:#F1F5F9; border-radius:3px; overflow:hidden; margin-top:16px; }
.pb-f { height:100%; background:#0EA5E9; border-radius:3px; }
.pb-l { display:flex; justify-content:space-between; margin-top:4px; font-size:10px; font-weight:700; color:#475569; }

/* RESULT */
.rtabs { display:flex; gap:4px; margin-bottom:16px; }
.rt { padding:6px 14px; border-radius:16px; border:1.5px solid #E2E8F0; background:#fff; font-family:'Be Vietnam Pro',sans-serif; font-size:11px; font-weight:700; color:#1E293B; cursor:pointer; }
.rt.on { background:#0EA5E9; border-color:#0EA5E9; color:#fff; }
.rt:hover:not(.on) { border-color:#0EA5E9; color:#0EA5E9; }
.ri { padding:12px 14px; border-radius:8px; border-left:4px solid #0EA5E9; background:#F8FAFC; margin-bottom:8px; }
.ri.hi { border-left-color:#0369A1; }
.rh { display:flex; align-items:center; gap:6px; margin-bottom:4px; }
.rb { padding:2px 6px; border-radius:4px; font-size:9px; font-weight:800; text-transform:uppercase; }
.rb.hi { background:#E0F2FE; color:#0369A1; }
.rb.me { background:#F0F9FF; color:#0284C7; }
.rb.lo { background:#ECFDF5; color:#059669; }
.rc { font-size:10px; font-weight:700; color:#475569; margin-left:auto; }
.rtt { font-size:12px; font-weight:800; color:#1E293B; margin-bottom:3px; }
.rd { font-size:11px; font-weight:600; color:#475569; line-height:1.5; }
.rci { font-size:10px; font-weight:700; color:#0284C7; margin-top:4px; }
.fi { padding:12px 14px; border-radius:8px; border:1.5px dashed #0EA5E9; background:#F0F9FF; margin-bottom:8px; }
.ft { font-size:12px; font-weight:800; color:#0284C7; margin-bottom:4px; }
.fvs { display:flex; gap:10px; margin-top:6px; }
.fv { flex:1; padding:8px 10px; background:#fff; border-radius:6px; border:1px solid #E2E8F0; }
.fv .fl { font-size:9px; font-weight:800; color:#475569; text-transform:uppercase; margin-bottom:3px; }
.fv .fx { font-size:11px; font-weight:600; color:#475569; line-height:1.4; }
.sr { display:flex; gap:10px; flex-wrap:wrap; }
.sm { flex:1; min-width:70px; text-align:center; padding:12px 8px; background:#F8FAFC; border-radius:8px; border:1px solid #F1F5F9; }
.sm .sv { font-size:18px; font-weight:900; color:#0284C7; }
.sm .sl { font-size:9px; font-weight:700; color:#475569; text-transform:uppercase; margin-top:2px; }

/* CHATBOX */
.chat-wrap { display:flex; flex-direction:column; height:100%; }
.chat-msgs { flex:1; overflow-y:auto; padding:20px; background:#FEFCFA; }
.chat-msg { margin-bottom:14px; max-width:70%; }
.chat-msg.user { margin-left:auto; }
.chat-msg .bubble { padding:8px 12px; border-radius:10px; font-size:13px; font-weight:500; line-height:1.6; color:#1E293B; }
.chat-msg.user .bubble { background:#E0F2FE; color:#1E293B; border-radius:10px 10px 4px 10px; border:1px solid #BAE6FD; }
.chat-msg.ai .bubble { background:#fff; border:1px solid #E2E8F0; border-radius:10px 10px 10px 4px; }
.chat-msg .meta { font-size:10px; font-weight:600; color:#475569; margin-top:3px; }
.chat-msg.user .meta { text-align:right; }
.chat-input { display:flex; gap:8px; padding:12px 16px; border-top:1px solid #F1F5F9; background:#fff; }
.chat-input textarea { flex:1; padding:10px 14px; border:1.5px solid #E2E8F0; border-radius:8px; font-family:'Be Vietnam Pro',sans-serif; font-size:13px; font-weight:600; color:#1E293B; outline:none; resize:none; height:56px; }
.chat-input textarea:focus { border-color:#0EA5E9; }
.chat-input textarea::placeholder { color:#94A3B8; }
.chat-input .send { padding:8px 10px; background:transparent; color:#0284C7; border:none; border-radius:8px; font-family:'Be Vietnam Pro',sans-serif; font-size:12px; font-weight:700; cursor:pointer; }
.chat-input .send:hover { background:#F0F9FF; }
.chat-input .attach { padding:8px 10px; background:transparent; border:none; font-size:18px; cursor:pointer; display:flex; align-items:center; color:#0284C7; }
.chat-input .attach:hover { background:#F0F9FF; border-radius:6px; }
.chat-progress { padding:8px 14px; background:#FFF8E7; border-radius:8px; margin-bottom:10px; font-size:11px; font-weight:700; color:#92400E; }


/* SIDEBAR CONTACT */
.side-contact { padding:6px 18px; margin-top:4px; font-size:13px; font-weight:700; color:#1E293B; line-height:1.8; }
.side-contact a { color:#0284C7; font-weight:700; text-decoration:none; }
.side-contact a:hover { text-decoration:underline; }
/* SIDEBAR LOGIN */
.side-login { padding:8px 10px; margin-top:8px; display:flex; flex-direction:column; gap:6px; }
.lbtn-s { display:flex; align-items:center; justify-content:center; gap:8px; padding:8px 0; border:1.5px dashed #0EA5E9; border-radius:6px; background:transparent; font-family:'Be Vietnam Pro',sans-serif; font-size:12px; font-weight:700; color:#1E293B; cursor:pointer; }
.lbtn-s:hover { background:#F0F9FF; color:#0284C7; }
.zi-s { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:4px; background:#0068FF; color:#fff; font-size:13px; font-weight:900; line-height:1; }

/* WEB FOOTER */
.web-footer { display:flex; gap:16px; justify-content:center; padding:10px 24px; border-top:1px solid #E0F2FE; position:absolute; bottom:0; left:240px; right:0; background:#F0F7FF; border-radius:0 0 20px 0; }
.web-footer a { font-size:12px; font-weight:500; color:#1E293B; text-decoration:none; }
.web-footer a:hover { color:#0284C7; }

/* GUIDE */
.guide-section { margin-top:6px; }
.guide-title { font-size:16px; font-weight:600; color:#1E293B; margin-bottom:4px; display:flex; align-items:center; gap:6px; }
.guide-item { font-size:14px; font-weight:500; color:#1E293B; line-height:1.6; }
.guide-item a { color:#0284C7; font-weight:600; font-size:14px; text-decoration:none; }
.guide-item a:hover { text-decoration:underline; }