/* ═══════════════════════════════════════════════════════════════
   Zero Two Docs — Tema Moderno (v3.7)
   Overlay sobre o template Corona: sidebar, busca, navbar, cards,
   hambúrguer mobile e botões flutuantes. Não remove nada do tema
   original — só moderniza a aparência e a organização.
   ═══════════════════════════════════════════════════════════════ */
:root {
--zt-accent: #ff4081;
--zt-accent-2: #7b2ff7;
--zt-accent-rgb: 255, 64, 129;
--zt-accent-2-rgb: 123, 47, 247;
--zt-green: #25d366;
--zt-glass: rgba(255, 255, 255, 0.05);
--zt-glass-border: rgba(255, 255, 255, 0.1);
--zt-text-dim: rgba(255, 255, 255, 0.6);
--zt-sidebar-bg: linear-gradient(180deg, rgb(var(--zt-accent-rgb) / 0.12) 0%, rgb(var(--zt-accent-2-rgb) / 0.05) 34%, transparent 60%), linear-gradient(180deg, #131020 0%, #0d0b16 55%, #100c1c 100%);
--zt-radius: 14px;
--zt-radius-sm: 10px;
}

/* ─── Fundo e scrollbar ─── */
body { background: #0b0912; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, var(--zt-accent), var(--zt-accent-2));
border-radius: 999px;
border: 2px solid #0b0912;
}

/* ─── Sidebar moderna ─── */
.sidebar {
background: var(--zt-sidebar-bg) !important;
border-right: 1px solid rgb(var(--zt-accent-rgb) / 0.14) !important;
box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
}
.sidebar .sidebar-brand-wrapper { background: rgb(var(--zt-accent-rgb) / 0.06) !important; }
.sidebar .profile-desc { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }

/* Categoria ("Menu de Funções") */
.sidebar .nav .nav-category .nav-link {
font-size: 0.72rem !important;
letter-spacing: 2px;
text-transform: uppercase;
font-weight: 700;
background: linear-gradient(90deg, var(--zt-accent), var(--zt-accent-2));
-webkit-background-clip: text;
background-clip: text;
color: transparent !important;
}

/* Itens de menu (categorias-colapsáveis e links diretos) */
.sidebar .nav .nav-item.menu-items { margin: 2px 10px !important; border-radius: var(--zt-radius); transition: background 0.25s ease, transform 0.25s ease; }
.sidebar .nav .nav-item.menu-items .nav-link {
border-radius: var(--zt-radius);
padding: 11px 14px !important;
transition: background 0.25s ease, box-shadow 0.25s ease;
position: relative;
}
.sidebar .nav .nav-item.menu-items .nav-link .menu-title { font-weight: 600; letter-spacing: 0.4px; }
.sidebar .nav .nav-item.menu-items:hover { background: var(--zt-glass); transform: translateX(3px); }
.sidebar .nav .nav-item.menu-items .nav-link[aria-expanded="true"] {
background: linear-gradient(90deg, rgb(var(--zt-accent-rgb) / 0.18), rgb(var(--zt-accent-2-rgb) / 0.14));
box-shadow: inset 0 0 0 1px rgb(var(--zt-accent-rgb) / 0.25);
}
.sidebar .nav .nav-item.menu-items .nav-link .menu-icon {
width: 34px; height: 34px;
display: inline-flex; align-items: center; justify-content: center;
border-radius: var(--zt-radius-sm);
background: var(--zt-glass);
border: 1px solid var(--zt-glass-border);
margin-right: 12px !important;
}
.sidebar .nav .nav-item.menu-items:hover .nav-link .menu-icon {
border-color: rgb(var(--zt-accent-rgb) / 0.5);
box-shadow: 0 0 12px rgb(var(--zt-accent-rgb) / 0.25);
}

/* Sub-itens: pills com indicador colorido */
.sidebar .sub-menu { padding: 4px 0 10px !important; }
.sidebar .sub-menu .nav-item .nav-link {
border-radius: 10px;
margin: 1px 8px;
padding: 7px 12px !important;
position: relative;
transition: background 0.2s ease, transform 0.2s ease !important;
}
.sidebar .sub-menu .nav-item .nav-link::before {
content: '';
position: absolute;
left: 0; top: 50%;
width: 3px; height: 0%;
border-radius: 999px;
background: linear-gradient(180deg, var(--zt-accent), var(--zt-accent-2));
transform: translateY(-50%);
transition: height 0.25s ease;
}
.sidebar .sub-menu .nav-item .nav-link:hover {
background: rgba(255, 255, 255, 0.07);
transform: translateX(4px);
}
.sidebar .sub-menu .nav-item .nav-link:hover::before { height: 70%; }

/* ─── Busca do menu (desktop: navbar + sidebar; mobile: sidebar) ─── */
.zt-search-li { padding: 10px 12px 8px !important; }
.zt-search {
display: flex; align-items: center; gap: 8px;
background: rgba(0, 0, 0, 0.35);
border: 1px solid var(--zt-glass-border);
border-radius: 999px;
padding: 8px 14px;
transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.zt-search:focus-within { border-color: var(--zt-accent); box-shadow: 0 0 16px rgb(var(--zt-accent-rgb) / 0.25); }
.zt-search i { color: var(--zt-accent); font-size: 1rem; }
.zt-search input {
flex: 1; min-width: 0;
background: transparent; border: none; outline: none;
color: #fff; font-size: 0.85rem;
}
.zt-search input::placeholder { color: var(--zt-text-dim); }
.zt-search .zt-clear {
display: none;
background: none; border: none; cursor: pointer;
color: var(--zt-text-dim); font-size: 1rem; line-height: 1; padding: 2px;
}
.zt-search .zt-clear:hover { color: var(--zt-accent); }
.zt-search.has-value .zt-clear { display: inline; }
.zt-no-results {
display: none;
padding: 14px 16px !important;
font-size: 0.8rem; color: var(--zt-text-dim); text-align: center;
}
.zt-no-results.show { display: block; }
.zt-no-results b { color: var(--zt-accent); }

/* Contador de itens por categoria */
.zt-count {
margin-left: 6px;
flex: 0 0 auto;
min-width: 22px; height: 18px;
padding: 0 6px;
display: inline-flex; align-items: center; justify-content: center;
border-radius: 999px;
font-size: 0.66rem; font-weight: 700;
background: linear-gradient(135deg, var(--zt-accent), var(--zt-accent-2));
color: #fff;
box-shadow: 0 2px 6px rgb(var(--zt-accent-rgb) / 0.35);
}
/* Título da categoria ocupa o espaço e NUNCA encosta no contador/seta
   (corrige badges sobrepondo nomes longos tipo "WALLPAPERS 28") */
.sidebar .nav .nav-item.menu-items > .nav-link { display: flex; align-items: center; }
.sidebar .nav .nav-item.menu-items > .nav-link .menu-title {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sidebar .nav .nav-item.menu-items > .nav-link .menu-arrow { flex: 0 0 auto; margin-left: auto; }

/* ─── Separador animado do menu (entre seções) ─── */
.zt-divider { padding: 7px 18px !important; margin: 3px 0 !important; list-style: none; }
.zt-divider > span {
display: block;
height: 2px;
border-radius: 999px;
background: linear-gradient(90deg, transparent 0%, var(--zt-accent) 25%, var(--zt-accent-2) 50%, var(--zt-accent) 75%, transparent 100%);
background-size: 220% 100%;
animation: ztDividerFlow 3.2s linear infinite;
box-shadow: 0 0 10px rgb(var(--zt-accent-rgb) / 0.35);
}
@keyframes ztDividerFlow {
0% { background-position: 0% 0; }
100% { background-position: 220% 0; }
}

/* ─── Área central moderna (cards de info + verificação de key) ─── */
.main-panel .card {
border: 1px solid rgb(var(--zt-accent-rgb) / 0.22) !important;
background: linear-gradient(160deg, rgba(24, 18, 38, 0.92), rgba(10, 8, 18, 0.96)) !important;
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
position: relative;
overflow: hidden;
}
/* Filete luminoso no topo de cada card */
.main-panel .card::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 2px;
background: linear-gradient(90deg, transparent, var(--zt-accent), var(--zt-accent-2), transparent);
background-size: 200% 100%;
animation: ztDividerFlow 4s linear infinite;
}
.main-panel .card:hover { box-shadow: 0 14px 34px rgb(var(--zt-accent-rgb) / 0.16); }
/* Títulos dos cards com gradiente */
.main-panel .card h5.text-uppercase {
letter-spacing: 1px;
background: linear-gradient(90deg, #fff, #ffb1cf);
-webkit-background-clip: text;
background-clip: text;
color: transparent !important;
}
/* Card de verificação de key: input e botão no tema */
.main-panel form .form-control {
background: rgba(0, 0, 0, 0.4) !important;
border: 1px solid rgba(255, 255, 255, 0.16) !important;
border-radius: 12px !important;
color: #fff !important;
transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.main-panel form .form-control:focus {
border-color: var(--zt-accent) !important;
box-shadow: 0 0 16px rgb(var(--zt-accent-rgb) / 0.3) !important;
}
.main-panel form .btn-primary {
background: linear-gradient(135deg, var(--zt-accent), var(--zt-accent-2)) !important;
border: none !important;
box-shadow: 0 6px 18px rgb(var(--zt-accent-rgb) / 0.35);
transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.main-panel form .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgb(var(--zt-accent-rgb) / 0.5); }

.sidebar .nav .nav-item.menu-items .nav-link .menu-arrow { transition: transform 0.3s ease; }
.sidebar .nav .nav-item.menu-items .nav-link[aria-expanded="true"] .menu-arrow { transform: rotate(90deg); }

/* ─── Navbar superior moderna ─── */
.navbar {
background: rgba(13, 11, 22, 0.82) !important;
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border-bottom: 1px solid rgb(var(--zt-accent-rgb) / 0.14) !important;
}
.navbar .navbar-toggler {
border-radius: 12px;
border: 1px solid var(--zt-glass-border) !important;
background: var(--zt-glass);
color: var(--zt-accent) !important;
padding: 6px 10px;
transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.navbar .navbar-toggler:hover { box-shadow: 0 0 14px rgb(var(--zt-accent-rgb) / 0.35); transform: scale(1.06); }
.navbar .navbar-toggler:focus { outline: none; box-shadow: 0 0 0 3px rgb(var(--zt-accent-rgb) / 0.25); }
.navbar form.search input {
background: rgba(0, 0, 0, 0.35) !important;
border: 1px solid var(--zt-glass-border) !important;
border-radius: 999px !important;
color: #fff !important;
padding: 8px 16px !important;
transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.navbar form.search input:focus { border-color: var(--zt-accent) !important; box-shadow: 0 0 16px rgb(var(--zt-accent-rgb) / 0.25); }

/* ─── Hambúrguer mobile: backdrop + animação ───
   O template Corona posiciona a sidebar mobile à DIREITA
   (right: -244px → right: 0 com a classe .active). Aqui só
   suavizamos a transição e adicionamos sombra — sem transform! */
@media (max-width: 991px) {
.sidebar-offcanvas {
-webkit-transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
-o-transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
width: 260px;
max-width: 84vw;
}
.sidebar-offcanvas.active { box-shadow: -12px 0 42px rgba(0, 0, 0, 0.65); }
}
/* Backdrop fica ENTRE o conteúdo (z~0) e a sidebar (z=11); navbar (z~1030) segue clicável */
.zt-backdrop {
position: fixed;
inset: 0;
z-index: 10;
background: rgba(5, 3, 10, 0.6);
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
opacity: 0;
animation: ztFadeIn 0.25s ease forwards;
}
@keyframes ztFadeIn { to { opacity: 1; } }
body.zt-menu-open { overflow: hidden; }

/* ─── Cards do conteúdo ─── */
.card {
border-radius: var(--zt-radius) !important;
transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }

/* ─── Botões flutuantes ─── */
.zt-fab {
position: fixed;
z-index: 999;
width: 52px; height: 52px;
border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-size: 1.4rem;
color: #fff !important;
cursor: pointer;
border: none;
text-decoration: none !important;
transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
}
.zt-fab:hover { transform: translateY(-4px) scale(1.05); }
.zt-fab-wa {
left: 18px; bottom: 18px;
background: linear-gradient(135deg, #25d366, #128c7e);
box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}
.zt-fab-wa::after {
content: '';
position: absolute; inset: -4px;
border-radius: 50%;
border: 2px solid rgba(37, 211, 102, 0.5);
animation: ztPulse 2s ease-out infinite;
}
@keyframes ztPulse {
0% { transform: scale(0.9); opacity: 1; }
100% { transform: scale(1.35); opacity: 0; }
}
.zt-fab-top {
right: 18px; bottom: 18px;
background: linear-gradient(135deg, var(--zt-accent), var(--zt-accent-2));
box-shadow: 0 6px 20px rgb(var(--zt-accent-rgb) / 0.4);
opacity: 0;
pointer-events: none;
transform: translateY(12px);
}
.zt-fab-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ─── Dica do atalho Ctrl+K ─── */
.zt-kbd {
font-size: 0.62rem;
border: 1px solid var(--zt-glass-border);
border-radius: 5px;
padding: 1px 5px;
color: var(--zt-text-dim);
background: rgba(0, 0, 0, 0.3);
}

/* Respeita usuários com redução de movimento */
@media (prefers-reduced-motion: reduce) {
.sidebar-offcanvas, .zt-fab, .card, .sidebar .nav .nav-item.menu-items { transition: none !important; animation: none !important; }
.zt-fab-wa::after { animation: none; display: none; }
}

/* ─── Seletor de Temas & Estilos ─── */
.zt-theme-btn-li { display: flex; align-items: center; }
.zt-theme-btn {
width: 38px; height: 38px;
display: inline-flex; align-items: center; justify-content: center;
border-radius: var(--zt-radius-sm);
background: var(--zt-glass);
border: 1px solid var(--zt-glass-border);
color: var(--zt-accent) !important;
font-size: 1.15rem;
cursor: pointer;
margin-right: 6px;
transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.zt-theme-btn:hover {
border-color: rgb(var(--zt-accent-rgb) / 0.5);
box-shadow: 0 0 14px rgb(var(--zt-accent-rgb) / 0.35);
transform: rotate(-10deg) scale(1.08);
}
.zt-theme-btn:focus { outline: none; box-shadow: 0 0 0 3px rgb(var(--zt-accent-rgb) / 0.25); }

.zt-theme-panel {
position: fixed;
top: 76px; right: 12px;
z-index: 1045;
width: min(290px, 88vw);
background: rgba(16, 12, 26, 0.96);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border: 1px solid rgb(var(--zt-accent-rgb) / 0.32);
border-radius: var(--zt-radius);
padding: 14px;
box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
opacity: 0;
transform: translateY(-10px) scale(0.97);
pointer-events: none;
transition: opacity 0.25s ease, transform 0.25s ease;
}
.zt-theme-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.zt-theme-panel h4 {
margin: 0 0 12px;
font-size: 0.88rem;
color: #fff;
display: flex; align-items: center; gap: 8px;
letter-spacing: 0.4px;
}
.zt-theme-panel h4 i { color: var(--zt-accent); }
.zt-swatches {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
margin-bottom: 12px;
max-height: 268px;
overflow-y: auto;
padding-right: 2px;
}
/* v3.9.0 — mini-preview REAL de cada tema: o card mostra o fundo real (bg),
   o ícone do tema pintado com a cor real de destaque (c1) e dois pontinhos
   com as cores reais (c1/c2). Nada de gradiente genérico repetido. */
.zt-swatch {
display: flex;
flex-direction: column;
gap: 5px;
padding: 0;
background: transparent;
border: none;
cursor: pointer;
border-radius: var(--zt-radius-sm);
transition: transform 0.2s ease, filter 0.2s ease;
}
.zt-swatch-bg {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 7px;
aspect-ratio: 1.05;
border-radius: var(--zt-radius-sm);
border: 2px solid rgba(255, 255, 255, 0.12);
box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35);
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.zt-swatch-bg i { font-size: 1.35rem; line-height: 1; }
.zt-swatch-dots { display: flex; gap: 4px; }
.zt-swatch-dots b {
width: 8px; height: 8px;
border-radius: 50%;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
}
.zt-swatch-nome {
font-size: 0.62rem;
font-weight: 700;
letter-spacing: 0.03em;
color: rgba(255, 255, 255, 0.78);
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.zt-swatch:hover { transform: translateY(-3px) scale(1.06); }
.zt-swatch:hover .zt-swatch-bg { box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35), 0 6px 16px rgba(0, 0, 0, 0.45); }
.zt-swatch:focus { outline: none; }
.zt-swatch:focus .zt-swatch-bg { border-color: rgba(255, 255, 255, 0.55); }
.zt-swatch.active .zt-swatch-bg {
border-color: #fff;
box-shadow: 0 0 0 2px rgb(var(--zt-accent-rgb) / 0.65), 0 6px 16px rgba(0, 0, 0, 0.55);
}
.zt-swatch.active .zt-swatch-nome { color: #fff; }
.zt-swatch.active { position: relative; }
.zt-swatch.active::after {
content: '✓';
position: absolute;
top: 3px; right: 3px;
width: 16px; height: 16px;
border-radius: 50%;
background: linear-gradient(135deg, var(--zt-accent), var(--zt-accent-2));
color: #fff;
font-weight: 900; font-size: 0.62rem;
display: flex; align-items: center; justify-content: center;
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
}
.zt-style-toggles {
border-top: 1px solid rgba(255, 255, 255, 0.09);
padding-top: 11px;
display: flex; flex-direction: column; gap: 10px;
}
.zt-toggle-row {
display: flex; align-items: center; justify-content: space-between;
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.85);
}
.zt-switch {
flex: 0 0 auto;
width: 40px; height: 21px;
border-radius: 999px;
border: none;
background: rgba(255, 255, 255, 0.16);
position: relative;
cursor: pointer;
transition: background 0.25s ease;
padding: 0;
}
.zt-switch::after {
content: '';
position: absolute;
top: 2px; left: 2px;
width: 17px; height: 17px;
border-radius: 50%;
background: #fff;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
transition: left 0.25s ease;
}
.zt-switch.on { background: linear-gradient(135deg, var(--zt-accent), var(--zt-accent-2)); }
.zt-switch.on::after { left: 21px; }
.zt-switch:focus { outline: none; box-shadow: 0 0 0 3px rgb(var(--zt-accent-rgb) / 0.3); }

/* Estado: menu compacto */
body.zt-compact .sidebar .nav .nav-item.menu-items { margin: 1px 10px !important; }
body.zt-compact .sidebar .nav .nav-item.menu-items .nav-link { padding: 7px 12px !important; }
body.zt-compact .sidebar .sub-menu .nav-item .nav-link { padding: 4px 10px !important; font-size: 0.82rem; }
body.zt-compact .zt-search-li { padding: 6px 12px 4px !important; }

/* Estado: animações desligadas (acessibilidade/performance) */
body.zt-no-anim *,
body.zt-no-anim *::before,
body.zt-no-anim *::after {
animation: none !important;
transition: none !important;
}
body.zt-no-anim .zt-fab-wa::after { display: none; }

/* ─── v3.7.3 — FABs sem sobreposição (empilhados à direita) ─── */
.zt-fab { min-width: 52px; min-height: 52px; padding: 0; }
.zt-fab-wa { left: auto !important; right: 18px; bottom: 18px; }
.zt-fab-top { left: auto !important; right: 18px; bottom: 82px; }

/* ─── v3.7.3 — Dropdowns do menu (UPLOAD etc.) fluem inline ───
   O Bootstrap 5 posiciona .dropdown-menu absoluto, sobrepondo os
   itens seguintes da sidebar. Forçamos fluxo normal. */
.sidebar .nav .dropdown-menu {
position: static !important;
float: none !important;
transform: none !important;
display: none;
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 4px 0 10px !important;
margin: 0 !important;
min-width: 0 !important;
}
.sidebar .nav .dropdown-menu.show { display: block !important; }
.sidebar .nav .dropdown-menu .dropdown-item {
display: flex; align-items: center; gap: 8px;
color: rgba(255, 255, 255, 0.8) !important;
border-radius: 10px;
margin: 1px 8px;
padding: 8px 12px !important;
white-space: normal;
position: relative;
transition: background 0.2s ease, transform 0.2s ease !important;
}
.sidebar .nav .dropdown-menu .dropdown-item:hover,
.sidebar .nav .dropdown-menu .dropdown-item:focus {
background: rgba(255, 255, 255, 0.07) !important;
color: #fff !important;
transform: translateX(4px);
}
.sidebar .nav .dropdown-menu .dropdown-item i { font-size: 0.95rem; }

/* ─── v3.7.3 — Overlay animado temático (blobs) por cima do wallpaper ─── */
.zt-bg-fx {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
overflow: hidden;
}
.zt-bg-fx .blob {
position: absolute;
border-radius: 50%;
filter: blur(72px);
opacity: 0.28;
will-change: transform;
}
.zt-bg-fx .b1 {
width: 44vmax; height: 44vmax;
left: -14vmax; top: -16vmax;
background: radial-gradient(circle at 35% 35%, rgb(var(--zt-accent-rgb) / 0.6), transparent 66%);
animation: ztDrift1 26s ease-in-out infinite alternate;
}
.zt-bg-fx .b2 {
width: 36vmax; height: 36vmax;
right: -12vmax; top: 12vh;
background: radial-gradient(circle at 60% 40%, rgb(var(--zt-accent-2-rgb) / 0.55), transparent 66%);
animation: ztDrift2 32s ease-in-out infinite alternate;
}
.zt-bg-fx .b3 {
width: 40vmax; height: 40vmax;
left: 18vw; bottom: -22vmax;
background: radial-gradient(circle at 50% 45%, rgb(var(--zt-accent-rgb) / 0.42), transparent 68%);
animation: ztDrift3 38s ease-in-out infinite alternate;
}
.zt-bg-fx .b4 {
width: 22vmax; height: 22vmax;
right: 22vw; top: 42vh;
background: radial-gradient(circle at 40% 60%, rgb(var(--zt-accent-2-rgb) / 0.38), transparent 70%);
animation: ztDrift1 22s ease-in-out infinite alternate-reverse;
}
@keyframes ztDrift1 {
0% { transform: translate(0, 0) scale(1); }
50% { transform: translate(6vw, 5vh) scale(1.16); }
100% { transform: translate(-4vw, 9vh) scale(0.94); }
}
@keyframes ztDrift2 {
0% { transform: translate(0, 0) scale(1) rotate(0deg); }
50% { transform: translate(-7vw, 6vh) scale(1.12) rotate(18deg); }
100% { transform: translate(3vw, -5vh) scale(0.9) rotate(-12deg); }
}
@keyframes ztDrift3 {
0% { transform: translate(0, 0) scale(1); }
100% { transform: translate(-8vw, -7vh) scale(1.2); }
}

/* ─── v3.7.3 — Cards de estatísticas em tempo real (bateria/conexão) ─── */
.zt-stat-big {
font-size: 1.9rem;
font-weight: 800;
line-height: 1;
color: #fff;
display: flex;
align-items: baseline;
gap: 4px;
}
.zt-stat-big small { font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.zt-stat-big i { font-size: 1.35rem; align-self: center; color: var(--zt-accent); }
.zt-stat-sub { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); margin-top: 6px; display: block; }
.zt-stat-bar {
margin-top: 10px;
height: 8px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.1);
overflow: hidden;
}
.zt-stat-bar > span {
display: block;
height: 100%;
width: 0%;
border-radius: 999px;
background: linear-gradient(90deg, var(--zt-accent), var(--zt-accent-2));
box-shadow: 0 0 10px rgb(var(--zt-accent-rgb) / 0.5);
transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.zt-spark {
width: 100%;
height: 46px;
display: block;
margin-top: 10px;
}
.zt-stat-pill {
display: inline-flex;
align-items: center;
gap: 6px;
margin-top: 8px;
padding: 3px 10px;
border-radius: 999px;
font-size: 0.72rem;
font-weight: 600;
color: #fff;
background: rgb(var(--zt-accent-rgb) / 0.16);
border: 1px solid rgb(var(--zt-accent-rgb) / 0.35);
}

/* ═══ v3.8.0 — Gráfico de rotas em tempo real ═══ */
.zt-rotas-lista { display: flex; flex-direction: column; gap: 11px; min-height: 46px; }
.zt-rota { transition: transform 0.25s ease; }
.zt-rota:hover { transform: translateX(4px); }
.zt-rota.zt-pop { animation: ztRotaIn 0.45s cubic-bezier(0.22, 0.9, 0.32, 1.2) both; }
@keyframes ztRotaIn {
from { opacity: 0; transform: translateY(10px) scale(0.96); }
to { opacity: 1; transform: none; }
}
.zt-rota-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.zt-rota-nome {
font-size: 0.78rem;
font-family: 'Consolas', 'Courier New', monospace;
color: rgba(255, 255, 255, 0.82);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.zt-top1 .zt-rota-nome { color: #fff; font-weight: 700; }
.zt-rota-valor { font-size: 0.82rem; font-weight: 800; color: var(--zt-accent); flex: 0 0 auto; }
.zt-rota-barra {
height: 10px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.08);
overflow: hidden;
}
.zt-rota-barra > span {
display: block;
height: 100%;
width: 0;
border-radius: 999px;
background: linear-gradient(90deg, var(--zt-accent-2), var(--zt-accent), var(--zt-accent-2));
background-size: 220% 100%;
box-shadow: 0 0 12px rgb(var(--zt-accent-rgb) / 0.45);
transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
animation: ztBarraFlow 2.6s linear infinite;
}
@keyframes ztBarraFlow { to { background-position: 220% 0; } }
.zt-live {
margin-left: 10px;
font-size: 0.6rem;
font-weight: 700;
letter-spacing: 1.5px;
color: #2ed573;
background: rgba(46, 213, 115, 0.12);
border: 1px solid rgba(46, 213, 115, 0.42);
padding: 3px 9px;
border-radius: 999px;
vertical-align: middle;
animation: ztLivePulse 1.6s ease-in-out infinite;
}
.zt-live.zt-live-off {
color: #ff6b81;
background: rgba(255, 107, 129, 0.1);
border-color: rgba(255, 107, 129, 0.4);
animation: none;
}
@keyframes ztLivePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ═══ v3.8.0 — FORMAS: como o tema muda o formato da estrutura ═══ */
body[data-zt-forma="quadrado"] { --zt-radius: 5px; --zt-radius-sm: 4px; }
body[data-zt-forma="pill"] { --zt-radius: 26px; --zt-radius-sm: 15px; }
body[data-zt-forma="quadrado"] .zt-swatch,
body[data-zt-forma="pill"] .zt-swatch { border-radius: var(--zt-radius-sm); }

/* ═══ v3.8.0 — ESTILOS: vidro(padrão) / neon / plano / claro ═══ */
body[data-zt-estilo="neon"] .main-panel .card {
border-color: rgb(var(--zt-accent-rgb) / 0.6) !important;
box-shadow: 0 0 26px rgb(var(--zt-accent-rgb) / 0.3);
}
body[data-zt-estilo="neon"] .sidebar { border-right: 1px solid rgb(var(--zt-accent-rgb) / 0.42) !important; }
body[data-zt-estilo="neon"] .sidebar .nav .nav-item.menu-items:hover {
box-shadow: 0 0 0 1px rgb(var(--zt-accent-rgb) / 0.35), 0 0 18px rgb(var(--zt-accent-rgb) / 0.2);
}
body[data-zt-estilo="neon"] .zt-search:focus-within { box-shadow: 0 0 24px rgb(var(--zt-accent-rgb) / 0.5); }
body[data-zt-estilo="neon"] .zt-bg-fx .blob { opacity: 0.36; }
body[data-zt-estilo="neon"] .navbar { border-bottom-color: rgb(var(--zt-accent-rgb) / 0.4) !important; }

body[data-zt-estilo="plano"] .zt-bg-fx { display: none; }
body[data-zt-estilo="plano"] .main-panel .card {
background: #14161d !important;
border-color: rgba(255, 255, 255, 0.12) !important;
box-shadow: none;
}
body[data-zt-estilo="plano"] .main-panel .card::before { display: none; }
body[data-zt-estilo="plano"] .main-panel .card:hover { box-shadow: none; transform: none; }
body[data-zt-estilo="plano"] .zt-count,
body[data-zt-estilo="plano"] .zt-fab-wa::after { box-shadow: none; }
body[data-zt-estilo="plano"] .zt-fab-wa::after { display: none; }
body[data-zt-estilo="plano"] .sidebar { box-shadow: none; }

/* Tema CLARO (Sakura 🌸): conteúdo claro + sidebar escura (padrão dashboards modernos) */
body[data-zt-estilo="claro"] { background: #eef1f8; }
body[data-zt-estilo="claro"] .content-wrapper {
background-image: none !important;
background-color: #eef1f8 !important;
}
body[data-zt-estilo="claro"] .navbar {
background: rgba(255, 255, 255, 0.88) !important;
border-bottom: 1px solid rgb(var(--zt-accent-rgb) / 0.2) !important;
}
body[data-zt-estilo="claro"] .navbar .navbar-profile-name { color: #2d2346 !important; }
body[data-zt-estilo="claro"] .form-control::placeholder, 
body[data-zt-estilo="claro"] .navbar form.search input::placeholder { color: #9aa0b5 !important; }
body[data-zt-estilo="claro"] .navbar form.search input {
background: #fff !important;
color: #2d2346 !important;
border: 1px solid rgba(45, 35, 70, 0.16) !important;
}
body[data-zt-estilo="claro"] .main-panel .card {
background: #ffffff !important;
border: 1px solid rgb(var(--zt-accent-rgb) / 0.28) !important;
box-shadow: 0 10px 26px rgba(20, 24, 60, 0.12);
}
body[data-zt-estilo="claro"] .main-panel .card h5.text-uppercase {
background: none;
-webkit-background-clip: border-box;
background-clip: border-box;
color: #2d2346 !important;
}
body[data-zt-estilo="claro"] .main-panel .card h6,
body[data-zt-estilo="claro"] .main-panel .card p,
body[data-zt-estilo="claro"] .main-panel .card font,
body[data-zt-estilo="claro"] .main-panel .card h8,
body[data-zt-estilo="claro"] .main-panel .card h5 { color: #3a3f55 !important; }
body[data-zt-estilo="claro"] .main-panel .card .text-white-50 { color: #6b7280 !important; }
body[data-zt-estilo="claro"] .text-muted { color: #6b7280 !important; }
body[data-zt-estilo="claro"] .main-panel form .form-control {
background: #fff !important;
color: #2d2346 !important;
border: 1px solid rgba(45, 35, 70, 0.2) !important;
}
body[data-zt-estilo="claro"] .zt-stat-big { color: #2d2346; }
body[data-zt-estilo="claro"] .zt-stat-big small { color: #6b7280; }
body[data-zt-estilo="claro"] .zt-stat-sub { color: #6b7280; }
body[data-zt-estilo="claro"] .zt-stat-bar { background: rgba(45, 35, 70, 0.1); }
body[data-zt-estilo="claro"] .zt-rota-nome { color: #3a3f55; }
body[data-zt-estilo="claro"] .zt-top1 .zt-rota-nome { color: #2d2346; }
body[data-zt-estilo="claro"] .zt-rota-barra { background: rgba(45, 35, 70, 0.1); }
body[data-zt-estilo="claro"] .zt-bg-fx .blob { opacity: 0.18; filter: blur(80px); }

/* ═══ v3.8.0 — LAYOUT: sidebar na DIREITA (desktop) ═══ */
@media (min-width: 992px) {
body[data-zt-layout="dir"] .sidebar {
order: 2;
border-right: none !important;
border-left: 1px solid rgb(var(--zt-accent-rgb) / 0.14) !important;
}
body[data-zt-layout="dir"] .page-body-wrapper { order: 1; }
body[data-zt-layout="dir"] .sidebar .nav .nav-item.menu-items:hover { transform: translateX(-3px); }
body[data-zt-layout="dir"] .sidebar .sub-menu .nav-item .nav-link::before { left: auto; right: 0; }
}

/* ═══════ v3.9.0 ═══════ */
/* 1) Cores REAIS dos ícones das categorias: o template Corona pintava os
   ícones por posição (nth-child 5n+1 azul, 5n+2 verde... e ainda tinha o
   erro de digitação "5n+Oi4" que invalidava uma regra). Agora os ícones
   seguem as cores REAIS do tema ativo, alternando accent/accent-2. */
.sidebar .nav .menu-items .nav-link .menu-icon i { color: var(--zt-accent) !important; transition: color 0.35s ease, text-shadow 0.3s ease; }
.sidebar .nav .menu-items:nth-child(even) .nav-link .menu-icon i { color: var(--zt-accent-2) !important; }
.sidebar .nav .nav-item.menu-items .nav-link:hover .menu-icon i,
.sidebar .nav .nav-item.menu-items .nav-link[aria-expanded="true"] .menu-icon i {
text-shadow: 0 0 10px rgb(var(--zt-accent-rgb) / 0.75) !important;
}

/* 2) Troca de tema com transição suave (liga só por ~480ms a cada clique,
   sem sacrificar performance nem brigar com o modo zt-no-anim) */
html.zt-tema-transicao body,
html.zt-tema-transicao .content-wrapper,
html.zt-tema-transicao .navbar,
html.zt-tema-transicao .sidebar,
html.zt-tema-transicao .sidebar .nav .nav-item .nav-link,
html.zt-tema-transicao .main-panel .card,
html.zt-tema-transicao .form-control,
html.zt-tema-transicao .btn,
html.zt-tema-transicao .dropdown-menu,
html.zt-tema-transicao .zt-theme-panel,
html.zt-tema-transicao .table,
html.zt-tema-transicao .menu-icon i {
transition: background 0.35s ease, background-color 0.35s ease, color 0.3s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
}

/* 3) Novos cards em tempo real (API ao vivo / Servidor) */
.zt-srv-top {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 8px;
margin: 2px 0 6px;
}
.zt-clock {
font-size: 1.9rem;
font-weight: 800;
letter-spacing: 0.06em;
line-height: 1;
font-variant-numeric: tabular-nums;
background: linear-gradient(135deg, var(--zt-accent), var(--zt-accent-2));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
filter: drop-shadow(0 0 10px rgb(var(--zt-accent-rgb) / 0.35));
}
.zt-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.zt-chip {
font-size: 0.66rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 4px 9px;
border-radius: 999px;
color: var(--zt-accent);
background: rgb(var(--zt-accent-rgb) / 0.1);
border: 1px solid rgb(var(--zt-accent-rgb) / 0.28);
white-space: nowrap;
}
.zt-meter { margin-top: 12px; }
.zt-meter-top {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 0.78rem;
font-weight: 600;
color: rgba(255, 255, 255, 0.8);
margin-bottom: 5px;
}
.zt-meter-top span:last-child {
font-weight: 800;
font-variant-numeric: tabular-nums;
}
.zt-meter-trilha {
display: block;
height: 8px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.08);
overflow: hidden;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.zt-meter-trilha > span {
display: block;
height: 100%;
width: 0%;
border-radius: 999px;
transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease, box-shadow 0.4s ease;
}
.zt-meter-trilha > span.zt-frio {
background: linear-gradient(90deg, var(--zt-accent), var(--zt-accent-2));
box-shadow: 0 0 10px rgb(var(--zt-accent-rgb) / 0.5);
}
.zt-meter-trilha > span.zt-morno {
background: linear-gradient(90deg, #ffb020, #ff7a1a);
box-shadow: 0 0 10px rgba(255, 176, 32, 0.5);
}
.zt-meter-trilha > span.zt-quente {
background: linear-gradient(90deg, #ff4d6d, #ff1e4f);
box-shadow: 0 0 10px rgba(255, 77, 109, 0.55);
animation: ztMeterPulse 1.6s ease-in-out infinite;
}
@keyframes ztMeterPulse {
0%, 100% { filter: brightness(1); }
50% { filter: brightness(1.35); }
}
/* Tema claro: textos dos medidores/chips legíveis */
body[data-zt-estilo="claro"] .zt-meter-top { color: #4a5068; }
body[data-zt-estilo="claro"] .zt-meter-trilha { background: rgba(20, 24, 40, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12); }
body[data-zt-estilo="claro"] .zt-swatch-nome { color: rgba(30, 34, 54, 0.85); }
body[data-zt-estilo="claro"] .zt-swatch.active .zt-swatch-nome { color: #1c1f2e; }
body[data-zt-estilo="claro"] .zt-swatch.active .zt-swatch-bg { border-color: rgb(var(--zt-accent-rgb) / 0.9); box-shadow: 0 0 0 2px rgb(var(--zt-accent-rgb) / 0.35), 0 6px 16px rgba(0, 0, 0, 0.18); }

/* Swatches: grade um pouco mais compacta em telas estreitas */
@media (max-width: 480px) {
.zt-swatches { grid-template-columns: repeat(3, 1fr); max-height: 300px; }
.zt-clock { font-size: 1.55rem; }
}

/* ═══════ v4.0.0 ═══════ */
/* 1) OVERLAY VISÍVEL: os blobs estavam com opacidade baixa demais sobre o
   wallpaper (foto clara) e praticamente sumiam. Agora brilham de verdade
   (screen + opacidade maior), continuando atrás dos cards. */
.zt-bg-fx .blob { opacity: 0.55; filter: blur(64px); mix-blend-mode: screen; }
.zt-bg-fx .b1 { background: radial-gradient(circle at 35% 35%, rgb(var(--zt-accent-rgb) / 0.85), transparent 68%); }
.zt-bg-fx .b2 { background: radial-gradient(circle at 60% 40%, rgb(var(--zt-accent-2-rgb) / 0.8), transparent 68%); }
.zt-bg-fx .b3 { background: radial-gradient(circle at 50% 45%, rgb(var(--zt-accent-rgb) / 0.62), transparent 70%); }
.zt-bg-fx .b4 { background: radial-gradient(circle at 40% 60%, rgb(var(--zt-accent-2-rgb) / 0.6), transparent 72%); }
body[data-zt-estilo="neon"] .zt-bg-fx .blob { opacity: 0.75; filter: blur(54px); }
body[data-zt-estilo="claro"] .zt-bg-fx .blob { opacity: 0.4; filter: blur(70px); mix-blend-mode: normal; }
body[data-zt-estilo="plano"] .zt-bg-fx { display: none; }

/* 2) TEMA DARK = PRETO DE VERDADE (o "bonitão"): fundo quase #000 total,
   wallpaper bem escurecido, cards grafite-escuro, brilho accent mais forte. */
body[data-zt-theme="dark"] { --zt-sidebar-bg: linear-gradient(180deg, #08080c 0%, #050507 55%, #0a0a10 100%); }
body[data-zt-theme="dark"] .page-body-wrapper,
body[data-zt-theme="dark"] .main-panel { background: #000; }
body[data-zt-theme="dark"] .content-wrapper {
background-image: linear-gradient(rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.66)), url('./fundo.jpg') !important;
background-color: #000;
}
body[data-zt-theme="dark"] .main-panel .card {
background: #0b0b11 !important;
border-color: rgb(var(--zt-accent-rgb) / 0.22) !important;
}
body[data-zt-theme="dark"] .main-panel .card:hover { box-shadow: 0 16px 42px rgb(var(--zt-accent-rgb) / 0.22); }
body[data-zt-theme="dark"] .navbar { background: rgba(5, 5, 8, 0.93) !important; }
body[data-zt-theme="dark"] .sidebar { box-shadow: 4px 0 28px rgba(0, 0, 0, 0.75) !important; }
body[data-zt-theme="dark"] .form-control,
body[data-zt-theme="dark"] .main-panel form .form-control { background: #101016 !important; }

/* 3) Card 🛡️ Segurança & Tráfego */
.zt-seg-grid {
display: grid;
grid-template-columns: 1fr 1.15fr 1.35fr;
gap: 18px;
align-items: stretch;
margin-top: 4px;
}
.zt-seg-col { min-width: 0; }
.zt-stat-big-lg { font-size: 2.5rem !important; }
.zt-stat-big-lg i { font-size: 2rem !important; }
.zt-seg-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
align-content: center;
}
.zt-mini-stat {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 3px;
text-align: center;
padding: 10px 6px;
border-radius: var(--zt-radius-sm);
background: rgb(var(--zt-accent-rgb) / 0.07);
border: 1px solid rgb(var(--zt-accent-rgb) / 0.18);
}
.zt-mini-valor {
font-size: 1.35rem;
font-weight: 800;
line-height: 1;
font-variant-numeric: tabular-nums;
color: var(--zt-accent);
}
.zt-mini-rotulo {
font-size: 0.62rem;
text-transform: uppercase;
letter-spacing: 0.04em;
color: rgba(255, 255, 255, 0.6);
}
.zt-seg-aviso {
display: flex;
flex-direction: column;
justify-content: center;
gap: 6px;
padding: 12px 14px;
border-radius: var(--zt-radius-sm);
border: 1px solid;
transition: background 0.4s ease, border-color 0.4s ease;
}
.zt-seg-aviso i { font-size: 1.7rem; }
.zt-seg-aviso b { font-size: 0.92rem; line-height: 1.25; }
.zt-seg-aviso span { font-size: 0.75rem; opacity: 0.85; line-height: 1.4; }
.zt-aviso-n0 { background: rgba(0, 210, 91, 0.08); border-color: rgba(0, 210, 91, 0.3); color: #b9ffd9; }
.zt-aviso-n0 i { color: #00d25b; }
.zt-aviso-n1 { background: rgba(255, 171, 0, 0.09); border-color: rgba(255, 171, 0, 0.35); color: #ffecc4; }
.zt-aviso-n1 i { color: #ffab00; }
.zt-aviso-n2 { background: rgba(252, 66, 74, 0.11); border-color: rgba(252, 66, 74, 0.45); color: #ffd2d5; }
.zt-aviso-n2 i { color: #fc424a; animation: ztSegPisca 1.2s ease-in-out infinite; }
@keyframes ztSegPisca { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(1.12); } }
.zt-badge-seg {
font-size: 0.6rem;
font-weight: 800;
letter-spacing: 0.07em;
padding: 4px 10px;
margin-left: 8px;
border-radius: 999px;
vertical-align: middle;
white-space: nowrap;
transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.zt-badge-n0 { background: rgba(0, 210, 91, 0.14); color: #00d25b; box-shadow: 0 0 12px rgba(0, 210, 91, 0.25); }
.zt-badge-n1 { background: rgba(255, 171, 0, 0.16); color: #ffab00; box-shadow: 0 0 12px rgba(255, 171, 0, 0.3); }
.zt-badge-n2 { background: rgba(252, 66, 74, 0.18); color: #fc424a; box-shadow: 0 0 14px rgba(252, 66, 74, 0.4); animation: ztSegPisca 1.2s ease-in-out infinite; }
body[data-zt-estilo="claro"] .zt-mini-rotulo { color: #5b6079; }
body[data-zt-estilo="claro"] .zt-aviso-n0 { color: #0c5c30; }
body[data-zt-estilo="claro"] .zt-aviso-n1 { color: #7a5200; }
body[data-zt-estilo="claro"] .zt-aviso-n2 { color: #8f1a21; }
@media (max-width: 991px) {
.zt-seg-grid { grid-template-columns: 1fr; gap: 12px; }
.zt-seg-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
.zt-seg-stats { grid-template-columns: 1fr; }
.zt-mini-stat { flex-direction: row; justify-content: space-between; padding: 8px 12px; }
}

/* 4) 📥 Menu de Downloads (v4.0.1) — itens largos, título SEM truncar,
   um único Termux com chip de versão + infos em tempo real */
.zero-two-menu { padding: 0 2px; }
.zero-two-menu .zt-dl-cat .nav-link {
cursor: pointer;
user-select: none;
display: flex;
align-items: center;
}
.zt-dl-cat-ico {
margin-right: 6px;
font-size: 0.95rem;
background: none !important;
color: var(--zt-accent) !important;
-webkit-text-fill-color: var(--zt-accent);
}
.zt-dl-seta {
margin-left: auto;
font-size: 1rem;
background: none !important;
color: var(--zt-accent-2) !important;
-webkit-text-fill-color: var(--zt-accent-2);
transition: transform 0.3s ease;
}
.zero-two-menu.zt-fechado .zt-dl-seta { transform: rotate(-90deg); }

.zero-two-menu .submenu { display: block; margin: 4px 2px 10px; }
.zero-two-menu .zt-dl-item { margin: 6px 4px !important; }
.sidebar .zero-two-menu .zt-dl-item > .nav-link {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px !important;
border: 1px solid rgba(255, 255, 255, 0.09);
background: rgba(255, 255, 255, 0.03);
border-radius: 12px;
white-space: normal;
}
.sidebar .zero-two-menu .zt-dl-item > .nav-link:hover {
border-color: rgb(var(--zt-accent-rgb) / 0.55);
background: rgb(var(--zt-accent-rgb) / 0.10);
box-shadow: 0 4px 14px rgb(var(--zt-accent-rgb) / 0.18);
}
.sidebar .zero-two-menu .zt-dl-item .menu-icon { margin-right: 0; }
.zt-dl-texto {
flex: 1 1 auto;
min-width: 0;
display: flex;
flex-direction: column;
gap: 3px;
}
/* o título aqui NÃO trunca: quebra normal e ocupa a largura toda */
.sidebar .zero-two-menu .nav-item.menu-items > .nav-link .menu-title {
overflow: visible;
text-overflow: clip;
white-space: normal;
display: flex;
align-items: center;
gap: 7px;
flex-wrap: wrap;
line-height: 1.25;
}
.zt-termux-versao {
flex: 0 0 auto;
padding: 2px 8px;
border-radius: 999px;
font-size: 0.62rem;
font-weight: 800;
letter-spacing: 0.03em;
background: linear-gradient(135deg, var(--zt-accent), var(--zt-accent-2));
color: #fff;
box-shadow: 0 2px 8px rgb(var(--zt-accent-rgb) / 0.45);
}
.zt-dl-info {
font-size: 0.68rem;
font-weight: 500;
line-height: 1.4;
letter-spacing: 0.01em;
color: rgba(255, 255, 255, 0.55);
white-space: normal;
}
.zt-dl-go {
flex: 0 0 auto;
margin-left: auto;
font-size: 1.05rem;
color: rgba(255, 255, 255, 0.32);
transition: color 0.25s ease, transform 0.25s ease;
}
.sidebar .zero-two-menu .zt-dl-item > .nav-link:hover .zt-dl-go {
color: var(--zt-accent);
transform: translateX(2px);
}
/* destaque especial pro item do Termux (coração da scraper 🔥) */
.sidebar .zero-two-menu .zt-termux-item > .nav-link {
border-color: rgb(var(--zt-accent-rgb) / 0.38);
background: linear-gradient(135deg, rgb(var(--zt-accent-rgb) / 0.12), rgb(var(--zt-accent-rgb) / 0.03));
}
.zt-dl-nota {
padding: 3px 12px 8px;
font-size: 0.64rem;
line-height: 1.45;
color: rgba(255, 255, 255, 0.42);
}
body[data-zt-estilo="claro"] .sidebar .zero-two-menu .zt-dl-item > .nav-link {
background: rgba(0, 0, 0, 0.04);
border-color: rgba(0, 0, 0, 0.10);
}
body[data-zt-estilo="claro"] .sidebar .zero-two-menu .zt-termux-item > .nav-link {
background: linear-gradient(135deg, rgb(var(--zt-accent-rgb) / 0.14), rgb(var(--zt-accent-rgb) / 0.05));
border-color: rgb(var(--zt-accent-rgb) / 0.45);
}
body[data-zt-estilo="claro"] .zt-dl-info { color: rgba(0, 0, 0, 0.55); }
body[data-zt-estilo="claro"] .zt-dl-go { color: rgba(0, 0, 0, 0.35); }
body[data-zt-estilo="claro"] .zt-dl-nota { color: rgba(0, 0, 0, 0.50); }

/* ─── 5) Menu de Downloads — correções v4.0.2 ───
   • docscss/styles.css antigo enfiava um "▶" via ::after em EVERY nav-link
     do menu (era o triângulo misterioso!) e ainda apertava o submenu com
     margin-left:20px + padding:10px + color transparent + text-shadow + animação
   • Corona fixa .nav-link em 46px (cortava as 2 linhas de texto do card)
     com border-radius pill (0 100px 100px 0) e white-space: nowrap */
.zero-two-menu .nav-link::after { content: none !important; }
.sidebar .zero-two-menu .zt-dl-item > .nav-link {
height: auto !important;
min-height: 0;
color: #eef0f8;
text-shadow: none;
animation: none;
border-radius: 12px;
white-space: normal;
}
.sidebar .zero-two-menu .zt-dl-item > .nav-link:hover { transform: none; }
.zero-two-menu .submenu {
padding: 0 !important;
margin-left: 0 !important;
width: 100%;
}

/* ══════════════════════════════════════════════════════════════════════
   v4.0.3 — TERMUX WEB (chip F-Droid) + SOCIAIS/SUPORTE EM CARDS
   + UPLOAD como painel de cards (mesmo padrão visual do menu de downloads)
   ══════════════════════════════════════════════════════════════════════ */

/* chip do F-Droid: verde-esmeralda pra distinguir da fonte GitHub */
.zt-termuxweb-versao {
background: linear-gradient(135deg, #00b483, #00c8ff);
box-shadow: 0 2px 8px rgba(0, 200, 160, 0.45);
}
.sidebar .zero-two-menu .zt-termuxweb-item > .nav-link:hover {
border-color: rgba(0, 200, 160, 0.5);
box-shadow: 0 8px 20px -8px rgba(0, 200, 160, 0.35);
}

/* código solto dentro da nota do menu (ex.: /api/download/termux-web?modo=estavel) */
.zt-dl-nota code {
padding: 1px 6px;
border-radius: 6px;
background: rgb(var(--zt-accent-rgb) / 0.16);
color: #ffc9dd;
font-size: 0.72rem;
}
body[data-zt-estilo="claro"] .zt-dl-nota code { color: #c2185b; }

/* ─── Sociais/suporte em cards (fora do .zero-two-menu, por isso regra própria) ─── */
.zt-social-item { margin: 6px 4px !important; }
.sidebar .zt-social-item > .nav-link {
height: auto !important;
min-height: 0 !important;
white-space: normal !important;
border-radius: 12px !important;
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px !important;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.07);
color: #eef0f8 !important;
text-shadow: none !important;
animation: none !important;
transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.sidebar .zt-social-item > .nav-link::after { content: none !important; }
.sidebar .zt-social-item > .nav-link:hover {
transform: translateX(4px);
background: rgba(255, 255, 255, 0.06);
border-color: rgb(var(--zt-accent-rgb) / 0.5);
}
.sidebar .zt-social-item .menu-icon {
margin-right: 0;
width: 34px;
height: 34px;
border-radius: 10px;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1.15rem;
background: rgb(var(--zt-accent-rgb) / 0.14);
}
.sidebar .zt-social-item .menu-title { white-space: normal; line-height: 1.25; }
body[data-zt-estilo="claro"] .sidebar .zt-social-item > .nav-link {
background: rgba(0, 0, 0, 0.04);
border-color: rgba(0, 0, 0, 0.07);
color: #1a1d28 !important;
}
body[data-zt-estilo="claro"] .sidebar .zt-social-item > .nav-link:hover { background: rgba(0, 0, 0, 0.07); }

/* ─── UPLOAD: dropdown vira painel frosted com linhas em card ─── */
.dropdown-menu.zt-upload-panel {
background: rgba(16, 18, 26, 0.92);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: 14px;
padding: 8px;
min-width: 268px;
box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
}
.dropdown-menu.zt-upload-panel > li { margin: 0 0 6px; }
.dropdown-menu.zt-upload-panel > li:last-child { margin-bottom: 0; }
.dropdown-menu.zt-upload-panel .dropdown-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.06);
color: #eef0f8;
white-space: normal;
height: auto;
transition: background 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}
.dropdown-menu.zt-upload-panel .dropdown-item > i:first-child { font-size: 1.25rem; }
.dropdown-menu.zt-upload-panel .dropdown-item:hover,
.dropdown-menu.zt-upload-panel .dropdown-item:focus {
background: rgb(var(--zt-accent-rgb) / 0.14);
border-color: rgb(var(--zt-accent-rgb) / 0.45);
color: #ffffff;
transform: translateX(3px);
}
.dropdown-menu.zt-upload-panel .zt-dl-texto { flex: 1 1 auto; min-width: 0; }
.zt-upload-titulo {
font-weight: 700;
font-size: 0.86rem;
color: inherit;
}
body[data-zt-estilo="claro"] .dropdown-menu.zt-upload-panel {
background: rgba(255, 255, 255, 0.9);
border-color: rgba(0, 0, 0, 0.08);
}
body[data-zt-estilo="claro"] .dropdown-menu.zt-upload-panel .dropdown-item {
background: rgba(0, 0, 0, 0.035);
border-color: rgba(0, 0, 0, 0.06);
color: #1a1d28;
}
body[data-zt-estilo="claro"] .dropdown-menu.zt-upload-panel .dropdown-item:hover,
body[data-zt-estilo="claro"] .dropdown-menu.zt-upload-panel .dropdown-item:focus {
background: rgb(var(--zt-accent-rgb) / 0.12);
color: #11131c;
}

/* ══════════════════════════════════════════════════════════════════════
   v4.0.5 — DROPDOWNS DO SIDEBAR: acordeão IN-FLOW (com ou sem Bootstrap)
   Antes: menu flutuava via Popper dentro da gaveta overflow:auto e não
   abria / clique vazava e fechava a gaveta no celular.
   Agora: .dropdown-menu abre como acordeão no fluxo (.zt-aberto/.show).
   ══════════════════════════════════════════════════════════════════════ */
.sidebar .nav-item.dropdown .dropdown-menu,
#sidebar .nav-item.dropdown .dropdown-menu {
position: static !important;
transform: none !important;
inset: auto !important;
float: none !important;
width: 100% !important;
min-width: 0 !important;
margin: 6px 2px 4px !important;
box-shadow: none;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: 12px;
padding: 6px 8px;
display: none;
}
.sidebar .nav-item.dropdown .dropdown-menu.show,
.sidebar .nav-item.dropdown .dropdown-menu.zt-aberto,
#sidebar .nav-item.dropdown .dropdown-menu.show,
#sidebar .nav-item.dropdown .dropdown-menu.zt-aberto {
display: block !important;
}
/* itens do dropdown um por linha, com respiro (antes ficavam esmagados) */
.sidebar .nav-item.dropdown .dropdown-menu > li { width: 100%; margin: 2px 0; }
.sidebar .nav-item.dropdown .dropdown-menu .dropdown-item {
white-space: normal;
border-radius: 8px;
padding: 8px 10px;
}
/* setinha do toggle gira quando aberto (fallback pro caret do Bootstrap) */
.sidebar .nav-item.dropdown.show > .nav-link.dropdown-toggle::after,
#sidebar .nav-item.dropdown.show > .nav-link.dropdown-toggle::after {
transform: rotate(180deg);
}
.sidebar .nav-item.dropdown > .nav-link.dropdown-toggle::after,
#sidebar .nav-item.dropdown > .nav-link.dropdown-toggle::after {
transition: transform 0.18s ease;
}
/* UPLOAD (zt-upload-panel) continua com o visual de painel mesmo regras acima */
body[data-zt-estilo="claro"] .sidebar .nav-item.dropdown .dropdown-menu {
background: rgba(0, 0, 0, 0.04);
border-color: rgba(0, 0, 0, 0.08);
}

/* ══════════════════════════════════════════════════════════════════════
   v4.0.8 — seta das categorias gira com o acordeão próprio (sem Bootstrap)
   ══════════════════════════════════════════════════════════════════════ */
.sidebar a[data-bs-toggle="collapse"] .menu-arrow,
.sidebar a[data-toggle="collapse"] .menu-arrow,
#sidebar a[data-bs-toggle="collapse"] .menu-arrow,
#sidebar a[data-toggle="collapse"] .menu-arrow {
transition: transform 0.18s ease;
}
.sidebar a[aria-expanded="true"] .menu-arrow,
#sidebar a[aria-expanded="true"] .menu-arrow {
transform: rotate(90deg);
}
