.terminal-embed {
	background: #181c23;
	border-radius: 10px;
	box-shadow: 0 2px 12px #0002;
	overflow: hidden;
	margin-bottom: 0;
	border: 1px solid #23272e;
}
.terminal-header {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #23272e;
	padding: 7px 14px;
	border-bottom: 1px solid #23272e;
}
.term-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
	margin-right: 3px;
}
.term-red { background: #ff5f56; }
.term-yellow { background: #ffbd2e; }
.term-green { background: #27c93f; }
.term-title {
	color: #b3b3b3;
	font-size: 13px;
	margin-left: 12px;
	font-family: monospace;
}
.terminal-body {
	background: #181c23;
	color: #e6e6e6;
	font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
	font-size: 13px;
	padding: 14px;
	margin: 0;
	min-height: 120px;
	max-height: 180px;
	overflow-y: scroll;
	overflow-x: auto;
	white-space: pre-wrap;
	line-height: 1.5;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
}
:root{--bg:#0f1115;--panel:#171a21;--text:#e5e7eb;--muted:#9aa0aa;--accent:#5865F2;--danger:#d64545;}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 system-ui,Segoe UI,Roboto}
.wrap{max-width:1100px;margin:0 auto;padding:16px}
.topbar{background:#12141a;border-bottom:1px solid #262a34}
.topbar .brand{font-weight:700}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between}
.btn{border:1px solid #2b2f3a;background:#1d212c;color:var(--text);padding:8px 12px;border-radius:6px;cursor:pointer}
.btn:hover{background:#222735}
.btn-ghost{background:transparent;border-color:#2b2f3a}
.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}
.btn-primary:hover{filter:brightness(0.95)}
.btn-danger{background:var(--danger);border-color:var(--danger);color:#fff}
.card{background:var(--panel);border:1px solid #222634;border-radius:8px;padding:16px;margin-bottom:16px}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.kv{list-style:none;padding:0;margin:0}
.kv li{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px dashed #262a34}
.kv li:last-child{border-bottom:none}
.list{list-style:none;padding:0;margin:0}
.list li{padding:6px 0;border-bottom:1px dashed #262a34}
.list li:last-child{border-bottom:none}
.muted{color:var(--muted)}
.footer{color:#7a7f8a;border-top:1px solid #262a34;padding:12px 0;text-align:center;margin-top:12px}
.login-body{display:flex;align-items:center;justify-content:center;min-height:100vh;background:radial-gradient(1200px 600px at 50% -10%,#1a2030,transparent) var(--bg)}
.login-card{width:360px;background:var(--panel);padding:20px;border:1px solid #222634;border-radius:8px}
.login-card h1{margin:0 0 12px 0}
.login-card label{display:block;margin:10px 0 4px}
.login-card input{width:100%;padding:10px;border-radius:6px;border:1px solid #262a34;background:#11141b;color:var(--text)}
.error{background:#2a1b1b;color:#ffcccc;border:1px solid #5b2b2b;padding:8px;border-radius:6px;margin-bottom:10px}

/* Dashboard styles (modern control center) */
.dashboard-hero{display:flex;flex-direction:column;gap:18px;padding:18px 0}
.stats{display:flex;gap:14px}
.stat-card{background:linear-gradient(180deg,rgba(255,255,255,0.02),transparent);border:1px solid rgba(255,255,255,0.03);padding:18px;border-radius:12px;min-width:160px}
.stat-card .num{font-size:28px;font-weight:700}
.stat-card .label{font-size:12px;color:var(--muted);margin-top:6px}

.bots-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px;margin-top:18px}
.bot-card{background:linear-gradient(90deg, rgba(88,101,242,0.06), rgba(108,92,231,0.02));border:1px solid rgba(88,101,242,0.08);padding:14px;border-radius:12px;display:flex;flex-direction:column}
.bot-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.bot-meta{display:flex;align-items:center;gap:12px}
.avatar{width:56px;height:56px;border-radius:12px;background:#11141b;display:flex;align-items:center;justify-content:center;font-weight:700}
.bot-title{font-weight:700}
.status-badge{padding:6px 10px;border-radius:999px;font-size:12px}
.status-online{background:rgba(33,197,90,0.12);color:#1dd58a;border:1px solid rgba(33,197,90,0.12)}
.status-offline{background:rgba(214,69,69,0.08);color:#ff6b6b;border:1px solid rgba(214,69,69,0.06)}

.status-rebooting{background:rgba(255,200,50,0.13);color:#eab308;border:1px solid #eab30833}
.status-light{display:inline-block;width:14px;height:14px;border-radius:50%;margin-right:2px;vertical-align:middle;border:2px solid #222;box-shadow:0 0 4px #0002}
.status-online.status-light{background:#1dd58a;box-shadow:0 0 6px #1dd58a88}
.status-offline.status-light{background:#ff6b6b;box-shadow:0 0 6px #ff6b6b88}
.status-rebooting.status-light{background:#eab308;box-shadow:0 0 6px #eab30888}
.status-stopped{background:rgba(120,120,120,0.13)!important;color:#aaa!important;border:1px solid #8884!important;}
.status-stopped.status-light{background:#888!important;box-shadow:0 0 6px #8888!important;}

.bot-actions{display:flex;gap:8px;margin-top:12px}
.btn-restart{background:#16a34a;border:1px solid rgba(0,0,0,0.12);color:#fff;padding:8px 12px;border-radius:8px}
.btn-stop{background:#dc2626;border:1px solid rgba(0,0,0,0.12);color:#fff;padding:8px 12px;border-radius:8px}
.btn-config{background:linear-gradient(90deg,#7c3aed,#4f46e5);color:#fff;padding:8px 12px;border-radius:8px}

.bot-body{display:flex;gap:12px;margin-top:12px}
.bot-log{flex:1;background:#0b0f14;padding:12px;border-radius:8px;min-height:120px;overflow:auto;font-family:monospace;font-size:12px}
.bot-stats{width:180px}

.top-controls{display:flex;gap:8px;align-items:center;justify-content:space-between;width:100%}

.dashboard-terminal {
	width: 100%;
	margin-bottom: 12px;
}

@media (max-width:720px){
	.dashboard-hero{flex-direction:column;align-items:flex-start}
	.top-controls{width:100%;justify-content:space-between}
	.dashboard-terminal{margin-bottom:12px;}
}
