/* ==========================================================================
   DESIGN SYSTEM - PORTAL DE RESULTADOS
   ========================================================================== */

:root {
    /* Cores do Tema (Roxo Corporativo Premium) */
    --bg-base: #06020c;
    --bg-gradient: radial-gradient(circle at 50% 0%, #1a082d 0%, #06020c 100%);
    --bg-card: rgba(22, 10, 38, 0.75);
    --bg-input: rgba(32, 16, 52, 0.6);
    
    --border-glow: rgba(139, 0, 255, 0.2);
    --border-glow-hover: rgba(139, 0, 255, 0.45);
    --border-input: rgba(139, 0, 255, 0.35);
    --border-input-focus: #8b00ff;
    
    --color-primary: #8b00ff;
    --color-primary-hover: #a033ff;
    --color-primary-gradient: linear-gradient(135deg, #8b00ff 0%, #d100d6 100%);
    --color-secondary: #d100d6;
    --color-accent: #d100d6;
    --color-success: #00e676;
    --color-warning: #ff9100;
    
    /* Cores de Texto */
    --text-main: #ffffff;
    --text-muted: #b5a4be;
    --text-inactive: #756281;
    
    /* Efeitos */
    --glass-blur: blur(20px);
    --shadow-neon: 0 8px 32px 0 rgba(5, 2, 10, 0.4), 0 0 15px rgba(139, 0, 255, 0.1);
    --shadow-neon-hover: 0 8px 32px 0 rgba(5, 2, 10, 0.6), 0 0 25px rgba(139, 0, 255, 0.25);
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 6px;
}

/* Reset Geral */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--bg-base);
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

body {
    background: var(--bg-base);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-size: 15px; /* Ajustado para visual mais compacto e elegante */
}

/* Helpers */
.hidden {
    display: none !important;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

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

.margin-top-xs { margin-top: 6px; }
.margin-top-sm { margin-top: 14px; }
.margin-top-md { margin-top: 26px; }

/* Botões */
button, .btn {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--color-primary-gradient);
    color: #ffffff;
    font-weight: 600;
    font-size: 19px; /* Aumentado */
    padding: 16px 32px; /* Aumentado */
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(209, 0, 214, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(209, 0, 214, 0.5), 0 0 10px rgba(139, 0, 255, 0.3);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 500;
    font-size: 19px; /* Aumentado */
    padding: 16px 32px; /* Aumentado */
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
}

.btn-block {
    width: 100%;
}

.btn-logout {
    background: rgba(255, 61, 0, 0.1);
    border: 1px solid rgba(255, 61, 0, 0.2);
    color: #ff3d00;
    padding: 12px 24px; /* Aumentado */
    border-radius: var(--border-radius-md);
    font-size: 17px; /* Aumentado */
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.btn-logout:hover {
    background: rgba(255, 61, 0, 0.2);
    border-color: #ff3d00;
    transform: translateY(-1px);
}

.btn-logout-footer {
    background: rgba(139, 0, 255, 0.08) !important;
    border: 2px solid var(--color-primary) !important;
    color: #ffffff !important;
    padding: 14px 35px !important;
    border-radius: var(--border-radius-md) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: var(--transition-fast) !important;
    cursor: pointer !important;
}

.btn-logout-footer:hover {
    background: var(--color-primary) !important;
    box-shadow: 0 6px 20px rgba(139, 0, 255, 0.4) !important;
    transform: translateY(-2px) !important;
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 19px; /* Aumentado */
    padding: 16px 32px; /* Aumentado */
    border-radius: var(--border-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   TELA DE LOGIN
   ========================================================================== */
#view-login {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* Esferas luminosas de fundo */
.ambient-glows {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    mix-blend-mode: screen;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: #8b00ff;
    top: -10%;
    left: 10%;
    animation: floatGlow1 20s infinite alternate ease-in-out;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: #d100d6;
    bottom: -15%;
    right: 5%;
    animation: floatGlow2 25s infinite alternate ease-in-out;
}

.glow-3 {
    width: 300px;
    height: 300px;
    background: #4a00e0;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatGlow3 18s infinite alternate ease-in-out;
}

@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.15); }
}

@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1.1); }
    100% { transform: translate(-80px, -50px) scale(0.9); }
}

@keyframes floatGlow3 {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.1; }
    100% { transform: translate(-30%, -40%) scale(1.1); opacity: 0.18; }
}

/* Split Container */
.login-split-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    width: 100vw;
    height: 100vh;
    max-width: none;
    min-height: none;
    background: rgba(12, 5, 24, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: none;
    border-radius: 0;
    overflow: hidden;
    z-index: 2;
    box-shadow: none;
    margin: 0;
    animation: fadeInScale 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

/* Lado Esquerdo - Painel Visual */
.login-visual-panel {
    background: linear-gradient(135deg, rgba(26, 8, 45, 0.85) 0%, rgba(10, 3, 19, 0.95) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.visual-panel-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.visual-badge {
    align-self: flex-start;
    background: rgba(139, 0, 255, 0.15);
    border: 1px solid rgba(139, 0, 255, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.visual-title {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #ffffff;
}

.visual-title span {
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.visual-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Elemento gráfico CSS moderno */
.visual-graphic-box {
    margin-top: 35px;
    position: relative;
    height: 250px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: hidden;
}

.graphic-element {
    position: absolute;
}

.graphic-circle-glow {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(139,0,255,0.4) 0%, rgba(0,0,0,0) 70%);
    top: 20%;
    left: 20%;
    animation: pulseGlow 4s infinite alternate ease-in-out;
}

.graphic-line-1 {
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, rgba(139, 0, 255, 0) 0%, rgba(139, 0, 255, 0.4) 50%, rgba(139, 0, 255, 0) 100%);
    top: 40%;
    left: 10%;
}

.graphic-line-2 {
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, rgba(209, 0, 214, 0) 0%, rgba(209, 0, 214, 0.4) 50%, rgba(209, 0, 214, 0) 100%);
    top: 60%;
    left: 10%;
}

.graphic-card {
    width: 180px;
    height: 110px;
    background: rgba(22, 10, 38, 0.85);
    border: 1px solid rgba(139, 0, 255, 0.3);
    border-radius: 12px;
    right: 15%;
    top: 25%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 0, 255, 0.15);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: floatCard 6s infinite alternate ease-in-out;
}

.graphic-card-header {
    display: flex;
    gap: 4px;
}

.graphic-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.graphic-dot.red { background: #ff5f56; }
.graphic-dot.yellow { background: #ffbd2e; }
.graphic-dot.green { background: #27c93f; }

.graphic-card-body {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
}

.graphic-bar-chart {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: flex-end;
    height: 55px;
    padding: 0 10px;
}

.bar {
    width: 20px;
    background: var(--color-primary-gradient);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.bar-1 { height: 30px; animation: barGrow1 3s infinite alternate ease-in-out; }
.bar-2 { height: 50px; animation: barGrow2 3.5s infinite alternate ease-in-out; }
.bar-3 { height: 40px; animation: barGrow3 2.8s infinite alternate ease-in-out; }

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 1; }
}

@keyframes floatCard {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes barGrow1 { 0% { height: 20px; } 100% { height: 45px; } }
@keyframes barGrow2 { 0% { height: 35px; } 100% { height: 60px; } }
@keyframes barGrow3 { 0% { height: 15px; } 100% { height: 50px; } }

/* Lado Direito - Painel de Formulário */
.login-form-panel {
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo-mobile {
    display: none;
    font-size: 40px;
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-align: center;
}

.login-card {
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    width: 100%;
    box-shadow: none;
}

.login-card:hover {
    box-shadow: none;
    border-color: transparent;
}

.login-card h2 {
    font-size: 34px;
    font-weight: 800;
    text-align: left;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    text-align: left;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Responsividade do Login */
@media (max-width: 992px) {
    .login-split-container {
        grid-template-columns: 1fr;
        width: 100vw;
        height: 100vh;
        max-width: none;
        min-height: none;
        margin: 0;
        border-radius: 0;
        border: none;
    }
    .login-visual-panel {
        display: none;
    }
    .login-form-panel {
        padding: 40px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .login-logo-mobile {
        display: block;
    }
    .login-card h2 {
        text-align: center;
    }
    .login-subtitle {
        text-align: center;
    }
}

.input-group {
    margin-bottom: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.input-group label {
    font-size: 17px; /* Aumentado */
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group label i {
    font-size: 20px; /* Aumentado */
    color: var(--color-primary);
}

.input-group input, .input-group select {
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--border-radius-md);
    padding: 16px 22px; /* Aumentado */
    color: #ffffff;
    font-size: 19px; /* Aumentado */
    outline: none;
    transition: var(--transition-fast);
    width: 100%;
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--border-input-focus);
    box-shadow: 0 0 10px rgba(209, 0, 214, 0.2);
    background: rgba(45, 23, 66, 0.7);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.password-wrapper {
    position: relative;
    width: 100%;
    display: block; /* Garante largura total */
}

.password-wrapper input {
    width: 100%;
    padding-right: 60px !important; /* Espaço para o botão do olho */
}

.btn-toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important; /* Forçado transparente */
    border: none !important; /* Forçado sem bordas */
    outline: none !important;
    box-shadow: none !important;
    color: var(--text-muted) !important;
    font-size: 24px !important; /* Aumentado */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    z-index: 9999 !important;
    transition: var(--transition-fast);
}

.btn-toggle-password:hover {
    color: var(--color-accent) !important;
}

.helper-text {
    font-size: 11px;
    color: var(--text-inactive);
}

.login-footer {
    margin-top: 25px;
    text-align: center;
}

.login-footer p {
    font-size: 12px;
    color: var(--text-inactive);
    margin-bottom: 12px;
}

.demo-badge {
    background: rgba(139, 0, 255, 0.15);
    border: 1px dashed rgba(139, 0, 255, 0.4);
    color: var(--color-accent);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.demo-badge:hover {
    background: rgba(139, 0, 255, 0.25);
    border-color: var(--color-accent);
    transform: scale(1.02);
}

/* ==========================================================================
   LAYOUT DAS TELAS LOGADAS (DASHBOARD E ADMIN)
   ========================================================================== */

.dashboard-header {
    background: rgba(6, 3, 17, 0.85);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1.5px solid rgba(139, 0, 255, 0.2);
    padding: 20px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 100;
}

.logo-img-small {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-welcome {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 600;
}

.user-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.header-badge {
    background: var(--color-primary-gradient);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(209, 0, 214, 0.4);
}

/* Conteúdo Principal */
.dashboard-content {
    flex: 1;
    padding: 40px 4%;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

.dashboard-headline {
    margin-bottom: 30px;
}

.dashboard-headline h1 {
    font-size: 32px; /* Aumentado */
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.subtitle-date {
    color: var(--text-muted);
    font-size: 16px; /* Aumentado */
}

/* ==========================================================================
   KPI CARDS
   ========================================================================== */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Ajustado minmax */
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glow);
    border-radius: var(--border-radius-lg);
    padding: 20px; /* Reduzido de 28px para ser compacto */
    display: flex;
    align-items: center;
    gap: 16px; /* Reduzido */
    box-shadow: var(--shadow-neon);
    transition: var(--transition-fast);
}

.kpi-card:hover {
    border-color: var(--border-glow-hover);
    box-shadow: var(--shadow-neon-hover);
    transform: translateY(-2px);
}

.kpi-icon-wrapper {
    width: 52px; /* Reduzido de 68px */
    height: 52px; /* Reduzido de 68px */
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px; /* Reduzido de 30px */
}

/* Cores específicas dos ícones KPI */
.kpi-icon-wrapper.investido {
    background: rgba(209, 0, 214, 0.15);
    color: var(--color-accent);
    border: 1px solid rgba(209, 0, 214, 0.3);
}

.kpi-icon-wrapper.leads {
    background: rgba(0, 230, 118, 0.15);
    color: var(--color-success);
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.kpi-icon-wrapper.cpl {
    background: rgba(139, 0, 255, 0.15);
    color: var(--color-secondary);
    border: 1px solid rgba(139, 0, 255, 0.3);
}

.kpi-icon-wrapper.cliques {
    background: rgba(255, 145, 0, 0.15);
    color: var(--color-warning);
    border: 1px solid rgba(255, 145, 0, 0.3);
}

.kpi-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kpi-label {
    font-size: 13px; /* Reduzido de 15px */
    font-weight: 500;
    color: var(--text-muted);
}

.kpi-value {
    font-size: 24px; /* Reduzido de 32px para ficar elegante */
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.kpi-trend {
    font-size: 11px; /* Reduzido de 13px */
    font-weight: 600;
    color: var(--text-inactive);
    display: flex;
    align-items: center;
    gap: 4px;
}

.kpi-trend.positive {
    color: var(--color-success);
}

/* ==========================================================================
   GRÁFICOS E SIDEBAR
   ========================================================================== */

.dashboard-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
}

.chart-container-card, .support-sidebar-card, .table-container-card, .admin-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glow);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-neon);
    transition: var(--transition-fast);
    padding: 24px;
}

.chart-container-card:hover, .support-sidebar-card:hover, .table-container-card:hover, .admin-card:hover {
    border-color: var(--border-glow-hover);
    box-shadow: var(--shadow-neon-hover);
}

/* ==========================================================================
   FORM SELECT (FILTROS)
   ========================================================================== */
.form-select {
    background-color: rgba(30, 15, 45, 0.8);
    border: 1px solid rgba(139, 0, 255, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 8px 36px 8px 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    transition: var(--transition-fast);
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23d100d6" viewBox="0 0 256 256"><path d="M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    box-shadow: 0 0 10px rgba(139, 0, 255, 0.05);
}

.form-select:focus, .form-select:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(209, 0, 214, 0.3);
    background-color: rgba(45, 23, 66, 0.9);
}

.form-select option {
    background-color: #1e0f2d;
    color: #ffffff;
    padding: 10px;
}

/* ==========================================================================
   SEARCH BOX (FILTROS E BUSCA)
   ========================================================================== */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: var(--color-primary);
    font-size: 16px;
    pointer-events: none;
}

.form-input {
    background-color: rgba(30, 15, 45, 0.8);
    border: 1px solid rgba(139, 0, 255, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 8px 12px 8px 36px; /* Espaço para o ícone na esquerda */
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    transition: var(--transition-fast);
    box-shadow: 0 0 10px rgba(139, 0, 255, 0.05);
    width: 100%;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus, .form-input:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(209, 0, 214, 0.3);
    background-color: rgba(45, 23, 66, 0.9);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    color: var(--color-primary);
}

.badge-source, .badge-accent {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.badge-accent {
    background: rgba(209, 0, 214, 0.1);
    border-color: rgba(209, 0, 214, 0.3);
    color: var(--color-accent);
}

.chart-wrapper {
    position: relative;
    height: 320px;
    width: 100%;
}

/* Suporte Sidebar */
.support-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    justify-content: center;
}

.support-content p {
    font-size: 18px; /* Destacado */
    color: #ffffff; /* Branco para alto destaque */
    font-weight: 500; /* Peso médio para legibilidade premium */
    line-height: 1.6;
}

.support-contact-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 18px; /* Aumentado */
    display: flex;
    align-items: center;
    gap: 14px;
}

.gestor-avatar i {
    font-size: 46px; /* Aumentado */
    color: var(--color-primary);
}

.gestor-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gestor-details strong {
    font-size: 17px; /* Aumentado de 15px */
}

.gestor-details span {
    font-size: 14px; /* Aumentado de 12px */
    color: var(--text-muted);
}

/* ==========================================================================
   TABELAS DE DADOS
   ========================================================================== */

.flex-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-count {
    font-size: 15px; /* Aumentado de 13px */
    color: var(--text-muted);
}

.table-scroll {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px; /* Reduzido de 18px */
}

.data-table th {
    padding: 14px 18px; /* Reduzido de 22px 24px */
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 13px; /* Reduzido de 15px */
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.01);
}

.data-table td {
    padding: 14px 18px; /* Reduzido de 24px */
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-weight: 600;
}

.data-table td strong {
    font-size: 16px; /* Reduzido de 19px */
    color: #ffffff;
}

.data-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.badge-status {
    padding: 5px 12px; /* Aumentado */
    border-radius: 20px;
    font-size: 12px; /* Aumentado */
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.badge-status.active {
    background: rgba(0, 230, 118, 0.1);
    color: var(--color-success);
}

.badge-status.paused {
    background: rgba(255, 145, 0, 0.1);
    color: var(--color-warning);
}

/* ==========================================================================
   PAINEL ADMIN
   ========================================================================== */

.admin-navigation-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
    overflow-x: auto;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 14px 26px;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.tab-btn:hover {
    color: #ffffff;
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.25);
}

.tab-btn.active {
    background: var(--color-primary-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25);
}

.admin-split-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
}

.admin-split-layout-wide {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 25px;
}

@media (max-width: 992px) {
    .admin-split-layout, .admin-split-layout-wide {
        grid-template-columns: 1fr;
    }
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 15px;
}

.form-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.card-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Estilo para dropdown de vinculação */
.select-linkage {
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--border-radius-sm);
    color: #ffffff;
    padding: 8px 12px;
    font-size: 13px;
    width: 100%;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.select-linkage:focus {
    border-color: var(--color-primary);
}

.select-linkage option {
    background: #170a24;
    color: #ffffff;
}

/* Ações nas Tabelas de Admin */
.btn-icon-danger {
    background: rgba(255, 61, 0, 0.1);
    border: 1px solid rgba(255, 61, 0, 0.2);
    color: #ff3d00;
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-icon-danger:hover {
    background: rgba(255, 61, 0, 0.3);
    border-color: #ff3d00;
    transform: scale(1.05);
}

/* ==========================================================================
   MODAL E TOASTS
   ========================================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 2, 8, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: #170724;
    border: 1px solid var(--border-glow);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-neon-hover);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 24px;
}

.demo-credentials-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cred-item {
    font-size: 14px;
    line-height: 1.6;
}

.cred-item code {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    user-select: all;
    cursor: pointer;
}

.modal-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #170724;
    border-left: 4px solid var(--color-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    padding: 16px 24px;
    z-index: 10000;
    max-width: 320px;
    animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
}

.toast.success {
    border-left-color: var(--color-success);
}

.toast.error {
    border-left-color: #ff3d00;
}

.toast span {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

/* ==========================================================================
   ANIMAÇÕES
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   MEDIA QUERIES DE RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 768px) {
    .dashboard-header {
        padding: 12px 15px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .card-header h3 {
        font-size: 16px;
        justify-content: center;
        text-align: center;
    }
    
    .header-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .logo-svg-small {
        height: 34px;
    }
    
    /* Ocultar o botão de exportar banco de dados no celular, pois é desnecessário e polui o cabeçalho */
    #btn-export-database {
        display: none !important;
    }

    .user-info {
        display: flex !important;
        flex-direction: column;
        text-align: right;
    }

    .user-welcome {
        font-size: 11px !important;
    }

    .user-name {
        font-size: 14px !important;
    }
    
    .dashboard-content {
        padding: 15px 12px; /* Margens reduzidas para maximizar espaço no celular */
    }
    
    .dashboard-headline {
        margin-bottom: 20px;
    }

    .dashboard-headline h1 {
        font-size: 20px;
    }
    
    /* Grade de KPIs compacta de 2 colunas (evita tela muito longa e poluída) */
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 20px;
    }
    
    .kpi-card {
        padding: 12px 10px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .kpi-data {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .kpi-card .kpi-icon-wrapper {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }

    .kpi-card .kpi-value {
        font-size: 18px !important;
        margin: 4px 0 !important;
    }

    .kpi-card .kpi-title {
        font-size: 11px !important;
    }

    .kpi-card .kpi-trend {
        font-size: 10px !important;
    }
    
    /* Otimizar card de suporte no celular */
    .support-content {
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important; /* Estica o botão para preencher 100% horizontalmente */
        gap: 16px !important; /* Espaçamento interno unificado */
        padding-bottom: 16px !important; /* Respiro elegante na base do card */
    }

    .support-content p {
        display: none; /* Esconder descrição longa e desnecessária */
    }

    .support-contact-box {
        margin: 0 !important;
        display: flex !important;
        flex-direction: row !important; /* Melhor: lado a lado */
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 16px !important;
        padding: 16px !important;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .gestor-details {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .btn-whatsapp {
        padding: 12px 16px !important;
        font-size: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important; /* Garante que não haja margens desalinhando */
        box-sizing: border-box !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .chart-container-card {
        padding: 14px;
        margin-bottom: 20px;
    }
    
    .chart-wrapper {
        height: 200px; /* Gráfico mais compacto para não ocupar a tela inteira */
    }
    
    /* Transformação de Tabelas em Cards no Celular (Design Responsivo Limpo) */
    .data-table thead {
        display: none;
    }

    .data-table, .data-table tbody, .data-table tr, .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        background: rgba(255, 255, 255, 0.015);
        border: 1px solid rgba(139, 0, 255, 0.12);
        border-radius: 12px;
        margin-bottom: 16px;
        padding: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        text-align: right;
        font-size: 13px !important;
    }

    .data-table td:last-child {
        border-bottom: none;
    }

    .data-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: 0.5px;
        text-align: left;
    }

    /* Destacar nome da campanha/cliente no topo do card */
    .data-table td:first-child {
        background: rgba(139, 0, 255, 0.08);
        border-radius: 8px;
        margin-bottom: 8px;
        padding: 12px;
        justify-content: center;
        text-align: center;
        border-bottom: none;
    }

    .data-table td:first-child::before {
        display: none;
    }

    .data-table td:first-child strong {
        font-size: 15px;
        color: #ffffff;
    }

    /* Centralizar ações e dar destaque para o select de vinculação no celular */
    .data-table td[data-label="Cliente Associado"] {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .data-table td[data-label="Cliente Associado"]::before {
        text-align: left;
        margin-bottom: 2px;
    }

    .data-table td[data-label="Cliente Associado"] .select-linkage {
        width: 100%;
        font-size: 14px;
        padding: 10px;
    }

    .data-table td[data-label="Ações"] {
        justify-content: center;
        border-bottom: none;
        padding-top: 15px;
    }
    
    .form-actions-row {
        flex-direction: column;
    }
    
    .toast {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: none;
    }
}

/* ==========================================================================
   GRID DE CAMPANHAS DO CLIENTE (Design Premium)
   ========================================================================== */
.client-campaigns-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 10px;
}

.client-campaign-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(139, 0, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.client-campaign-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary-gradient);
}

.client-campaign-card:hover {
    border-color: rgba(139, 0, 255, 0.4);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(139, 0, 255, 0.15);
}

.ccc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.ccc-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}

.ccc-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.ccc-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.ccc-metric.highlight-box {
    background: rgba(139, 0, 255, 0.08);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(139, 0, 255, 0.2);
}

.ccc-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ccc-value {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.ccc-label.highlight,
.ccc-value.highlight {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .client-campaign-card {
        padding: 20px 15px;
    }
    
    .ccc-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .ccc-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .support-content {
        padding: 20px;
        border-radius: 12px;
    }
}

/* ==========================================================================
   NOVO SUPORTE BANNER PREMIUM (FIM DA PÁGINA)
   ========================================================================== */
.support-banner-card {
    background: linear-gradient(135deg, rgba(139, 0, 255, 0.05) 0%, rgba(209, 0, 214, 0.05) 100%);
    border: 1px solid var(--border-glow);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-neon);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 25px;
    position: relative;
    overflow: hidden;
}

.support-banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary-gradient);
}

.support-banner-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.support-icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(139, 0, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--color-primary);
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(139, 0, 255, 0.2);
}

.support-texts h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: #fff;
}

.support-texts p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.support-banner-action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 15px;
}

.support-banner-action .support-contact-box {
    display: none;
}

.support-banner-action .btn-whatsapp {
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .support-banner-card {
        padding: 25px 20px;
    }
    
    .support-banner-action {
        background: rgba(255, 255, 255, 0.03);
        padding: 20px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .support-banner-action .support-contact-box {
        display: flex;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 0;
        background: transparent;
        border: none;
    }
}
