/* === CSS EXCLUSIVO DA SEÇÃO CRM === */

/* Seção CRM Principal - Forçando aplicação */
section.crm-funnel-section, 
.crm-funnel-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #312e81 50%, #7c3aed 75%, #ec4899 100%) !important;
    min-height: 100vh !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 6rem 0 !important;
    color: white !important;
}

/* Removendo qualquer fundo branco que possa estar interferindo */
.crm-funnel-section * {
    color: inherit !important;
}

.crm-funnel-section h1, 
.crm-funnel-section h2, 
.crm-funnel-section h3, 
.crm-funnel-section p {
    color: white !important;
}

/* Efeitos de fundo */
.crm-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.crm-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 70%, rgba(14, 165, 233, 0.2) 0%, transparent 40%);
}

.crm-floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.crm-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: crm-float 20s ease-in-out infinite;
}

.crm-shape-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.crm-shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #ec4899, #f59e0b);
    bottom: 20%;
    right: 15%;
    animation-delay: 7s;
}

.crm-shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #10b981, #06b6d4);
    top: 50%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes crm-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.1); }
    50% { transform: translate(-15px, 20px) scale(0.9); }
    75% { transform: translate(25px, 10px) scale(1.05); }
}

/* Container principal */
.crm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Header da seção */
.crm-header {
    text-align: center;
    margin-bottom: 4rem;
}

.crm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.crm-badge-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.crm-main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-family: 'Orbitron', 'Inter', sans-serif;
}

.crm-title-highlight {
    background: linear-gradient(45deg, #06b6d4, #3b82f6, #8b5cf6, #ec4899);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: crm-gradient-shift 4s ease-in-out infinite;
}

@keyframes crm-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.crm-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Layout principal */
.crm-content-layout {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Seção Pipeline */
.crm-pipeline-section {
    width: 100%;
}

.crm-pipeline-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 3rem;
    position: relative;
    font-family: 'Orbitron', 'Inter', sans-serif;
}

.crm-pipeline-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    border-radius: 2px;
}

/* Funil com Barras Horizontais */
.crm-real-funnel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Estágios do funil em barras horizontais */
.crm-funnel-stage {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    transform-origin: center;
    margin-bottom: 1rem;
}

.crm-funnel-stage:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 10;
}

/* Indicador visual de progresso no funil */
.crm-funnel-stage::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 2px;
    opacity: 0;
    transition: all 0.4s ease;
}

.crm-funnel-stage:hover::before {
    opacity: 1;
    top: -35px;
}

/* Linha conectora entre estágios */
.crm-real-funnel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(16, 185, 129, 0.5) 0%, 
        rgba(59, 130, 246, 0.5) 33%, 
        rgba(139, 92, 246, 0.5) 66%, 
        rgba(245, 158, 11, 0.5) 100%);
    z-index: 1;
    opacity: 0.3;
}

/* Setas conectoras entre estágios */
.crm-funnel-stage::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 16px solid rgba(255, 255, 255, 0.4);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
    z-index: 5;
}

.crm-funnel-stage:last-child::after {
    display: none;
}

.crm-funnel-stage:hover::after {
    border-top-color: rgba(255, 255, 255, 0.7);
    transform: translateX(-50%) scale(1.2);
}

/* Larguras decrescentes para efeito visual de funil */
.crm-stage-1 {
    width: 100%;
}

.crm-stage-2 {
    width: 85%;
}

.crm-stage-3 {
    width: 70%;
}

.crm-stage-4 {
    width: 55%;
}

/* Container das barras */
.crm-funnel-stage-content {
    backdrop-filter: blur(20px);
    border-radius: 1.2rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
    min-height: 180px;
    max-height: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 
                0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Cores específicas por estágio */
.crm-stage-1 .crm-funnel-stage-content {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
    border-color: rgba(16, 185, 129, 0.4);
}

.crm-stage-2 .crm-funnel-stage-content {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(30, 64, 175, 0.1));
    border-color: rgba(59, 130, 246, 0.4);
}

.crm-stage-3 .crm-funnel-stage-content {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.1));
    border-color: rgba(139, 92, 246, 0.4);
}

.crm-stage-4 .crm-funnel-stage-content {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
    border-color: rgba(245, 158, 11, 0.4);
}

/* Headers dos estágios */
.crm-stage-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.crm-stage-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.crm-stage-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.crm-icon-leads {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.crm-icon-qualified {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.crm-icon-proposals {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.crm-icon-sales {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.crm-stage-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crm-stage-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.crm-stage-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    min-width: 50px;
    text-align: center;
}

/* Área dos cards com altura fixa */
.crm-cards-area {
    min-height: 100px;
    max-height: 100px;
    height: 100px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    position: relative;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

/* Lead cards menores e horizontais */
.crm-lead-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.4rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    min-width: 110px;
    max-width: 125px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.65rem;
    margin: 0 auto; /* Centraliza horizontalmente */
}

.crm-lead-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    transition: all 0.3s ease;
}

.crm-lead-leads::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.crm-lead-qualified::before {
    background: linear-gradient(90deg, #3b82f6, #1e40af);
}

.crm-lead-proposals::before {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.crm-lead-sales::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.crm-lead-success {
    animation: crm-success-pulse 1s ease-out;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

@keyframes crm-success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.crm-lead-source {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.05rem;
    line-height: 1;
}

.crm-lead-name {
    font-size: 0.6rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.05rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crm-lead-value {
    font-size: 0.6rem;
    font-weight: 700;
    color: #fbbf24;
    line-height: 1;
}

/* Taxa de conversão */
.crm-conversion-rate {
    text-align: center;
    margin-top: 2rem;
}

.crm-conversion-badge {
    background: linear-gradient(135deg, #10b981, #f59e0b);
    color: #000000;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.crm-conversion-badge:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Efeito de piscar na taxa de conversão */
@keyframes conversion-blink {
    0%, 50% {
        background: linear-gradient(135deg, #22c55e, #16a34a);
        box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
        transform: scale(1);
    }
    25% {
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        box-shadow: 0 12px 30px rgba(251, 191, 36, 0.6);
        transform: scale(1.05);
    }
    75% {
        background: linear-gradient(135deg, #ef4444, #dc2626);
        box-shadow: 0 12px 30px rgba(239, 68, 68, 0.6);
        transform: scale(1.05);
    }
}

.crm-conversion-badge.new-sale {
    animation: conversion-blink 1.5s ease-in-out;
}

.crm-conversion-percent {
    font-size: 1.5rem;
    line-height: 1;
    background: linear-gradient(45deg, #00ff88, #00ffff, #88ff00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
    animation: crm-fluorescent-glow 2s ease-in-out infinite alternate;
}

.crm-conversion-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* === FORÇANDO ESTILOS CRM === */
body section.crm-funnel-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #312e81 50%, #7c3aed 75%, #ec4899 100%) !important;
    color: white !important;
}

/* Garantindo que não há interferência de outros CSS */
html body .crm-funnel-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #312e81 50%, #7c3aed 75%, #ec4899 100%) !important;
}

/* Container do CRM */
.crm-container {
    position: relative !important;
    z-index: 10 !important;
    color: white !important;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    
    /* ESCONDER PIPELINE COMPLETO NO MOBILE */
    .crm-pipeline-section {
        display: none !important;
        visibility: hidden !important;
    }
    
    .crm-container {
        padding: 0 1rem;
    }
    
    .crm-funnel-section {
        padding: 4rem 0;
    }
    
    .crm-pipeline-title {
        font-size: 2rem;
    }
    
    .crm-main-title {
        font-size: 2.5rem;
    }
    
    .crm-stage-1,
    .crm-stage-2,
    .crm-stage-3,
    .crm-stage-4 {
        width: 100%;
    }
    
    .crm-funnel-stage-content {
        padding: 1rem;
        border-radius: 1rem;
    }
    
    .crm-feature-title {
        white-space: normal;
        font-size: 1rem;
    }
    
    .crm-stage-name {
        font-size: 0.95rem;
    }
    
    .crm-stage-count {
        font-size: 1rem;
        padding: 0.4rem 0.6rem;
    }
    
    .crm-funnel-stage::after {
        border-left-width: 8px;
        border-right-width: 8px;
        border-top-width: 12px;
    }
}

@media (max-width: 1024px) {
    .crm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .crm-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Animação de entrada dos cards - melhorada */
.crm-lead-card {
    animation: none; /* Remove animação inicial automática */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.crm-lead-card.crm-card-enter {
    animation: crm-card-enter 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.crm-lead-card:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@keyframes crm-card-enter {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animação de saída dos cards - mais rápida */
.crm-lead-card.crm-lead-card-exit {
    animation: crm-card-exit 0.3s cubic-bezier(0.4, 0, 0.8, 1) forwards;
}

@keyframes crm-card-exit {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
}

/* Efeito de sucesso mais rápido */
.crm-lead-success {
    animation: crm-success-celebration 0.8s ease-out;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
    border: 2px solid rgba(245, 158, 11, 0.5);
}

@keyframes crm-success-celebration {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
    }
    30% { 
        transform: scale(1.08) rotateZ(1deg);
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.8);
    }
    60% { 
        transform: scale(1.02) rotateZ(-0.5deg);
        box-shadow: 0 0 35px rgba(245, 158, 11, 0.7);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
    }
}

/* Efeito de fluxo entre estágios */
.crm-funnel-flow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 50%;
    animation: crm-flow-pulse 2s ease-in-out infinite;
    z-index: 5;
}

@keyframes crm-flow-pulse {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Ajuste para feature header */
.crm-feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.crm-feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    flex: 1;
    white-space: nowrap;
}

/* Features grid - 2x2 layout */
.crm-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .crm-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
}

.crm-feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.crm-feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.crm-feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.crm-feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #ffffff;
}

.crm-feature-icon-1 {
    background: linear-gradient(135deg, #10b981, #059669);
}

.crm-feature-icon-2 {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.crm-feature-icon-3 {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.crm-feature-icon-4 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.crm-feature-text {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

/* Seção de Stats */
.crm-stats-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.crm-stats-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(45deg, #00ff88, #00ffff, #88ff00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6), 0 0 30px rgba(0, 255, 255, 0.4);
    animation: crm-fluorescent-glow 2s ease-in-out infinite alternate;
}

.crm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.crm-stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.crm-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.crm-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #00ff88, #00ffff, #88ff00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
    animation: crm-fluorescent-glow 2s ease-in-out infinite alternate;
}

@keyframes crm-fluorescent-glow {
    0% {
        filter: brightness(1);
        text-shadow: 0 0 10px rgba(0, 255, 136, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
    }
    100% {
        filter: brightness(1.2);
        text-shadow: 0 0 15px rgba(0, 255, 136, 0.8), 0 0 30px rgba(0, 255, 255, 0.5), 0 0 40px rgba(136, 255, 0, 0.3);
    }
}

.crm-stat-label {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
}

.crm-stat-desc {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 400;
    display: block;
}

/* Setas de transição entre estágios */
.crm-funnel-stage:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid rgba(255, 255, 255, 0.3);
    z-index: 5;
    transition: all 0.3s ease;
    animation: crm-arrow-pulse 2s ease-in-out infinite;
}

.crm-funnel-stage:hover::after {
    border-top-color: rgba(255, 255, 255, 0.6);
    transform: translateX(-50%) scale(1.2);
}

@keyframes crm-arrow-pulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: translateX(-50%) translateY(0px);
    }
    50% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(3px);
    }
}

/* Efeito de linha conectora */
.crm-funnel-stage:not(:last-child) {
    margin-bottom: 2rem;
    position: relative;
}

.crm-funnel-stage:not(:last-child)::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    border-radius: 1px;
    z-index: 4;
}

/* Efeito de ondulação nos estágios quando ativados */

/* Efeito de ondulação nos estágios quando ativados */
.crm-funnel-stage.active {
    animation: crm-stage-ripple 0.6s ease-out;
}

@keyframes crm-stage-ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 0 0 0 40px rgba(255, 255, 255, 0);
    }
}

/* Efeito de pulsação suave nas setas */
.crm-funnel-stage::after {
    animation: crm-arrow-pulse 3s ease-in-out infinite;
}

@keyframes crm-arrow-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.1);
    }
}

/* Específico para área de vendas - cards menores e centralizados */
#sales-area .crm-lead-card {
    min-width: 100px;
    max-width: 115px;
    height: 30px;
    font-size: 0.6rem;
    padding: 0.25rem 0.4rem;
    margin: 0 0.2rem 0.2rem 0;
    justify-content: center;
    text-align: center;
}

#sales-area {
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}

#sales-area .crm-lead-source {
    font-size: 0.55rem;
    margin-bottom: 0.05rem;
}

#sales-area .crm-lead-name {
    font-size: 0.6rem;
    margin-bottom: 0.05rem;
}

#sales-area .crm-lead-value {
    font-size: 0.6rem;
    font-weight: 700;
}

/* Card explicativo do CRM */
.crm-explanation-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Título do card de explicação - destacado e centralizado */
.crm-explanation-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.3;
    color: #ffffff;
    padding: 0 1rem;
}

.crm-title-highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    font-size: 1.15em;
    text-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
    display: inline-block;
    transform: scale(1.05);
    letter-spacing: 0.5px;
}

/* Responsividade para o título */
@media (max-width: 768px) {
    .crm-explanation-title {
        font-size: 1.4rem !important;  /* Menor para mobile */
        padding: 0 0.5rem;
        line-height: 1.3;
    }
    
    .crm-title-highlight {
        font-size: 1.0em;
    }
}

@media (max-width: 640px) {
    .crm-explanation-title {
        font-size: 1.2rem !important;  /* Ainda menor para telas menores */
        line-height: 1.3;
    }
    
    .crm-title-highlight {
        font-size: 1.0em;
    }
}

.crm-explanation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: crm-card-shimmer 3s infinite;
}

@keyframes crm-card-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.crm-explanation-body {
    position: relative;
    z-index: 2;
}

.crm-highlight-value {
    background: linear-gradient(45deg, #00ff88, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}
