/* ============================================
   DARK THEME VARIABLES
   ============================================ */
:root {
    --dark-base: #07090d;
    --dark-elevated: #0f1419;
    --dark-card: #1a1f24;
    --dark-border: rgba(255, 255, 255, 0.1);
    --text-primary: rgba(255, 255, 255, 0.9);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --accent-green: #32e768; /* Fallback - será sobrescrito por --accent-primary do load_settings.php */
    --accent-primary: var(--accent-green); /* Fallback padrão - será sobrescrito dinamicamente */
    --accent-primary-hover: #28d15e; /* Fallback padrão - será sobrescrito dinamicamente */
}

/* Estilos para complementar o TailwindCSS e customizar o Payment Brick do Mercado Pago.
*/
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dark Theme Background Classes */
.bg-dark-base {
    background-color: var(--dark-base);
}

.bg-dark-elevated {
    background-color: var(--dark-elevated);
}

.bg-dark-card {
    background-color: var(--dark-card);
}

/* Customização do botão principal do Mercado Pago */
.mercadopago-button {
    background-color: var(--accent-color, #00A3FF) !important; /* Usa a cor de destaque definida no PHP */
    transition: filter 0.2s ease !important;
    font-size: 1.125rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.mercadopago-button:hover {
    filter: brightness(1.1);
}


/* Novo Estilo para o Resumo Final */
.checkout-summary-box {
    background-color: #f9fafb; /* Cinza claro */
    border: 1px solid #e5e7eb; /* Borda sutil */
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

/* Estilo para a linha tracejada */
.checkout-summary-box hr {
    border-top-style: dashed;
}

/* ============================================
   GLASSMORPHISM SIDEBAR - MODERN DESIGN
   ============================================ */

/* Base para responsividade do menu lateral */
/* Sidebar oculta por padrão em telas pequenas */
#sidebar, #admin-sidebar {
    position: fixed;
    top: 0; /* Full height - cobre o header */
    bottom: 0;
    left: 0;
    z-index: 50; /* Acima do header (z-50) */
    width: 100%;
    max-width: 280px; /* Largura máxima para mobile */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Sidebar Header (Logo Area) */
.sidebar-header {
    padding: 1.25rem 0.75rem;
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
}

.sidebar-header img {
    max-height: 100px;
    width: auto;
    max-width: 100%;
}

/* Sidebar Footer (User Controls) */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--dark-border);
    margin-top: auto;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background 0.2s ease;
}

.sidebar-user-info:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

.sidebar-user-name {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.sidebar-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sidebar-control-btn {
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-control-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.sidebar-control-btn.logout:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Glassmorphism Effect - Modern Glass */
.sidebar-glass {
    background: rgba(15, 20, 25, 0.6) !important;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-right: 1px dashed rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Sidebar Items - Base Styles */
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
}

/* Estado Inativo */
.sidebar-item-inactive {
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-item-inactive:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-item-inactive i {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.sidebar-item-inactive:hover i {
    color: rgba(255, 255, 255, 0.9);
}

/* Estado Ativo - Clean Design */
/* As cores são definidas dinamicamente via load_settings.php */
.sidebar-item-active {
    font-weight: 600;
}

/* Sidebar visível quando a classe 'open' é aplicada */
#sidebar.open, #admin-sidebar.open {
    transform: translateX(0);
}

/* Overlay para fechar o menu ao clicar fora (mobile) */
#sidebar-overlay, #admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 30;
    display: none; /* Oculto por padrão */
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

/* Overlay visível quando a classe 'open' é aplicada */
#sidebar-overlay.open, #admin-sidebar-overlay.open {
    display: block;
    opacity: 1;
}

/*
   Ajuste do conteúdo principal
   As regras de `margin-left`, `flex-grow`, `padding` e `overflow-y`
   agora são controladas diretamente pelas classes do Tailwind CSS
   aplicadas no HTML dos arquivos `index.php` e `admin.php`.
   Remover regras genéricas aqui evita conflitos com o layout de `checkout.php`.
*/
/* main {
    margin-left: 0;
    flex-grow: 1;
    overflow-y: auto;
} */ /* REMOVIDO: Regras específicas para 'main' agora são definidas no HTML com Tailwind */

/* Oculta o botão de toggle em telas maiores que md */
#sidebar-toggle, #admin-sidebar-toggle {
    display: flex; /* Visível por padrão em mobile */
}

/* Media query para telas maiores (desktop) */
@media (min-width: 768px) { /* md breakpoint (768px) */
    #sidebar, #admin-sidebar {
        transform: translateX(0); /* Sempre visível em desktop */
        width: 256px; /* md:w-64 */
    }

    #sidebar-toggle, #admin-sidebar-toggle {
        display: none; /* Oculta em desktop */
    }

    #sidebar-overlay, #admin-sidebar-overlay {
        display: none !important; /* Nunca visível em desktop */
        opacity: 0 !important;
    }
}

/* Dark Theme Card Styles */
.dark-card {
    background-color: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 0.75rem;
    color: var(--text-primary);
}

.dark-card-header {
    border-bottom: 1px solid var(--dark-border);
    padding: 1rem 1.5rem;
}

.dark-card-body {
    padding: 1.5rem;
}

.dark-input {
    background-color: var(--dark-elevated);
    border: 1px solid var(--dark-border);
    color: var(--text-primary);
}

.dark-input:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb, 50, 231, 104), 0.1);
}

.dark-input::placeholder {
    color: var(--text-muted);
}

/* Header: segue variáveis do tema (white/black/especial/sistema) */
header.fixed {
    background: color-mix(in srgb, var(--dark-base) 82%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ============================================
   Painel estilo Cartpanda (admin + infoprodutor)
   ============================================ */
.theme-cartpanda {
    --cp-card-radius: 1rem;
    --cp-sidebar-tint: rgba(18, 22, 28, 0.92);
}

.theme-cartpanda .sidebar-glass {
    background: linear-gradient(180deg, var(--cp-sidebar-tint) 0%, rgba(10, 12, 16, 0.97) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.theme-cartpanda .sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-cartpanda .sidebar-item {
    border-radius: 0.625rem;
    margin: 0.2rem 0.4rem;
}

.theme-cartpanda .sidebar-item-active {
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent-primary) 22%, transparent), rgba(255, 255, 255, 0.04)) !important;
    color: #fff !important;
    border-left: 3px solid var(--accent-primary);
    padding-left: calc(1rem - 3px);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--accent-primary) 15%, transparent);
}

.theme-cartpanda .sidebar-item-active i {
    color: var(--accent-primary) !important;
}

.theme-cartpanda main.flex-1,
.theme-cartpanda .admin-main-inner {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, color-mix(in srgb, var(--accent-primary) 12%, transparent), transparent 55%),
        var(--dark-base);
}

.theme-cartpanda .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar) {
    border-radius: var(--cp-card-radius);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-cartpanda .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar):hover {
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
}

.theme-cartpanda .panel-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--cp-card-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
}

/* ============================================
   Tema claro (painéis admin + infoprodutor)
   ============================================ */
html.theme-light {
    --dark-base: #eef1f5;
    --dark-elevated: #e2e8f0;
    --dark-card: #ffffff;
    --dark-border: rgba(15, 23, 42, 0.12);
    --text-primary: rgba(15, 23, 42, 0.92);
    --text-secondary: rgba(15, 23, 42, 0.72);
    --text-muted: rgba(15, 23, 42, 0.5);
    --cp-sidebar-tint: rgba(255, 255, 255, 0.94);
}

html.theme-light header.fixed {
    background: rgba(255, 255, 255, 0.88) !important;
    border-bottom: 1px solid var(--dark-border);
}

html.theme-light .sidebar-glass {
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

html.theme-light .sidebar-item-inactive {
    color: var(--text-secondary);
}

html.theme-light .sidebar-item-inactive:hover {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-primary);
}

html.theme-light .sidebar-item-inactive i {
    color: var(--text-muted);
}

html.theme-light .theme-cartpanda .sidebar-glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.96) 100%) !important;
    border-right: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.06);
}

html.theme-light .theme-cartpanda .sidebar-header {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

html.theme-light .theme-cartpanda .sidebar-item-active {
    color: var(--text-primary) !important;
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent-primary) 18%, transparent), rgba(15, 23, 42, 0.04)) !important;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--accent-primary) 12%, transparent);
}

html.theme-light .theme-cartpanda main.flex-1,
html.theme-light .theme-cartpanda .admin-main-inner {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, color-mix(in srgb, var(--accent-primary) 8%, transparent), transparent 55%),
        var(--dark-base);
}

html.theme-light .theme-cartpanda .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar) {
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

html.theme-light .theme-cartpanda .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar):hover {
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

html.theme-light .text-white:not(.text-on-accent) {
    color: var(--text-primary) !important;
}

html.theme-light .text-gray-300 {
    color: var(--text-secondary) !important;
}

html.theme-light .text-gray-400 {
    color: var(--text-muted) !important;
}

/* Rótulos com text-gray-200 (ex.: notificações) ficam invisíveis no cartão branco sem isto */
html.theme-light .text-gray-200 {
    color: var(--text-secondary) !important;
}

html.theme-light .text-gray-500 {
    color: var(--text-muted) !important;
}

html.theme-light button.text-white[style*="accent-primary"],
html.theme-light a.text-white[style*="accent-primary"] {
    color: #fff !important;
}

html.theme-light .border-dark-border {
    border-color: var(--dark-border) !important;
}

html.theme-light .live-notification-container {
    background-color: var(--dark-card);
    border-color: var(--dark-border);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.12);
}

html.theme-light .live-notification-container .text-gray-900 {
    color: var(--text-primary) !important;
}

html.theme-light .live-notification-container .text-gray-500 {
    color: var(--text-muted) !important;
}

/* Cartões com borda: no tema claro usar borda neutra (evita verde fixo do legado) */
html.theme-light div.bg-dark-card.border,
html.theme-light .bg-dark-card.border {
    border-color: var(--dark-border) !important;
}

/* Saques / avisos de taxa: âmbar claro some no fundo branco */
html.theme-light .saques-fee-note-out {
    color: #92400e !important;
}

html.theme-light .saques-fee-note-out strong {
    color: #713f12 !important;
}

html.theme-light .saques-fee-note-in {
    color: var(--text-muted) !important;
}

/* ============================================
   Presets nomeados (data-panel-theme no <html>)
   ============================================ */
html[data-panel-theme="cartpanda"].theme-light {
    --dark-base: #f8fafc;
    --dark-elevated: #ffffff;
    --dark-card: #ffffff;
    --dark-border: rgba(15, 23, 42, 0.09);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
}

html[data-panel-theme="light"].theme-light {
    --dark-base: #fff8f2;
    --dark-elevated: #ffffff;
    --dark-card: #ffffff;
    --dark-border: rgba(234, 88, 12, 0.2);
    --text-primary: #1c1917;
    --text-secondary: #44403c;
    --text-muted: #78716c;
}

html[data-panel-theme="dark"].theme-dark {
    --dark-base: #0a0a0a;
    --dark-elevated: #141414;
    --dark-card: #161616;
    --dark-border: rgba(255, 255, 255, 0.09);
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.48);
}

html[data-panel-theme="system"].theme-light {
    --dark-base: #e2e8f0;
    --dark-elevated: #f1f5f9;
    --dark-card: #ffffff;
    --dark-border: rgba(15, 23, 42, 0.11);
}

html[data-panel-theme="system"].theme-dark {
    --dark-base: #0f1218;
    --dark-elevated: #181c24;
    --dark-card: #1c212c;
    --dark-border: rgba(255, 255, 255, 0.08);
}

/* Grade + halos sutis (referência Cartpanda) — só preset cartpanda */
html[data-panel-theme="cartpanda"].theme-light body.theme-cartpanda::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        radial-gradient(ellipse 70% 50% at 15% 20%, rgba(37, 99, 235, 0.07), transparent 50%),
        radial-gradient(ellipse 60% 45% at 85% 75%, rgba(59, 130, 246, 0.06), transparent 45%);
    background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%;
}

html[data-panel-theme="cartpanda"].theme-light body.theme-cartpanda > main.flex-1,
html[data-panel-theme="cartpanda"].theme-light body.theme-cartpanda .admin-main-inner {
    position: relative;
    z-index: 1;
}

html[data-panel-theme="cartpanda"].theme-light .theme-cartpanda .sidebar-item {
    border-radius: 0.625rem;
}

html[data-panel-theme="cartpanda"].theme-light .theme-cartpanda .sidebar-glass {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border-right: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 4px 0 32px rgba(15, 23, 42, 0.06) !important;
}

html[data-panel-theme="cartpanda"].theme-light header.fixed {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

/* ========== Whitelabel claro — futurista, grade, acento azul gelo ========== */
html[data-panel-theme="white"].theme-light {
    --dark-base: #f4f6fa;
    --dark-elevated: #eef2f7;
    --dark-card: #ffffff;
    --dark-border: rgba(15, 23, 42, 0.14);
    --text-primary: #0b1220;
    --text-secondary: #1e293b;
    --text-muted: #475569;
    --cp-sidebar-tint: rgba(255, 255, 255, 0.98);
    --accent-primary: #1d4ed8;
    --accent-primary-hover: #1e40af;
}

html[data-panel-theme="white"].theme-light body.theme-white-panel {
    font-family: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

html[data-panel-theme="white"].theme-light body.theme-white-panel::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        radial-gradient(ellipse 100% 70% at 50% -25%, rgba(29, 78, 216, 0.09), transparent 55%),
        radial-gradient(ellipse 40% 35% at 95% 85%, rgba(59, 130, 246, 0.08), transparent 50%),
        linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
    background-size: 36px 36px, 36px 36px, 100% 100%, 100% 100%, 100% 100%;
}

html[data-panel-theme="white"].theme-light body.theme-white-panel > main.flex-1,
html[data-panel-theme="white"].theme-light body.theme-white-panel .admin-main-inner {
    position: relative;
    z-index: 1;
}

html[data-panel-theme="white"].theme-light .theme-white-panel .sidebar-glass {
    background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 55%, #eef2ff 100%) !important;
    border-right: 1px solid rgba(29, 78, 216, 0.12) !important;
    box-shadow:
        4px 0 40px rgba(15, 23, 42, 0.06),
        inset -1px 0 0 rgba(255, 255, 255, 0.9) !important;
}

html[data-panel-theme="white"].theme-light .theme-white-panel .sidebar-item {
    border-radius: 0.65rem;
    margin-inline: 0.25rem;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.09);
}

html[data-panel-theme="white"].theme-light .theme-white-panel .sidebar-item-inactive:hover {
    border-color: rgba(29, 78, 216, 0.12);
    background: rgba(255, 255, 255, 0.65);
}

html[data-panel-theme="white"].theme-light .theme-white-panel .sidebar-item-inactive span,
html[data-panel-theme="white"].theme-light .theme-white-panel .sidebar-item-inactive {
    color: #1e293b !important;
    font-weight: 600;
}

html[data-panel-theme="white"].theme-light .theme-white-panel .sidebar-item-inactive i {
    color: #475569 !important;
    opacity: 1;
}

html[data-panel-theme="white"].theme-light .theme-white-panel .sidebar-item-active {
    color: #ffffff !important;
    background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-left: 3px solid #93c5fd;
    box-shadow:
        0 22px 48px rgba(29, 78, 216, 0.42),
        0 10px 28px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

html[data-panel-theme="white"].theme-light .theme-white-panel .sidebar-item-active i,
html[data-panel-theme="white"].theme-light .theme-white-panel .sidebar-item-active span {
    color: #ffffff !important;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35)) !important;
}

html[data-panel-theme="white"].theme-light .theme-white-panel main.flex-1,
html[data-panel-theme="white"].theme-light .theme-white-panel > main,
html[data-panel-theme="white"].theme-light body.theme-white-panel main.flex-1,
html[data-panel-theme="white"].theme-light .theme-white-panel .admin-main-inner {
    background:
        radial-gradient(ellipse 95% 60% at 18% 8%, rgba(59, 130, 246, 0.09), transparent 50%),
        radial-gradient(ellipse 70% 50% at 92% 88%, rgba(147, 197, 253, 0.14), transparent 55%),
        linear-gradient(168deg, #f8fafc 0%, #eef2f7 45%, #e2e8f0 100%) !important;
}

html[data-panel-theme="white"].theme-light header.fixed {
    background: color-mix(in srgb, #ffffff 88%, transparent) !important;
    border-bottom: 1px solid rgba(29, 78, 216, 0.1);
    backdrop-filter: blur(16px) saturate(1.2);
}

html[data-panel-theme="white"].theme-light .text-white:not(.text-on-accent) {
    color: var(--text-primary) !important;
}

html[data-panel-theme="white"].theme-light .text-gray-300 {
    color: var(--text-secondary) !important;
}

html[data-panel-theme="white"].theme-light .text-gray-400 {
    color: var(--text-muted) !important;
}

html[data-panel-theme="white"].theme-light .theme-white-panel .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar) {
    border: 1px solid rgba(29, 78, 216, 0.1) !important;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1), 0 4px 14px rgba(30, 64, 175, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

/* ========== Whitelabel claro lilás — branco + violeta neon elegante ========== */
html[data-panel-theme="lilac"].theme-light {
    --dark-base: #f3eefe;
    --dark-elevated: #ffffff;
    --dark-card: #ffffff;
    --dark-border: rgba(124, 58, 237, 0.18);
    --text-primary: #2e1065;
    --text-secondary: #4c1d95;
    --text-muted: #5b21b6;
    --cp-sidebar-tint: rgba(255, 255, 255, 0.94);
    --accent-primary: #8b5cf6;
    --accent-primary-hover: #7c3aed;
}

html[data-panel-theme="lilac"].theme-light body.theme-lilac-panel {
    font-family: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

html[data-panel-theme="lilac"].theme-light body.theme-lilac-panel::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(152deg, #ffffff 0%, #faf5ff 18%, #ede9fe 42%, #ddd6fe 68%, color-mix(in srgb, var(--accent-primary) 38%, #ede9fe) 100%),
        radial-gradient(ellipse 60% 45% at 16% -8%, rgba(139, 92, 246, 0.24), transparent 62%),
        radial-gradient(ellipse 52% 44% at 86% 106%, rgba(167, 139, 250, 0.2), transparent 62%),
        radial-gradient(ellipse 90% 60% at 50% 120%, rgba(124, 58, 237, 0.12), transparent 55%);
}

html[data-panel-theme="lilac"].theme-light .theme-lilac-panel .sidebar-glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 245, 255, 0.9)) !important;
    border-right: 1px solid rgba(124, 58, 237, 0.18) !important;
    box-shadow: 10px 0 32px rgba(139, 92, 246, 0.12), inset -1px 0 0 rgba(255, 255, 255, 0.6);
}

html[data-panel-theme="lilac"].theme-light .theme-lilac-panel .sidebar-item {
    border-radius: 0.7rem;
    margin-inline: 0.2rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 6px 22px rgba(91, 33, 182, 0.1);
}

html[data-panel-theme="lilac"].theme-light .theme-lilac-panel .sidebar-item-inactive span,
html[data-panel-theme="lilac"].theme-light .theme-lilac-panel .sidebar-item-inactive {
    color: var(--text-secondary) !important;
    font-weight: 600;
}

html[data-panel-theme="lilac"].theme-light .theme-lilac-panel .sidebar-item-inactive i {
    color: var(--text-muted) !important;
    opacity: 1;
}

html[data-panel-theme="lilac"].theme-light .theme-lilac-panel .sidebar-item-inactive:hover {
    border-color: rgba(124, 58, 237, 0.16);
    background: rgba(139, 92, 246, 0.08);
}

html[data-panel-theme="lilac"].theme-light .theme-lilac-panel .sidebar-item-active {
    color: #ffffff !important;
    background: linear-gradient(120deg, #7c3aed 0%, #8b5cf6 48%, #a855f7 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 3px solid #ddd6fe;
    box-shadow:
        0 22px 50px rgba(91, 33, 182, 0.38),
        0 10px 28px rgba(15, 23, 42, 0.1),
        0 0 40px rgba(168, 85, 247, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

html[data-panel-theme="lilac"].theme-light .theme-lilac-panel .sidebar-item-active i,
html[data-panel-theme="lilac"].theme-light .theme-lilac-panel .sidebar-item-active span {
    color: #ffffff !important;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4)) !important;
}

html[data-panel-theme="lilac"].theme-light .theme-lilac-panel main.flex-1,
html[data-panel-theme="lilac"].theme-light .theme-lilac-panel > main,
html[data-panel-theme="lilac"].theme-light body.theme-lilac-panel main.flex-1,
html[data-panel-theme="lilac"].theme-light .theme-lilac-panel .admin-main-inner {
    position: relative;
    z-index: 1;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.06) 1px, transparent 1px),
        linear-gradient(175deg, color-mix(in srgb, #ffffff 88%, var(--accent-primary)) 0%, transparent 42%, rgba(139, 92, 246, 0.07) 100%),
        radial-gradient(ellipse 90% 54% at 50% -22%, rgba(139, 92, 246, 0.14), transparent 56%),
        var(--dark-base) !important;
    background-size: 42px 42px, 42px 42px, 100% 100%, 100% 100%, 100%;
}

html[data-panel-theme="lilac"].theme-light header.fixed {
    background: color-mix(in srgb, #ffffff 90%, #ede9fe 10%) !important;
    border-bottom: 1px solid rgba(124, 58, 237, 0.14);
    backdrop-filter: blur(18px) saturate(1.25);
}

html[data-panel-theme="lilac"].theme-light .text-white:not(.text-on-accent) {
    color: var(--text-primary) !important;
}

html[data-panel-theme="lilac"].theme-light .text-gray-300 {
    color: var(--text-secondary) !important;
}

html[data-panel-theme="lilac"].theme-light .text-gray-400 {
    color: var(--text-muted) !important;
}

html[data-panel-theme="lilac"].theme-light .theme-lilac-panel .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar) {
    border: 1px solid rgba(124, 58, 237, 0.14) !important;
    box-shadow: 0 18px 52px rgba(91, 33, 182, 0.14), 0 6px 18px rgba(124, 58, 237, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.82) inset, 0 0 36px rgba(167, 139, 250, 0.08);
}

/* ========== Whitelabel noite — preto total, acento branco, ativo branco + texto preto ========== */
html[data-panel-theme="black"].theme-dark {
    --dark-base: #000000;
    --dark-elevated: #050505;
    --dark-card: #080808;
    --dark-border: rgba(255, 255, 255, 0.12);
    --text-primary: #fafafa;
    --text-secondary: #e4e4e7;
    --text-muted: #a1a1aa;
    --cp-sidebar-tint: rgba(0, 0, 0, 0.98);
    --accent-primary: #ffffff;
    --accent-primary-hover: #e4e4e7;
}

html[data-panel-theme="black"].theme-dark body.theme-kirvano-panel {
    font-family: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

html[data-panel-theme="black"].theme-dark .theme-kirvano-panel .sidebar-glass {
    background: linear-gradient(180deg, #000000 0%, #030303 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 4px 0 48px rgba(0, 0, 0, 0.9);
}

html[data-panel-theme="black"].theme-dark .theme-kirvano-panel .sidebar-item {
    border-radius: 0.65rem;
    margin-inline: 0.25rem;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

html[data-panel-theme="black"].theme-dark .theme-kirvano-panel .sidebar-item-inactive:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

html[data-panel-theme="black"].theme-dark .theme-kirvano-panel .sidebar-item-inactive i,
html[data-panel-theme="black"].theme-dark .theme-kirvano-panel .sidebar-item-inactive span {
    color: #d4d4d8 !important;
}

html[data-panel-theme="black"].theme-dark .theme-kirvano-panel .sidebar-item-active {
    background: #ffffff !important;
    color: #0a0a0a !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-left: 3px solid #ffffff !important;
    box-shadow:
        0 0 32px rgba(255, 255, 255, 0.12),
        inset 0 1px 0 rgba(0, 0, 0, 0.04);
}

html[data-panel-theme="black"].theme-dark .theme-kirvano-panel .sidebar-item-active i,
html[data-panel-theme="black"].theme-dark .theme-kirvano-panel .sidebar-item-active span {
    color: #0a0a0a !important;
    filter: none !important;
}

html[data-panel-theme="black"].theme-dark .theme-kirvano-panel main.flex-1,
html[data-panel-theme="black"].theme-dark .theme-kirvano-panel > main,
html[data-panel-theme="black"].theme-dark body.theme-kirvano-panel main.flex-1,
html[data-panel-theme="black"].theme-dark .theme-kirvano-panel .admin-main-inner {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(ellipse 80% 50% at 50% -30%, rgba(255, 255, 255, 0.06), transparent 55%),
        #000000 !important;
    background-size: 44px 44px, 44px 44px, 100% 100%, 100%;
}

html[data-panel-theme="black"].theme-dark .theme-kirvano-panel .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar) {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
    background: var(--dark-card) !important;
}

html[data-panel-theme="black"].theme-dark header.fixed {
    background: color-mix(in srgb, #000000 92%, transparent) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
}

/* Botões / avatares que usam var(--accent-primary): fundo branco → texto escuro */
html[data-panel-theme="black"].theme-dark [style*="background-color: var(--accent-primary)"],
html[data-panel-theme="black"].theme-dark [style*="background: var(--accent-primary)"] {
    color: #0a0a0a !important;
}

html[data-panel-theme="black"].theme-dark [style*="background: linear-gradient"][style*="accent-primary"] {
    color: #0a0a0a !important;
}

/* ========== Whitelabel neon — laranja + ciano, visual futurista tipo label ========== */
html[data-panel-theme="especial"].theme-dark {
    --dark-base: #030306;
    --dark-elevated: #0a0a10;
    --dark-card: #08080f;
    --dark-border: rgba(249, 115, 22, 0.22);
    --text-primary: #fafafa;
    --text-secondary: #e4e4e7;
    --text-muted: #a1a1aa;
    --accent-primary: #fb923c;
    --accent-primary-hover: #fdba74;
    --gf-especial-cyan: #22d3ee;
}

html[data-panel-theme="especial"].theme-dark body.theme-especial-panel {
    font-family: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

html[data-panel-theme="especial"].theme-dark .theme-especial-panel .sidebar-glass {
    background: linear-gradient(165deg, #0d0d12 0%, #060609 48%, #0a0806 100%) !important;
    border-right: 1px solid rgba(249, 115, 22, 0.2) !important;
    box-shadow:
        4px 0 48px rgba(0, 0, 0, 0.55),
        inset -1px 0 0 rgba(34, 211, 238, 0.06);
}

html[data-panel-theme="especial"].theme-dark .theme-especial-panel main.flex-1,
html[data-panel-theme="especial"].theme-dark .theme-especial-panel > main,
html[data-panel-theme="especial"].theme-dark body.theme-especial-panel main.flex-1,
html[data-panel-theme="especial"].theme-dark .theme-especial-panel .admin-main-inner {
    background-image:
        linear-gradient(rgba(249, 115, 22, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px),
        radial-gradient(ellipse 75% 48% at 72% -22%, rgba(249, 115, 22, 0.13), transparent 52%),
        radial-gradient(ellipse 50% 40% at 12% 88%, rgba(34, 211, 238, 0.05), transparent 50%),
        var(--dark-base) !important;
    background-size: 42px 42px, 42px 42px, 100% 100%, 100% 100%, 100%;
}

html[data-panel-theme="especial"].theme-dark .theme-especial-panel .sidebar-item {
    border-radius: 0.65rem;
    margin-inline: 0.2rem;
    border: 1px solid transparent;
}

html[data-panel-theme="especial"].theme-dark .theme-especial-panel .sidebar-item-active {
    color: #fafafa !important;
    background: linear-gradient(105deg, rgba(249, 115, 22, 0.22), rgba(34, 211, 238, 0.08), rgba(255, 255, 255, 0.04)) !important;
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-left: 3px solid #22d3ee;
    box-shadow:
        0 6px 32px rgba(249, 115, 22, 0.18),
        0 0 28px rgba(34, 211, 238, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Padrão (painel atual): data-panel-theme=padrao reutiliza .theme-cartpanda no body */
html[data-panel-theme="padrao"].theme-dark {
    --cp-sidebar-tint: rgba(18, 22, 28, 0.92);
}

html[data-panel-theme="especial"].theme-dark .theme-especial-panel .sidebar-item-active i,
html[data-panel-theme="especial"].theme-dark .theme-especial-panel .sidebar-item-active span {
    color: #fef3c7 !important;
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.35)) !important;
}

html[data-panel-theme="especial"].theme-dark .theme-especial-panel .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar) {
    border-color: rgba(249, 115, 22, 0.12) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(34, 211, 238, 0.04);
}

/* ========== Jardim Berry — paleta uva, azul névoa, limo, verde floresta ========== */
html[data-panel-theme="berry"].theme-dark {
    --dark-base: #1a1018;
    --dark-elevated: #251a28;
    --dark-card: #2d1f32;
    --dark-border: rgba(208, 228, 174, 0.14);
    --text-primary: #fafafa;
    --text-secondary: #e9d5ff;
    --text-muted: #d8b4fe;
    --accent-primary: #d0e4ae;
    --accent-primary-hover: #93b4db;
}

html[data-panel-theme="berry"].theme-dark body.theme-berry-panel {
    font-family: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

html[data-panel-theme="berry"].theme-dark body.theme-berry-panel::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 85% 55% at 100% -5%, rgba(107, 37, 111, 0.45), transparent 52%),
        radial-gradient(ellipse 70% 60% at -5% 100%, rgba(147, 180, 219, 0.22), transparent 50%),
        radial-gradient(ellipse 50% 45% at 85% 95%, rgba(25, 75, 50, 0.35), transparent 55%),
        linear-gradient(155deg, #35122e 0%, #2a1828 38%, #142820 72%, #0c1812 100%);
}

html[data-panel-theme="berry"].theme-dark .theme-berry-panel .sidebar-glass {
    background: linear-gradient(175deg, rgba(45, 31, 50, 0.97) 0%, rgba(26, 16, 24, 0.98) 100%) !important;
    border-right: 1px solid rgba(208, 228, 174, 0.12) !important;
    box-shadow:
        12px 0 56px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(107, 37, 111, 0.15),
        inset -1px 0 0 rgba(147, 180, 219, 0.06);
}

html[data-panel-theme="berry"].theme-dark .theme-berry-panel .sidebar-item {
    border-radius: 0.7rem;
    margin-inline: 0.2rem;
    border: 1px solid transparent;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

html[data-panel-theme="berry"].theme-dark .theme-berry-panel .sidebar-item-inactive:hover {
    border-color: rgba(208, 228, 174, 0.2);
    background: rgba(107, 37, 111, 0.22);
}

html[data-panel-theme="berry"].theme-dark .theme-berry-panel .sidebar-item-active {
    color: #1a0f14 !important;
    background: linear-gradient(115deg, #d0e4ae 0%, #93b4db 55%, #c4b5fd 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-left: 3px solid #6b256f;
    box-shadow:
        0 26px 56px rgba(0, 0, 0, 0.45),
        0 12px 32px rgba(107, 37, 111, 0.35),
        0 0 48px rgba(208, 228, 174, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

html[data-panel-theme="berry"].theme-dark .theme-berry-panel .sidebar-item-active i,
html[data-panel-theme="berry"].theme-dark .theme-berry-panel .sidebar-item-active span {
    color: #1a0f14 !important;
    filter: none !important;
}

html[data-panel-theme="berry"].theme-dark .theme-berry-panel main.flex-1,
html[data-panel-theme="berry"].theme-dark .theme-berry-panel > main,
html[data-panel-theme="berry"].theme-dark body.theme-berry-panel main.flex-1,
html[data-panel-theme="berry"].theme-dark .theme-berry-panel .admin-main-inner {
    position: relative;
    z-index: 1;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -15%, rgba(107, 37, 111, 0.2), transparent 55%),
        radial-gradient(ellipse 55% 45% at 100% 100%, rgba(25, 75, 50, 0.22), transparent 50%),
        linear-gradient(180deg, rgba(26, 16, 24, 0.92), rgba(15, 18, 14, 0.96)) !important;
}

html[data-panel-theme="berry"].theme-dark header.fixed {
    background: rgba(26, 16, 24, 0.88) !important;
    border-bottom: 1px solid rgba(208, 228, 174, 0.1);
    backdrop-filter: blur(18px);
}

html[data-panel-theme="berry"].theme-dark .theme-berry-panel .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar) {
    border: 1px solid rgba(208, 228, 174, 0.1) !important;
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(107, 37, 111, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ========== Aurora — gradiente roxo → magenta → amarelo (referência palette) ========== */
html[data-panel-theme="aurora"].theme-light {
    --dark-base: #fdf8ff;
    --dark-elevated: #ffffff;
    --dark-card: #ffffff;
    --dark-border: rgba(148, 94, 194, 0.18);
    --text-primary: #3b0764;
    --text-secondary: #581c87;
    --text-muted: #6b21a8;
    --accent-primary: #945ec2;
    --accent-primary-hover: #7e3eb8;
}

html[data-panel-theme="aurora"].theme-light body.theme-aurora-panel {
    font-family: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

html[data-panel-theme="aurora"].theme-light body.theme-aurora-panel::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
    background:
        radial-gradient(ellipse 90% 70% at 8% 10%, rgba(214, 93, 177, 0.2), transparent 45%),
        radial-gradient(ellipse 80% 65% at 92% 85%, rgba(249, 248, 113, 0.28), transparent 48%),
        linear-gradient(125deg, #945ec2 0%, #d65db1 28%, #ff6f91 52%, #ff9671 72%, #ffc75f 88%, #f9f871 100%);
}

html[data-panel-theme="aurora"].theme-light .theme-aurora-panel .sidebar-glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(253, 248, 255, 0.88)) !important;
    border-right: 1px solid rgba(148, 94, 194, 0.15) !important;
    box-shadow:
        14px 0 48px rgba(91, 33, 182, 0.18),
        inset -1px 0 0 rgba(255, 255, 255, 0.85);
}

html[data-panel-theme="aurora"].theme-light .theme-aurora-panel .sidebar-item {
    border-radius: 0.7rem;
    margin-inline: 0.2rem;
    box-shadow: 0 8px 26px rgba(91, 33, 182, 0.12);
}

html[data-panel-theme="aurora"].theme-light .theme-aurora-panel .sidebar-item-inactive span,
html[data-panel-theme="aurora"].theme-light .theme-aurora-panel .sidebar-item-inactive {
    color: #4a148c !important;
    font-weight: 600;
}

html[data-panel-theme="aurora"].theme-light .theme-aurora-panel .sidebar-item-inactive i {
    color: #6b21a8 !important;
}

html[data-panel-theme="aurora"].theme-light .theme-aurora-panel .sidebar-item-active {
    color: #ffffff !important;
    background: linear-gradient(110deg, #7c3aed 0%, #d946ef 40%, #f97316 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-left: 3px solid #f9f871;
    box-shadow:
        0 24px 52px rgba(124, 58, 237, 0.38),
        0 12px 30px rgba(244, 63, 94, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

html[data-panel-theme="aurora"].theme-light .theme-aurora-panel .sidebar-item-active i,
html[data-panel-theme="aurora"].theme-light .theme-aurora-panel .sidebar-item-active span {
    color: #ffffff !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)) !important;
}

html[data-panel-theme="aurora"].theme-light .theme-aurora-panel main.flex-1,
html[data-panel-theme="aurora"].theme-light .theme-aurora-panel > main,
html[data-panel-theme="aurora"].theme-light body.theme-aurora-panel main.flex-1,
html[data-panel-theme="aurora"].theme-light .theme-aurora-panel .admin-main-inner {
    position: relative;
    z-index: 1;
    background:
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(255, 255, 255, 0.72), transparent 58%),
        linear-gradient(180deg, rgba(253, 242, 248, 0.92), rgba(255, 251, 235, 0.94)) !important;
}

html[data-panel-theme="aurora"].theme-light header.fixed {
    background: color-mix(in srgb, #ffffff 88%, #faf5ff 12%) !important;
    border-bottom: 1px solid rgba(148, 94, 194, 0.14);
    backdrop-filter: blur(16px);
}

html[data-panel-theme="aurora"].theme-light .text-white:not(.text-on-accent) {
    color: var(--text-primary) !important;
}

html[data-panel-theme="aurora"].theme-light .text-gray-300 {
    color: var(--text-secondary) !important;
}

html[data-panel-theme="aurora"].theme-light .text-gray-400 {
    color: var(--text-muted) !important;
}

html[data-panel-theme="aurora"].theme-light .theme-aurora-panel .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar) {
    border: 1px solid rgba(148, 94, 194, 0.12) !important;
    box-shadow: 0 22px 56px rgba(91, 33, 182, 0.12), 0 8px 24px rgba(244, 63, 94, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

/* ========== Veludo noturno — navy/plum, brilho quente (referência luxo) ========== */
html[data-panel-theme="velvet"].theme-dark {
    --dark-base: #030306;
    --dark-elevated: #0a0a10;
    --dark-card: #0e0e14;
    --dark-border: rgba(244, 114, 182, 0.15);
    --text-primary: #fafafa;
    --text-secondary: #f5d0fe;
    --text-muted: #e9d5ff;
    --accent-primary: #fb7185;
    --accent-primary-hover: #fda4af;
}

html[data-panel-theme="velvet"].theme-dark body.theme-velvet-panel {
    font-family: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

html[data-panel-theme="velvet"].theme-dark body.theme-velvet-panel::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(118deg, rgba(255, 255, 255, 0.065) 0%, transparent 28%, rgba(255, 255, 255, 0.02) 42%, transparent 52%, rgba(0, 0, 0, 0.65) 100%),
        radial-gradient(ellipse 100% 55% at 50% -15%, rgba(255, 255, 255, 0.07), transparent 48%),
        radial-gradient(ellipse 70% 50% at 95% 8%, rgba(251, 113, 133, 0.08), transparent 45%),
        radial-gradient(ellipse 60% 55% at 0% 100%, rgba(124, 58, 237, 0.12), transparent 50%),
        linear-gradient(168deg, #101018 0%, #050508 38%, #000000 72%, #020203 100%);
}

html[data-panel-theme="velvet"].theme-dark .theme-velvet-panel .sidebar-glass {
    background: linear-gradient(195deg, rgba(18, 18, 24, 0.98) 0%, rgba(6, 6, 10, 0.99) 55%, rgba(0, 0, 0, 0.98) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow:
        16px 0 60px rgba(0, 0, 0, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset -1px 0 0 rgba(244, 114, 182, 0.06);
}

html[data-panel-theme="velvet"].theme-dark .theme-velvet-panel .sidebar-item {
    border-radius: 0.7rem;
    margin-inline: 0.2rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

html[data-panel-theme="velvet"].theme-dark .theme-velvet-panel .sidebar-item-active {
    color: #0a0612 !important;
    background: linear-gradient(115deg, #fefce8 0%, #fecdd3 45%, #f9a8d4 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 3px solid #fb7185;
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.5),
        0 0 42px rgba(251, 113, 133, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

html[data-panel-theme="velvet"].theme-dark .theme-velvet-panel .sidebar-item-active i,
html[data-panel-theme="velvet"].theme-dark .theme-velvet-panel .sidebar-item-active span {
    color: #0a0612 !important;
    filter: none !important;
}

html[data-panel-theme="velvet"].theme-dark .theme-velvet-panel main.flex-1,
html[data-panel-theme="velvet"].theme-dark .theme-velvet-panel > main,
html[data-panel-theme="velvet"].theme-dark body.theme-velvet-panel main.flex-1,
html[data-panel-theme="velvet"].theme-dark .theme-velvet-panel .admin-main-inner {
    position: relative;
    z-index: 1;
    background-image:
        linear-gradient(105deg, rgba(255, 255, 255, 0.035) 0%, transparent 22%, transparent 78%, rgba(255, 255, 255, 0.018) 100%),
        radial-gradient(ellipse 80% 48% at 50% -12%, rgba(255, 255, 255, 0.05), transparent 52%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(251, 113, 133, 0.07), transparent 48%),
        linear-gradient(180deg, #0a0a0f 0%, #020203 55%, #000000 100%) !important;
}

html[data-panel-theme="velvet"].theme-dark header.fixed {
    background: linear-gradient(180deg, rgba(12, 12, 16, 0.94), rgba(4, 4, 6, 0.9)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

html[data-panel-theme="velvet"].theme-dark .theme-velvet-panel .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar) {
    border: 1px solid rgba(244, 114, 182, 0.12) !important;
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(124, 58, 237, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ========== Cítrico Monoline — laranja, creme, preto ========== */
html[data-panel-theme="apricot"].theme-light {
    --dark-base: #fff7ed;
    --dark-elevated: #ffedd5;
    --dark-card: #ffffff;
    --dark-border: rgba(242, 130, 29, 0.22);
    --text-primary: #1c1917;
    --text-secondary: #422006;
    --text-muted: #78350f;
    --accent-primary: #f2821d;
    --accent-primary-hover: #ea580c;
}

html[data-panel-theme="apricot"].theme-light body.theme-apricot-panel {
    font-family: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

html[data-panel-theme="apricot"].theme-light body.theme-apricot-panel::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 55% at 15% 20%, rgba(255, 255, 255, 0.55), transparent 45%),
        radial-gradient(ellipse 80% 70% at 100% 100%, rgba(242, 130, 29, 0.18), transparent 50%),
        linear-gradient(145deg, #ff9d41 0%, #f2821d 42%, #ea580c 88%, #1c1917 100%);
    opacity: 0.92;
}

html[data-panel-theme="apricot"].theme-light .theme-apricot-panel .sidebar-glass {
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.94), rgba(12, 10, 9, 0.96)) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        16px 0 52px rgba(0, 0, 0, 0.45),
        inset -1px 0 0 rgba(255, 157, 65, 0.12);
}

html[data-panel-theme="apricot"].theme-light .theme-apricot-panel .sidebar-item-inactive span,
html[data-panel-theme="apricot"].theme-light .theme-apricot-panel .sidebar-item-inactive {
    color: #e7e5e4 !important;
    font-weight: 600;
}

html[data-panel-theme="apricot"].theme-light .theme-apricot-panel .sidebar-item-inactive i {
    color: #d6d3d1 !important;
}

html[data-panel-theme="apricot"].theme-light .theme-apricot-panel .sidebar-item {
    border-radius: 0.65rem;
    margin-inline: 0.2rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

html[data-panel-theme="apricot"].theme-light .theme-apricot-panel .sidebar-item-active {
    color: #1c1917 !important;
    background: linear-gradient(110deg, #e5e4cc 0%, #ffedd5 100%) !important;
    border: 1px solid rgba(255, 157, 65, 0.5);
    border-left: 3px solid #ff9d41;
    box-shadow:
        0 26px 56px rgba(0, 0, 0, 0.38),
        0 0 36px rgba(255, 157, 65, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-panel-theme="apricot"].theme-light .theme-apricot-panel .sidebar-item-active i,
html[data-panel-theme="apricot"].theme-light .theme-apricot-panel .sidebar-item-active span {
    color: #1c1917 !important;
    filter: none !important;
}

html[data-panel-theme="apricot"].theme-light .theme-apricot-panel main.flex-1,
html[data-panel-theme="apricot"].theme-light .theme-apricot-panel > main,
html[data-panel-theme="apricot"].theme-light body.theme-apricot-panel main.flex-1,
html[data-panel-theme="apricot"].theme-light .theme-apricot-panel .admin-main-inner {
    position: relative;
    z-index: 1;
    background:
        radial-gradient(ellipse 95% 70% at 50% -10%, rgba(255, 255, 255, 0.85), transparent 52%),
        linear-gradient(180deg, rgba(255, 251, 235, 0.97), rgba(255, 237, 213, 0.98)) !important;
}

html[data-panel-theme="apricot"].theme-light header.fixed {
    background: color-mix(in srgb, #fff7ed 92%, #1c1917 4%) !important;
    border-bottom: 1px solid rgba(242, 130, 29, 0.18);
    backdrop-filter: blur(14px);
}

html[data-panel-theme="apricot"].theme-light .text-white:not(.text-on-accent) {
    color: var(--text-primary) !important;
}

html[data-panel-theme="apricot"].theme-light .text-gray-300 {
    color: var(--text-secondary) !important;
}

html[data-panel-theme="apricot"].theme-light .text-gray-400 {
    color: var(--text-muted) !important;
}

html[data-panel-theme="apricot"].theme-light .theme-apricot-panel .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar) {
    border: 1px solid rgba(242, 130, 29, 0.14) !important;
    box-shadow: 0 22px 54px rgba(194, 65, 12, 0.12), 0 8px 22px rgba(28, 25, 23, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

/* ========== Cítrico laranja — neon laranja + branco + lilás + azul ========== */
html[data-panel-theme="citrico_laranja"].theme-light {
    --dark-base: #fff8f5;
    --dark-elevated: #ffffff;
    --dark-card: #ffffff;
    --dark-border: rgba(255, 107, 0, 0.22);
    --text-primary: #0f172a;
    --text-secondary: #3730a3;
    --text-muted: #5b21b6;
    --accent-primary: #ff6b00;
    --accent-primary-hover: #ff8200;
}

html[data-panel-theme="citrico_laranja"].theme-light body.theme-citrico-laranja-panel {
    font-family: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

html[data-panel-theme="citrico_laranja"].theme-light body.theme-citrico-laranja-panel::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 90% 70% at 8% 15%, rgba(255, 255, 255, 0.95), transparent 42%),
        radial-gradient(ellipse 75% 60% at 92% 18%, rgba(56, 189, 248, 0.35), transparent 50%),
        radial-gradient(ellipse 70% 55% at 78% 88%, rgba(168, 85, 247, 0.4), transparent 52%),
        radial-gradient(ellipse 65% 50% at 12% 92%, rgba(255, 140, 0, 0.35), transparent 48%),
        linear-gradient(
            128deg,
            #ffffff 0%,
            #fff7ed 8%,
            #ffedd5 16%,
            #fdba74 26%,
            #ff9100 38%,
            #ff6b00 48%,
            #fb923c 54%,
            #e879f9 62%,
            #a855f7 68%,
            #818cf8 76%,
            #3b82f6 84%,
            #38bdf8 90%,
            #e0f2fe 96%,
            #ffffff 100%
        );
    opacity: 1;
}

html[data-panel-theme="citrico_laranja"].theme-light .theme-citrico-laranja-panel .sidebar-glass {
    background: linear-gradient(195deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 247, 237, 0.94) 45%, rgba(250, 245, 255, 0.92) 100%) !important;
    border-right: 1px solid color-mix(in srgb, var(--accent-primary) 22%, rgba(129, 140, 248, 0.35)) !important;
    box-shadow:
        14px 0 48px rgba(255, 107, 0, 0.12),
        8px 0 32px rgba(168, 85, 247, 0.1),
        inset -1px 0 0 rgba(255, 255, 255, 0.85),
        inset 0 1px 0 rgba(56, 189, 248, 0.08);
}

html[data-panel-theme="citrico_laranja"].theme-light .theme-citrico-laranja-panel .sidebar-item-inactive span,
html[data-panel-theme="citrico_laranja"].theme-light .theme-citrico-laranja-panel .sidebar-item-inactive {
    color: #312e81 !important;
    font-weight: 600;
}

html[data-panel-theme="citrico_laranja"].theme-light .theme-citrico-laranja-panel .sidebar-item-inactive i {
    color: #6366f1 !important;
}

html[data-panel-theme="citrico_laranja"].theme-light .theme-citrico-laranja-panel .sidebar-item {
    border-radius: 0.7rem;
    margin-inline: 0.2rem;
    border: 1px solid transparent;
    box-shadow: 0 8px 26px rgba(255, 107, 0, 0.12);
}

html[data-panel-theme="citrico_laranja"].theme-light .theme-citrico-laranja-panel .sidebar-item-inactive:hover {
    border-color: rgba(255, 107, 0, 0.2);
    background: rgba(255, 255, 255, 0.55);
}

html[data-panel-theme="citrico_laranja"].theme-light .theme-citrico-laranja-panel .sidebar-item-active {
    color: #ffffff !important;
    background: linear-gradient(118deg, #ff6b00 0%, #ea580c 32%, #d946ef 58%, #8b5cf6 78%, #2563eb 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-left: 3px solid #38bdf8;
    box-shadow:
        0 24px 52px rgba(255, 107, 0, 0.35),
        0 0 40px rgba(168, 85, 247, 0.28),
        0 0 28px rgba(56, 189, 248, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

html[data-panel-theme="citrico_laranja"].theme-light .theme-citrico-laranja-panel .sidebar-item-active i,
html[data-panel-theme="citrico_laranja"].theme-light .theme-citrico-laranja-panel .sidebar-item-active span {
    color: #ffffff !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.55)) !important;
}

html[data-panel-theme="citrico_laranja"].theme-light .theme-citrico-laranja-panel main.flex-1,
html[data-panel-theme="citrico_laranja"].theme-light .theme-citrico-laranja-panel > main,
html[data-panel-theme="citrico_laranja"].theme-light body.theme-citrico-laranja-panel main.flex-1,
html[data-panel-theme="citrico_laranja"].theme-light .theme-citrico-laranja-panel .admin-main-inner {
    position: relative;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 250, 245, 0.58) 45%, rgba(255, 237, 213, 0.35) 85%, rgba(224, 242, 254, 0.25) 100%),
        radial-gradient(ellipse 110% 65% at 50% -12%, rgba(255, 255, 255, 0.65), transparent 52%) !important;
}

html[data-panel-theme="citrico_laranja"].theme-light header.fixed {
    background: color-mix(in srgb, #ffffff 88%, #ffedd5 8%) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-primary) 18%, rgba(129, 140, 248, 0.25));
    backdrop-filter: blur(16px) saturate(1.25);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

html[data-panel-theme="citrico_laranja"].theme-light .text-white:not(.text-on-accent) {
    color: var(--text-primary) !important;
}

html[data-panel-theme="citrico_laranja"].theme-light .text-gray-300 {
    color: var(--text-secondary) !important;
}

html[data-panel-theme="citrico_laranja"].theme-light .text-gray-400 {
    color: var(--text-muted) !important;
}

html[data-panel-theme="citrico_laranja"].theme-light .theme-citrico-laranja-panel .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar) {
    border: 1px solid color-mix(in srgb, var(--accent-primary) 14%, rgba(129, 140, 248, 0.2)) !important;
    box-shadow:
        0 22px 56px rgba(255, 107, 0, 0.1),
        0 10px 28px rgba(99, 102, 241, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.92) inset,
        0 0 32px rgba(56, 189, 248, 0.06);
}

/* ========== M&M laranja — laranja + branco em todo o painel (sidebar mantida à esquerda) ========== */
html[data-panel-theme="mm_laranja"].theme-light {
    --dark-base: #fff7ed;
    --dark-elevated: #ffffff;
    --dark-card: #ffffff;
    --dark-border: rgba(234, 88, 12, 0.18);
    --text-primary: #431407;
    --text-secondary: #9a3412;
    --text-muted: #c2410c;
    --accent-primary: #ea580c;
    --accent-primary-hover: #c2410c;
}

html[data-panel-theme="mm_laranja"].theme-light body.theme-mm-laranja-panel {
    font-family: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

html[data-panel-theme="mm_laranja"].theme-light body.theme-mm-laranja-panel::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(255, 237, 213, 0.95), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 20%, rgba(253, 186, 116, 0.35), transparent 50%),
        radial-gradient(ellipse 60% 45% at 0% 80%, rgba(251, 146, 60, 0.2), transparent 48%),
        linear-gradient(165deg, #ffffff 0%, #fff7ed 35%, #ffedd5 70%, #ffffff 100%);
    opacity: 1;
}

html[data-panel-theme="mm_laranja"].theme-light .theme-mm-laranja-panel .sidebar-glass {
    background: linear-gradient(200deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 237, 0.96) 50%, rgba(255, 237, 213, 0.94) 100%) !important;
    border-right: 1px solid color-mix(in srgb, var(--accent-primary) 20%, rgba(255, 255, 255, 0.5)) !important;
    box-shadow:
        12px 0 40px rgba(234, 88, 12, 0.08),
        inset -1px 0 0 rgba(255, 255, 255, 0.9);
}

html[data-panel-theme="mm_laranja"].theme-light .theme-mm-laranja-panel .sidebar-item-inactive span,
html[data-panel-theme="mm_laranja"].theme-light .theme-mm-laranja-panel .sidebar-item-inactive {
    color: #7c2d12 !important;
    font-weight: 600;
}

html[data-panel-theme="mm_laranja"].theme-light .theme-mm-laranja-panel .sidebar-item-inactive i {
    color: #ea580c !important;
}

html[data-panel-theme="mm_laranja"].theme-light .theme-mm-laranja-panel .sidebar-item {
    border-radius: 0.75rem;
    margin-inline: 0.2rem;
    border: 1px solid transparent;
}

html[data-panel-theme="mm_laranja"].theme-light .theme-mm-laranja-panel .sidebar-item-inactive:hover {
    border-color: rgba(234, 88, 12, 0.2);
    background: rgba(255, 255, 255, 0.65);
}

html[data-panel-theme="mm_laranja"].theme-light .theme-mm-laranja-panel .sidebar-item-active {
    color: #ffffff !important;
    background: linear-gradient(125deg, #f97316 0%, #ea580c 45%, #c2410c 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 16px 40px rgba(234, 88, 12, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

html[data-panel-theme="mm_laranja"].theme-light .theme-mm-laranja-panel .sidebar-item-active i,
html[data-panel-theme="mm_laranja"].theme-light .theme-mm-laranja-panel .sidebar-item-active span {
    color: #ffffff !important;
}

html[data-panel-theme="mm_laranja"].theme-light .theme-mm-laranja-panel main.flex-1,
html[data-panel-theme="mm_laranja"].theme-light .theme-mm-laranja-panel > main,
html[data-panel-theme="mm_laranja"].theme-light body.theme-mm-laranja-panel main.flex-1,
html[data-panel-theme="mm_laranja"].theme-light .theme-mm-laranja-panel .admin-main-inner {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 250, 245, 0.5) 50%, rgba(255, 237, 213, 0.28) 100%) !important;
}

html[data-panel-theme="mm_laranja"].theme-light header.fixed {
    background: color-mix(in srgb, #ffffff 92%, #ffedd5 8%) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-primary) 15%, transparent);
    backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

html[data-panel-theme="mm_laranja"].theme-light .text-white:not(.text-on-accent) {
    color: var(--text-primary) !important;
}

html[data-panel-theme="mm_laranja"].theme-light .text-gray-300 {
    color: var(--text-secondary) !important;
}

html[data-panel-theme="mm_laranja"].theme-light .text-gray-400 {
    color: var(--text-muted) !important;
}

html[data-panel-theme="mm_laranja"].theme-light .theme-mm-laranja-panel .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar) {
    border: 1px solid color-mix(in srgb, var(--accent-primary) 16%, rgba(255, 255, 255, 0.6)) !important;
    box-shadow:
        0 20px 50px rgba(234, 88, 12, 0.09),
        0 0 0 1px rgba(255, 255, 255, 0.95) inset;
}

html[data-panel-theme="mm_laranja"].theme-light .gateflow-sidebar-footer-glow {
    opacity: 0.85;
}

/* ========== Praia Havai — tropical (turquesa, areia, coral, sol) ========== */
html[data-panel-theme="praia_havai"].theme-light {
    --dark-base: #f7fffd;
    --dark-elevated: #ffffff;
    --dark-card: #ffffff;
    --dark-border: rgba(14, 116, 144, 0.2);
    --text-primary: #0c4a6e;
    --text-secondary: #115e59;
    --text-muted: #0f766e;
    --accent-primary: #0ea5a4;
    --accent-primary-hover: #0d9488;
}

html[data-panel-theme="praia_havai"].theme-light body.theme-praia-havai-panel {
    font-family: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

html[data-panel-theme="praia_havai"].theme-light body.theme-praia-havai-panel::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse 95% 70% at 82% -10%, rgba(255, 244, 214, 0.82), transparent 48%),
        radial-gradient(ellipse 80% 60% at 8% 8%, rgba(125, 211, 252, 0.5), transparent 50%),
        radial-gradient(ellipse 72% 55% at 86% 92%, rgba(244, 114, 182, 0.34), transparent 52%),
        linear-gradient(138deg, #f0fdfa 0%, #ccfbf1 18%, #67e8f9 40%, #22d3ee 56%, #fdba74 78%, #f97316 100%);
}

html[data-panel-theme="praia_havai"].theme-light .theme-praia-havai-panel .sidebar-glass {
    background: linear-gradient(188deg, rgba(255, 255, 255, 0.97) 0%, rgba(240, 253, 250, 0.92) 52%, rgba(224, 242, 254, 0.88) 100%) !important;
    border-right: 1px solid rgba(14, 116, 144, 0.16) !important;
    box-shadow: 10px 0 36px rgba(14, 116, 144, 0.12), inset -1px 0 0 rgba(255, 255, 255, 0.82);
}

html[data-panel-theme="praia_havai"].theme-light .theme-praia-havai-panel .sidebar-item {
    border-radius: 0.7rem;
    margin-inline: 0.2rem;
    border: 1px solid transparent;
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.1);
}

html[data-panel-theme="praia_havai"].theme-light .theme-praia-havai-panel .sidebar-item-inactive span,
html[data-panel-theme="praia_havai"].theme-light .theme-praia-havai-panel .sidebar-item-inactive {
    color: #155e75 !important;
    font-weight: 600;
}

html[data-panel-theme="praia_havai"].theme-light .theme-praia-havai-panel .sidebar-item-inactive i {
    color: #0e7490 !important;
}

html[data-panel-theme="praia_havai"].theme-light .theme-praia-havai-panel .sidebar-item-active {
    color: #f0fdfa !important;
    background: linear-gradient(118deg, #0891b2 0%, #0ea5a4 42%, #22c55e 68%, #f97316 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 3px solid #fde68a;
    box-shadow: 0 24px 50px rgba(8, 145, 178, 0.32), 0 0 34px rgba(34, 211, 238, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

html[data-panel-theme="praia_havai"].theme-light .theme-praia-havai-panel .sidebar-item-active i,
html[data-panel-theme="praia_havai"].theme-light .theme-praia-havai-panel .sidebar-item-active span {
    color: #f0fdfa !important;
}

html[data-panel-theme="praia_havai"].theme-light .theme-praia-havai-panel main.flex-1,
html[data-panel-theme="praia_havai"].theme-light .theme-praia-havai-panel > main,
html[data-panel-theme="praia_havai"].theme-light body.theme-praia-havai-panel main.flex-1,
html[data-panel-theme="praia_havai"].theme-light .theme-praia-havai-panel .admin-main-inner {
    position: relative;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 253, 250, 0.56) 48%, rgba(254, 243, 199, 0.26) 100%),
        radial-gradient(ellipse 100% 65% at 50% -10%, rgba(255, 255, 255, 0.58), transparent 52%) !important;
}

html[data-panel-theme="praia_havai"].theme-light header.fixed {
    background: color-mix(in srgb, #ffffff 90%, #cffafe 10%) !important;
    border-bottom: 1px solid rgba(8, 145, 178, 0.18);
    backdrop-filter: blur(16px) saturate(1.2);
}

html[data-panel-theme="praia_havai"].theme-light .text-white:not(.text-on-accent) {
    color: var(--text-primary) !important;
}

html[data-panel-theme="praia_havai"].theme-light .text-gray-300 {
    color: var(--text-secondary) !important;
}

html[data-panel-theme="praia_havai"].theme-light .text-gray-400 {
    color: var(--text-muted) !important;
}

html[data-panel-theme="praia_havai"].theme-light .theme-praia-havai-panel .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar) {
    border: 1px solid rgba(14, 116, 144, 0.14) !important;
    box-shadow: 0 20px 52px rgba(14, 116, 144, 0.12), 0 8px 22px rgba(249, 115, 22, 0.09), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

/* ========== Brisa — azul névoa + verde pinho (paleta refrescante) ========== */
html[data-panel-theme="tide"].theme-light {
    --dark-base: #f0fdf9;
    --dark-elevated: #ffffff;
    --dark-card: #ffffff;
    --dark-border: rgba(25, 75, 50, 0.14);
    --text-primary: #0c1929;
    --text-secondary: #134e4a;
    --text-muted: #115e59;
    --accent-primary: #194b32;
    --accent-primary-hover: #14532d;
}

html[data-panel-theme="tide"].theme-light body.theme-tide-panel {
    font-family: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

html[data-panel-theme="tide"].theme-light body.theme-tide-panel::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(158deg, #ffffff 0%, #f8fffc 22%, #ecfdf5 48%, #86efac 72%, #22c55e 88%, #194b32 100%),
        radial-gradient(ellipse 70% 55% at 100% 0%, rgba(147, 180, 219, 0.18), transparent 50%),
        radial-gradient(ellipse 65% 50% at 0% 100%, rgba(25, 75, 50, 0.08), transparent 48%);
    opacity: 1;
}

html[data-panel-theme="tide"].theme-light .theme-tide-panel .sidebar-glass {
    background: linear-gradient(188deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 255, 252, 0.92) 55%, rgba(236, 253, 245, 0.88) 100%) !important;
    border-right: 1px solid rgba(25, 75, 50, 0.12) !important;
    box-shadow: 12px 0 44px rgba(25, 75, 50, 0.1), inset -1px 0 0 rgba(255, 255, 255, 0.85);
}

html[data-panel-theme="tide"].theme-light .theme-tide-panel .sidebar-item {
    border-radius: 0.7rem;
    margin-inline: 0.2rem;
    box-shadow: 0 8px 24px rgba(19, 78, 74, 0.1);
}

html[data-panel-theme="tide"].theme-light .theme-tide-panel .sidebar-item-inactive span,
html[data-panel-theme="tide"].theme-light .theme-tide-panel .sidebar-item-inactive {
    color: #134e4a !important;
    font-weight: 600;
}

html[data-panel-theme="tide"].theme-light .theme-tide-panel .sidebar-item-inactive i {
    color: #0f766e !important;
}

html[data-panel-theme="tide"].theme-light .theme-tide-panel .sidebar-item-active {
    color: #ecfdf5 !important;
    background: linear-gradient(115deg, #194b32 0%, #0d9488 50%, #155e75 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-left: 3px solid #93b4db;
    box-shadow:
        0 24px 52px rgba(25, 75, 50, 0.35),
        0 10px 28px rgba(15, 118, 110, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

html[data-panel-theme="tide"].theme-light .theme-tide-panel .sidebar-item-active i,
html[data-panel-theme="tide"].theme-light .theme-tide-panel .sidebar-item-active span {
    color: #ecfdf5 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.22)) !important;
}

html[data-panel-theme="tide"].theme-light .theme-tide-panel main.flex-1,
html[data-panel-theme="tide"].theme-light .theme-tide-panel > main,
html[data-panel-theme="tide"].theme-light body.theme-tide-panel main.flex-1,
html[data-panel-theme="tide"].theme-light .theme-tide-panel .admin-main-inner {
    position: relative;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(240, 253, 244, 0.5) 45%, rgba(25, 75, 50, 0.09) 100%),
        radial-gradient(ellipse 95% 60% at 50% -10%, rgba(255, 255, 255, 0.55), transparent 52%) !important;
}

html[data-panel-theme="tide"].theme-light header.fixed {
    background: color-mix(in srgb, #ffffff 90%, #e0f2fe 10%) !important;
    border-bottom: 1px solid rgba(25, 75, 50, 0.12);
    backdrop-filter: blur(16px);
}

html[data-panel-theme="tide"].theme-light .text-white:not(.text-on-accent) {
    color: var(--text-primary) !important;
}

html[data-panel-theme="tide"].theme-light .text-gray-300 {
    color: var(--text-secondary) !important;
}

html[data-panel-theme="tide"].theme-light .text-gray-400 {
    color: var(--text-muted) !important;
}

html[data-panel-theme="tide"].theme-light .theme-tide-panel .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar) {
    border: 1px solid rgba(25, 75, 50, 0.1) !important;
    box-shadow: 0 20px 52px rgba(19, 78, 74, 0.11), 0 6px 20px rgba(20, 83, 45, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.88) inset;
}

/* Upgrade visual global dos temas: cartões com profundidade e brilho suave */
html[data-panel-theme="white"].theme-light .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar),
html[data-panel-theme="lilac"].theme-light .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar),
html[data-panel-theme="aurora"].theme-light .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar),
html[data-panel-theme="apricot"].theme-light .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar),
html[data-panel-theme="citrico_laranja"].theme-light .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar),
html[data-panel-theme="mm_laranja"].theme-light .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar),
html[data-panel-theme="praia_havai"].theme-light .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar),
html[data-panel-theme="tide"].theme-light .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar),
html[data-panel-theme="black"].theme-dark .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar),
html[data-panel-theme="especial"].theme-dark .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar),
html[data-panel-theme="berry"].theme-dark .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar),
html[data-panel-theme="velvet"].theme-dark .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar),
html[data-panel-theme="padrao"].theme-dark .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar) {
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

html[data-panel-theme="white"].theme-light .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar):hover,
html[data-panel-theme="lilac"].theme-light .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar):hover,
html[data-panel-theme="aurora"].theme-light .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar):hover,
html[data-panel-theme="apricot"].theme-light .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar):hover,
html[data-panel-theme="citrico_laranja"].theme-light .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar):hover,
html[data-panel-theme="mm_laranja"].theme-light .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar):hover,
html[data-panel-theme="praia_havai"].theme-light .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar):hover,
html[data-panel-theme="tide"].theme-light .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar):hover,
html[data-panel-theme="black"].theme-dark .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar):hover,
html[data-panel-theme="especial"].theme-dark .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar):hover,
html[data-panel-theme="berry"].theme-dark .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar):hover,
html[data-panel-theme="velvet"].theme-dark .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar):hover,
html[data-panel-theme="padrao"].theme-dark .bg-dark-card:not(.sidebar-glass):not(#sidebar):not(#admin-sidebar):hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22), 0 0 38px color-mix(in srgb, var(--accent-primary) 18%, transparent);
}

/* ========== Gateflow — rodapé futurista da sidebar (mascote) ========== */
.gateflow-sidebar-footer {
    position: relative;
    margin-top: auto;
    padding: 0.65rem 0.5rem 0.85rem;
    border-top: 1px solid var(--dark-border);
    overflow: hidden;
}

.gateflow-sidebar-footer-glow {
    position: absolute;
    inset: -40% -20% auto;
    height: 100px;
    background: radial-gradient(ellipse 70% 80% at 50% 100%, color-mix(in srgb, var(--accent-primary) 35%, transparent), transparent 70%);
    opacity: 0.45;
    pointer-events: none;
}

html[data-panel-theme="white"].theme-light .gateflow-sidebar-footer-glow {
    background: radial-gradient(ellipse 70% 80% at 50% 100%, color-mix(in srgb, var(--accent-primary) 22%, transparent), transparent 70%);
    opacity: 0.55;
}

html[data-panel-theme="lilac"].theme-light .gateflow-sidebar-footer-glow {
    background: radial-gradient(ellipse 72% 82% at 50% 100%, color-mix(in srgb, var(--accent-primary) 32%, transparent), transparent 72%);
    opacity: 0.62;
}

html[data-panel-theme="lilac"].theme-light .gateflow-sidebar-footer-inner {
    border-color: rgba(124, 58, 237, 0.22) !important;
    box-shadow:
        0 10px 28px rgba(91, 33, 182, 0.14),
        0 0 0 1px color-mix(in srgb, var(--accent-primary) 25%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

html[data-panel-theme="citrico_laranja"].theme-light .gateflow-sidebar-footer-glow {
    background:
        radial-gradient(ellipse 65% 75% at 30% 100%, rgba(255, 107, 0, 0.35), transparent 70%),
        radial-gradient(ellipse 55% 70% at 75% 100%, rgba(168, 85, 247, 0.32), transparent 68%),
        radial-gradient(ellipse 60% 65% at 50% 100%, rgba(56, 189, 248, 0.22), transparent 72%);
    opacity: 0.68;
}

html[data-panel-theme="citrico_laranja"].theme-light .gateflow-sidebar-footer-inner {
    border-color: color-mix(in srgb, var(--accent-primary) 28%, rgba(129, 140, 248, 0.35)) !important;
    box-shadow:
        0 10px 30px rgba(255, 107, 0, 0.14),
        0 0 28px rgba(168, 85, 247, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-panel-theme="praia_havai"].theme-light .gateflow-sidebar-footer-glow {
    background:
        radial-gradient(ellipse 68% 78% at 28% 100%, rgba(14, 165, 164, 0.34), transparent 70%),
        radial-gradient(ellipse 60% 72% at 78% 100%, rgba(249, 115, 22, 0.32), transparent 68%),
        radial-gradient(ellipse 56% 68% at 50% 100%, rgba(56, 189, 248, 0.28), transparent 72%);
    opacity: 0.7;
}

html[data-panel-theme="praia_havai"].theme-light .gateflow-sidebar-footer-inner {
    border-color: rgba(14, 116, 144, 0.24) !important;
    box-shadow: 0 10px 28px rgba(14, 116, 144, 0.14), 0 0 26px rgba(249, 115, 22, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-panel-theme="white"].theme-light .gateflow-sidebar-footer-inner {
    box-shadow:
        0 10px 26px rgba(15, 23, 42, 0.1),
        0 0 0 1px rgba(59, 130, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

html[data-panel-theme="black"].theme-dark .gateflow-sidebar-footer-glow {
    background: radial-gradient(ellipse 65% 75% at 50% 100%, rgba(255, 255, 255, 0.18), transparent 72%);
    opacity: 0.55;
}

html[data-panel-theme="black"].theme-dark .gateflow-brand-mark {
    background: linear-gradient(90deg, #ffffff, #d4d4d8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html[data-panel-theme="black"].theme-dark .gateflow-sidebar-footer-inner {
    border-color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, #0a0a0a, #050505);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gateflow-sidebar-footer-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.4rem;
    border-radius: 0.75rem;
    border: 1px solid color-mix(in srgb, var(--dark-border) 90%, var(--accent-primary));
    background: linear-gradient(135deg, color-mix(in srgb, var(--dark-elevated) 92%, var(--accent-primary)), var(--dark-card));
    box-shadow:
        0 0 0 1px color-mix(in srgb, transparent 70%, var(--accent-primary)),
        inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
}

html[data-panel-theme="especial"].theme-dark .gateflow-sidebar-footer-inner {
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: 0 0 24px rgba(249, 115, 22, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gateflow-mascot-img {
    flex-shrink: 0;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(15, 23, 42, 0.18)) drop-shadow(0 0 10px color-mix(in srgb, var(--accent-primary) 35%, transparent));
    animation: gateflowMascotFloat 3.6s ease-in-out infinite;
}

html[data-panel-theme="white"].theme-light .gateflow-mascot-img,
html[data-panel-theme="lilac"].theme-light .gateflow-mascot-img,
html[data-panel-theme="aurora"].theme-light .gateflow-mascot-img,
html[data-panel-theme="apricot"].theme-light .gateflow-mascot-img,
html[data-panel-theme="citrico_laranja"].theme-light .gateflow-mascot-img,
html[data-panel-theme="mm_laranja"].theme-light .gateflow-mascot-img,
html[data-panel-theme="praia_havai"].theme-light .gateflow-mascot-img,
html[data-panel-theme="tide"].theme-light .gateflow-mascot-img {
    filter: drop-shadow(0 5px 10px rgba(15, 23, 42, 0.16)) drop-shadow(0 3px 14px color-mix(in srgb, var(--accent-primary) 28%, transparent)) drop-shadow(0 0 20px color-mix(in srgb, var(--accent-primary) 18%, transparent));
}

html[data-panel-theme="berry"].theme-dark .gateflow-mascot-img,
html[data-panel-theme="velvet"].theme-dark .gateflow-mascot-img {
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 18px color-mix(in srgb, var(--accent-primary) 35%, transparent));
}

.gateflow-sidebar-footer-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.gateflow-brand-mark {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-primary);
    font-family: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif;
    background: linear-gradient(90deg, var(--text-primary), color-mix(in srgb, var(--accent-primary) 85%, var(--text-primary)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gateflow-brand-sub {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.9;
}

@keyframes gateflowMascotFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-3px) rotate(-1deg) scale(1.02);
    }
}

/* Grade futurista no conteúdo (tema padrão escuro + .theme-cartpanda) */
html.theme-dark .theme-cartpanda main.flex-1,
html.theme-dark .theme-cartpanda .admin-main-inner {
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.045) 1px, transparent 1px),
        radial-gradient(ellipse 80% 50% at 50% -20%, color-mix(in srgb, var(--accent-primary) 12%, transparent), transparent 55%),
        var(--dark-base);
    background-size: 44px 44px, 44px 44px, 100% 100%, 100%;
}

/* ========== Automações — barra de abas (Canais / Conversas / …) ========== */
.gf-automacoes-tabbar-wrap {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

html.theme-dark .gf-automacoes-tabbar-wrap {
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

.gf-automacoes-tabbar .automations-tab {
    position: relative;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.18s ease,
        border-color 0.2s ease;
}

.gf-automacoes-tabbar .automations-tab:hover:not(.automations-tab-active) {
    transform: translateY(-1px);
}

.gf-automacoes-tabbar .automations-tab:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent-primary) 65%, transparent);
    outline-offset: 2px;
}

.gf-automacoes-tabbar .automations-tab.automations-tab-active {
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
}

html.theme-dark .gf-automacoes-tabbar .automations-tab.automations-tab-active {
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

/* M&M laranja — abas estilo segment control (pills) */
html[data-panel-theme="mm_laranja"].theme-light .gf-automacoes-tabbar-wrap {
    background: linear-gradient(145deg, rgba(255, 237, 213, 0.55), rgba(255, 255, 255, 0.98)) !important;
    border: 1px solid color-mix(in srgb, var(--accent-primary) 22%, rgba(255, 255, 255, 0.8)) !important;
    border-radius: 1rem !important;
    box-shadow:
        0 10px 36px rgba(234, 88, 12, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 0.35rem 0.45rem !important;
}

html[data-panel-theme="mm_laranja"].theme-light .gf-automacoes-tabbar .automations-tab {
    border-radius: 9999px !important;
    padding: 0.55rem 1.2rem !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    letter-spacing: 0.02em !important;
    color: #9a3412 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-panel-theme="mm_laranja"].theme-light .gf-automacoes-tabbar .automations-tab:hover:not(.automations-tab-active) {
    background: rgba(255, 255, 255, 0.65) !important;
    transform: translateY(0);
}

html[data-panel-theme="mm_laranja"].theme-light .gf-automacoes-tabbar .automations-tab.automations-tab-active {
    background: #ffffff !important;
    color: #ea580c !important;
    box-shadow:
        0 4px 16px rgba(234, 88, 12, 0.22),
        0 1px 0 rgba(255, 255, 255, 1) inset !important;
}