
:root {
  --bg:#080b14;
  --bg2:#0d1322;
  --card:rgba(17,26,43,.86);
  --card2:#111a2b;
  --text:#f8fafc;
  --muted:#94a3b8;
  --border:#263449;
  --purple:#8b5cf6;
  --blue:#38bdf8;
  --cyan:#14f1d9;
  --green:#22c55e;
  --red:#ef4444;
  --orange:#f59e0b;
  --sidebar:250px;
  font-family:Inter,system-ui,sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-size:14px;min-height:100vh}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.hidden{display:none!important}
.muted{color:var(--muted);line-height:1.7}
.glass{background:var(--card);border:1px solid rgba(148,163,184,.13);backdrop-filter:blur(18px);box-shadow:0 15px 45px rgba(0,0,0,.16)}
.brand{display:flex;align-items:center;gap:12px}
.brand-logo{width:43px;height:43px;object-fit:contain}
.brand-name{font-size:25px;font-weight:900;letter-spacing:-1px}
.brand-name span{background:linear-gradient(100deg,var(--purple),var(--blue),var(--cyan));background-clip:text;color:transparent}
.brand-subtitle{font-size:8px;color:var(--muted);letter-spacing:1.5px;margin-top:4px}

/* AUTH */
.auth-screen{min-height:100vh;display:grid;place-items:center;padding:25px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 0%,#1b1640 0%,#080b14 55%)}
.auth-glow{position:absolute;border-radius:50%;filter:blur(100px);opacity:.18;pointer-events:none}
.glow-one{width:320px;height:320px;background:var(--purple);top:5%;left:10%}
.glow-two{width:300px;height:300px;background:var(--blue);bottom:0;right:5%}
.auth-card{width:min(100%,440px);padding:34px;border-radius:24px;position:relative;z-index:1}
.brand-center{justify-content:center;margin-bottom:30px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#080d19;padding:5px;border-radius:12px;margin-bottom:28px}
.auth-tab{border:0;background:transparent;color:var(--muted);padding:11px;border-radius:9px}
.auth-tab.active{background:#202b43;color:white}
.auth-form h1{font-size:26px;margin:0 0 7px}
.auth-form>p{margin:0 0 23px}
.auth-form>label,.stack-form label,.settings-panel form label{display:block;color:#cbd5e1;font-size:12px;font-weight:600;margin:16px 0 8px}
input,textarea,select{width:100%;background:#0a1120;border:1px solid var(--border);border-radius:10px;color:var(--text);padding:13px;outline:none;transition:.2s}
input:focus,textarea:focus,select:focus{border-color:var(--purple);box-shadow:0 0 0 3px #8b5cf622}
input::placeholder,textarea::placeholder{color:#64748b}
.auth-row{display:flex;align-items:center;justify-content:space-between;margin:16px 0 20px;gap:8px}
.check-label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px}
.check-label input{width:auto}
.text-button{border:0;background:none;color:#a78bfa;font-size:12px}
.primary-btn,.secondary-btn,.danger-btn,.light-btn{border:0;border-radius:10px;padding:12px 17px;font-weight:700;transition:transform .2s,filter .2s}
.primary-btn{color:white;background:linear-gradient(110deg,#7c3aed,#4f8cf7);box-shadow:0 5px 22px #6d4ce533}
.primary-btn:hover,.secondary-btn:hover,.light-btn:hover,.danger-btn:hover{transform:translateY(-2px);filter:brightness(1.12)}
.secondary-btn{background:#202b40;border:1px solid var(--border);color:var(--text)}
.danger-btn{background:#451b29;border:1px solid #7f293c;color:#fecdd3}
.light-btn{background:white;color:#151326}
.full-btn{width:100%;margin-top:10px}
.full-btn span{float:right}
.auth-divider{display:flex;align-items:center;gap:12px;color:#64748b;font-size:10px;margin:18px 0}
.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--border);flex:1}
.google-mark{font-weight:900;color:#60a5fa;margin-right:10px}
.auth-note{text-align:center;color:#64748b;font-size:10px;margin-top:19px!important}
.auth-footer{position:absolute;bottom:18px;color:#64748b;font-size:10px;text-align:center}

/* APP LAYOUT */
.app-shell{min-height:100vh}
.sidebar{width:var(--sidebar);position:fixed;inset:0 auto 0 0;background:#0b1120;border-right:1px solid var(--border);padding:20px 14px;display:flex;flex-direction:column;z-index:20;overflow-y:auto}
.sidebar-brand{display:flex;align-items:center;gap:9px;padding:0 7px 24px}
.sidebar-brand .brand-name{font-size:23px}
.sidebar-close{display:none!important;margin-left:auto}
.workspace-chip{display:flex;align-items:center;gap:10px;background:#141d30;border:1px solid var(--border);padding:11px;border-radius:12px;margin-bottom:25px}
.workspace-icon{width:33px;height:33px;display:grid;place-items:center;border-radius:9px;background:linear-gradient(135deg,var(--purple),var(--blue));font-weight:900}
.workspace-chip strong,.workspace-chip small{display:block}
.workspace-chip strong{font-size:11px}
.workspace-chip small{font-size:10px;color:var(--muted);margin-top:4px}
.online-dot{width:8px;height:8px;border-radius:50%;background:var(--green);margin-left:auto;box-shadow:0 0 10px #22c55e77}
.nav-label{font-size:9px;letter-spacing:1.5px;color:#64748b;font-weight:800;padding:0 10px;margin:10px 0}
.nav-menu{display:grid;gap:4px;margin-bottom:19px}
.nav-item{display:flex;align-items:center;gap:12px;padding:11px 12px;border:0;border-radius:9px;background:transparent;color:#9aa9bd;text-align:left;font-size:12px;transition:.2s}
.nav-item>span{width:19px;text-align:center;font-size:16px}
.nav-item:hover,.nav-item.active{background:linear-gradient(100deg,#34255a88,#183b5866);color:white}
.nav-item.active{border-left:2px solid var(--purple)}
.nav-count,.notification-count{margin-left:auto;background:#35265b;color:#c4b5fd;border-radius:20px;padding:3px 7px;font-size:9px}
.sidebar-bottom{margin-top:auto;padding-top:15px;border-top:1px solid var(--border)}
.mini-profile{display:flex;align-items:center;gap:10px;padding:8px}
.avatar,.top-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--purple),var(--blue));color:white;font-weight:800}
.profile-mini-text{min-width:0;flex:1}
.profile-mini-text strong,.profile-mini-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-mini-text strong{font-size:11px}
.profile-mini-text small{font-size:9px;color:var(--muted);margin-top:4px}
.icon-btn{width:35px;height:35px;border-radius:10px;border:1px solid transparent;background:transparent;color:#a8b5c8;font-size:17px}
.icon-btn:hover{background:#1c2940;border-color:var(--border);color:white}
.main-area{margin-left:var(--sidebar);min-height:100vh}
.topbar{height:68px;position:sticky;top:0;z-index:15;background:#080b14eF;backdrop-filter:blur(15px);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 30px}
.topbar-left,.topbar-actions{display:flex;align-items:center;gap:15px}
.breadcrumb{font-size:12px;color:var(--muted)}
.breadcrumb span{padding:0 9px;color:#475569}
.breadcrumb strong{color:white}
.demo-indicator{font-size:9px;color:#fbbf24;background:#f59e0b15;border:1px solid #f59e0b33;padding:7px 9px;border-radius:20px}
.demo-indicator i{display:inline-block;width:6px;height:6px;background:var(--orange);border-radius:50%;margin-right:5px}
.top-avatar{border:0}
.notification-button{position:relative}
.notification-button i{position:absolute;right:5px;top:5px;width:6px;height:6px;background:var(--red);border-radius:50%}
.menu-toggle{display:none}
.page-container{padding:30px;max-width:1600px;margin:auto}
.page{display:none;animation:fadeIn .25s ease}
.page.active{display:block}
@keyframes fadeIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.welcome-header,.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}
.eyebrow{font-size:9px;font-weight:800;letter-spacing:2px;color:#a78bfa;margin-bottom:10px}
h1{font-size:clamp(25px,3vw,34px);letter-spacing:-1.2px;margin:0 0 8px}
h2{font-size:20px;margin:0 0 8px}
h3{font-size:15px;margin:0 0 8px}
.welcome-header p,.page-heading p{margin:0}
.wave{color:var(--cyan);font-size:24px}
.hero-banner{min-height:230px;padding:30px 38px;border-radius:20px;position:relative;overflow:hidden;background:linear-gradient(110deg,#35205e,#172b55 65%,#0d6570);display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}
.hero-content{position:relative;z-index:2;max-width:460px}
.hero-tag{font-size:9px;letter-spacing:2px;color:#c4b5fd;font-weight:800}
.hero-content h2{font-size:37px;line-height:1.12;margin:12px 0}
.hero-content h2 span{color:#67e8f9}
.hero-content p{color:#d0d8e8;max-width:380px;line-height:1.7;font-size:12px;margin-bottom:20px}
.hero-orbit{width:230px;height:190px;position:relative;margin-right:55px}
.orbit{position:absolute;inset:5px;border:1px solid #ffffff33;border-radius:50%;transform:rotate(-25deg)}
.orbit-b{inset:30px -20px;transform:rotate(35deg);border-color:#67e8f955}
.orbit-core{position:absolute;inset:55px 80px;display:grid;place-items:center;border-radius:50%;background:#ffffff18;box-shadow:0 0 45px #a78bfa77}
.orbit-core img{width:60px}
.orbit-dot{position:absolute;width:12px;height:12px;border-radius:50%;background:var(--cyan);box-shadow:0 0 20px var(--cyan)}
.dot-a{top:17px;right:22px}.dot-b{bottom:20px;left:24px;background:#c4b5fd}
.section-heading,.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.section-heading{margin:10px 0 15px}
.section-heading h2{margin:0 0 4px}
.section-heading p,.panel-heading p{margin:0;font-size:11px}
.live-label{font-size:9px;color:var(--green)}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}
.stat-card{padding:18px;border-radius:15px;min-width:0}
.stat-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}
.stat-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px}
.purple{background:#8b5cf622}.cyan{background:#14f1d922}.blue{background:#38bdf822}.orange{background:#f59e0b22}
.stat-card>strong{display:block;font-size:27px;margin:14px 0 7px}
.stat-card>strong small{font-size:13px;color:var(--muted)}
.stat-foot{font-size:10px;color:var(--muted)}
.positive{color:var(--green)}
.progress{height:5px;background:#263449;border-radius:10px;margin:9px 0}
.progress i{display:block;height:100%;border-radius:10px;background:linear-gradient(90deg,var(--purple),var(--cyan))}
.dashboard-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;margin-bottom:17px}
.panel{border-radius:15px;padding:20px;margin-bottom:16px}
.panel-heading{margin-bottom:18px}
.panel-heading h3{margin:0 0 5px}
.text-button{white-space:nowrap}
.compact-bot-list{display:grid;gap:12px}
.compact-bot{display:flex;align-items:center;gap:12px;padding:11px;background:#0c1423;border:1px solid #26344988;border-radius:11px}
.bot-symbol{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#33265b;font-size:18px}
.compact-bot-info{flex:1;min-width:0}
.compact-bot-info b,.compact-bot-info small{display:block}
.compact-bot-info b{font-size:11px}
.compact-bot-info small{font-size:9px;color:var(--muted);margin-top:5px}
.status{font-size:9px;padding:5px 8px;border-radius:20px}
.status.running{color:#86efac;background:#14532d55}
.status.stopped{color:#fca5a5;background:#7f1d1d55}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.quick-action{background:#0c1423;border:1px solid #26344988;border-radius:11px;padding:14px;text-align:left;color:white}
.quick-action:hover{border-color:var(--purple);background:#171a34}
.quick-action span,.quick-action b,.quick-action small{display:block}
.quick-action span{font-size:20px;color:#a78bfa;margin-bottom:12px}
.quick-action b{font-size:11px}
.quick-action small{font-size:9px;color:var(--muted);margin-top:5px}
.activity-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #26344988}
.activity-row:last-child{border:0}
.activity-icon{width:32px;height:32px;display:grid;place-items:center;background:#1b2940;border-radius:9px}
.activity-text{flex:1;font-size:11px}
.activity-text small{display:block;color:var(--muted);margin-top:4px}
.activity-time{font-size:9px;color:var(--muted)}

/* BOT PAGES */
.filter-row{display:flex;gap:10px;margin-bottom:18px}
.search-input{max-width:350px}
.filter-row select{max-width:150px}
.bots-grid,.feature-grid,.plans-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.bot-card{padding:20px;border-radius:15px;background:var(--card2);border:1px solid var(--border)}
.bot-card-top{display:flex;align-items:center;gap:12px}
.bot-card-top .bot-symbol{width:46px;height:46px}
.bot-card-top>div:nth-child(2){flex:1}
.bot-card-top h3{margin:0 0 5px}
.bot-card-top small{color:var(--muted);font-size:10px}
.bot-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 0;margin:15px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.bot-meta span{display:block;color:var(--muted);font-size:9px;margin-bottom:5px}
.bot-meta b{font-size:11px;overflow-wrap:anywhere}
.bot-actions{display:flex;flex-wrap:wrap;gap:7px}
.bot-actions button{font-size:10px;padding:8px 11px}
.builder-layout{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}
.stack-form{display:grid;gap:12px;margin-top:18px}
.stack-form label{margin:0}
.stack-form input,.stack-form textarea{display:block;margin-top:8px}
.builder-info{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:30px}
.big-symbol{font-size:45px;margin-bottom:20px}
.feature-card>span{font-size:28px;display:block;margin-bottom:15px}
.feature-card textarea,.feature-card input{margin:12px 0}
.feature-card .primary-btn{margin-top:8px}
.feature-line{font-size:11px;color:#a5f3c5;margin-top:12px}
.demo-tag{font-size:9px;letter-spacing:1px;color:#fbbf24;background:#f59e0b16;border:1px solid #f59e0b33;border-radius:20px;padding:6px 9px;display:inline-block}
.output-box{background:#080e19;border:1px solid var(--border);padding:12px;border-radius:9px;color:#a5f3c5;font-size:11px;margin-top:12px;white-space:pre-wrap}
.switch-row,.setting-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid var(--border);font-size:12px;color:#cbd5e1}
.toggle-switch{width:35px;height:18px;accent-color:var(--purple)}
.terminal-window{background:#050911;border:1px solid #263449;border-radius:14px;overflow:hidden;box-shadow:0 20px 50px #0005}
.terminal-title{height:43px;background:#111a29;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 15px;color:var(--muted);font-size:10px}
.terminal-title>div{display:flex;gap:5px}
.terminal-title i{width:8px;height:8px;border-radius:50%;background:#64748b}
.terminal-title i:first-child{background:#ef4444}.terminal-title i:nth-child(2){background:#f59e0b}.terminal-title i:nth-child(3){background:#22c55e}
.terminal-title button{background:none;border:0;color:var(--muted);font-size:10px}
.terminal-output{height:330px;overflow:auto;padding:20px;font-family:monospace;color:#a5f3c5;font-size:12px;line-height:1.8}
.terminal-muted{color:#64748b}
.terminal-input-row{display:flex;align-items:center;gap:10px;padding:13px 18px;border-top:1px solid var(--border);font-family:monospace;color:var(--cyan);font-size:11px}
.terminal-input-row input{border:0;background:transparent;padding:5px;font-family:monospace;box-shadow:none}
.editor-panel{border-radius:15px;overflow:hidden}
.editor-toolbar{padding:12px 16px;display:flex;align-items:center;gap:9px;background:#111a29;border-bottom:1px solid var(--border)}
.editor-toolbar span{margin-right:auto;color:#a78bfa;font-size:11px}
.editor-toolbar button{font-size:10px}
#code-editor{border:0;border-radius:0;min-height:370px;resize:vertical;padding:20px;font:12px/1.8 monospace;background:#080e19;color:#a5f3c5;box-shadow:none}

/* SOCIAL AND ACCOUNT */
.community-panel{max-width:850px}
.community-post{padding:16px 0;border-bottom:1px solid var(--border)}
.post-author{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.post-author b{font-size:11px}
.post-author small{display:block;color:var(--muted);font-size:9px;margin-top:4px}
.community-post p{line-height:1.7;color:#cbd5e1;font-size:12px}
.post-form{display:grid;gap:10px;margin-top:20px}
.chat-window{max-width:850px;padding:0;overflow:hidden}
.chat-header{display:flex;align-items:center;gap:12px;padding:15px;border-bottom:1px solid var(--border)}
.chat-header>div:nth-child(2){flex:1}
.chat-header b,.chat-header small{display:block}
.chat-header small{font-size:10px;color:var(--muted);margin-top:4px}
.chat-messages{height:360px;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:12px}
.chat-message{max-width:80%;padding:11px 13px;background:#1a2940;border-radius:12px;font-size:11px;line-height:1.6}
.chat-message.mine{align-self:flex-end;background:#49318a}
.chat-message small{display:block;color:#aab8ce;font-size:9px;margin-top:5px}
.chat-compose{display:flex;gap:9px;padding:13px;border-top:1px solid var(--border)}
.chat-compose input{flex:1}
.chat-compose button{white-space:nowrap}
.plans-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.plan-card{padding:23px}
.plan-label{font-size:9px;color:#a78bfa;letter-spacing:1.5px;font-weight:800}
.plan-card h2{font-size:24px;margin-top:14px}
.plan-card h3{font-size:28px;margin:20px 0}
.plan-card h3 small{font-size:11px;color:var(--muted)}
.plan-card>p:not(.muted){font-size:11px;color:#cbd5e1;padding:7px 0;border-bottom:1px solid var(--border)}
.featured-plan{border-color:#8b5cf6;box-shadow:0 0 30px #8b5cf622}
.notification-item{display:flex;align-items:center;gap:13px;padding:15px 0;border-bottom:1px solid var(--border)}
.notification-item:last-child{border:0}
.notification-item .activity-icon{flex-shrink:0}
.notification-item div:nth-child(2){flex:1}
.notification-item b{font-size:11px}
.notification-item p{font-size:10px;color:var(--muted);margin:5px 0 0}
.notification-item small{font-size:9px;color:var(--muted)}
.settings-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:15px}
.settings-panel h3{margin:22px 0 10px}
.settings-panel h3:first-child{margin-top:0}
.settings-panel>label{display:block;font-size:11px;color:#cbd5e1;margin:12px 0}
.settings-panel>label input,.settings-panel>label textarea{margin-top:7px}
.settings-panel>button{margin-top:12px}
.profile-cover{height:160px;border-radius:16px;background:linear-gradient(110deg,#382263,#164c68);position:relative;overflow:hidden}
.cover-glow{position:absolute;width:250px;height:250px;border-radius:50%;background:#8b5cf6;filter:blur(90px);right:15%;top:-100px}
.profile-edit-layout{display:grid;grid-template-columns:.75fr 1.25fr;gap:15px;margin-top:-40px;position:relative;padding:0 20px}
.profile-card{text-align:center;padding:20px}
.profile-avatar-wrap{position:relative;width:95px;margin:0 auto 13px}
.profile-avatar-wrap img{width:95px;height:95px;object-fit:cover;border-radius:50%;border:4px solid #172238;background:#172238}
.upload-avatar{position:absolute;bottom:0;right:0;background:var(--purple);border-radius:50%;width:28px;height:28px;display:grid;place-items:center;cursor:pointer}
.profile-card h2{font-size:17px}
.owner-badge{display:inline-block;color:#c4b5fd;background:#8b5cf622;border:1px solid #8b5cf655;padding:6px 10px;border-radius:20px;font-size:9px;font-weight:800;letter-spacing:1px}
.profile-card .muted{font-size:10px}
.about-card{max-width:600px;margin:20px auto;text-align:center;padding:35px}
.about-card>img{width:90px;height:90px}
.about-card h2{font-size:27px;margin:15px}
.about-table{text-align:left;margin:25px 0}
.about-table div{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--border);font-size:11px;color:var(--muted)}
.about-table b{color:white}

/* MODALS AND TOASTS */
#toast-container{position:fixed;right:
