:root{--navy:#06183c;--navy2:#0b2453;--blue:#1769ff;--purple:#7c3cff;--ink:#10172f;--muted:#65708c;--line:#dde4f2;--surface:#fff;--bg:#f6f8fd;--green:#12b76a;--orange:#ff8a22;--shadow:0 12px 35px rgba(31,56,118,.09)}
[hidden]{display:none!important}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg)}body{overflow-x:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:#075eff;text-decoration:none}.auth{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 25% 20%,#2445a8 0,transparent 28%),linear-gradient(135deg,#07183b,#172c73 58%,#712ee7)}.authcard{width:min(440px,100%);padding:34px;border-radius:24px;background:rgba(255,255,255,.97);box-shadow:0 30px 80px rgba(3,12,42,.35)}.authbrand,.brandmark{display:flex;align-items:center;gap:12px}.authbrand{margin-bottom:30px}.authbrand div,.brandmark div{display:flex;flex-direction:column}.authbrand strong,.brandmark strong{font-size:22px;letter-spacing:.5px}.authbrand small{color:var(--muted)}.authcard h1{margin:0 0 8px;font-size:30px}.authcard>p{color:var(--muted);margin:0 0 24px}.brandlogo{display:grid;place-items:center;width:46px;height:38px;border-radius:12px;color:#fff;font-weight:900;font-size:25px;font-style:italic;background:linear-gradient(135deg,#23c8ff,#7049ff 58%,#ee55c8);box-shadow:0 8px 20px rgba(75,70,255,.3)}label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;color:#343c57;margin-bottom:14px}input,select,textarea{width:100%;border:1px solid #d7deec;border-radius:11px;padding:11px 13px;background:#fff;color:var(--ink);outline:none;transition:.2s}input:focus,select:focus,textarea:focus{border-color:#6d55ff;box-shadow:0 0 0 3px rgba(109,85,255,.12)}textarea{min-height:95px;resize:vertical}.primary,.secondary{border:0;border-radius:10px;padding:11px 17px;font-weight:750}.primary{background:linear-gradient(135deg,#1b66ff,#7b3eff);color:#fff;box-shadow:0 8px 20px rgba(71,71,255,.2)}.secondary{background:#f5f7fd;color:#293453;border:1px solid #d9e0ef}.danger{color:#d92d20}.authsubmit{width:100%;margin-top:5px}.textbutton{border:0;background:transparent;color:inherit;padding:10px 0}.error{color:#d92d20;margin-top:8px}.flash{position:fixed;z-index:30;right:24px;top:82px;max-width:420px;padding:13px 18px;border-radius:12px;background:#eafbf2;color:#087a44;box-shadow:var(--shadow)}.flash.bad{background:#fff0ee;color:#b42318}
#app{min-height:100vh}.sidebar{position:fixed;z-index:20;inset:0 auto 0 0;width:268px;padding:20px 13px 16px;background:linear-gradient(180deg,#07183b 0%,#081c46 55%,#061737 100%);color:#fff;display:flex;flex-direction:column;overflow-y:auto}.brandmark{padding:0 18px 20px}.brandmark small{color:#aebbd7;font-size:11px;margin-top:2px}.workspacebox{display:grid;grid-template-columns:34px 1fr 18px;align-items:center;gap:10px;margin:5px 3px 18px;padding:13px;border:1px solid rgba(136,165,255,.28);background:rgba(40,71,145,.3);border-radius:12px}.workspacebox>div{display:flex;flex-direction:column;min-width:0}.workspacebox strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspacebox small{font-size:11px;color:#aebbd7}.workspaceicon{display:grid;place-items:center;width:32px;height:32px;background:linear-gradient(135deg,#2171ff,#7149ff);border-radius:8px}#orgselect{position:absolute;opacity:0;pointer-events:none}#nav{display:flex;flex-direction:column;gap:3px}#nav button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 15px;border:0;border-radius:9px;background:transparent;color:#e4eaf8;text-align:left;font-weight:650;font-size:13px}#nav button span{width:20px;text-align:center;font-size:18px;color:#dce6ff}#nav button:hover{background:rgba(255,255,255,.08)}#nav button.active{background:linear-gradient(100deg,#2559ee,#713cf6);box-shadow:0 8px 22px rgba(71,59,238,.28);color:#fff}.navsection{padding:16px 15px 6px;color:#8fa2c9;font-size:10px;font-weight:800;letter-spacing:.75px}.upgrade{margin-top:auto;padding:16px;border:1px solid rgba(142,113,255,.6);border-radius:13px;background:linear-gradient(135deg,rgba(75,47,176,.7),rgba(76,54,184,.34));font-size:13px}.upgrade span{color:#ffd166}.upgrade p{margin:7px 0 0;color:#d7d6ff;line-height:1.5;font-size:11px}.sidebarbottom{padding:15px 12px 0;color:#b7c4df;font-size:11px}.sidebarbottom .textbutton{display:block;color:#fff}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.13)}main{margin-left:268px;min-height:100vh}.topbar{height:64px;padding:10px 28px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.9);backdrop-filter:blur(18px);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:15}.searchbox{width:min(760px,64vw);height:42px;display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid #dce3f0;border-radius:12px;background:#f9faff;box-shadow:inset 0 1px 2px rgba(22,40,88,.03)}.searchbox>span{font-size:25px}.searchbox input{border:0;padding:0;background:transparent;box-shadow:none}.searchbox kbd{font-size:11px;padding:3px 7px;border:1px solid #ccd5e6;border-radius:5px;background:#fff;color:#5e6883}.topactions{display:flex;align-items:center;gap:14px}.iconbutton{position:relative;border:0;background:transparent;font-size:20px}.iconbutton i{position:absolute;right:4px;top:0;width:7px;height:7px;border-radius:50%;background:#f04438}.userchip{display:flex;align-items:center;gap:9px;padding-left:12px;border-left:1px solid var(--line)}.userchip>div{display:flex;flex-direction:column;font-size:12px}.userchip small{color:var(--muted)}.avatar{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:linear-gradient(135deg,#c7ddff,#6e8eff);color:#fff;font-weight:800}.pagehead{display:flex;align-items:center;justify-content:space-between;padding:18px 28px 10px}.pagehead h1{margin:2px 0 0;font-size:25px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1px;color:#7a84a0}.datefilter{padding:10px 14px;border:1px solid #d8e0ef;border-radius:10px;background:#fff;font-size:12px;font-weight:700}#page{padding:8px 28px 34px}.panel{border:1px solid var(--line);border-radius:15px;background:var(--surface);padding:17px;box-shadow:0 4px 16px rgba(30,52,110,.035);margin-bottom:16px}.panel h2{font-size:17px;margin:0 0 15px}.notice{padding:11px 13px;border-radius:10px;background:#f3f5ff;color:#43507a;border-left:3px solid #6951ff;font-size:12px;line-height:1.5}.muted{color:var(--muted);font-size:12px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.card{min-height:106px;padding:18px;border:1px solid var(--line);border-radius:15px;background:#fff;position:relative;overflow:hidden}.card:nth-child(1){background:linear-gradient(135deg,#fff,#edf7ff)}.card:nth-child(2){background:linear-gradient(135deg,#fff,#f5edff)}.card:nth-child(3){background:linear-gradient(135deg,#fff,#ecfbf4)}.card:nth-child(4){background:linear-gradient(135deg,#fff,#fff4e9)}.card .label{font-size:12px;color:#4c5671;font-weight:700}.card .value{font-size:27px;font-weight:850;margin:6px 0}.card small{color:#13a05d}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.formrow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.check{flex-direction:row;align-items:center;font-weight:600}.check input{width:auto}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;color:#6c7691;font-size:10px;text-transform:uppercase;letter-spacing:.5px;padding:10px;border-bottom:1px solid var(--line)}td{padding:11px 10px;border-bottom:1px solid #edf0f6;vertical-align:top}tr:last-child td{border:0}.empty{text-align:center;color:var(--muted);padding:28px}.tag{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eef1f7;color:#4e5975;font-size:10px;font-weight:800}.tag.approved,.tag.published,.tag.enabled,.tag.active{background:#e6f8ed;color:#078744}.tag.awaiting_human,.tag.queued,.tag.scheduled{background:#fff5df;color:#b86d00}.tag.failed,.tag.cancelled,.tag.error{background:#ffebe8;color:#c02c20}.tag.simulated,.tag.ready{background:#eaf1ff;color:#175cd3}.actions{display:flex;gap:7px;flex-wrap:wrap}.stack{display:grid;gap:12px}.contenttext{max-width:600px;white-space:pre-wrap;line-height:1.5}.plan-slots{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.plan-slots fieldset{border:1px solid var(--line);border-radius:12px;padding:14px}.plan-slots legend{font-weight:800;color:#44506f}
.dashboard-shell{display:grid;gap:16px}.dash-welcome{display:flex;justify-content:space-between;align-items:end}.dash-welcome h2{font-size:26px;margin:0}.dash-welcome p{margin:4px 0 0;color:var(--muted)}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.kpi{height:98px;padding:15px;border:1px solid var(--line);border-radius:15px;background:#fff;display:grid;grid-template-columns:48px 1fr 74px;align-items:center;gap:10px;overflow:hidden}.kpi:nth-child(1){background:linear-gradient(135deg,#fff,#eaf6ff)}.kpi:nth-child(2){background:linear-gradient(135deg,#fff,#f4eaff)}.kpi:nth-child(3){background:linear-gradient(135deg,#fff,#eafaf2)}.kpi:nth-child(4){background:linear-gradient(135deg,#fff,#fff1e7)}.kpi-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:12px;background:#e1f1ff;color:#1472ff;font-size:22px}.kpi:nth-child(2) .kpi-icon{background:#efe0ff;color:#8a35f3}.kpi:nth-child(3) .kpi-icon{background:#dff8e9;color:#10a45d}.kpi:nth-child(4) .kpi-icon{background:#ffe9d5;color:#f1770d}.kpi small{color:var(--muted)}.kpi strong{display:block;font-size:23px;margin:3px 0}.kpi em{font-style:normal;color:var(--green);font-size:10px;font-weight:800}.spark{height:42px;align-self:end;border-bottom:3px solid currentColor;border-radius:50%;color:#397cff;transform:skewY(-9deg);opacity:.9}.dash-main{display:grid;grid-template-columns:1.15fr .85fr;gap:16px}.hero-agent{min-height:212px;position:relative;overflow:hidden;border-radius:16px;padding:24px 280px 22px 26px;color:#fff;background:radial-gradient(circle at 75% 55%,rgba(32,210,255,.55),transparent 20%),linear-gradient(120deg,#3924a5,#6b2eea 52%,#168bd9);box-shadow:0 18px 35px rgba(61,45,194,.2)}.hero-agent:after{content:"";position:absolute;inset:auto -10% -55% 42%;height:220px;border:2px solid rgba(77,238,255,.55);border-radius:50%;transform:rotate(-10deg)}.hero-agent .hero-copy{position:relative;z-index:2}.hero-agent .agent-pill{display:inline-block;padding:6px 12px;border-radius:8px;background:rgba(255,255,255,.16);font-size:11px;font-weight:800}.hero-agent h3{font-size:23px;line-height:1.2;margin:13px 0 7px}.hero-agent p{font-size:12px;color:#e6e8ff}.hero-agent img{position:absolute;z-index:1;right:25px;bottom:-58px;width:270px;filter:drop-shadow(0 15px 18px rgba(0,20,80,.3))}.hero-buttons{display:flex;gap:10px;margin-top:18px}.hero-buttons button{padding:10px 14px;border-radius:9px;border:1px solid rgba(255,255,255,.65);background:rgba(255,255,255,.1);color:#fff;font-weight:800}.hero-buttons button:first-child{background:#fff;color:#26305e}.quick-actions{padding:17px;border:1px solid var(--line);border-radius:16px;background:#fff}.quick-actions h3{font-size:17px;margin:0 0 13px}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.quick-grid button{min-height:70px;border:1px solid #dbe2ef;border-radius:11px;background:linear-gradient(#fff,#f8f9fd);font-size:11px;font-weight:750;color:#202944}.quick-grid span{display:block;color:#6d42f3;font-size:22px;margin-bottom:5px}.dash-panels{display:grid;grid-template-columns:1fr 1.08fr;gap:16px}.dash-panel{border:1px solid var(--line);border-radius:15px;background:#fff;padding:16px}.dash-panel h3{margin:0 0 12px;font-size:16px}.timeline-row,.campaign-row,.activity-row{display:grid;align-items:center;gap:10px;border-bottom:1px solid #edf0f5;padding:9px 0;font-size:11px}.timeline-row{grid-template-columns:46px 23px 1fr auto}.campaign-row{grid-template-columns:42px 1fr auto 120px}.activity-row{grid-template-columns:28px 1fr auto}.timeline-row:last-child,.campaign-row:last-child,.activity-row:last-child{border:0}.channel-dot{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#e9f1ff;color:#1769ff;font-weight:900}.status-ok{padding:5px 8px;border-radius:6px;background:#e4f8eb;color:#078744;font-size:10px;font-weight:800}.status-wait{padding:5px 8px;border-radius:6px;background:#eef2ff;color:#3659d9;font-size:10px;font-weight:800}.campaign-thumb{width:42px;height:30px;border-radius:7px;background:linear-gradient(135deg,#1a6fff,#8648ff)}.progress{height:7px;border-radius:99px;background:#e9edf5;overflow:hidden}.progress i{display:block;height:100%;border-radius:inherit;background:#14b86b}.dash-bottom{display:grid;grid-template-columns:1.05fr .8fr .95fr;gap:16px}.chart{height:150px;position:relative;margin-top:12px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 36px,#e9edf5 37px);overflow:hidden}.chart:before,.chart:after{content:"";position:absolute;inset:auto 0 25px;height:3px;background:#2472ff;transform:skewY(-8deg);box-shadow:70px -13px 0 #2472ff,150px -5px 0 #2472ff,230px -38px 0 #2472ff,320px -25px 0 #2472ff}.chart:after{bottom:8px;background:#8a3ff3;box-shadow:70px -7px 0 #8a3ff3,150px -4px 0 #8a3ff3,230px -18px 0 #8a3ff3,320px -12px 0 #8a3ff3}.donut-wrap{display:flex;align-items:center;gap:20px}.donut{width:130px;height:130px;border-radius:50%;background:conic-gradient(#1769ff 0 45%,#7b3df0 45% 69%,#4dcc63 69% 86%,#ff8a22 86%);display:grid;place-items:center}.donut:after{content:attr(data-total) "\A bài viết";white-space:pre;text-align:center;display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:#fff;font-weight:850;font-size:18px}.legend{display:grid;gap:8px;font-size:11px}.legend i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:7px}.legend div:nth-child(1) i{background:#1769ff}.legend div:nth-child(2) i{background:#7b3df0}.legend div:nth-child(3) i{background:#4dcc63}.legend div:nth-child(4) i{background:#ff8a22}
@media(max-width:1180px){.sidebar{width:230px}main{margin-left:230px}.kpi-grid,.cards{grid-template-columns:repeat(2,1fr)}.dash-main,.dash-panels{grid-template-columns:1fr}.dash-bottom{grid-template-columns:1fr 1fr}.hero-agent{padding-right:280px}.formrow{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sidebar{position:relative;width:100%;max-height:none}.brandmark{padding-bottom:10px}.workspacebox,.upgrade,.navsection{display:none}#nav{display:grid;grid-template-columns:repeat(3,1fr)}#nav button{justify-content:center;padding:9px 6px;font-size:10px}#nav button span{display:none}.sidebarbottom{display:none}main{margin:0}.topbar{padding:8px 13px}.searchbox{width:100%}.searchbox kbd,.topactions .iconbutton,.userchip>div{display:none}.pagehead{padding:14px 14px 6px}.datefilter{display:none}#page{padding:8px 13px 25px}.kpi-grid,.cards,.grid2,.dash-bottom,.formrow,.plan-slots{grid-template-columns:1fr}.dash-welcome{align-items:start}.dash-welcome h2{font-size:21px}.hero-agent{padding:22px 145px 20px 20px;min-height:225px}.hero-agent img{width:205px;right:-35px;bottom:-25px}.hero-agent h3{font-size:19px}.hero-buttons{flex-direction:column;align-items:flex-start}.quick-grid{grid-template-columns:repeat(2,1fr)}.dash-panels{grid-template-columns:1fr}.campaign-row{grid-template-columns:35px 1fr auto}.campaign-row .progress{display:none}.topbar{position:relative}.panel{padding:14px}.donut-wrap{flex-direction:column;align-items:flex-start}}
@media(max-width:760px){.sidebarbottom{display:flex;align-items:center;justify-content:center;gap:10px;padding:8px}.sidebarbottom .dot,.sidebarbottom>button{display:inline-block}.sidebarbottom .textbutton{padding:4px;color:#fff}}
