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

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: #fff;
  color: #1E293B;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: 0;
}

/* NAV mockup */
.nav {
  display: none;
}
.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: 100vh;
  height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
@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: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: -2px 0 12px rgba(0,0,0,.04), 2px 0 12px rgba(0,0,0,.04);
  display: none;
  z-index: 1;
}
.sc.on {
  display: flex;
  z-index: 2;
}
/* Content area scroll */
.sc .ca { overflow-y: auto; flex: 1; min-height: 0; }

/* 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 */
.sc.on.app { display:flex; height:100%; overflow:hidden; }

/* SIDEBAR */
.side { width:240px; flex-shrink:0; padding:16px 0; background:linear-gradient(to bottom, #FFF8EE, #F0F7FF); display:flex; flex-direction:column; overflow:hidden; }
.side-brand { padding:0 18px 14px; margin-bottom:8px; flex-shrink:0; }
.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 6px; flex:1; overflow-y:auto; }
.si { display:flex; align-items:center; gap:8px; padding:8px 8px; border-radius:8px; font-size:14px; font-weight:600; color:#1E293B; cursor:pointer; }
.si:hover { color:#0284C7; }
.si.on { color:#0284C7; font-weight:700; }
.si .ic { font-size:17px; width:20px; text-align:center; flex-shrink:0; }
.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; min-height:0; }
.tb { height:48px; flex-shrink:0; display:flex; align-items:center; justify-content:space-between; padding:0 24px; background:#FFF8EE; }
.tb-t { font-size:10px; font-weight:500; color:#1E293B; display:flex; align-items:center; gap:4px; }
.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; display:flex; flex-direction:column; min-height:0; }
.ca > .mc, .ca > .guide-section, .ca > .sg { flex-shrink:0; }
.ca > .web-footer { margin-top:auto; }
.mc { padding:18px; }
.mc .sh { font-size:15px; font-weight:600; 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:8px; font-family:'Be Vietnam Pro',sans-serif; font-weight:600; cursor:pointer; }
.btn-s { background:#0EA5E9; color:#fff; padding:10px 18px; font-size:14px; }
.btn-s:hover { background:#0284C7; }
.btn-o { background:transparent; border:1.5px solid #E2E8F0; color:#1E293B; font-weight:500; padding:10px 18px; font-size:14px; }
.btn-o:hover { border-color:#0EA5E9; color:#0EA5E9; }

/* UPLOAD */
.up-row { display:flex; align-items:center; gap:14px; padding:18px; background:#F0F9FF; border:1.5px dashed #0EA5E9; border-radius:10px; cursor:pointer; transition:all .2s; }
.up-row:hover { background:#E0F2FE; border-color:#0284C7; }
.up-row .up-ic { font-size:24px; flex-shrink:0; }
.up-row .t1 { font-size:14px; font-weight:500; color:#1E293B; }
.up-row .t2 { font-size:12px; color:#475569; margin-top:2px; }
.up-row .up-btn { padding:9px 18px; background:#E0F2FE; color:#0284C7; border:1.5px dashed #0EA5E9; border-radius:8px; font-family:'Be Vietnam Pro',sans-serif; font-size:13px; font-weight:500; cursor:pointer; flex-shrink:0; transition:all .2s; }
.up-row .up-btn:hover { background:#BAE6FD; border-color:#0284C7; }
.fa { display:flex; align-items:center; gap:8px; padding:10px 14px; background:#F0F9FF; border:1px solid #E0F2FE; border-radius:8px; font-size:13px; font-weight:500; color:#0284C7; margin-top:10px; }
.fa .rm { margin-left:auto; cursor:pointer; color:#475569; font-size:16px; }
.upload-hints { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
.upload-hint { padding:4px 10px; border:1px dashed #E2E8F0; border-radius:12px; font-size:11px; color:#475569; cursor:default; }

/* CONFIG */
.cl { font-size:14px; font-weight:500; color:#1E293B; margin-bottom:8px; }
.disclaimer-top { display:flex; align-items:flex-start; gap:8px; padding:8px 0; margin-bottom:10px; cursor:pointer; }
.disclaimer-top input[type="checkbox"] { margin-top:2px; accent-color:#0EA5E9; width:16px; height:16px; flex-shrink:0; }
.disclaimer-top span { font-size:13px; color:#0284C7; line-height:1.5; }
.cfg { display:flex; gap:0; border:1.5px solid #E2E8F0; border-radius:10px 10px 0 0; overflow:hidden; }
.cfg-c { padding:18px; }
.cfg-c:first-child { flex:40; }
.cfg-c:last-child { flex:60; }
.cfg-c+.cfg-c { border-left:1.5px solid #E2E8F0; }
.cfg-c .cl { font-size:14px; color:#E65100; font-weight:500; margin-bottom:8px; }
.pills { display:flex; gap:12px; flex-wrap:wrap; }
.chk-pill { display:flex; align-items:center; gap:6px; cursor:pointer; white-space:nowrap; margin-bottom:6px; }
.chk-pill input[type="checkbox"] { accent-color:#0284C7; width:17px; height:17px; }
.chk-pill span { font-size:14px; color:#1E293B; }
.chk-pill.on span { color:#0284C7; }
.p { text-align:center; padding:10px 18px; border-radius:8px; border:1.5px dashed #0EA5E9; background:#fff; font-family:'Be Vietnam Pro',sans-serif; font-size:14px; color:#1E293B; cursor:pointer; white-space:nowrap; }
.p:hover { background:#F0F9FF; border-color:#0284C7; color:#0284C7; }
.p.on { background:#E0F2FE; border:1.5px dashed #0284C7; color:#0284C7; }
.note-box { padding:18px; border:1.5px solid #E2E8F0; border-top:none; }
.note-label { font-size:14px; color:#E65100; font-weight:500; margin-bottom:8px; }
.note-input { width:100%; min-height:80px; max-height:220px; padding:12px 14px; border:1.5px solid #E2E8F0; border-radius:10px; font-family:'Be Vietnam Pro',sans-serif; font-size:14px; color:#1E293B; resize:vertical; box-sizing:border-box; line-height:1.7; }
.note-input:focus { outline:none; border-color:#0EA5E9; box-shadow:0 0 0 3px rgba(14,165,233,0.1); }
.note-input::placeholder { color:#94A3B8; font-size:13px; line-height:1.5; }
.sp-input { width:100%; padding:10px 14px; border:1.5px solid #E2E8F0; border-radius:10px; font-family:'Be Vietnam Pro',sans-serif; font-size:14px; color:#1E293B; box-sizing:border-box; margin-top:4px; }
.sp-input:focus { outline:none; border-color:#0EA5E9; }
.sp-input::placeholder { color:#94A3B8; font-size:13px; }


.note-counter { text-align:right; font-size:12px; color:#475569; margin-top:4px; }
.cost-row { display:flex; align-items:center; justify-content:space-between; padding:18px; background:linear-gradient(135deg,#FFFCF8,#FFF6ED); border:1.5px solid #E2E8F0; border-top:none; border-radius:0 0 10px 10px; }
.cost-row .c1 { font-size:14px; color:#475569; }
.cost-td { font-size:14px; }
.cost-row .btn-run { padding:10px 24px; background:#FFF3E0; color:#E65100; border:1.5px dashed #E65100; border-radius:8px; font-family:'Be Vietnam Pro',sans-serif; font-size:15px; font-weight:500; cursor:pointer; transition:all .2s; letter-spacing:0.02em; }
.cost-row .btn-run:hover { background:#FFE0B2; transform:translateY(-1px); box-shadow:0 3px 10px rgba(230,81,0,0.12); }
.cost-row .btn-run.btn-disabled { opacity:0.35; cursor:not-allowed; background:#CBD5E1; color:#fff; border:none; transform:none; box-shadow:none; }
.cost-row .btn-run.btn-disabled:hover { background:#CBD5E1; transform:none; box-shadow:none; }

/* 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; }

/* PIPELINE ICONS — bên phải mỗi step */
.ps { display:flex; align-items:flex-start; gap:12px; padding:12px 0; position:relative; }
.ps-icon { font-size:20px; margin-left:auto; flex-shrink:0; }
.ps-icon.active { animation: iconBounce 1s ease-in-out infinite; }
.ps-icon.waiting { opacity:0.4; animation: steamFloat 2s ease-in-out infinite; }
.ps-icon.done { opacity:1; }

@keyframes iconBounce {
  0%,100% { transform:scale(1); }
  50% { transform:scale(1.3); }
}
@keyframes steamFloat {
  0%,100% { transform:translateY(0); opacity:0.3; }
  50% { transform:translateY(-3px); opacity:0.5; }
}

/* 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; }

/* DISCLAIMER */
.chat-disclaimer { font-size:12px; color:#475569; padding:10px 0; text-align:center; line-height:1.5; position:sticky; bottom:0; background:rgba(250,251,252,0.95); z-index:2; margin-top:16px; }
.chat-disclaimer a { color:#0284C7; text-decoration:none; }
.chat-disclaimer a:hover { text-decoration:underline; }



/* SIDEBAR CONTACT */
.side-contact { padding:4px 8px; margin-top:4px; font-size:11px; font-weight:600; color:#1E293B; line-height:1.7; }
.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; }
.side-login-row { display:flex; gap:8px; }
.lbtn-s { flex:1; display:flex; align-items:center; justify-content:center; gap:6px; padding:8px 0; border:1.5px dashed #0EA5E9; border-radius:8px; background:transparent; font-family:'Be Vietnam Pro',sans-serif; font-size:12px; font-weight:700; color:#1E293B; cursor:pointer; text-decoration:none; }
.zi-s { display:inline-flex; align-items:center; justify-content:center; width:14px; height:14px; border-radius:3px; background:#0068FF; color:#fff; font-size:10px; font-weight:900; line-height:1; }
.lbtn-s:hover { background:#F0F9FF; color:#0284C7; }

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

/* RESPONSIVE */
@media (max-width: 768px) {
  .side { width:200px; }
  .web-footer { gap:8px; padding:8px 12px; flex-wrap:wrap; }
  .web-footer a { font-size:11px; }
  .tb { padding:0 12px; }
  .tb-t { font-size:10px; }
  .tb-u { font-size:10px; }
  .ca { padding:12px; }
  .mc { padding:18px; }
}
@media (max-width: 480px) {
  .side { width:180px; }
  .si { font-size:13px; padding:6px 10px; }
  .side-brand .nm { font-size:16px; }
  .ep-card { width:290px; padding:18px; }
}

/* 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; }

/* AVATAR BUTTON */
.av-btn { font-size:18px; cursor:pointer; padding:2px 4px; border-radius:6px; }
.av-btn:hover { background:#F0F9FF; }
.td-click { cursor:pointer; font-weight:700; color:#E65100; }
.td-click:hover { text-decoration:underline; }

/* TD ERROR — thiếu trà đá */
.td-error { font-size:15px; font-weight:700; color:#0284C7; }
.td-error-link { cursor:pointer; font-weight:800; color:#E65100; text-decoration:underline; }
.td-error-link:hover { color:#BF360C; }
/* EDIT PROFILE POPUP */
.ep-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,.3); z-index:9999; display:flex; align-items:center; justify-content:center; }
.ep-card { background:#fff; border-radius:14px; padding:24px; width:340px; box-shadow:0 8px 30px rgba(0,0,0,.12); position:relative; }
.ep-close { position:absolute; top:12px; right:14px; font-size:16px; font-weight:800; color:#475569; cursor:pointer; }
.ep-close:hover { color:#0284C7; }
.ep-title { font-size:15px; font-weight:800; color:#1E293B; margin-bottom:16px; }
.ep-section { margin-bottom:14px; }
.ep-label { font-size:11px; font-weight:800; color:#0284C7; margin-bottom:6px; }
.ep-count { font-weight:600; color:#475569; }
.ep-avatars { display:flex; flex-wrap:wrap; gap:6px; }
.ep-av { font-size:22px; width:36px; height:36px; display:flex; align-items:center; justify-content:center; border-radius:8px; border:2px solid #E2E8F0; cursor:pointer; }
.ep-av:hover { border-color:#0EA5E9; }
.ep-av.on { border-color:#0EA5E9; background:#F0F9FF; }
.ep-input { width:100%; padding:8px 12px; 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; }
.ep-input:focus { border-color:#0EA5E9; }
.ep-actions { display:flex; gap:8px; }
.ep-msg { margin-top:8px; font-size:11px; font-weight:700; min-height:16px; }

/* GỌI TRÀ ĐÁ — nút sidebar giống OAuth */
.side-td { padding:6px 10px; }
.td-btn { width:100%; padding:9px 0; border:1.5px dashed #E65100; border-radius:6px; background:#FFF3E0; font-family:'Be Vietnam Pro',sans-serif; font-size:12px; font-weight:700; color:#E65100; cursor:pointer; }
.td-btn:hover { background:#FFE0B2; }

/* GỌI TRÀ ĐÁ — popup */
.td-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,.35); z-index:9999; display:flex; align-items:center; justify-content:center; }
.td-card { background:#fff; border-radius:16px; padding:32px; width:440px; max-width:90vw; box-shadow:0 8px 30px rgba(0,0,0,.15); position:relative; }
.td-close { position:absolute; top:12px; right:14px; font-size:16px; font-weight:800; color:#475569; cursor:pointer; }
.td-close:hover { color:#0284C7; }
.td-title { font-size:18px; font-weight:800; color:#1E293B; margin-bottom:14px; }
.td-body { font-size:14px; font-weight:500; color:#1E293B; line-height:1.7; }
.td-bank { margin-top:16px; display:flex; gap:16px; padding:18px; background:#F0F9FF; border-radius:12px; border:1.5px solid #E0F2FE; }
.td-qr { flex-shrink:0; }
.td-qr img { width:140px; height:140px; border-radius:10px; border:2px solid #E2E8F0; object-fit:contain; background:#fff; }
.td-info { flex:1; display:flex; flex-direction:column; justify-content:center; gap:6px; }
.td-row { display:flex; justify-content:space-between; align-items:center; }
.td-label { font-size:13px; font-weight:700; color:#475569; }
.td-val { font-size:14px; font-weight:700; color:#1E293B; }

/* LANGUAGE FLAG */
.flag-btn { cursor:pointer; opacity:0.4; padding:2px; display:inline-block; border-radius:2px; }
.flag-btn.on { opacity:1; }
.flag-btn:hover { opacity:0.8; }

/* SIDEBAR DATE */
.side-date { padding:6px 12px; font-size:11px; font-weight:600; color:#475569; text-align:center; }

/* GUIDE LINK — topbar */
.guide-link { font-size:12px; font-weight:800; color:#E65100; text-decoration:none; display:inline-flex; align-items:center; gap:3px; transition:color .2s; background:#FFF3E0; padding:3px 10px; border-radius:12px; border:1.5px solid #FFB74D; }
.guide-link:hover { color:#BF360C; background:#FFE0B2; border-color:#FF9800; }
.guide-icon { font-size:16px; display:inline-block; line-height:1; vertical-align:middle; }
.guide-new { font-size:9px; font-weight:800; color:#fff; background:#E65100; padding:1px 5px; border-radius:6px; margin-left:2px; animation:guidePulse 2s ease-in-out infinite; }
@keyframes guidePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.7;transform:scale(1.1)} }

/* RESULT VIEW */
.rv-head { display:flex; align-items:center; gap:14px; margin-bottom:20px; padding:18px 22px; border-radius:14px; }
.rv-head.pass { background:linear-gradient(135deg,#ECFDF5,#D1FAE5); border-left:5px solid #059669; box-shadow:0 2px 12px rgba(5,150,105,0.08); }
.rv-head.flag { background:linear-gradient(135deg,#FFFBEB,#FEF3C7); border-left:5px solid #D97706; box-shadow:0 2px 12px rgba(217,119,6,0.08); }
.rv-head.block { background:linear-gradient(135deg,#FEF2F2,#FEE2E2); border-left:5px solid #DC2626; box-shadow:0 2px 12px rgba(220,38,38,0.08); }
.rv-icon { font-size:28px; }
.rv-verdict { font-size:18px; font-weight:800; }
.rv-td { margin-left:auto; font-size:14px; font-weight:700; color:#E65100; background:#FFF3E0; padding:6px 14px; border-radius:20px; }
.rv-actions { display:flex; gap:8px; margin-bottom:18px; flex-wrap:wrap; }
.rv-btn { padding:8px 16px; border:1.5px solid #E2E8F0; border-radius:10px; background:#fff; font-family:'Be Vietnam Pro',sans-serif; font-size:13px; font-weight:600; color:#475569; cursor:pointer; transition:all .2s; }
.rv-btn:hover { border-color:#0EA5E9; color:#0284C7; background:#F0F9FF; transform:translateY(-1px); box-shadow:0 2px 8px rgba(14,165,233,0.1); }
.rv-like { font-size:15px; padding:8px 12px; }
.rv-btn[data-action="tts-result"]:hover { background:#F0F9FF; border-color:#0EA5E9; color:#0284C7; }

/* RESULT BODY — typography chuyên nghiệp, tương đương Times New Roman 13-14 */
.rv-body { font-size:16.5px; font-weight:400; color:#1E293B; line-height:2; letter-spacing:0.01em; }
.rv-body h1 { font-size:22px; font-weight:900; color:#0284C7; margin:32px 0 14px; padding:12px 18px; border-left:4px solid #0EA5E9; background:linear-gradient(90deg,#F0F9FF,transparent); border-radius:0 10px 10px 0; letter-spacing:-0.01em; }
.rv-body h1:first-child { margin-top:0; }
.rv-body h2 { font-size:19px; font-weight:800; color:#1E293B; margin:26px 0 10px; padding:8px 14px; background:#F8FAFC; border-radius:8px; border-left:3px solid #0EA5E9; }
.rv-body h3 { font-size:17px; font-weight:700; color:#334155; margin:20px 0 8px; padding-left:12px; border-left:2px solid #CBD5E1; }
.rv-body h4 { font-size:16px; font-weight:700; color:#475569; margin:16px 0 6px; }
.rv-body p { margin:8px 0 12px; }
.rv-body strong { font-weight:700; color:#0F172A; }
.rv-body em { font-style:italic; color:#475569; }
.rv-body ul, .rv-body ol { margin:10px 0 14px 8px; padding-left:18px; }
.rv-body li { margin-bottom:8px; font-size:16px; line-height:1.9; }
.rv-body li::marker { color:#0EA5E9; font-weight:700; }
.rv-body blockquote { margin:12px 0; padding:14px 18px; border-left:4px solid; border-image:linear-gradient(to bottom,#0EA5E9,#7C3AED) 1; background:#FAFBFF; border-radius:0 10px 10px 0; font-size:15px; color:#334155; font-style:italic; line-height:1.8; }
.rv-body hr { border:none; height:1px; background:linear-gradient(90deg,transparent,#E2E8F0,transparent); margin:22px 0; }
.rv-body table { width:100%; border-collapse:separate; border-spacing:0; margin:14px 0; border-radius:10px; overflow:hidden; border:1px solid #E2E8F0; }
.rv-body table th { background:linear-gradient(135deg,#F0F9FF,#E0F2FE); color:#0284C7; font-weight:700; font-size:14.5px; padding:12px 14px; text-align:left; border-bottom:2px solid #0EA5E9; }
.rv-body table td { padding:10px 14px; font-size:14.5px; border-bottom:1px solid #F1F5F9; line-height:1.7; }
.rv-body table tr:nth-child(even) td { background:#FAFBFC; }
.rv-body table tr:hover td { background:#F0F9FF; transition:background .15s; }
.rv-body pre { background:#1E293B; color:#E2E8F0; padding:16px 18px; border-radius:10px; overflow-x:auto; font-size:14px; line-height:1.7; }
.rv-body code { background:#F1F5F9; padding:2px 7px; border-radius:5px; font-size:14px; color:#0284C7; font-weight:500; }
.rv-body pre code { background:none; color:inherit; padding:0; }

/* EXPORT */
.rv-export { display:flex; gap:10px; margin-top:24px; flex-wrap:wrap; }
.rv-export .btn { padding:10px 20px; border:1.5px solid #E2E8F0; border-radius:10px; background:#fff; font-family:'Be Vietnam Pro',sans-serif; font-size:13px; font-weight:700; color:#475569; cursor:pointer; transition:all .2s; }
.rv-export .btn:hover { border-color:#0EA5E9; color:#0284C7; background:#F0F9FF; transform:translateY(-1px); box-shadow:0 2px 8px rgba(14,165,233,0.12); }

/* DISCLAIMER — luôn hiện */
.rv-disclaimer { margin-top:20px; font-size:13px; font-weight:500; color:#64748B; padding:12px 16px; background:linear-gradient(90deg,#F8FAFC,#F0F9FF); border-radius:10px; border-left:3px solid #CBD5E1; line-height:1.7; }
.rv-disclaimer a { color:#0284C7; font-weight:600; text-decoration:none; }
.rv-disclaimer a:hover { text-decoration:underline; }

/* VSO-BF */
.vsobf-intro { font-size:13px; font-weight:500; color:#475569; line-height:1.7; padding:4px 0; }
.nc-desc-wrap { padding:18px; border:1.5px solid #E2E8F0; border-top:none; }
.nc-desc-label { font-size:14px; color:#E65100; margin-bottom:6px; }
.nc-desc-input { width:100%; min-height:70px; max-height:140px; padding:8px 10px; border:1.5px solid #E2E8F0; border-radius:8px; font-family:'Be Vietnam Pro',sans-serif; font-size:14px; color:#1E293B; resize:vertical; box-sizing:border-box; }
.nc-desc-input:focus { outline:none; border-color:#0EA5E9; }
.nc-desc-input::placeholder { color:#94A3B8; font-size:13px; }
.nc-desc-count { text-align:right; font-size:11px; color:#64748B; margin-top:3px; }
.chat-divider { padding:8px 16px; font-size:13px; color:#475569; border-top:1px solid #E2E8F0; background:#FEFCFA; }
/* HISTORY PANEL */
/* hist-overlay + hist-panel popup đã bỏ — dùng screen lichsu */
.hist-hd { padding:14px 18px 10px; border-bottom:1px solid #F0E8DC; display:flex; align-items:center; justify-content:space-between; }
.hist-clear { font-size:11px; font-weight:600; color:#64748B; cursor:pointer; padding:3px 8px; border-radius:6px; }
.hist-clear:hover { color:#E11D48; background:#FFF1F2; }
.hist-filters { padding:8px 18px 0; display:flex; gap:4px; }
.hist-ft { padding:4px 10px; border-radius:16px; font-size:11px; font-weight:600; color:#64748B; cursor:pointer; }
.hist-ft:hover { background:#F0F9FF; color:#475569; }
.hist-ft.on { background:#0EA5E9; color:#fff; }
.hist-list { flex:1; overflow-y:auto; padding:6px 10px 10px; }
.hist-date { font-size:10px; font-weight:700; color:#64748B; text-transform:uppercase; letter-spacing:.8px; padding:8px 8px 4px; }
.hist-item { display:flex; align-items:flex-start; gap:10px; padding:9px 10px; border-radius:10px; cursor:pointer; position:relative; }
.hist-item:hover { background:#F0F9FF; }
.hist-icon { width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:15px; flex-shrink:0; }
.hist-icon.xnk { background:#DBEAFE; }
.hist-icon.hopdong { background:#E0F2FE; }
.hist-icon.khoahoc { background:#ECFDF5; }
.hist-icon.tongiao { background:#EDE9FE; }
.hist-icon.yhoc { background:#FCE7F3; }
.hist-icon.dich { background:#FEF3C7; }
.hist-icon.baitap { background:#FEE2E2; }
.hist-icon.nghiencuu { background:#DBEAFE; }
.hist-body { flex:1; min-width:0; }
.hist-title { font-size:12px; font-weight:700; color:#1E293B; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hist-meta { display:flex; align-items:center; gap:6px; margin-top:2px; }
.hist-mode { font-size:9px; font-weight:700; padding:1px 5px; border-radius:3px; }
.hist-mode.xnk { background:#DBEAFE; color:#1D4ED8; }
.hist-mode.hopdong { background:#E0F2FE; color:#0369A1; }
.hist-mode.khoahoc { background:#D1FAE5; color:#065F46; }
.hist-mode.tongiao { background:#EDE9FE; color:#5B21B6; }
.hist-mode.yhoc { background:#FCE7F3; color:#9D174D; }
.hist-mode.dich { background:#FEF3C7; color:#92400E; }
.hist-mode.baitap { background:#FEE2E2; color:#991B1B; }
.hist-mode.nghiencuu { background:#DBEAFE; color:#1D4ED8; }
.hist-verdict { font-size:8px; font-weight:800; padding:1px 5px; border-radius:3px; text-transform:uppercase; }
.hist-verdict.pass { background:#D1FAE5; color:#065F46; }
.hist-verdict.flag { background:#FEF3C7; color:#92400E; }
.hist-verdict.block { background:#FEE2E2; color:#991B1B; }
.hist-time { font-size:10px; color:#64748B; }
.hist-del { opacity:0; width:26px; height:26px; border-radius:6px; border:none; background:transparent; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:13px; margin-top:2px; flex-shrink:0; }
.hist-item:hover .hist-del { opacity:1; }
.hist-del:hover { background:#FFF1F2; }
.hist-foot { padding:8px 18px; border-top:1px solid #F0E8DC; font-size:10px; color:#64748B; }
.hist-empty { text-align:center; padding:40px 20px; font-size:13px; color:#64748B; }
.hist-list::-webkit-scrollbar { width:4px; }
.hist-list::-webkit-scrollbar-thumb { background:#E2E8F0; border-radius:2px; }
.hist-confirm-overlay { position:fixed; inset:0; background:rgba(0,0,0,.3); z-index:10000; display:flex; align-items:center; justify-content:center; }
.hist-confirm-box { background:#fff; border-radius:14px; padding:22px; width:320px; box-shadow:0 12px 40px rgba(0,0,0,.12); text-align:center; }

/* ADMIN */
.ad-content { padding:18px; }
.ad-stats { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
.ad-card { flex:1; min-width:120px; background:#F8FAFC; border:1px solid #E2E8F0; border-radius:10px; padding:18px; text-align:center; }
.ad-num { font-size:22px; font-weight:900; color:#0284C7; }
.ad-label { font-size:11px; font-weight:600; color:#64748B; margin-top:2px; }
.ad-sec { margin-bottom:16px; }
.ad-sec-h { font-size:14px; font-weight:700; color:#1E293B; margin-bottom:8px; display:flex; align-items:center; gap:6px; }
.ad-health { font-size:12px; color:#475569; padding:8px 12px; background:#F0F9FF; border-radius:6px; }
.ad-tbl { width:100%; border-collapse:separate; border-spacing:0; font-size:12px; border-radius:8px; overflow:hidden; border:1px solid #E2E8F0; }
.ad-tbl th { background:#F0F9FF; color:#0284C7; font-weight:700; padding:8px 10px; text-align:left; border-bottom:2px solid #0EA5E9; }
.ad-tbl td { padding:7px 10px; border-bottom:1px solid #F1F5F9; }
.ad-tbl tr:hover td { background:#FAFBFC; }
.ad-toolbar { display:flex; gap:8px; align-items:center; margin-bottom:12px; flex-wrap:wrap; }
.ad-search { padding:6px 12px; border:1.5px solid #E2E8F0; border-radius:6px; font-family:'Be Vietnam Pro',sans-serif; font-size:12px; width:200px; }
.ad-search:focus { outline:none; border-color:#0EA5E9; }
.ad-filter { padding:5px 12px; border:1px solid #E2E8F0; border-radius:6px; background:#fff; font-family:'Be Vietnam Pro',sans-serif; font-size:11px; font-weight:600; color:#475569; cursor:pointer; }
.ad-filter:hover { border-color:#0EA5E9; color:#0284C7; }
.ad-filter.on { background:#0EA5E9; color:#fff; border-color:#0EA5E9; }
.ad-btn-topup, .ad-btn-act { padding:3px 8px; border:1px solid #E2E8F0; border-radius:4px; background:#fff; font-size:11px; cursor:pointer; }
.ad-btn-topup:hover { background:#FFF3E0; border-color:#E65100; }
.ad-btn-act:hover { background:#F0F9FF; border-color:#0EA5E9; }
.ad-pager { display:flex; gap:4px; margin-top:8px; }
.ad-pg { padding:4px 10px; border:1px solid #E2E8F0; border-radius:4px; background:#fff; font-size:11px; cursor:pointer; }
.ad-pg.on { background:#0EA5E9; color:#fff; }
.ad-note { margin-top:12px; font-size:11px; color:#64748B; }
.ad-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.3); z-index:9999; display:flex; align-items:center; justify-content:center; }
.ad-modal { background:#fff; border-radius:14px; padding:24px; width:360px; box-shadow:0 8px 30px rgba(0,0,0,.12); position:relative; }
.ad-modal-close { position:absolute; top:10px; right:12px; border:none; background:none; font-size:16px; cursor:pointer; color:#64748B; }
.ad-modal-title { font-size:16px; font-weight:800; color:#1E293B; margin-bottom:14px; }
.ad-modal-label { font-size:11px; font-weight:700; color:#0284C7; margin-bottom:4px; }
.ad-modal-input { width:100%; padding:8px 12px; border:1.5px solid #E2E8F0; border-radius:6px; font-family:'Be Vietnam Pro',sans-serif; font-size:13px; margin-bottom:10px; }
.ad-modal-input:focus { outline:none; border-color:#0EA5E9; }
.ad-modal-vnd { font-size:12px; color:#E65100; font-weight:700; margin-bottom:10px; }
.ad-modal-actions { display:flex; gap:8px; margin-top:10px; }
.ad-modal-msg { margin-top:8px; font-size:12px; font-weight:700; min-height:16px; }

/* ═══ HISTORY PAGE ═══ */
.hist-page { padding:20px 24px; }
.hist-page-hd { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.hist-page-filters { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:16px; }
.hist-page-list { min-height:200px; }
.hist-page-foot { margin-top:16px; font-size:11px; color:#64748B; text-align:center; }
.hist-item { display:flex; align-items:center; gap:10px; padding:10px 12px; border-bottom:1px solid #F1F5F9; cursor:pointer; border-radius:8px; transition:background .15s; }
.hist-item:hover { background:#F8FAFC; }
.hist-icon { font-size:20px; flex-shrink:0; width:32px; text-align:center; }
.hist-body { flex:1; min-width:0; }
.hist-title { font-size:13px; font-weight:600; color:#1E293B; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hist-meta { display:flex; gap:8px; align-items:center; margin-top:3px; }
.hist-mode { font-size:10px; font-weight:700; padding:1px 6px; border-radius:4px; background:#F0F9FF; color:#0284C7; }
.hist-verdict { font-size:10px; font-weight:800; padding:1px 6px; border-radius:4px; }
.hist-verdict.pass { background:#D1FAE5; color:#065F46; }
.hist-verdict.flag { background:#FEF3C7; color:#92400E; }
.hist-verdict.block { background:#FEE2E2; color:#991B1B; }
.hist-time { font-size:10px; color:#64748B; }
.hist-del { border:none; background:none; font-size:14px; cursor:pointer; opacity:.4; flex-shrink:0; }
.hist-del:hover { opacity:1; }
.hist-date { font-size:11px; font-weight:800; color:#0284C7; padding:8px 0 4px; }
.hist-empty { text-align:center; color:#64748B; font-size:13px; padding:40px 0; }
.hist-ft { padding:4px 10px; border:1px solid #E2E8F0; border-radius:6px; font-size:11px; font-weight:600; color:#475569; cursor:pointer; background:#fff; }
.hist-ft:hover { border-color:#0EA5E9; color:#0284C7; }
.hist-ft.on { background:#0EA5E9; color:#fff; border-color:#0EA5E9; }
.hist-clear { font-size:11px; color:#E11D48; font-weight:700; cursor:pointer; }
.hist-clear:hover { text-decoration:underline; }
.hist-confirm-overlay { position:fixed; inset:0; background:rgba(0,0,0,.3); z-index:9999; display:flex; align-items:center; justify-content:center; }
.hist-confirm-box { background:#fff; border-radius:14px; padding:24px; width:320px; box-shadow:0 8px 30px rgba(0,0,0,.12); }

/* ═══ DICH MODE PILLS ═══ */
.dich-mode-pills { display:none; }
/* Dich swap button */
.dich-swap-btn { background:transparent; border:none; font-size:13px; cursor:pointer; padding:0 2px; color:#475569; transition:all .2s; }
.dich-swap-btn:hover { color:#0284C7; transform:rotate(180deg); }

/* Promo badge — sidebar */
.promo-badge{display:inline-block;color:#EF4444;font-size:10px;font-weight:700;margin-left:6px;animation:promoPulse 2s ease-in-out infinite;vertical-align:middle;letter-spacing:.3px}
@keyframes promoPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.1)}}
