﻿/* ====================================
   SALAIRES MÉTIERS - ULTRA PREMIUM DESIGN
   Analyse de salaires sophistiquée
   ==================================== */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --info-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Animations sophistiquées */
@keyframes float-bubble {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes pulse-data {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
        transform: scale(1.02);
    }
}

@keyframes chart-slide-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes number-pop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes tag-bounce {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes autocomplete-slide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Particules canvas */
.particles-canvas {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0 !important;
    opacity: 0.2;
}

/* Search section premium */
.search-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: chart-slide-up 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.search-section h2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    position: relative;
}

.search-section h2 i {
    animation: float-bubble 3s ease-in-out infinite;
}

/* Autocomplete ultra sophistiqué */
.autocomplete-wrapper {
    position: relative;
}

#metier-search {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.2);
    padding: 18px 24px;
    font-size: 16px;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#metier-search:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 8px 25px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.autocomplete-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    animation: autocomplete-slide 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.autocomplete-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item i {
    color: #667eea;
    font-size: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.autocomplete-item div {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.autocomplete-item strong {
    color: #2d3748;
}

.autocomplete-item:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    padding-left: 30px;
}

.autocomplete-item:hover i {
    transform: scale(1.2) rotate(10deg);
}

.autocomplete-item.selected {
    background: var(--primary-gradient);
    color: white;
}

.autocomplete-item.selected i {
    color: white;
}

.autocomplete-item.selected strong {
    color: white;
}

/* Métiers tags premium */
.popular-metiers {
    margin-top: 40px;
    text-align: center;
}

.popular-metiers h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 20px;
}

.metiers-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.metier-tag {
    background: rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(102, 126, 234, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: tag-bounce 0.5s ease-out;
    animation-fill-mode: backwards;
}

.metier-tag:nth-child(1) { animation-delay: 0.05s; }
.metier-tag:nth-child(2) { animation-delay: 0.1s; }
.metier-tag:nth-child(3) { animation-delay: 0.15s; }
.metier-tag:nth-child(4) { animation-delay: 0.2s; }
.metier-tag:nth-child(5) { animation-delay: 0.25s; }
.metier-tag:nth-child(6) { animation-delay: 0.3s; }
.metier-tag:nth-child(7) { animation-delay: 0.35s; }
.metier-tag:nth-child(8) { animation-delay: 0.4s; }

.metier-tag:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Results section ultra premium */
.results-section {
    animation: chart-slide-up 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.salary-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    animation: chart-slide-up 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
    position: relative;
    animation: float-bubble 4s ease-in-out infinite;
}

.stat-icon::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    background: inherit;
    opacity: 0.3;
    filter: blur(15px);
    z-index: -1;
}

.stat-card.primary .stat-icon { background: var(--primary-gradient); }
.stat-card.success .stat-icon { background: var(--success-gradient); }
.stat-card.warning .stat-icon { background: var(--warning-gradient); }
.stat-card.info .stat-icon { background: var(--info-gradient); }

.stat-label {
    font-size: 14px;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    animation: number-pop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.stat-info {
    font-size: 13px;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-info i {
    color: #10b981;
}

/* Chart container premium */
.chart-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    animation: chart-slide-up 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s backwards;
    position: relative;
}

.chart-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--primary-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.chart-container:hover::before {
    opacity: 0.1;
}

.chart-container h3 {
    color: #2d3748;
    margin-bottom: 25px;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-container h3 i {
    color: #667eea;
    animation: float-bubble 3s ease-in-out infinite;
}

/* Regional comparison premium */
.regional-comparison {
    display: grid;
    gap: 15px;
}

.region-comparison-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: chart-slide-up 0.5s ease-out;
}

.region-comparison-item:nth-child(1) { animation-delay: 0.05s; }
.region-comparison-item:nth-child(2) { animation-delay: 0.1s; }
.region-comparison-item:nth-child(3) { animation-delay: 0.15s; }
.region-comparison-item:nth-child(4) { animation-delay: 0.2s; }
.region-comparison-item:nth-child(5) { animation-delay: 0.25s; }

.region-comparison-item:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.region-name {
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.region-name i {
    color: #667eea;
}

.region-salary {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

.region-bar {
    height: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
}

.region-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.region-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer-advanced 2s linear infinite;
}

@keyframes shimmer-advanced {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Sample size indicator */
.sample-info {
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2563eb;
    font-weight: 600;
    animation: pulse-data 3s ease-in-out infinite;
}

.sample-info i {
    font-size: 20px;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: rgba(239, 68, 68, 0.05);
    border: 2px dashed rgba(239, 68, 68, 0.2);
    border-radius: 20px;
    animation: chart-slide-up 0.6s ease-out;
}

.no-results i {
    font-size: 60px;
    color: #ef4444;
    margin-bottom: 20px;
    animation: float-bubble 3s ease-in-out infinite;
}

.no-results h3 {
    color: #2d3748;
    margin-bottom: 15px;
}

.no-results p {
    color: #718096;
}

/* Loading animation */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 10000;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #667eea;
    font-weight: 600;
    font-size: 18px;
}

/* Responsive premium */
@media (max-width: 768px) {
    .search-section {
        padding: 25px;
    }
    
    .salary-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 26px;
    }
    
    .metiers-tags {
        gap: 8px;
    }
    
    .metier-tag {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Confetti particles */
.confetti-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.results-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.results-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 32px 40px;
    margin-bottom: 40px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    animation: chart-slide-up 0.6s ease;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

.btn-back i {
    transition: transform 0.3s;
}

.btn-back:hover i {
    transform: translateX(-4px);
}

.results-title {
    font-size: 32px;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #c026d3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Stats Grid Mega */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card-mega {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    animation: chart-slide-up 0.6s ease backwards;
}

.stat-card-mega:nth-child(1) { animation-delay: 0.1s; }
.stat-card-mega:nth-child(2) { animation-delay: 0.2s; }
.stat-card-mega:nth-child(3) { animation-delay: 0.3s; }
.stat-card-mega:nth-child(4) { animation-delay: 0.4s; }

.stat-card-mega::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.05;
    transition: all 0.4s;
}

.stat-card-mega.stat-primary::before { background: #4f46e5; }
.stat-card-mega.stat-success::before { background: #10b981; }
.stat-card-mega.stat-warning::before { background: #f59e0b; }
.stat-card-mega.stat-info::before { background: #3b82f6; }

.stat-card-mega:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border-color: currentColor;
}

.stat-card-mega:hover::before {
    transform: scale(2);
    opacity: 0.08;
}

.stat-icon-mega {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
    position: relative;
    transition: all 0.4s;
}

.stat-icon-mega::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    background: inherit;
    opacity: 0.2;
    filter: blur(12px);
    z-index: -1;
}

.stat-card-mega:hover .stat-icon-mega {
    transform: scale(1.1) rotate(5deg);
}

.stat-primary .stat-icon-mega { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); }
.stat-success .stat-icon-mega { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.stat-warning .stat-icon-mega { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.stat-info .stat-icon-mega { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 38px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.stat-subtitle {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}

/* Chart Card Mega */
.chart-card-mega {
    background: white;
    border-radius: 24px;
    padding: 36px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
    animation: chart-slide-up 0.8s ease 0.5s backwards;
}

.chart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.chart-card-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.chart-card-header h3 i {
    color: #4f46e5;
    font-size: 26px;
}

.chart-badge {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.chart-container-mega {
    position: relative;
    height: 400px;
}

/* Regions Card Mega */
.regions-card-mega {
    background: white;
    border-radius: 24px;
    padding: 36px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
    animation: chart-slide-up 0.8s ease 0.6s backwards;
}

.regions-card-header {
    margin-bottom: 28px;
}

.regions-card-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px 0;
}

.regions-card-header h3 i {
    color: #f59e0b;
    font-size: 26px;
}

.regions-subtitle {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

.regions-list-mega {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.region-item-mega {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: chart-slide-up 0.5s ease backwards;
}

.region-item-mega:nth-child(1) { animation-delay: 0.7s; }
.region-item-mega:nth-child(2) { animation-delay: 0.75s; }
.region-item-mega:nth-child(3) { animation-delay: 0.8s; }
.region-item-mega:nth-child(4) { animation-delay: 0.85s; }
.region-item-mega:nth-child(5) { animation-delay: 0.9s; }

.region-item-mega:hover {
    transform: translateX(8px);
    border-color: #4f46e5;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.region-rank {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.region-info {
    flex: 1;
}

.region-name {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.region-offers {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.region-salary {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Conversion Grid */
.conversion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.conversion-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: chart-slide-up 0.5s ease backwards;
}

.conversion-card:nth-child(1) { animation-delay: 0.95s; }
.conversion-card:nth-child(2) { animation-delay: 1s; }
.conversion-card:nth-child(3) { animation-delay: 1.05s; }
.conversion-card:nth-child(4) { animation-delay: 1.1s; }

.conversion-card:hover {
    transform: translateY(-6px);
    border-color: #4f46e5;
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.15);
}

.conversion-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #4f46e5;
    flex-shrink: 0;
}

.conversion-content {
    flex: 1;
}

.conversion-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 4px;
}

.conversion-value {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
}

/* CTA Section Mega */
.cta-section-mega {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #c026d3 100%);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 16px 48px rgba(79, 70, 229, 0.35);
    position: relative;
    overflow: hidden;
    animation: chart-slide-up 0.8s ease 1.15s backwards;
}

.cta-section-mega::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h3 {
    color: white;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.btn-cta-mega {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: white;
    color: #4f46e5;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta-mega:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    background: #fefefe;
}

.btn-cta-mega i {
    transition: transform 0.3s;
}

.btn-cta-mega:hover i {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .results-header {
        padding: 24px;
        flex-direction: column;
        text-align: center;
    }
    
    .btn-back {
        width: 100%;
        justify-content: center;
    }
    
    .results-title {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 32px;
    }
    
    .chart-card-mega,
    .regions-card-mega {
        padding: 24px;
    }
    
    .chart-container-mega {
        height: 300px;
    }
    
    .conversion-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section-mega {
        padding: 32px 24px;
        flex-direction: column;
        text-align: center;
    }
    
    .btn-cta-mega {
        width: 100%;
        justify-content: center;
    }
}