
:root{--ink:#111b3d;--muted:#7180a1;--line:#e8ecf7;--blue:#5367ff;--violet:#7c4dff;--bg:#f6f8ff;--card:#fff}
*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink);background:var(--bg)}button,input,select{font:inherit}button{cursor:pointer}.app{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:24px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{font-size:23px;font-weight:900;color:#17204d;padding:5px 8px 22px}.brand:first-letter{color:var(--blue)}.signed-user{display:flex;gap:10px;align-items:center;padding:12px;background:#f7f8ff;border-radius:16px;margin-bottom:16px}.signed-user span{display:block;font-size:12px;color:var(--muted)}.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#e7eaff,#d9ddff);font-weight:800}.avatar.sm{width:38px;height:38px}.nav{display:grid;gap:5px}.nav button{border:0;background:transparent;text-align:left;padding:11px 12px;border-radius:12px;color:#34405f}.nav button:hover,.nav button.active{background:#eef1ff;color:#4258f5;font-weight:800}.pill{float:right;background:#5367ff;color:#fff;border-radius:99px;padding:2px 7px;font-size:11px}.logout{margin-top:auto;padding:12px;color:#ef4444;text-decoration:none}.main{padding:28px;max-width:1400px;width:100%;margin:auto}.page{display:none}.page.active{display:block}.hero{background:linear-gradient(120deg,#eef7ff,#fbe9ff);border:1px solid #e7eaff;border-radius:28px;padding:30px;display:flex;justify-content:space-between;align-items:center;overflow:hidden}.hero small{font-weight:800;color:#6876a1}.hero h1{font-size:34px;margin:7px 0}.hero h1 span{color:#ef4f8a}.hero p{color:#68738f;margin:0;max-width:650px}.hero button,.primary{border:0;background:linear-gradient(135deg,#4f68ff,#714bff);color:white;padding:13px 18px;border-radius:14px;font-weight:800}.channel-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:20px}.channel{border:0;color:white;border-radius:22px;padding:20px;display:flex;align-items:center;gap:14px;text-align:left;box-shadow:0 12px 30px #33415518}.channel span{font-size:28px}.channel div{display:grid;flex:1}.channel small{opacity:.88;margin-top:4px}.channel i{background:#fff;color:#ef4444;font-style:normal;border-radius:99px;padding:4px 8px;font-weight:900}.instagram{background:linear-gradient(135deg,#ff397c,#7a48ff)}.facebook{background:linear-gradient(135deg,#1687ff,#57c5ff)}.whatsapp{background:linear-gradient(135deg,#17c76f,#04a95a)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.stats div,.panel,.recent-item,.comment-card,.user-row,.setting-row,.label-card,.auto-card,.customer-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px}.stats b{font-size:27px;display:block}.stats span{font-size:13px;color:var(--muted)}.section-title{display:flex;justify-content:space-between;align-items:center}.section-title button,.soft{border:0;background:#eef1ff;color:#5262e9;padding:9px 12px;border-radius:11px}.recent{display:grid;gap:9px}.recent-item{display:flex;align-items:center;gap:12px}.recent-item .info{flex:1}.recent-item small{display:block;color:var(--muted);margin-top:3px}.platform-dot{width:10px;height:10px;border-radius:50%;background:#5367ff}.inbox-page.active{display:grid;grid-template-columns:390px minmax(420px,1fr);height:calc(100vh - 56px);background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden}.list{border-right:1px solid var(--line);overflow:auto}.top,.page-head{padding:18px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.top h2,.page-head h2{margin:0}.tabs{padding:10px 14px;display:flex;gap:7px;overflow:auto}.tab{border:0;background:#f1f3fa;padding:8px 11px;border-radius:10px;white-space:nowrap}.tab.active{background:#5367ff;color:white}.item{display:grid;grid-template-columns:46px 1fr auto;gap:10px;padding:13px 16px;border-top:1px solid #f0f2f8}.item:hover,.item.active{background:#f7f8ff}.item .name{font-weight:800}.preview,.meta{font-size:12px;color:var(--muted)}.platform{font-size:11px;margin-top:4px;background:transparent!important}.chat{display:flex;flex-direction:column;min-width:0}.chat-head{height:72px;padding:12px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px}.chat-head .more{margin-left:auto;border:0;background:transparent;font-size:24px}.context-card{margin:14px 18px;padding:13px;border:1px solid var(--line);border-radius:16px;display:flex;gap:8px;align-items:center}.context-card span{color:var(--muted);flex:1}.context-card button{border:0;padding:8px;border-radius:9px}.conversation{padding:20px;display:flex;flex-direction:column;gap:12px;overflow:auto;flex:1}.bubble{max-width:72%;padding:13px 15px;border-radius:18px;line-height:1.45}.bubble.in{background:#f0f2f7;align-self:flex-start}.bubble.out{background:linear-gradient(135deg,#7b4eff,#5367ff);color:white;align-self:flex-end;box-shadow:0 8px 20px #5367ff2c}.quick{display:flex;gap:8px;padding:0 18px 10px}.quick button{border:1px solid var(--line);background:#fff;border-radius:99px;padding:8px}.composer{display:flex;gap:8px;padding:14px;border-top:1px solid var(--line)}.composer input{flex:1;border:0;background:#f4f6fb;border-radius:99px;padding:12px 16px;outline:none}.composer button{border:0;background:transparent}.composer .send{width:43px;height:43px;border-radius:50%;background:#5367ff;color:#fff}.content-page{background:#fff;border:1px solid var(--line);border-radius:24px;min-height:75vh}.page-head p{margin:5px 0 0;color:var(--muted)}#contentBody{padding:20px}.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.comment-card{margin-bottom:12px}.comment-head{display:flex;justify-content:space-between}.comment-text{font-size:16px;margin:10px 0}.comment-actions{display:flex;gap:7px}.comment-actions button{border:0;background:#f1f3fa;border-radius:10px;padding:8px 11px}.comment-actions .reply{background:#eef0ff;color:#4d5bea}.user-row{display:flex;align-items:center;gap:12px;margin-bottom:9px}.user-main{display:grid;flex:1}.user-main span,.user-main small{color:var(--muted);font-size:12px}.user-state{padding:5px 9px;border-radius:99px;font-size:12px}.user-state.on{background:#e8faef;color:#168447}.user-state.off{background:#ffecec;color:#d84a4a}.user-actions{display:flex;gap:7px}.user-create{display:grid;grid-template-columns:1fr 1fr 1fr 130px auto;gap:8px;margin-bottom:16px}.user-create input,.user-create select{border:1px solid var(--line);border-radius:11px;padding:11px}.setting-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.switch{width:48px;height:27px;border-radius:99px;background:#14b8a6;border:0;color:white}.report-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.metric{background:#fff;border:1px solid var(--line);padding:18px;border-radius:17px}.metric b{font-size:27px;display:block}.bars{height:180px;display:flex;align-items:end;gap:12px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:18px;margin-top:15px}.bars i{flex:1;background:linear-gradient(#7c4dff,#5367ff);border-radius:8px 8px 2px 2px;min-height:15px}.mobile-head,.mobilebar{display:none}.back-mobile{display:none}
@media(max-width:760px){body{background:#fff}.app{display:block}.sidebar{position:fixed;z-index:40;left:-290px;top:0;width:280px;transition:.25s;box-shadow:10px 0 30px #1113}.sidebar.open{left:0}.mobile-head{display:flex;position:sticky;top:0;z-index:20;height:62px;background:#fff;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid var(--line)}.mobile-head button{border:0;background:transparent;font-size:20px}.mobile-head b{font-size:19px}.main{padding:14px 14px 88px}.hero{padding:20px;border-radius:22px}.hero h1{font-size:23px}.hero button{display:none}.channel-grid{grid-template-columns:repeat(3,1fr);gap:8px}.channel{display:grid;padding:13px 9px;border-radius:17px;gap:3px;text-align:center}.channel span{font-size:24px}.channel div b{font-size:13px}.channel small{font-size:10px}.channel i{position:absolute;margin:-20px 0 0 55px}.stats{grid-template-columns:repeat(3,1fr);gap:8px}.stats div:nth-child(4){display:none}.stats div{text-align:center;padding:13px 7px}.stats b{font-size:22px}.recent-item{padding:13px}.mobilebar{position:fixed;display:grid;grid-template-columns:1fr 1fr 64px 1fr 1fr;bottom:0;left:0;right:0;z-index:30;background:#fff;border-top:1px solid var(--line);padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom));box-shadow:0 -8px 24px #33415512}.mobilebar button{border:0;background:transparent;color:#66718d;font-size:18px}.mobilebar span{display:block;font-size:10px;margin-top:3px}.mobilebar button.active{color:#5262f4}.mobilebar .plus{width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,#704dff,#5267ff);color:#fff;font-size:29px;margin-top:-22px;justify-self:center;box-shadow:0 8px 22px #5367ff55}.inbox-page.active{display:block;height:auto;border:0;border-radius:0}.list{border:0}.chat{display:none;position:fixed;inset:62px 0 70px;background:#fff;z-index:15}.chat.open{display:flex}.context-card{font-size:12px}.bubble{max-width:82%}.content-page{border:0;border-radius:0;min-height:auto}.page-head{padding:8px 2px 16px;border:0}.back-mobile{display:inline-block;border:0;background:transparent;font-size:28px}.cards-grid,.report-grid{grid-template-columns:1fr 1fr}.user-create{grid-template-columns:1fr}.user-row{align-items:flex-start;flex-wrap:wrap}.user-actions{width:100%}.comment-actions{overflow:auto}.section-title h2{font-size:19px}}

/* V6 visual hardening */
html,body{min-height:100%;}button{appearance:none;-webkit-appearance:none;}
.recent-item{width:100%;text-align:left;color:var(--ink);cursor:pointer;}
.channel{position:relative;min-height:96px;}
.hero button{box-shadow:0 10px 24px rgba(83,103,255,.25);}
@media(min-width:761px){.mobile-head,.mobilebar{display:none!important}.sidebar{left:auto!important}.main{min-width:0}.hero{min-height:170px}.channel-grid{align-items:stretch}.channel{width:100%}.stats>div{min-height:90px}}

/* V7 PREMIUM LOGIN */
.login-page{min-height:100vh;display:grid;place-items:center;padding:28px;background:
radial-gradient(circle at 15% 15%,rgba(83,103,255,.18),transparent 32%),
radial-gradient(circle at 85% 15%,rgba(236,72,153,.14),transparent 30%),
linear-gradient(145deg,#f8f9ff 0%,#eef2ff 52%,#fff6fb 100%);}
.login-shell{width:min(100%,440px);position:relative;}
.login-brand{display:flex;justify-content:center;align-items:center;gap:9px;margin-bottom:22px;font-size:27px;color:#17204d;font-weight:900;letter-spacing:-.6px;}
.login-brand b{background:linear-gradient(135deg,#425cff,#7d4dff);-webkit-background-clip:text;background-clip:text;color:transparent;}
.login-card{background:rgba(255,255,255,.92);border:1px solid rgba(226,231,247,.95);box-shadow:0 28px 70px rgba(55,65,120,.16);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-radius:30px;padding:34px;}
.login-icon{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;margin:0 auto 18px;background:linear-gradient(135deg,#eef0ff,#f8edff);font-size:27px;box-shadow:inset 0 0 0 1px #e8e9fb;}
.login-card h1{text-align:center;font-size:27px;line-height:1.15;margin:0 0 8px;color:#17204d;letter-spacing:-.7px;}
.login-card>p{text-align:center;color:#74809d;font-size:14px;line-height:1.55;margin:0 auto 25px;max-width:320px;}
.login-form{display:grid;gap:15px;}
.login-form label{display:grid;gap:7px;color:#273451;font-size:13px;font-weight:750;}
.login-form input{width:100%;height:50px;border:1px solid #e1e5f1;background:#f9faff;border-radius:14px;padding:0 15px;color:#151e39;outline:none;transition:.18s;box-shadow:none;}
.login-form input:focus{border-color:#6675ff;background:#fff;box-shadow:0 0 0 4px rgba(83,103,255,.11);}
.login-form .primary{width:100%;height:52px;margin-top:3px;border-radius:15px;font-size:15px;box-shadow:0 12px 26px rgba(83,103,255,.28);}
.login-note{margin-top:20px;padding:13px 15px;background:#f7f8ff;border:1px solid #e8eaf7;border-radius:14px;text-align:center;color:#6f7993;font-size:12px;line-height:1.65;}
.alert.error{background:#fff0f1;color:#c83c4b;border:1px solid #ffd6da;padding:11px 13px;border-radius:12px;margin-bottom:15px;font-size:13px;}
@media(max-width:520px){.login-page{padding:18px;background:linear-gradient(160deg,#f6f8ff,#fff)}.login-shell{width:100%}.login-brand{font-size:24px;margin-bottom:17px}.login-card{padding:28px 20px;border-radius:25px}.login-card h1{font-size:24px}.login-icon{width:58px;height:58px;border-radius:18px}.login-form input,.login-form .primary{height:50px}}
