:root {
	--matrix-green: #00ff41;
	--matrix-dark: #003b00;
	--matrix-darker: #001a00;
	--black: #000000;
	--alert: #ff0040;
	--warn: #ffff00;
	--info: #00aaff;
	--success: #00ff88;
	--console-bg: #0a0a0a;
	--glow: 0 0 10px currentColor;
	--card-bg: rgba(0, 20, 0, 0.9);
	--aside-bg: rgba(0, 10, 0, 0.95);
	--border-color: #00ff41;
	--text-primary: #00ff41;
	--text-muted: #008f11;
}

[data-theme="dark"] {
	--matrix-green: #38bdf8;
	--matrix-dark: #1e293b;
	--matrix-darker: #0f172a;
	--black: #080d1a;
	--console-bg: #0b1120;
	--glow: 0 0 10px rgba(56, 189, 248, 0.3);
	--card-bg: rgba(15, 23, 42, 0.85);
	--aside-bg: rgba(11, 17, 32, 0.95);
	--border-color: #1e293b;
	--text-primary: #f1f5f9;
	--text-muted: #94a3b8;
}

[data-theme="cosmos"] {
	--matrix-green: #818cf8;
	--matrix-dark: #1e1b4b;
	--matrix-darker: #0d0f22;
	--black: #000000;
	--console-bg: #090a16;
	--glow: 0 0 12px rgba(129, 140, 248, 0.4);
	--card-bg: rgba(13, 17, 38, 0.85);
	--aside-bg: rgba(10, 13, 30, 0.95);
	--border-color: rgba(99, 102, 241, 0.25);
	--text-primary: #f8fafc;
	--text-muted: #cbd5e1;
}

[data-theme="light"] {
	--matrix-green: #0284c7;
	--matrix-dark: #cbd5e1;
	--matrix-darker: #f1f5f9;
	--black: #f8fafc;
	--console-bg: #ffffff;
	--glow: 0 0 8px rgba(2, 132, 199, 0.2);
	--card-bg: #ffffff;
	--aside-bg: #f1f5f9;
	--border-color: #cbd5e1;
	--text-primary: #0f172a;
	--text-muted: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Share Tech Mono', monospace; }

body { 
	background-color: var(--black); 
	color: var(--text-primary); 
	height: 100vh; 
	overflow: hidden; 
	position: relative;
}

/* Ocultar canvas de chuva matrix nos modos não-matrix */
body:not([data-theme="matrix"]) #matrix-canvas {
	display: none !important;
}

/* Botão de Tema no NexusBank */
.nexus-theme-btn {
	margin: 10px 15px;
	padding: 12px;
	background: transparent;
	border: 1px solid var(--border-color);
	color: var(--text-primary);
	cursor: pointer;
	text-align: center;
	border-radius: 4px;
	font-size: 0.9rem;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.2s ease;
}
.nexus-theme-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	box-shadow: var(--glow);
}
.brand-back-btn {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.85rem;
	transition: color 0.2s;
}
.brand-back-btn:hover {
	color: var(--text-primary);
}

/* --- MATRIX RAIN CANVAS --- */
#matrix-canvas {
	position: fixed; top: 0; left: 0; width: 100%; height: 100%;
	z-index: 0; opacity: 0.1; pointer-events: none;
}

/* --- MAIN LAYOUT --- */
#app { display: flex; height: 100%; position: relative; z-index: 1; }

aside { 
	width: 280px; 
	background: var(--aside-bg); 
	border-right: 1px solid var(--border-color); 
	display: flex; flex-direction: column; 
	box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
}

.brand { 
	padding: 20px 15px; 
	font-size: 1.5rem; 
	color: var(--text-primary); 
	text-align: center;
	border-bottom: 2px dashed var(--matrix-dark);
	text-transform: uppercase;
	letter-spacing: 2px;
}

nav button {
	width: 100%; text-align: left; padding: 16px 20px; background: transparent; border: none;
	color: var(--text-muted); cursor: pointer; transition: 0.3s; font-size: 1rem; 
	border-bottom: 1px solid var(--matrix-dark);
	text-transform: uppercase;
	position: relative;
	overflow: hidden;
}
nav button:hover, nav button.active { 
	background: linear-gradient(90deg, transparent, var(--matrix-green), transparent); 
	color: var(--black); 
	font-weight: bold;
	box-shadow: var(--glow);
}
nav button::before {
	content: '>';
	position: absolute;
	left: 10px;
	opacity: 0;
	transition: 0.3s;
}
nav button:hover::before {
	opacity: 1;
}

main { 
	flex: 1; 
	padding: 30px; 
	overflow-y: auto; 
	position: relative;
	transition: margin-right 0.3s ease;
	width: calc(100vw - 280px);
}

/* --- CONSOLE LATERAL --- */
#console-panel {
	position: fixed;
	right: 0;
	top: 0;
	width: 350px;
	height: 100vh;
	background: var(--console-bg);
	border-left: 1px solid var(--matrix-green);
	z-index: 5;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.3s ease;
}
#console-panel.active {
	transform: translateX(0);
}
#console-header {
	padding: 15px;
	background: var(--matrix-darker);
	border-bottom: 1px solid var(--matrix-green);
	display: flex;
	justify-content: space-between;
	align-items: center;
}
#console-toggle {
	background: none;
	border: 1px solid var(--matrix-green);
	color: var(--matrix-green);
	padding: 5px 10px;
	cursor: pointer;
	font-size: 0.8rem;
}
#console-content {
	flex: 1;
	padding: 10px;
	overflow-y: auto;
	font-size: 0.8rem;
}
.log-entry {
	padding: 8px;
	margin-bottom: 5px;
	border-left: 3px solid var(--matrix-green);
	background: rgba(0, 255, 65, 0.05);
	animation: slideIn 0.3s ease-out;
}
.log-entry.success { border-left-color: var(--success); }
.log-entry.error { border-left-color: var(--alert); }
.log-entry.warning { border-left-color: var(--warn); }
.log-entry.info { border-left-color: var(--info); }
.log-time {
	color: #666;
	font-size: 0.7rem;
}

/* --- NOTIFICATION SYSTEM --- */
#notifications {
	position: fixed;
	top: 20px;
	right: 370px;
	z-index: 100;
	max-width: 400px;
}
.notification {
	background: var(--matrix-darker);
	border: 1px solid var(--matrix-green);
	padding: 15px;
	margin-bottom: 10px;
	box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
	animation: slideInRight 0.3s ease-out;
	position: relative;
	overflow: hidden;
}
.notification::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
	animation: scanline 2s infinite;
}
.notification.success { border-color: var(--success); }
.notification.error { border-color: var(--alert); }
.notification.warning { border-color: var(--warn); }
.notification .title {
	font-weight: bold;
	margin-bottom: 5px;
	text-transform: uppercase;
}
.notification .message {
	font-size: 0.9rem;
	opacity: 0.9;
}
.notification .close {
	position: absolute;
	top: 5px;
	right: 10px;
	background: none;
	border: none;
	color: var(--matrix-green);
	cursor: pointer;
	font-size: 1.2rem;
}

/* --- UI COMPONENTS --- */
.view-section { display: none; }
.view-section.active { display: block; animation: fadeIn 0.5s ease-out; }

.card { 
	background: var(--card-bg); 
	border: 1px solid var(--border-color); 
	padding: 20px; 
	margin-bottom: 20px; 
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
	position: relative;
	backdrop-filter: blur(5px);
}
.card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--matrix-green), transparent);
	animation: scanline 3s infinite;
}

h1, h2, h3 { 
	text-transform: uppercase; 
	margin-bottom: 15px; 
	color: var(--matrix-green); 
	text-shadow: 0 0 8px var(--matrix-dark);
	position: relative;
}
h1::after, h2::after {
	content: '_';
	animation: blink 1s infinite;
}

/* Enhanced Inputs */
input, select { 
	width: 100%; 
	padding: 12px; 
	background: #000; 
	border: 1px solid var(--matrix-dark); 
	color: var(--matrix-green); 
	font-family: 'Share Tech Mono'; 
	font-size: 1rem; 
	margin-bottom: 10px;
	transition: all 0.3s ease;
}
input:focus, select:focus { 
	outline: none; 
	border-color: var(--matrix-green); 
	box-shadow: 0 0 15px var(--matrix-green);
	background: rgba(0, 255, 65, 0.05);
}
input:focus-visible, select:focus-visible {
	outline: 2px solid var(--matrix-green);
	outline-offset: 2px;
}
input::placeholder {
	color: #666;
}

/* Enhanced Buttons */
.btn { 
	padding: 12px 25px; 
	border: 1px solid var(--matrix-green); 
	background: #000; 
	color: var(--matrix-green); 
	cursor: pointer; 
	font-weight: bold; 
	text-transform: uppercase; 
	transition: all 0.3s; 
	letter-spacing: 1px;
	position: relative;
	overflow: hidden;
}
.btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, var(--matrix-green), transparent);
	transition: left 0.5s;
}
.btn:hover::before {
	left: 100%;
}
.btn:hover { 
	background: var(--matrix-green); 
	color: #000; 
	box-shadow: 0 0 25px var(--matrix-green);
	transform: translateY(-2px);
}

.btn-danger { border-color: var(--alert); color: var(--alert); }
.btn-danger:hover { background: var(--alert); color: #000; box-shadow: 0 0 25px var(--alert); }

.btn-warn { border-color: var(--warn); color: var(--warn); }
.btn-warn:hover { background: var(--warn); color: #000; }

.btn-success { border-color: var(--success); color: var(--success); }
.btn-success:hover { background: var(--success); color: #000; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }

/* Terminals Visual */
.lobby-container { 
	display: flex; 
	justify-content: center; 
	gap: 40px; 
	padding: 40px 0; 
	flex-wrap: wrap; 
}
.machine { 
	width: 140px; 
	height: 200px; 
	border: 2px solid var(--matrix-dark); 
	position: relative; 
	cursor: pointer; 
	transition: all 0.3s;
	display: flex; 
	flex-direction: column; 
	align-items: center; 
	justify-content: center;
	background: repeating-linear-gradient(0deg, transparent, transparent 2px, #001100 3px);
	animation: pulse 2s infinite;
}
.machine:hover { 
	border-color: var(--matrix-green); 
	box-shadow: 0 0 30px var(--matrix-green); 
	transform: scale(1.05) translateY(-5px);
}
.machine .screen { 
	font-size: 2rem; 
	color: var(--matrix-green); 
	margin-bottom: 10px;
	text-shadow: 0 0 10px var(--matrix-green);
	animation: glow 2s infinite alternate;
}
.machine-label { 
	margin-top: 10px; 
	font-weight: bold; 
	background: var(--matrix-green); 
	color: black; 
	padding: 2px 5px;
	animation: labelGlow 2s infinite alternate;
}

.machine.human { border-color: var(--success); }

/* Drawers */
.drawer-row { 
	display: grid; 
	grid-template-columns: 0.5fr 1fr 1fr 1fr; 
	gap: 10px; 
	align-items: center; 
	margin-bottom: 5px; 
	border-bottom: 1px dashed var(--matrix-dark); 
	padding: 5px; 
	transition: all 0.3s ease;
}
.drawer-row:hover {
	background: rgba(0, 255, 65, 0.1);
}
.capacity-bar { 
	height: 6px; 
	background: #111; 
	border: 1px solid #333; 
	width: 100%;
	position: relative;
	overflow: hidden;
}
.cap-fill { 
	height: 100%; 
	background: linear-gradient(90deg, var(--success), var(--matrix-green)); 
	transition: width 0.5s ease;
}
.cap-fill.low { background: linear-gradient(90deg, var(--warn), var(--alert)); }
.cap-fill.critical { background: var(--alert); animation: pulse 1s infinite; }

/* Login Screen */
#lock-screen {
	position: absolute; 
	top:0; 
	left:0; 
	width:100%; 
	height:100%; 
	background: #000; 
	z-index: 10;
	display: flex; 
	flex-direction: column; 
	justify-content: center; 
	align-items: center;
}
.login-box { 
	width: 350px; 
	padding: 40px; 
	border: 2px solid var(--matrix-green); 
	box-shadow: inset 0 0 30px rgba(0, 255, 65, 0.2);
	text-align: center;
	backdrop-filter: blur(10px);
	animation: float 3s ease-in-out infinite;
}

/* Tabs Enhanced */
.tab-menu { 
	display: flex; 
	border-bottom: 1px solid var(--matrix-dark); 
	margin-bottom: 20px;
	background: rgba(0, 20, 0, 0.5);
}
.tab-btn { 
	flex: 1; 
	padding: 15px; 
	cursor: pointer; 
	border-right: 1px solid var(--matrix-dark); 
	text-align: center; 
	color: #005500;
	transition: all 0.3s ease;
	position: relative;
}
.tab-btn:hover, .tab-btn.active { 
	background: var(--matrix-green); 
	color: #000; 
	font-weight: bold;
	box-shadow: var(--glow);
}
.tab-btn::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--matrix-green);
	transition: width 0.3s ease;
}
.tab-btn.active::before {
	width: 100%;
}

/* Statistics Cards */
.stat-card {
	background: rgba(0, 20, 0, 0.9);
	border: 1px solid var(--matrix-green);
	padding: 20px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.stat-value {
	font-size: 2.5rem;
	font-weight: bold;
	color: var(--matrix-green);
	text-shadow: 0 0 10px var(--matrix-green);
	margin-bottom: 5px;
}
.stat-label {
	font-size: 0.8rem;
	opacity: 0.8;
	text-transform: uppercase;
}

/* Animations */
@keyframes flicker { 
	0% { opacity: 1; } 
	50% { opacity: 0.8; } 
	52% { opacity: 1; } 
	54% { opacity: 0; } 
	56% { opacity: 1; } 
	100% { opacity: 1; } 
}
@keyframes scanline { 
	0% { transform: translateX(-100%); } 
	100% { transform: translateX(200%); } 
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes fadeIn { 
	0% { opacity: 0; transform: translateY(20px); } 
	100% { opacity: 1; transform: translateY(0); } 
}
@keyframes slideIn { 
	0% { opacity: 0; transform: translateX(-20px); } 
	100% { opacity: 1; transform: translateX(0); } 
}
@keyframes slideInRight { 
	0% { opacity: 0; transform: translateX(100%); } 
	100% { opacity: 1; transform: translateX(0); } 
}
@keyframes pulse { 
	0%, 100% { box-shadow: 0 0 5px var(--matrix-green); } 
	50% { box-shadow: 0 0 20px var(--matrix-green); } 
}
@keyframes glow { 
	0% { text-shadow: 0 0 5px var(--matrix-green); } 
	100% { text-shadow: 0 0 15px var(--matrix-green), 0 0 25px var(--matrix-green); } 
}
@keyframes labelGlow { 
	0% { box-shadow: 0 0 5px var(--matrix-green); } 
	100% { box-shadow: 0 0 15px var(--matrix-green); } 
}
@keyframes float { 
	0%, 100% { transform: translateY(0px); } 
	50% { transform: translateY(-10px); } 
}

/* Acessibilidade - Reduzir movimento */
@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
	
	.brand { animation: none; }
	nav button { transition: background-color 0.1s ease; }
	.log-entry { animation: none; }
	.notification { animation: none; }
	.machine { animation: none; }
	.view-section.active { animation: none; }
}

/* Status Indicators */
.status-online { color: var(--success); }
.status-offline { color: var(--alert); }
.status-warning { color: var(--warn); }

/* Responsive Design - Desktop/Laptop */
@media (max-width: 1400px) {
	main {
		margin-right: 0;
		width: 100%;
	}
	
	#console-panel {
		transform: translateY(-100%);
		width: 100%;
	}
	
	#console-panel.active {
		transform: translateY(0);
	}
	
	#notifications {
		right: 10px;
		left: 10px;
		max-width: none;
	}
	
	.scroll-btn {
		right: 10px;
	}
}

/* Responsive Design - Large Desktop */
@media (min-width: 1401px) {
	main {
		margin-right: 350px;
		width: calc(100vw - 280px - 350px);
	}
	
	#notifications {
		right: 370px;
	}
}

/* Responsive Design - Tablet */
@media (max-width: 768px) {
	body { overflow: auto; }
	
	#app { flex-direction: column; min-height: 100vh; }
	aside { 
		width: 100%; 
		height: auto; 
		border-right: none; 
		border-bottom: 1px solid var(--matrix-green); 
		flex-shrink: 0;
		position: relative;
		z-index: 2;
	}
	.brand { padding: 15px; font-size: 1.5rem; }
	nav { display: flex; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
	nav button { width: auto; padding: 15px; font-size: 0.9rem; border-bottom: none; border-right: 1px solid #002200; }
	
	main { 
		padding: 15px; 
		width: 100%;
		min-height: calc(100vh - 200px);
	}
	
	.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
	
	.lobby-container { gap: 15px; }
	.machine { width: 45%; max-width: 140px; height: 180px; }
	
	.tab-menu { flex-wrap: wrap; }
	.tab-btn { flex: 1 0 50%; border-bottom: 1px solid var(--matrix-dark); }
	
	.drawer-row { grid-template-columns: 0.5fr 1fr 1fr; gap: 5px; }
	.drawer-row .capacity-bar { display: none; }
	
	.login-box { width: 90%; max-width: 350px; padding: 20px; }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
	main { 
		padding: 10px; 
	}
	
	.brand { padding: 10px; font-size: 1.2rem; }
	nav button { padding: 10px; font-size: 0.8rem; }
	
	.machine { 
		width: 48%; 
		max-width: 120px; 
		height: 160px; 
	}
	
	.card { 
		padding: 15px; 
		margin-bottom: 15px; 
	}
	
	.grid-2, .grid-3, .grid-4 { gap: 10px; }
	
	.stat-value { font-size: 2rem; }
	
	.tab-btn { flex: 1 0 100%; border-bottom: 1px solid var(--matrix-dark); }
	
	.drawer-row { 
		grid-template-columns: 1fr 1fr; 
		gap: 3px; 
	}
	.drawer-row input[type="number"] { 
		font-size: 0.8rem; 
		padding: 8px; 
	}
}

/* Loading States */
.loading {
	opacity: 0.6;
	pointer-events: none;
	position: relative;
}
.loading::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 255, 65, 0.1);
	animation: pulse 1s infinite;
}

/* Custom Matrix Scrollbars */
* {
	scrollbar-width: thin;
	scrollbar-color: #00ff41 #001100;
}

::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

::-webkit-scrollbar-track {
	background: #001100;
	border: 1px solid #003300;
	border-radius: 6px;
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(45deg, #00ff41, #00cc33);
	border-radius: 6px;
	border: 1px solid #003300;
	transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(45deg, #00cc33, #00ff41);
	box-shadow: 0 0 8px #00ff41, inset 0 0 4px rgba(0, 255, 65, 0.3);
}

::-webkit-scrollbar-thumb:active {
	background: linear-gradient(45deg, #00dd33, #00ff41);
	box-shadow: 0 0 12px #00ff41, inset 0 0 6px rgba(0, 255, 65, 0.5);
}

::-webkit-scrollbar-corner {
	background: #001100;
}

::-webkit-scrollbar-button {
	background: #001100;
	border: 1px solid #003300;
}

::-webkit-scrollbar-button:hover {
	background: rgba(0, 255, 65, 0.1);
}

/* Scroll to top/bottom buttons */
.scroll-btn {
	position: fixed;
	right: 360px;
	background: var(--matrix-darker);
	border: 1px solid var(--matrix-green);
	color: var(--matrix-green);
	width: 30px;
	height: 30px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: all 0.3s ease;
	opacity: 0;
	pointer-events: none;
}
.scroll-btn.visible {
	opacity: 1;
	pointer-events: auto;
}
.scroll-btn:hover {
	background: var(--matrix-green);
	color: #000;
	box-shadow: 0 0 15px var(--matrix-green);
}
.scroll-to-top {
	bottom: 60px;
}
.scroll-to-bottom {
	bottom: 100px;
}

@media (max-width: 1400px) {
	.scroll-btn {
		right: 10px;
	}
}

/* Investment section styling */
.investment-list {
	margin-top: 20px;
}
.investment-item {
	background: rgba(0, 20, 0, 0.8);
	border: 1px solid var(--matrix-dark);
	padding: 15px;
	margin-bottom: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.3s ease;
}
.investment-item:hover {
	border-color: var(--matrix-green);
	box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}
.investment-info {
	flex: 1;
}
.investment-type {
	color: var(--matrix-green);
	font-weight: bold;
	font-size: 0.9rem;
}
.investment-amount {
	color: var(--success);
	font-weight: bold;
	margin: 5px 0;
}
.investment-date {
	font-size: 0.8rem;
	color: #666;
}
.investment-actions {
	display: flex;
	gap: 10px;
}
.btn-small {
	padding: 5px 10px;
	font-size: 0.8rem;
}

/* Loan styling */
.loan-item {
	background: rgba(0, 20, 0, 0.8);
	border: 1px solid var(--matrix-dark);
	padding: 15px;
	margin-bottom: 10px;
	border-radius: 3px;
	transition: all 0.3s ease;
}
.loan-item:hover {
	border-color: var(--matrix-green);
	box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

/* Credit Card styling */
.credit-card {
	background: linear-gradient(135deg, #004400 0%, #001100 100%);
	border: 2px solid var(--matrix-green);
	padding: 20px;
	margin-bottom: 15px;
	border-radius: 5px;
	box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
	transition: all 0.3s ease;
	perspective: 1000px;
}
.credit-card:hover {
	box-shadow: 0 0 25px rgba(0, 255, 65, 0.4);
	transform: translateY(-2px);
}

/* Modal styling */
#modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 200;
}

#modal-overlay > div {
	background: #001100;
	border: 2px solid var(--matrix-green);
	padding: 30px;
	max-width: 500px;
	width: 90%;
	border-radius: 3px;
	box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

#modal-overlay h2 {
	color: var(--matrix-green);
	margin-bottom: 15px;
	border-bottom: 1px solid var(--matrix-dark);
	padding-bottom: 10px;
}

#modal-overlay p {
	color: #ddd;
	margin-bottom: 20px;
	line-height: 1.5;
}

/* ========================================================================== */
/* NEXUSBANK 3.0 — CAMADA VISUAL INTEGRADA AO APP HUB                        */
/* ========================================================================== */

:root {
	--matrix-green: #0369a1;
	--matrix-dark: #cbd5e1;
	--matrix-darker: #f8fafc;
	--black: #f1f5f9;
	--alert: #e11d48;
	--warn: #d97706;
	--info: #0284c7;
	--success: #059669;
	--console-bg: #0f172a;
	--glow: 0 10px 30px rgba(15, 23, 42, 0.12);
	--surface: #ffffff;
	--surface-muted: #f8fafc;
	--text-primary: #0f172a;
	--text-secondary: #64748b;
	--border: #e2e8f0;
	--brand-50: #f0f7ff;
	--brand-100: #e0effe;
	--brand-500: #0284c7;
	--brand-600: #0369a1;
	--brand-700: #075985;
	--brand-900: #082f49;
}

html {
	background: #f1f5f9;
	color-scheme: light;
}

* {
	font-family: 'Inter', sans-serif;
	-webkit-font-smoothing: antialiased;
}

body {
	background: #f1f5f9;
	color: var(--text-primary);
	min-width: 320px;
}

#matrix-canvas {
	opacity: 0.018;
	filter: hue-rotate(155deg) saturate(0.8);
}

#app {
	background: transparent;
}

aside {
	width: 260px;
	background: #0f172a;
	border-right: 1px solid #1e293b;
	box-shadow: 8px 0 24px rgba(15, 23, 42, 0.08);
	color: #e2e8f0;
	z-index: 20;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px;
	min-height: 80px;
	border-bottom: 1px solid #1e293b;
	animation: none;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--brand-500), #4f46e5);
	color: #fff;
	font-size: 18px;
	box-shadow: 0 8px 20px rgba(2, 132, 199, 0.28);
	flex: 0 0 auto;
}

.brand-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.brand-copy strong {
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.brand-copy span {
	color: #94a3b8;
	font-size: 11px;
	font-weight: 500;
	margin-top: 3px;
}

nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 12px;
}

nav button {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: transparent;
	color: #94a3b8;
	font-size: 13px;
	font-weight: 600;
	text-transform: none;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
	overflow: visible;
}

nav button i {
	width: 18px;
	font-size: 14px;
	text-align: center;
}

nav button::before,
nav button::after {
	display: none;
}

nav button:hover {
	background: #172033;
	border-color: #273449;
	color: #f8fafc;
	box-shadow: none;
}

nav button.active,
nav button.active:hover {
	background: var(--brand-600);
	border-color: #0ea5e9;
	color: #fff;
	box-shadow: 0 8px 18px rgba(3, 105, 161, 0.28);
}

.sidebar-status {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: auto 12px 14px;
	padding: 12px;
	border: 1px solid #273449;
	border-radius: 12px;
	background: #111c2f;
}

.console-launch {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 2px 12px 12px;
	padding: 10px 12px;
	border: 1px solid #334155;
	border-radius: 9px;
	background: transparent;
	color: #94a3b8;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 140ms ease, color 140ms ease;
}

.console-launch:hover {
	background: #172033;
	color: #f8fafc;
}

.sidebar-status-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: rgba(16, 185, 129, 0.12);
	color: #34d399;
}

.sidebar-status strong,
.sidebar-status span {
	display: block;
}

.sidebar-status strong {
	color: #e2e8f0;
	font-size: 11px;
	font-weight: 700;
}

.sidebar-status span {
	margin-top: 3px;
	color: #94a3b8;
	font-size: 10px;
}

.sidebar-status span i {
	color: #34d399;
	font-size: 6px;
	margin-right: 4px;
	vertical-align: 1px;
}

main {
	margin-right: 0;
	width: calc(100vw - 260px);
}

main {
	padding: 28px;
	background: transparent;
}

.view-section {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
}

.view-section.active {
	animation: fadeIn 240ms ease-out;
}

h1,
h2,
h3,
h4 {
	color: var(--text-primary);
	font-family: 'Inter', sans-serif;
	text-shadow: none;
	text-transform: none;
	letter-spacing: -0.02em;
}

h1::after,
h2::after {
	display: none;
}

p {
	color: var(--text-secondary);
	line-height: 1.6;
}

.hub-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	padding: 30px 32px;
	border: 1px solid #24344b;
	border-radius: 18px;
	background: linear-gradient(135deg, #0f172a 0%, #172033 56%, var(--brand-900) 100%);
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
	overflow: hidden;
	position: relative;
}

.hub-hero::after {
	content: '';
	position: absolute;
	right: -70px;
	top: -100px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: rgba(56, 189, 248, 0.08);
	filter: blur(4px);
}

.hub-hero > * {
	position: relative;
	z-index: 1;
}

.hub-hero h1 {
	margin: 8px 0 8px;
	color: #fff;
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 800;
}

.hub-hero p {
	max-width: 720px;
	color: #cbd5e1;
	font-size: 14px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #38bdf8;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hero-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border: 1px solid #334155;
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.6);
	color: #dbeafe;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.hero-status span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

.module-grid {
	margin-top: 20px !important;
}

.stat-card,
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
	backdrop-filter: none;
}

.card {
	padding: 22px;
}

.card::before {
	display: none;
}

.module-card {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 14px;
	min-height: 138px;
	padding: 20px;
	text-align: left;
	cursor: pointer;
	transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.module-card:hover,
.module-card:focus-visible {
	transform: translateY(-3px);
	border-color: #bae6fd;
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
	outline: none;
}

.module-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--brand-500), #4f46e5);
	color: #fff;
	font-size: 18px;
	box-shadow: 0 8px 16px rgba(2, 132, 199, 0.2);
}

.module-icon-emerald {
	background: linear-gradient(135deg, #059669, #0f766e);
	box-shadow: 0 8px 16px rgba(5, 150, 105, 0.2);
}

.module-icon-violet {
	background: linear-gradient(135deg, #7c3aed, #4f46e5);
	box-shadow: 0 8px 16px rgba(124, 58, 237, 0.2);
}

.module-copy {
	min-width: 0;
}

.module-kicker {
	color: #94a3b8;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.module-card h2 {
	margin: 4px 0 5px !important;
	font-size: 16px;
	font-weight: 800;
}

.module-card p {
	font-size: 12px;
	line-height: 1.45;
}

.module-arrow {
	color: var(--brand-600);
	font-size: 12px;
}

.overview-card {
	margin-top: 20px !important;
}

.section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--border);
}

.section-heading h3 {
	margin: 4px 0 0;
	font-size: 17px;
	font-weight: 800;
}

.updated-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 9px;
	border-radius: 8px;
	background: var(--brand-50);
	color: var(--brand-700);
	font-size: 10px;
	font-weight: 700;
}

.metrics-grid {
	gap: 0;
	margin-top: 0 !important;
}

.metric-item {
	padding: 22px 20px 4px;
	border-right: 1px solid var(--border);
}

.metric-item:first-child {
	padding-left: 0;
}

.metric-item:last-child {
	border-right: 0;
}

.stat-value {
	color: var(--text-primary);
	font-family: 'JetBrains Mono', monospace;
	font-size: clamp(22px, 2.5vw, 32px);
	font-weight: 800;
	text-shadow: none;
}

.stat-label {
	color: var(--text-secondary);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.07em;
}

input,
select,
textarea {
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
	color: var(--text-primary);
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	transition: border-color 140ms ease, box-shadow 140ms ease;
}

input::placeholder,
textarea::placeholder {
	color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	border-color: var(--brand-500);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
	outline: none;
}

.btn {
	border: 1px solid var(--brand-600);
	border-radius: 10px;
	background: var(--brand-600);
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
	transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.btn::before {
	display: none;
}

.btn:hover {
	transform: translateY(-1px);
	background: var(--brand-700);
	color: #fff;
	box-shadow: 0 8px 16px rgba(3, 105, 161, 0.18);
}

.btn:focus-visible {
	outline: 3px solid rgba(2, 132, 199, 0.22);
	outline-offset: 2px;
}

.btn-danger {
	border-color: #fecdd3;
	background: #fff1f2;
	color: #be123c;
}

.btn-danger:hover {
	background: #e11d48;
	color: #fff;
	box-shadow: 0 8px 16px rgba(225, 29, 72, 0.16);
}

.btn-warn {
	border-color: #fde68a;
	background: #fffbeb;
	color: #b45309;
}

.btn-warn:hover {
	background: #d97706;
	color: #fff;
}

.btn-success {
	border-color: #a7f3d0;
	background: #ecfdf5;
	color: #047857;
}

.btn-success:hover {
	background: #059669;
	color: #fff;
}

.tab-menu {
	gap: 6px;
	padding: 5px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: #fff;
	overflow-x: auto;
}

.tab-btn {
	min-width: max-content;
	padding: 10px 12px;
	border: 0;
	border-radius: 8px;
	color: #64748b;
	font-size: 11px;
	font-weight: 700;
	transition: background-color 140ms ease, color 140ms ease;
}

.tab-btn::before {
	display: none;
}

.tab-btn:hover,
.tab-btn.active {
	background: var(--brand-50);
	color: var(--brand-700);
	box-shadow: none;
}

#lock-screen {
	background: rgba(241, 245, 249, 0.96);
	backdrop-filter: blur(10px);
}

.login-box {
	width: min(410px, 92%);
	padding: 34px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
	animation: none;
}

.login-box i {
	color: var(--brand-600) !important;
}

.login-box h3 {
	font-size: 18px;
	font-weight: 800;
}

.lobby-container {
	gap: 18px;
	padding: 28px 0;
}

.machine {
	width: 170px;
	height: 190px;
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
	animation: none;
}

.machine:hover {
	transform: translateY(-4px);
	border-color: #bae6fd;
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.machine .screen {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 18px;
	border-radius: 14px;
	background: var(--brand-50);
	color: var(--brand-700);
	font-family: 'JetBrains Mono', monospace;
	font-size: 22px;
	font-weight: 800;
	text-shadow: none;
	animation: none;
}

.machine:not(.human) .screen i {
	font-size: 1.55rem;
}

.machine-label {
	margin: 0;
	padding: 5px 9px;
	border-radius: 999px;
	background: #e2e8f0;
	color: #334155;
	font-size: 10px;
	animation: none;
}

.machine.human {
	border-color: #a7f3d0;
}

.machine.human .screen {
	background: #ecfdf5;
	color: #047857;
}

.drawer-row,
.investment-item,
.loan-item {
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface-muted);
}

.drawer-row:hover,
.investment-item:hover,
.loan-item:hover {
	border-color: #bae6fd;
	background: var(--brand-50);
	box-shadow: none;
}

.capacity-bar {
	border: 0;
	border-radius: 999px;
	background: #e2e8f0;
}

.cap-fill {
	border-radius: inherit;
	background: linear-gradient(90deg, #10b981, #0284c7);
}

table {
	color: #334155;
	font-size: 13px;
}

th {
	color: #64748b;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

td,
th {
	padding: 11px 8px;
	border-bottom: 1px solid #eef2f7;
}

#transaction-chart {
	border: 1px solid var(--border) !important;
	border-radius: 12px;
	background: var(--surface-muted) !important;
}

#transaction-chart > div {
	border-radius: 6px 6px 2px 2px;
	background: linear-gradient(180deg, #38bdf8, #0369a1) !important;
}

#notifications {
	top: 18px;
	right: 18px;
	left: auto;
	max-width: min(380px, calc(100vw - 36px));
}

.notification {
	border: 1px solid var(--border);
	border-left: 4px solid var(--brand-500);
	border-radius: 12px;
	background: #fff;
	color: var(--text-primary);
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.notification::before {
	display: none;
}

.notification.success { border-color: var(--border); border-left-color: var(--success); }
.notification.error { border-color: var(--border); border-left-color: var(--alert); }
.notification.warning { border-color: var(--border); border-left-color: var(--warn); }
.notification .close { color: #64748b; }

#console-panel {
	top: 12px;
	right: 12px;
	bottom: 12px;
	width: min(390px, calc(100vw - 24px));
	height: auto;
	border: 1px solid #334155;
	border-radius: 16px;
	background: var(--console-bg);
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.36);
	overflow: hidden;
	z-index: 80;
	transform: translateX(calc(100% + 24px));
}

#console-panel.active {
	transform: translateX(0);
}

#console-header {
	background: #111c2f;
	border-bottom-color: #334155;
	color: #e2e8f0;
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
}

#console-toggle {
	border-color: #475569;
	border-radius: 7px;
	color: #cbd5e1;
}

#console-content,
.log-entry,
.log-time {
	font-family: 'JetBrains Mono', monospace;
}

.log-entry {
	border-left-color: #38bdf8;
	background: rgba(56, 189, 248, 0.06);
	color: #cbd5e1;
}

.log-time {
	color: #64748b;
}

.status-online { color: var(--success); }
.status-offline { color: var(--alert); }
.status-warning { color: var(--warn); }

.scroll-btn {
	right: 16px;
	border: 1px solid var(--border);
	border-radius: 9px;
	background: #fff;
	color: var(--brand-700);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.scroll-btn:hover {
	background: var(--brand-600);
	color: #fff;
	box-shadow: 0 8px 20px rgba(3, 105, 161, 0.2);
}

.credit-card {
	border-color: #1e40af;
	border-radius: 16px;
	background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
	box-shadow: 0 18px 30px rgba(30, 58, 138, 0.2);
}

#modal-overlay {
	background: rgba(15, 23, 42, 0.56) !important;
	backdrop-filter: blur(7px);
}

#modal-overlay > div {
	border: 1px solid var(--border) !important;
	border-radius: 16px !important;
	background: #fff !important;
	box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22) !important;
}

#modal-overlay h2 {
	color: var(--text-primary) !important;
	border-bottom-color: var(--border) !important;
}

#modal-overlay p {
	color: var(--text-secondary) !important;
}

* {
	scrollbar-color: #94a3b8 #e2e8f0;
}

::-webkit-scrollbar {
	width: 9px;
	height: 9px;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner,
::-webkit-scrollbar-button {
	background: #e2e8f0;
	border: 0;
}

::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
	border: 2px solid #e2e8f0;
	border-radius: 999px;
	background: #94a3b8;
	box-shadow: none;
}

@media (max-width: 1050px) {
	aside {
		width: 220px;
	}

	main {
		width: calc(100vw - 220px);
	}

	.grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.metric-item:nth-child(2) {
		border-right: 0;
	}

	.metric-item:nth-child(-n+2) {
		border-bottom: 1px solid var(--border);
	}
}

@media (max-width: 768px) {
	body {
		overflow: auto;
	}

	#app {
		min-height: 100vh;
	}

	aside {
		width: 100%;
		border-right: 0;
		border-bottom: 1px solid #1e293b;
		box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
	}

	.brand {
		min-height: 66px;
		padding: 12px 16px;
	}

	.brand-mark {
		width: 38px;
		height: 38px;
	}

	nav {
		flex-direction: row;
		gap: 6px;
		padding: 8px 10px 10px;
		overflow-x: auto;
	}

	nav button {
		width: auto;
		min-width: max-content;
		padding: 9px 11px;
		border-right: 0;
		font-size: 11px;
	}

	.sidebar-status {
		display: none;
	}

	.console-launch {
		position: absolute;
		top: 14px;
		right: 12px;
		margin: 0;
		padding: 9px 11px;
	}

	.console-launch span {
		display: none;
	}

	main {
		width: 100%;
		min-height: 0;
		padding: 18px 14px 28px;
	}

	.hub-hero {
		align-items: flex-start;
		flex-direction: column;
		padding: 24px 22px;
	}

	.hero-status {
		white-space: normal;
	}

	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: 1fr;
	}

	.metric-item,
	.metric-item:first-child {
		padding: 16px 0;
		border-right: 0;
		border-bottom: 1px solid var(--border);
	}

	.metric-item:last-child {
		border-bottom: 0;
	}

	.section-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.module-card {
		min-height: 120px;
	}

	.tab-menu {
		flex-wrap: nowrap;
	}

	.tab-btn {
		flex: 0 0 auto;
	}

	.machine {
		width: 46%;
		max-width: 170px;
	}

	#notifications {
		top: 12px;
		right: 12px;
		left: 12px;
		max-width: none;
	}

	.scroll-btn {
		display: none;
	}
}

@media (max-width: 480px) {
	.brand-copy span {
		display: none;
	}

	.card,
	.stat-card {
		border-radius: 14px;
	}

	.card {
		padding: 17px;
	}

	.hub-hero {
		padding: 22px 18px;
	}

	.hub-hero h1 {
		font-size: 30px;
	}

	.module-card {
		grid-template-columns: auto 1fr;
	}

	.module-arrow {
		display: none;
	}

	.machine {
		width: 100%;
		max-width: none;
		height: 150px;
	}
}

/* ========================================================================== */
/* BOTAO DISCRETO DE SAIR AO LADO DO NOME DO BANCO                            */
/* ========================================================================== */
.brand-exit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 6px;
	color: #94a3b8;
	font-size: 11px;
	text-decoration: none;
	background: transparent;
	border: 1px solid transparent;
	transition: all 0.2s ease;
	opacity: 0.75;
}
.brand-exit-btn:hover {
	color: #f43f5e;
	background: rgba(244, 63, 94, 0.12);
	border-color: rgba(244, 63, 94, 0.25);
	opacity: 1;
	transform: scale(1.08);
}

/* ========================================================================== */
/* SISTEMA DE TEMAS NEXUSBANK 3.0: LIGHT, DARK E COSMOS OVERRIDES             */
/* ========================================================================== */

/* --- TEMA LIGHT --- */
html[data-theme="light"],
body[data-theme="light"] {
	background-color: #f8fafc !important;
	color: #0f172a !important;
}
[data-theme="light"] aside {
	background: #ffffff !important;
	border-right: 1px solid #e2e8f0 !important;
	box-shadow: 4px 0 20px rgba(0, 0, 0, 0.04) !important;
	color: #334155 !important;
}
[data-theme="light"] .brand {
	border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .brand-copy strong {
	color: #0f172a !important;
}
[data-theme="light"] .brand-copy span {
	color: #64748b !important;
}
[data-theme="light"] .brand-exit-btn {
	color: #94a3b8 !important;
}
[data-theme="light"] .brand-exit-btn:hover {
	color: #e11d48 !important;
	background: rgba(225, 29, 72, 0.08) !important;
	border-color: rgba(225, 29, 72, 0.2) !important;
}
[data-theme="light"] nav button {
	color: #64748b !important;
}
[data-theme="light"] nav button:hover {
	background: #f1f5f9 !important;
	border-color: #e2e8f0 !important;
	color: #0f172a !important;
}
[data-theme="light"] nav button.active {
	background: var(--brand-600) !important;
	border-color: #0284c7 !important;
	color: #ffffff !important;
	box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25) !important;
}
[data-theme="light"] .sidebar-status {
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .sidebar-status strong {
	color: #0f172a !important;
}
[data-theme="light"] .sidebar-status span {
	color: #64748b !important;
}
[data-theme="light"] .console-launch {
	border: 1px solid #cbd5e1 !important;
	color: #475569 !important;
	background: #ffffff !important;
}
[data-theme="light"] .console-launch:hover {
	background: #f1f5f9 !important;
	color: #0f172a !important;
	border-color: #94a3b8 !important;
}
[data-theme="light"] .nexus-theme-btn {
	border: 1px solid #cbd5e1 !important;
	color: #334155 !important;
	background: #ffffff !important;
}
[data-theme="light"] .nexus-theme-btn:hover {
	background: #f1f5f9 !important;
	border-color: #94a3b8 !important;
	color: #0f172a !important;
}

/* --- TEMA DARK --- */
html[data-theme="dark"],
body[data-theme="dark"] {
	background-color: #0b1120 !important;
	color: #f1f5f9 !important;
}
[data-theme="dark"] aside {
	background: #090e1a !important;
	border-right-color: #1e293b !important;
}
[data-theme="dark"] .brand {
	border-bottom-color: #1e293b !important;
}
[data-theme="dark"] .brand-exit-btn {
	color: #64748b;
}
[data-theme="dark"] .brand-exit-btn:hover {
	color: #fb7185;
	background: rgba(244, 63, 94, 0.15);
}
[data-theme="dark"] .card,
[data-theme="dark"] .stat-card {
	background: #111827 !important;
	border-color: #1f2937 !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
	color: #f1f5f9 !important;
}
[data-theme="dark"] .module-card:hover,
[data-theme="dark"] .module-card:focus-visible {
	border-color: #38bdf8 !important;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4) !important;
}
[data-theme="dark"] .hub-hero {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0369a1 100%) !important;
	border-color: #334155 !important;
}
[data-theme="dark"] .stat-value {
	color: #f8fafc !important;
}
[data-theme="dark"] .stat-label {
	color: #94a3b8 !important;
}
[data-theme="dark"] .metric-item {
	border-right-color: #1f2937 !important;
}
[data-theme="dark"] .section-heading {
	border-bottom-color: #1f2937 !important;
}
[data-theme="dark"] .updated-label {
	background: rgba(2, 132, 199, 0.15) !important;
	color: #38bdf8 !important;
}
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
	background: #0b1120 !important;
	border-color: #334155 !important;
	color: #f8fafc !important;
}
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
	border-color: #38bdf8 !important;
	background: #0f172a !important;
}
[data-theme="dark"] .tab-menu {
	background: #0f172a !important;
	border-color: #1f2937 !important;
}
[data-theme="dark"] .tab-btn {
	color: #94a3b8 !important;
}
[data-theme="dark"] .tab-btn:hover,
[data-theme="dark"] .tab-btn.active {
	background: #1e293b !important;
	color: #38bdf8 !important;
}
[data-theme="dark"] td,
[data-theme="dark"] th {
	border-bottom-color: #1f2937 !important;
	color: #cbd5e1 !important;
}
[data-theme="dark"] th {
	color: #94a3b8 !important;
}
[data-theme="dark"] .drawer-row,
[data-theme="dark"] .investment-item,
[data-theme="dark"] .loan-item {
	background: #0b1120 !important;
	border-color: #1f2937 !important;
}
[data-theme="dark"] .machine {
	background: #111827 !important;
	border-color: #1f2937 !important;
}
[data-theme="dark"] .login-box {
	background: #111827 !important;
	border-color: #334155 !important;
	color: #f8fafc !important;
}
[data-theme="dark"] .sidebar-status {
	background: #0b1120 !important;
	border-color: #1e293b !important;
}
[data-theme="dark"] .console-launch {
	border-color: #1e293b !important;
	color: #94a3b8 !important;
}
[data-theme="dark"] .nexus-theme-btn {
	border-color: #1e293b !important;
	color: #e2e8f0 !important;
	background: rgba(30, 41, 59, 0.4) !important;
}
[data-theme="dark"] .nexus-theme-btn:hover {
	background: rgba(30, 41, 59, 0.8) !important;
	border-color: #38bdf8 !important;
}

/* --- TEMA COSMOS --- */
html[data-theme="cosmos"],
body[data-theme="cosmos"] {
	background: radial-gradient(ellipse at 50% 0%, #0d0f28 0%, #020308 75%) !important;
	background-attachment: fixed !important;
	color: #f8fafc !important;
}
[data-theme="cosmos"] aside {
	background: rgba(7, 9, 24, 0.95) !important;
	border-right-color: rgba(99, 102, 241, 0.25) !important;
	box-shadow: 0 0 30px rgba(99, 102, 241, 0.08) !important;
}
[data-theme="cosmos"] .brand {
	border-bottom-color: rgba(99, 102, 241, 0.2) !important;
}
[data-theme="cosmos"] .brand-exit-btn {
	color: #818cf8;
}
[data-theme="cosmos"] .brand-exit-btn:hover {
	color: #f43f5e;
	background: rgba(244, 63, 94, 0.2);
}
[data-theme="cosmos"] .card,
[data-theme="cosmos"] .stat-card {
	background: rgba(14, 18, 44, 0.88) !important;
	border-color: rgba(99, 102, 241, 0.25) !important;
	box-shadow: 0 0 30px rgba(99, 102, 241, 0.1) !important;
	color: #f8fafc !important;
	backdrop-filter: blur(12px) !important;
}
[data-theme="cosmos"] .module-card:hover,
[data-theme="cosmos"] .module-card:focus-visible {
	border-color: rgba(129, 140, 248, 0.6) !important;
	box-shadow: 0 0 35px rgba(99, 102, 241, 0.3) !important;
}
[data-theme="cosmos"] .hub-hero {
	background: linear-gradient(135deg, rgba(14, 17, 42, 0.95) 0%, rgba(30, 27, 75, 0.9) 60%, rgba(79, 70, 229, 0.7) 100%) !important;
	border: 1px solid rgba(99, 102, 241, 0.35) !important;
	box-shadow: 0 0 35px rgba(99, 102, 241, 0.2) !important;
}
[data-theme="cosmos"] .stat-value {
	color: #f8fafc !important;
}
[data-theme="cosmos"] .stat-label {
	color: #a5b4fc !important;
}
[data-theme="cosmos"] .metric-item {
	border-right-color: rgba(99, 102, 241, 0.2) !important;
}
[data-theme="cosmos"] .section-heading {
	border-bottom-color: rgba(99, 102, 241, 0.2) !important;
}
[data-theme="cosmos"] .updated-label {
	background: rgba(99, 102, 241, 0.2) !important;
	color: #a5b4fc !important;
}
[data-theme="cosmos"] input,
[data-theme="cosmos"] select,
[data-theme="cosmos"] textarea {
	background: rgba(9, 12, 32, 0.95) !important;
	border-color: rgba(99, 102, 241, 0.35) !important;
	color: #f8fafc !important;
}
[data-theme="cosmos"] input:focus,
[data-theme="cosmos"] select:focus,
[data-theme="cosmos"] textarea:focus {
	border-color: #818cf8 !important;
	box-shadow: 0 0 15px rgba(99, 102, 241, 0.3) !important;
}
[data-theme="cosmos"] nav button.active {
	background: #6366f1 !important;
	border-color: #818cf8 !important;
	box-shadow: 0 0 18px rgba(99, 102, 241, 0.5) !important;
}
[data-theme="cosmos"] nav button:hover:not(.active) {
	background: rgba(99, 102, 241, 0.15) !important;
	border-color: rgba(99, 102, 241, 0.3) !important;
}
[data-theme="cosmos"] .tab-menu {
	background: rgba(10, 13, 34, 0.9) !important;
	border-color: rgba(99, 102, 241, 0.25) !important;
}
[data-theme="cosmos"] .tab-btn {
	color: #a5b4fc !important;
}
[data-theme="cosmos"] .tab-btn:hover,
[data-theme="cosmos"] .tab-btn.active {
	background: rgba(99, 102, 241, 0.25) !important;
	color: #c7d2fe !important;
}
[data-theme="cosmos"] td,
[data-theme="cosmos"] th {
	border-bottom-color: rgba(99, 102, 241, 0.15) !important;
	color: #e0e7ff !important;
}
[data-theme="cosmos"] th {
	color: #a5b4fc !important;
}
[data-theme="cosmos"] .drawer-row,
[data-theme="cosmos"] .investment-item,
[data-theme="cosmos"] .loan-item {
	background: rgba(9, 12, 32, 0.8) !important;
	border-color: rgba(99, 102, 241, 0.2) !important;
}
[data-theme="cosmos"] .machine {
	background: rgba(14, 18, 44, 0.9) !important;
	border-color: rgba(99, 102, 241, 0.25) !important;
}
[data-theme="cosmos"] .login-box {
	background: rgba(13, 17, 40, 0.95) !important;
	border-color: rgba(99, 102, 241, 0.4) !important;
	box-shadow: 0 0 45px rgba(99, 102, 241, 0.3) !important;
	color: #f8fafc !important;
}
[data-theme="cosmos"] .sidebar-status {
	background: rgba(9, 12, 32, 0.85) !important;
	border-color: rgba(99, 102, 241, 0.25) !important;
}
[data-theme="cosmos"] .console-launch {
	border-color: rgba(99, 102, 241, 0.3) !important;
	color: #a5b4fc !important;
}
[data-theme="cosmos"] .nexus-theme-btn {
	border-color: rgba(99, 102, 241, 0.35) !important;
	color: #e0e7ff !important;
	background: rgba(20, 24, 55, 0.6) !important;
}
[data-theme="cosmos"] .nexus-theme-btn:hover {
	background: rgba(99, 102, 241, 0.25) !important;
	border-color: #818cf8 !important;
	box-shadow: 0 0 15px rgba(99, 102, 241, 0.3) !important;
}

/* O toast acompanha o tema ativo; a camada visual integrada acima define
   branco como padrao do tema claro. */
html[data-theme="dark"] .notification,
body[data-theme="dark"] .notification {
	background: #111827 !important;
	border-color: #334155 !important;
	color: #f8fafc !important;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.46) !important;
}
[data-theme="dark"] .notification.success { border-left-color: #34d399 !important; }
[data-theme="dark"] .notification.error { border-left-color: #fb7185 !important; }
[data-theme="dark"] .notification.warning { border-left-color: #fbbf24 !important; }
[data-theme="dark"] .notification .message { color: #cbd5e1 !important; }
[data-theme="dark"] .notification .close { color: #94a3b8 !important; }

html[data-theme="cosmos"] .notification,
body[data-theme="cosmos"] .notification {
	background: rgba(13, 17, 40, 0.97) !important;
	border-color: rgba(129, 140, 248, 0.42) !important;
	color: #f8fafc !important;
	box-shadow: 0 18px 50px rgba(2, 3, 8, 0.62), 0 0 24px rgba(99, 102, 241, 0.18) !important;
	backdrop-filter: blur(14px);
}
[data-theme="cosmos"] .notification.success { border-left-color: #34d399 !important; }
[data-theme="cosmos"] .notification.error { border-left-color: #fb7185 !important; }
[data-theme="cosmos"] .notification.warning { border-left-color: #fbbf24 !important; }
[data-theme="cosmos"] .notification .message { color: #c7d2fe !important; }
[data-theme="cosmos"] .notification .close { color: #a5b4fc !important; }
