/* SpeedTech - tema 2026 (base do painel S.A Player) (camada visual por cima do tailwind.css; nao muda nenhuma funcao) */

:root {
	/* SpeedTech: fundo com tom indigo do "Speed" da logo; azul da logo como cor principal e o roxo como destaque */
	--sa-bg: #0b0a16;
	--sa-bg-2: #0e0c1c;
	--sa-surface: #141127;
	--sa-surface-2: #1a1631;
	--sa-line: #262143;
	--sa-line-2: #312a54;
	--sa-text: #ebe9f5;
	--sa-muted: #9a94b8;
	--sa-faint: #6b6589;
	--sa-brand: #1f7df2;
	--sa-brand-2: #4d9dff;
	--sa-brand-soft: rgba(31, 125, 242, .14);
	--sa-accent: #8a3ff0;
	--sa-accent-soft: rgba(138, 63, 240, .16);
	--sa-gradient: linear-gradient(135deg, #8a3ff0 0%, #4f5cf3 48%, #1f7df2 100%);
	--sa-ok: #22c55e;
	--sa-warn: #f5a524;
	--sa-bad: #f04461;
	--sa-radius: 12px;
	--sa-radius-sm: 9px;
}

html body {
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	background: var(--sa-bg) !important;
	color: var(--sa-text);
	-webkit-font-smoothing: antialiased;
	font-feature-settings: 'cv11', 'ss01';
}
body .font-mono, body code { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ---------- estrutura ---------- */
body .app-sidebar {
	background: var(--sa-bg-2);
	border-right: 1px solid var(--sa-line);
	backdrop-filter: none;
}
body .topbar {
	background: rgba(11, 10, 22, .82);
	border-bottom: 1px solid var(--sa-line);
}
body .topbar h1 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
body .topbar .eyebrow { font-size: .68rem; letter-spacing: .12em; color: var(--sa-faint); }
body .topbar button, body .topbar a.rounded-2xl {
	border-radius: var(--sa-radius-sm) !important;
	border-color: var(--sa-line) !important;
	background: var(--sa-surface) !important;
}
body .content { padding-top: 1.75rem; }
body .page-shell { max-width: 1480px; gap: 1.25rem; }

/* ---------- menu lateral ---------- */
body #sectionUser { border-bottom: 1px solid var(--sa-line); }
body .sidebar-section-title {
	font-size: .66rem !important;
	letter-spacing: .14em !important;
	color: var(--sa-faint) !important;
	margin-top: .35rem;
}
body .sidebar-link {
	border-radius: var(--sa-radius-sm);
	padding: .55rem .65rem;
	color: var(--sa-muted);
	font-weight: 500;
	position: relative;
}
body .sidebar-link:hover { background: rgba(255, 255, 255, .04); color: var(--sa-text); }
body .sidebar-link.is-active {
	background: var(--sa-brand-soft);
	color: #fff;
	box-shadow: none;
}
body .sidebar-link.is-active::before {
	content: '';
	position: absolute;
	left: -12px; top: 9px; bottom: 9px;
	width: 3px; border-radius: 0 3px 3px 0;
	background: var(--sa-brand);
}
body .sidebar-link-icon {
	border-radius: 8px !important;
	border: 0 !important;
	background: transparent !important;
	width: 2rem !important; height: 2rem !important;
	color: inherit;
}
body .sidebar-link.is-active .sidebar-link-icon { color: var(--sa-brand-2); }
body .sidebar-link-icon svg { width: 18px; height: 18px; stroke-width: 1.8; }
body .sidebar-link-badge {
	border: 0 !important;
	background: var(--sa-surface-2) !important;
	color: var(--sa-muted) !important;
	font-weight: 600;
	letter-spacing: 0;
}
body .sidebar-plan-card { border-radius: var(--sa-radius) !important; }
body .sidebar-user-code { border-radius: var(--sa-radius-sm) !important; }

/* ---------- cabecalho de pagina ---------- */
body .page-header {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0 0 1.1rem;
	border-radius: 0;
	border-bottom: 1px solid var(--sa-line);
	align-items: flex-end;
}
body .page-header .eyebrow {
	font-size: .7rem;
	letter-spacing: .12em;
	color: var(--sa-brand-2);
	font-weight: 600;
}
body .page-title {
	font-size: 1.6rem !important;
	line-height: 2rem;
	font-weight: 650;
	letter-spacing: -.022em;
	color: #fff;
}
body .page-subtitle { color: var(--sa-muted); font-size: .9rem; margin-top: .25rem; }
body .page-actions { gap: .5rem; }

/* ---------- cards ---------- */
body .surface-card {
	background: var(--sa-surface);
	border: 1px solid var(--sa-line);
	border-radius: var(--sa-radius);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 8px 24px -16px rgba(0, 0, 0, .6);
	backdrop-filter: none;
}
body .surface-card-subtle {
	background: var(--sa-bg-2);
	border: 1px solid var(--sa-line);
	border-radius: var(--sa-radius);
}
body .card-title { font-weight: 600; letter-spacing: -.01em; }
body [class*="rounded-[28px]"], body [class*="rounded-[32px]"], body [class*="rounded-[24px]"], body .rounded-3xl {
	border-radius: var(--sa-radius) !important;
}

/* ---------- indicadores ---------- */
body .stat-card {
	background: var(--sa-surface);
	border: 1px solid var(--sa-line);
	border-radius: var(--sa-radius);
	padding: 1rem 1.1rem;
	box-shadow: none;
	transition: border-color .15s;
}
body .stat-card:hover { border-color: var(--sa-line-2); }
body .stat-label {
	font-size: .72rem;
	letter-spacing: .04em;
	text-transform: none;
	font-weight: 500;
	color: var(--sa-muted);
}
body .stat-value {
	font-size: 1.6rem;
	line-height: 2rem;
	font-weight: 650;
	letter-spacing: -.02em;
	margin-top: .35rem;
	font-variant-numeric: tabular-nums;
}
body .stat-meta { color: var(--sa-faint); font-size: .75rem; margin-top: .3rem; }

/* ---------- botoes ---------- */
body .btn-primary, body .btn-secondary, body .btn-danger, body .btn-success {
	border-radius: var(--sa-radius-sm);
	padding: .6rem 1rem;
	font-size: .85rem;
	font-weight: 600;
	min-height: 2.5rem;
	letter-spacing: 0;
	transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
body .btn-primary {
	background: var(--sa-brand) !important;
	background-image: none !important;
	color: #fff !important;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 16px -8px rgba(31, 125, 242, .7);
	filter: none;
}
body .btn-primary:hover { background: var(--sa-brand-2) !important; }
body .btn-secondary {
	background: var(--sa-surface-2);
	border: 1px solid var(--sa-line-2);
	color: var(--sa-text);
}
body .btn-secondary:hover { background: #1d2331; border-color: #384055; }
body .btn-danger {
	background: rgba(240, 68, 97, .08);
	border: 1px solid rgba(240, 68, 97, .28);
	color: #ff9fb0;
}
body .btn-danger:hover { background: rgba(240, 68, 97, .16); }
body .btn-success {
	background: rgba(34, 197, 94, .1);
	border: 1px solid rgba(34, 197, 94, .3);
	color: #86efac;
}
body .btn-sm { min-height: 2rem; padding: .35rem .7rem; font-size: .78rem; }
body .btn-primary svg, body .btn-secondary svg, body .btn-danger svg, body .btn-success svg { width: 16px; height: 16px; }

/* ---------- formularios ---------- */
body .field-label, body .form-label {
	font-size: .8rem;
	font-weight: 500;
	color: #c3c9d6;
	margin-bottom: .4rem;
	letter-spacing: 0;
	text-transform: none;
}
body .field-input, body .form-control, body .form-select, body .ts-control {
	background: var(--sa-bg-2) !important;
	border: 1px solid var(--sa-line-2) !important;
	border-radius: var(--sa-radius-sm) !important;
	color: var(--sa-text) !important;
	min-height: 2.5rem;
	padding: .55rem .8rem;
	font-size: .875rem;
	box-shadow: none;
}
body .field-input:focus, body .form-control:focus, body .form-select:focus {
	border-color: var(--sa-brand) !important;
	box-shadow: 0 0 0 3px rgba(31, 125, 242, .2) !important;
	outline: none;
}
body .field-input::placeholder, body .form-control::placeholder { color: var(--sa-faint); }
body .field-help, body .form-text { color: var(--sa-faint); font-size: .75rem; }

/* ---------- tabelas ---------- */
body .data-table, body table.table {
	font-size: .84rem;
	color: #cfd4df;
	border-collapse: separate;
	border-spacing: 0;
}
body .data-table thead th, body table.table thead th {
	background: var(--sa-bg-2);
	color: var(--sa-faint);
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: .7rem .9rem !important;
	border-bottom: 1px solid var(--sa-line);
	white-space: nowrap;
}
body .data-table tbody td, body table.table tbody td {
	padding: .7rem .9rem !important;
	border-bottom: 1px solid var(--sa-line);
	vertical-align: middle;
}
body .data-table tbody tr, body table.table tbody tr { transition: background-color .12s; }
body .data-table tbody tr:hover, body table.table tbody tr:hover { background: rgba(255, 255, 255, .025); }
body .data-table > :not([hidden]) ~ :not([hidden]) { border-color: var(--sa-line); }

/* ---------- etiquetas ---------- */
body .info-pill {
	border-radius: 999px;
	font-size: .7rem;
	letter-spacing: .04em;
	text-transform: none;
	font-weight: 600;
	padding: .22rem .65rem;
}
body .info-pill-muted { background: var(--sa-surface-2); border-color: var(--sa-line-2); color: var(--sa-muted); }

/* ---------- paginacao ---------- */
body .page-link {
	border-radius: 8px !important;
	background: var(--sa-surface) !important;
	border: 1px solid var(--sa-line) !important;
	color: var(--sa-muted) !important;
	min-width: 2.25rem;
}
body .page-item.active .page-link, body .page-link.is-active, body .page-link[aria-current] {
	background: var(--sa-brand) !important;
	border-color: var(--sa-brand) !important;
	color: #fff !important;
}

/* ---------- avisos / modais ---------- */
body .alert-card, body .alert-warning, body .alert-danger { border-radius: var(--sa-radius); }
body .empty-state { border-radius: var(--sa-radius); border-color: var(--sa-line-2); }
body .modal-content, body [role="dialog"] > div {
	border-radius: 14px;
}

/* ---------- barras de rolagem ---------- */
* { scrollbar-width: thin; scrollbar-color: #2a3142 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #262c3b; border-radius: 10px; border: 2px solid var(--sa-bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- largura: tabela larga rola dentro do card, nao a pagina inteira ---------- */
body .main-shell { min-width: 0; }
body .content, body .page-shell { min-width: 0; max-width: 100%; }
body .page-shell > * { min-width: 0; }
body .overflow-x-auto, body .table-responsive { max-width: 100%; }
@media (min-width: 768px) { body .page-header > div:first-child { min-width: 0; flex: 1 1 320px; } }
@media (max-width: 767px) { body .page-header { align-items: stretch; } body .page-actions { justify-content: flex-start; } }
body .page-actions { flex-wrap: wrap; justify-content: flex-end; }

/* ---------- acoes dentro das tabelas: uma linha so, botoes compactos ---------- */
body table td .flex.flex-wrap.justify-end { gap: .35rem; }
body table td .btn-primary, body table td .btn-secondary, body table td .btn-danger, body table td .btn-success {
	min-height: 2rem;
	padding: .3rem .65rem !important;
	font-size: .78rem;
	white-space: nowrap;
}
body table td .btn-primary svg, body table td .btn-secondary svg, body table td .btn-danger svg, body table td .btn-success svg { width: 14px; height: 14px; }

/* ---------- filtros: campos encolhem em vez de vazar ---------- */
body form.flex > div, body form .flex > div { min-width: 0; }
body form.flex { min-width: 0; }

/* =====================================================================
   MENU LATERAL v2: marca no topo, usuario no rodape, recolhido = trilho
   de icones que abre por cima do conteudo ao passar o mouse
   ===================================================================== */
body .app-sidebar { width: 16.5rem; }
@media (min-width: 1024px) {
	body .main-shell { margin-left: 16.5rem; }
	body .app-shell.sidebar-collapsed .main-shell { margin-left: 4.5rem; }
	body .app-shell.sidebar-collapsed .app-sidebar { width: 4.5rem; }
}

body .sidebar-brand {
	display: flex; align-items: center; gap: .5rem;
	min-height: 4.25rem; padding: .75rem .75rem .75rem 1rem;
	border-bottom: 1px solid var(--sa-line);
}
body .sidebar-brand-link { display: flex; align-items: center; gap: .7rem; min-width: 0; flex: 1; }
body .sidebar-brand-logo {
	width: 2.25rem; height: 2.25rem; flex: none;
	border-radius: 10px; object-fit: cover;
	background: transparent;
}
body .sidebar-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
body .sidebar-brand-name { font-weight: 700; font-size: .95rem; color: #fff; letter-spacing: -.01em; white-space: nowrap; }
body .sidebar-brand-sub { font-size: .7rem; color: var(--sa-faint); white-space: nowrap; }
body .sidebar-pin {
	flex: none; width: 2rem; height: 2rem; border-radius: 8px;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--sa-faint); border: 1px solid transparent;
	transition: background-color .15s, color .15s, border-color .15s;
}
body .sidebar-pin:hover { background: var(--sa-surface-2); color: var(--sa-text); border-color: var(--sa-line-2); }
body .sidebar-pin svg { width: 16px; height: 16px; }
@media (max-width: 1023px) { body .sidebar-pin { display: none; } }

body #sectionMenu { padding: 1rem .75rem 1rem; }
body #sectionMenu > .mt-6 { margin-top: .5rem; }
body #sectionMenu > .mt-6.space-y-6 > * + * { margin-top: 1.1rem; }
body #sectionMenu .space-y-1 > * + * { margin-top: 2px; }

body .sidebar-user {
	display: flex; align-items: center; gap: .6rem;
	margin: .5rem .75rem .75rem; padding: .6rem;
	border: 1px solid var(--sa-line); border-radius: var(--sa-radius);
	background: var(--sa-surface);
}
body .sidebar-user-avatar {
	flex: none; width: 2.1rem; height: 2.1rem; border-radius: 9px;
	display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #1f7df2, #7c5cff);
	color: #fff; font-weight: 700; font-size: .85rem;
}
body .sidebar-user .sidebar-user-meta p:first-child { font-size: .82rem; }
body .sidebar-user .sidebar-user-meta p:last-child { font-size: .7rem; color: var(--sa-faint); }
body .sidebar-user-code {
	flex: none; font-size: .7rem; font-weight: 600; color: #bcd0ff;
	background: var(--sa-brand-soft); border: 1px solid rgba(31, 125, 242,.3);
	border-radius: 7px; padding: .25rem .45rem;
}
body .sidebar-user-out {
	flex: none; width: 2rem; height: 2rem; border-radius: 8px;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--sa-faint);
}
body .sidebar-user-out:hover { background: rgba(240,68,97,.12); color: #ff9fb0; }
body .sidebar-user-out svg { width: 16px; height: 16px; }

/* recolhido */
@media (min-width: 1024px) {
	body .app-shell.sidebar-collapsed .sidebar-brand { padding: .75rem; justify-content: center; }
	body .app-shell.sidebar-collapsed .sidebar-brand-text,
	body .app-shell.sidebar-collapsed .sidebar-pin,
	body .app-shell.sidebar-collapsed .sidebar-user .sidebar-user-meta,
	body .app-shell.sidebar-collapsed .sidebar-user-code,
	body .app-shell.sidebar-collapsed .sidebar-user-out { display: none; }
	body .app-shell.sidebar-collapsed .sidebar-brand-link { flex: none; }
	body .app-shell.sidebar-collapsed .sidebar-user { justify-content: center; margin: .5rem; padding: .45rem; }
	body .app-shell.sidebar-collapsed #sectionMenu { padding-left: .6rem; padding-right: .6rem; }
	body .app-shell.sidebar-collapsed .sidebar-link.is-active::before { left: -10px; }
	body .app-shell.sidebar-collapsed .sidebar-section-title { display: block !important; font-size: 0 !important; height: 1px; margin: .35rem .5rem; background: var(--sa-line); padding: 0 !important; }

	/* passa o mouse: abre por cima do conteudo, sem empurrar a pagina */
	body .app-shell.sidebar-collapsed .app-sidebar { transition: width .18s ease, box-shadow .18s ease; }
	body .app-shell.sidebar-collapsed:not(.sidebar-hover-off) .app-sidebar:hover {
		width: 16.5rem; z-index: 60;
		box-shadow: 24px 0 48px -12px rgba(0,0,0,.65);
	}
	body .app-shell.sidebar-collapsed:not(.sidebar-hover-off) .app-sidebar:hover .sidebar-brand { justify-content: flex-start; padding: .75rem .75rem .75rem 1rem; }
	body .app-shell.sidebar-collapsed:not(.sidebar-hover-off) .app-sidebar:hover .sidebar-brand-link { flex: 1; }
	body .app-shell.sidebar-collapsed:not(.sidebar-hover-off) .app-sidebar:hover .sidebar-brand-text,
	body .app-shell.sidebar-collapsed:not(.sidebar-hover-off) .app-sidebar:hover .sidebar-pin { display: flex; }
	body .app-shell.sidebar-collapsed:not(.sidebar-hover-off) .app-sidebar:hover .sidebar-pin { display: inline-flex; }
	body .app-shell.sidebar-collapsed:not(.sidebar-hover-off) .app-sidebar:hover .sidebar-link { justify-content: flex-start; padding-left: .65rem; padding-right: .65rem; }
	body .app-shell.sidebar-collapsed:not(.sidebar-hover-off) .app-sidebar:hover .sidebar-link-icon { margin-left: 0; margin-right: 0; }
	body .app-shell.sidebar-collapsed:not(.sidebar-hover-off) .app-sidebar:hover .sidebar-link-label { display: block; }
	body .app-shell.sidebar-collapsed:not(.sidebar-hover-off) .app-sidebar:hover .sidebar-link-badge { display: inline-flex; }
	body .app-shell.sidebar-collapsed:not(.sidebar-hover-off) .app-sidebar:hover .sidebar-plan-card { display: block; }
	body .app-shell.sidebar-collapsed:not(.sidebar-hover-off) .app-sidebar:hover .sidebar-section-title { font-size: .66rem !important; height: auto; background: none; margin: .35rem 0 0; padding: 0 .75rem !important; }
	body .app-shell.sidebar-collapsed:not(.sidebar-hover-off) .app-sidebar:hover .sidebar-user { justify-content: flex-start; margin: .5rem .75rem .75rem; padding: .6rem; }
	body .app-shell.sidebar-collapsed:not(.sidebar-hover-off) .app-sidebar:hover .sidebar-user .sidebar-user-meta { display: block; }
	body .app-shell.sidebar-collapsed:not(.sidebar-hover-off) .app-sidebar:hover .sidebar-user-code,
	body .app-shell.sidebar-collapsed:not(.sidebar-hover-off) .app-sidebar:hover .sidebar-user-out { display: inline-flex; }
}

/* topo da pagina mais baixo e limpo */
body .topbar > div { min-height: 4.25rem !important; padding-top: .6rem !important; padding-bottom: .6rem !important; }
body #desktopSidebarToggle { display: none !important; }

/* cartao do plano (revendedor) no menu */
body .sidebar-plan-card { padding: .85rem !important; box-shadow: none !important; }
body .sidebar-plan-card p.uppercase { letter-spacing: .08em !important; font-size: .65rem !important; }
body .sidebar-plan-card .mt-2 { margin-top: .2rem; }
body .sidebar-plan-card .h-11.w-11 { width: 2.1rem; height: 2.1rem; border-radius: 9px !important; }
body .sidebar-plan-card .h-11.w-11 svg { width: 16px; height: 16px; }
body .sidebar-plan-card .mt-4.rounded-2xl { margin-top: .65rem; padding: .65rem .75rem; border-radius: 9px !important; }
body .sidebar-plan-card .mt-4.h-2 { margin-top: .6rem; height: 5px; }
body #sectionMenu > .sidebar-plan-card + .mt-6 { margin-top: 1rem; }

/* login: botoes do canal/grupo nao quebram no celular */
@media (max-width: 420px) { body #loginForm ~ .grid a { font-size: .78rem; gap: .35rem; } }

/* Tom Select aplicado num select .field-input: tira a borda dupla (a borda fica so no .ts-control) */
body .ts-wrapper.field-input, body .ts-wrapper.form-control, body .ts-wrapper.form-select {
	padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 0;
}

/* barra do topo: no computador o titulo da propria pagina ja diz onde esta; fica so no celular (botao do menu) */
@media (min-width: 1024px) {
	body .topbar { display: none; }
	body .content { padding-top: 2rem; }
}
@media (max-width: 1023px) {
	body .topbar > div { min-height: 3.5rem !important; }
	body .topbar .eyebrow { display: none; }
	body .topbar h1 { margin-top: 0; font-size: .95rem; }
}

/* =====================================================================
   MENU NO TOPO (computador). body.nav-top esconde o menu lateral a partir
   de 1024px; no celular continua o menu lateral de sempre.
   ===================================================================== */
body .topnav { display: none; }
@media (min-width: 1024px) {
	body.nav-top .app-sidebar { display: none; }
	body.nav-top .main-shell,
	body.nav-top .app-shell.sidebar-collapsed .main-shell { margin-left: 0; }
	body.nav-top .content { padding-top: 1.5rem; }

	body.nav-top .topnav {
		display: block; position: sticky; top: 0; z-index: 60;
		background: rgba(11, 10, 22, .88);
		backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
		border-bottom: 1px solid var(--sa-line);
	}
	body .topnav-inner {
		/* largura toda: logo encostado na esquerda e usuario na direita, como no menu lateral */
		padding: 0 1.5rem;
		height: 4rem; gap: 1.25rem;
		/* logo na esquerda, menu no centro da tela, usuario na direita */
		display: grid; align-items: center;
		grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
	}
	body .topnav-brand { display: flex; align-items: center; gap: .6rem; flex: none; color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: -.01em; }
	body .topnav-brand img { width: 2rem; height: 2rem; border-radius: 9px; object-fit: cover; }

	body .topnav-items { display: flex; align-items: center; justify-content: center; gap: .15rem; min-width: 0; }
	body .topnav-link {
		display: inline-flex; align-items: center; gap: .45rem; height: 2.35rem; padding: 0 .8rem;
		border-radius: var(--sa-radius-sm); color: var(--sa-muted); font-size: .86rem; font-weight: 500; white-space: nowrap;
		transition: background-color .15s, color .15s;
	}
	body .topnav-link svg { width: 16px; height: 16px; flex: none; }
	body .topnav-link:hover, body .topnav-group:hover > .topnav-link, body .topnav-group.is-open > .topnav-link { background: var(--sa-surface-2); color: var(--sa-text); }
	body .topnav-link.is-active { color: #fff; background: var(--sa-brand-soft); box-shadow: inset 0 0 0 1px rgba(31, 125, 242, .35); }
	body .topnav-link.is-active svg { color: var(--sa-brand-2); }
	body .topnav-caret { width: 14px !important; height: 14px !important; opacity: .7; transition: transform .15s; }
	body .topnav-group:hover .topnav-caret, body .topnav-group.is-open .topnav-caret { transform: rotate(180deg); }
	body .topnav-badge { font-size: .66rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; background: rgba(56, 189, 248, .12); color: #bae6fd; border: 1px solid rgba(56, 189, 248, .25); }

	body .topnav-group { position: relative; }
	body .topnav-menu {
		position: absolute; top: calc(100% + .35rem); left: 0; min-width: 14rem; padding: .4rem;
		background: var(--sa-surface); border: 1px solid var(--sa-line-2); border-radius: var(--sa-radius);
		box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .85);
		opacity: 0; visibility: hidden; transform: translateY(-4px);
		transition: opacity .14s, transform .14s, visibility .14s;
	}
	/* faixa invisivel entre o botao e o submenu: o mouse atravessa sem o menu fechar */
	body .topnav-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -.5rem; height: .5rem; }
	body .topnav-group:hover > .topnav-menu, body .topnav-group.is-open > .topnav-menu { opacity: 1; visibility: visible; transform: none; }
	body .topnav-menu-right { left: auto; right: 0; }
	body .topnav-menu a, body .topnav-menu button {
		display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .7rem; border-radius: 8px;
		color: var(--sa-text); font-size: .86rem; text-align: left; white-space: nowrap;
	}
	body .topnav-menu svg { width: 16px; height: 16px; color: var(--sa-muted); flex: none; }
	body .topnav-menu a:hover, body .topnav-menu button:hover { background: var(--sa-surface-2); }
	body .topnav-menu a.is-active { background: var(--sa-brand-soft); color: #fff; }
	body .topnav-menu a.is-active svg { color: var(--sa-brand-2); }
	body .topnav-menu a.is-danger { color: #fda4af; }
	body .topnav-menu a.is-danger svg { color: #fb7185; }

	body .topnav-right { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; }
	body .topnav-plan {
		display: inline-flex; align-items: center; gap: .5rem; height: 2.35rem; padding: 0 .8rem;
		border-radius: var(--sa-radius-sm); border: 1px solid rgba(56, 189, 248, .25); background: rgba(56, 189, 248, .08);
		color: #bae6fd; font-size: .8rem; white-space: nowrap;
	}
	body .topnav-plan svg { width: 15px; height: 15px; }
	body .topnav-plan-name { color: var(--sa-muted); }
	body .topnav-plan-days { font-weight: 700; color: #e0f2fe; }
	body .topnav-plan.is-warn { border-color: rgba(245, 165, 36, .35); background: rgba(245, 165, 36, .1); color: #fde68a; }
	body .topnav-plan.is-warn .topnav-plan-days { color: #fef3c7; }
	body .topnav-plan.is-bad { border-color: rgba(240, 68, 97, .4); background: rgba(240, 68, 97, .12); color: #fecdd3; }
	body .topnav-plan.is-bad .topnav-plan-days { color: #ffe4e6; }
	body .topnav-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.35rem; height: 2.35rem; border-radius: var(--sa-radius-sm); color: var(--sa-muted); border: 1px solid var(--sa-line); }
	body .topnav-icon:hover { color: var(--sa-text); background: var(--sa-surface-2); }
	body .topnav-icon svg { width: 16px; height: 16px; }
	body .topnav-user-btn { display: flex; align-items: center; gap: .55rem; height: 2.6rem; padding: 0 .55rem 0 .3rem; border-radius: var(--sa-radius-sm); }
	body .topnav-user-btn:hover, body .topnav-user.is-open .topnav-user-btn { background: var(--sa-surface-2); }
	body .topnav-avatar { width: 2rem; height: 2rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--sa-brand); color: #fff; font-weight: 700; font-size: .85rem; }
	body .topnav-user-meta { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
	body .topnav-user-name { color: #fff; font-size: .82rem; font-weight: 600; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	body .topnav-user-role { color: var(--sa-faint); font-size: .7rem; }
}
/* tela de notebook pequena: so os icones nos itens soltos, para caber */
@media (min-width: 1024px) and (max-width: 1279px) {
	body .topnav-inner { padding: 0 1rem; gap: .75rem; }
	body .topnav-items > .topnav-link span:not(.topnav-badge) { display: none; }
	body .topnav-plan-name, body .topnav-user-meta { display: none; }
}

/* ===================== SpeedTech: degrade da logo (roxo -> azul) ===================== */
/* brilho bem leve no fundo, nas duas cores da marca (fixo: nao rola com a pagina) */
html body {
	background:
		radial-gradient(1100px 600px at 100% -10%, rgba(31, 125, 242, .10), transparent 60%),
		radial-gradient(900px 520px at -10% 110%, rgba(138, 63, 240, .09), transparent 60%),
		var(--sa-bg) !important;
	background-attachment: fixed !important;
}
/* botao principal com o degrade da logo */
body .btn-primary {
	background: var(--sa-gradient) !important;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 20px -10px rgba(110, 80, 245, .8);
}
body .btn-primary:hover { background: var(--sa-gradient) !important; filter: brightness(1.1); }
/* item ativo: marcador e contorno no degrade */
body .sidebar-link.is-active::before { background: var(--sa-gradient); }
body .sidebar-link.is-active .sidebar-link-icon { color: #b48cff; }
body .sidebar-brand-name {
	background: var(--sa-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (min-width: 1024px) {
	body .topnav-brand span {
		background: linear-gradient(90deg, #b48cff, #4d9dff); -webkit-background-clip: text; background-clip: text; color: transparent;
	}
	body .topnav-link.is-active { position: relative; }
	body .topnav-link.is-active::after {
		content: ''; position: absolute; left: .7rem; right: .7rem; bottom: -1px; height: 2px; border-radius: 2px;
		background: var(--sa-gradient);
	}
	body .topnav-link.is-active svg, body .topnav-menu a.is-active svg { color: #b48cff; }
}
body .topnav-avatar { background: var(--sa-gradient) !important; color: #fff !important; }
/* sino de notificacoes */
body .topnav-bell { position: relative; background: transparent; cursor: pointer; }
body .topnav-bell-badge {
	position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 9px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800;
	align-items: center; justify-content: center; line-height: 18px; text-align: center;
}
