/* AI Demo Slider CSS - Modern AI Trends */

/* CSS Custom Properties */
:root {
    --ai-primary: #6366f1;
    --ai-secondary: #8b5cf6;
    --ai-accent: #06b6d4;
    --ai-success: #10b981;
    --ai-warning: #f59e0b;
    --ai-danger: #ef4444;
    --ai-dark: #1f2937;
    --ai-light: #f8fafc;
    --ai-glass: rgba(255, 255, 255, 0.1);
    --ai-glass-border: rgba(255, 255, 255, 0.2);
    --ai-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --ai-shadow-hover: 0 16px 64px rgba(0, 0, 0, 0.15);
    --ai-border-radius: 20px;
    --ai-transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

/* AI Demo Section - Dark Mode Professional */
.ai-demo-section {
    padding: clamp(60px, 8vw, 100px) 0;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    position: relative;
    overflow: hidden;
    margin-top: clamp(20px, 4vw, 40px);
}

.ai-demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(99,102,241,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.demo-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 80px);
    position: relative;
    z-index: 2;
}

.header-icon {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(20px, 3vw, 30px);
    color: white;
    font-size: clamp(24px, 3vw, 32px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    animation: gentlePulse 4s ease-in-out infinite;
}

.demo-title {
    margin-bottom: clamp(15px, 2.5vw, 25px);
}

.title-main {
    display: block;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: clamp(8px, 1.2vw, 12px);
}

.title-accent {
    display: block;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 500;
    color: var(--ai-primary);
    text-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto clamp(30px, 4vw, 40px);
    line-height: 1.6;
}

.header-features {
    margin-top: clamp(40px, 5vw, 50px);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 30px);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 20px);
    padding: clamp(20px, 3vw, 25px);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(31, 41, 55, 0.4));
    border-radius: clamp(15px, 2vw, 20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover::before {
    opacity: 0.1;
}

.feature-item:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(31, 41, 55, 0.6));
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: clamp(50px, 6vw, 60px);
    height: clamp(50px, 6vw, 60px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(20px, 2.5vw, 24px);
    color: white;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.feature-item.accuracy .feature-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.feature-item.monitoring .feature-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.feature-item.auto-apply .feature-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.feature-item.learning .feature-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.feature-item.comparison .feature-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.feature-item.optimization .feature-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 0.5vw, 6px);
    position: relative;
    z-index: 2;
}

.feature-number {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--ai-primary);
    text-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
    line-height: 1;
}

.feature-label {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: white;
    font-weight: 600;
    line-height: 1.2;
}

.feature-desc {
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

/* AI Demo Slider */
.ai-demo-slider {
    position: relative;
    z-index: 2;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Demo Slides */
.demo-slide {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--ai-transition);
}

.demo-slide.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Demo Cards */
.demo-card {
    background: var(--ai-glass);
    border: 1px solid var(--ai-glass-border);
    border-radius: var(--ai-border-radius);
    padding: clamp(25px, 4vw, 45px);
    box-shadow: var(--ai-shadow);
    transition: var(--ai-transition);
    position: relative;
    overflow: hidden;
}

.demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.demo-card:hover::before {
    left: 100%;
}

.demo-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--ai-shadow-hover);
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2.5vw, 25px);
    margin-bottom: clamp(20px, 3vw, 35px);
}

.card-icon {
    width: clamp(50px, 6vw, 65px);
    height: clamp(50px, 6vw, 65px);
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
    border-radius: clamp(12px, 1.5vw, 18px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(20px, 2.5vw, 26px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.card-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    color: white;
    margin: 0;
}

/* Dashboard Preview Styles */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(180px, 20vw, 220px), 1fr));
    gap: clamp(15px, 2vw, 25px);
}

.metric-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: clamp(12px, 1.5vw, 18px);
    padding: clamp(20px, 3vw, 30px);
    text-align: center;
    transition: var(--ai-transition);
    position: relative;
    overflow: hidden;
}

.metric-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ai-primary), var(--ai-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.metric-item:hover::before {
    transform: scaleX(1);
}

.metric-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.metric-icon {
    width: clamp(45px, 5vw, 55px);
    height: clamp(45px, 5vw, 55px);
    border-radius: clamp(10px, 1.2vw, 14px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(12px, 1.5vw, 18px);
    font-size: clamp(18px, 2vw, 22px);
    color: white;
}

.metric-icon.impressions {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.metric-icon.clicks {
    background: linear-gradient(135deg, #10b981, #059669);
}

.metric-icon.spend {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

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

.metric-value {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: white;
    margin-bottom: clamp(6px, 1vw, 10px);
}

.metric-label {
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: clamp(8px, 1.2vw, 12px);
}

.metric-trend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto;
}

.metric-trend.up {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.metric-trend.down {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Demographic Preview Styles - Professional Level */
.chart-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(25px, 4vw, 45px);
}

.age-distribution h4,
.device-distribution h4 {
    color: white;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 600;
    margin-bottom: clamp(15px, 2.5vw, 25px);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.2vw, 12px);
}

.age-distribution h4::before {
    content: "📊";
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.device-distribution h4::before {
    content: "📱";
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.age-bars {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: clamp(150px, 20vw, 220px);
    gap: clamp(10px, 1.5vw, 18px);
    padding: clamp(10px, 1.5vw, 15px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: clamp(12px, 1.5vw, 18px);
    position: relative;
}

.age-bars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: inherit;
    z-index: -1;
}

.age-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.age-bar:hover {
    transform: translateY(-5px);
}

.bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--ai-primary), var(--ai-accent));
    border-radius: 8px 8px 0 0;
    transition: all 1s ease-out;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    min-height: 20px;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2));
}

.bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.age-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.75rem, 1.1vw, 0.9rem);
    margin-top: clamp(8px, 1.2vw, 12px);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.device-pie {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vw, 18px);
    align-items: center;
    padding: clamp(15px, 2vw, 20px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: clamp(12px, 1.5vw, 18px);
    position: relative;
}

.device-pie::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: inherit;
    z-index: -1;
}

.pie-segment {
    width: clamp(100px, 12vw, 130px);
    height: clamp(100px, 12vw, 130px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.8s ease-out;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.pie-segment:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.pie-segment.mobile {
    background: conic-gradient(var(--ai-primary) 0deg 234deg, rgba(255, 255, 255, 0.1) 234deg 360deg);
}

.pie-segment.desktop {
    background: conic-gradient(var(--ai-accent) 0deg 90deg, rgba(255, 255, 255, 0.1) 90deg 360deg);
}

.pie-segment.tablet {
    background: conic-gradient(var(--ai-secondary) 0deg 36deg, rgba(255, 255, 255, 0.1) 36deg 360deg);
}

.device-label {
    color: white;
    font-weight: 600;
    font-size: clamp(0.8rem, 1.1vw, 0.95rem);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Professional Tooltip System */
.demographic-tooltip {
    position: absolute;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(31, 41, 55, 0.95));
    border-radius: 12px;
    padding: clamp(12px, 1.5vw, 16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: clamp(200px, 25vw, 280px);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.demographic-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 12px);
    margin-bottom: clamp(8px, 1vw, 12px);
    padding-bottom: clamp(6px, 0.8vw, 8px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.tooltip-icon {
    width: clamp(24px, 3vw, 32px);
    height: clamp(24px, 3vw, 32px);
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(12px, 1.5vw, 16px);
}

.tooltip-title {
    color: white;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 600;
    margin: 0;
}

.tooltip-content {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.8vw, 8px);
}

.tooltip-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(4px, 0.5vw, 6px) 0;
}

.tooltip-metric:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.8rem, 1vw, 0.9rem);
}

.metric-value {
    color: white;
    font-weight: 600;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
}

.potential-badge {
    padding: clamp(2px, 0.3vw, 4px) clamp(6px, 0.8vw, 8px);
    border-radius: 12px;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.potential-very-high {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.potential-high {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.potential-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.potential-low {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* AI Recommendations Styles - Dark Mode Professional */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 30px);
}

.recommendation-item {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(31, 41, 55, 0.4));
    border-radius: clamp(15px, 2vw, 20px);
    padding: clamp(20px, 3vw, 30px);
    display: flex;
    gap: clamp(15px, 2.5vw, 25px);
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.recommendation-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ai-primary), var(--ai-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.recommendation-item:hover::before {
    transform: scaleX(1);
}

.recommendation-item:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(31, 41, 55, 0.6));
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.recommendation-item.premium {
    border-left: 4px solid #f59e0b;
}

.recommendation-item.advanced {
    border-left: 4px solid #8b5cf6;
}

.recommendation-item.smart {
    border-left: 4px solid #10b981;
}

.rec-icon {
    width: clamp(50px, 6vw, 60px);
    height: clamp(50px, 6vw, 60px);
    background: linear-gradient(135deg, var(--ai-warning), #f59e0b);
    border-radius: clamp(12px, 1.5vw, 15px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(18px, 2.2vw, 22px);
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.recommendation-item.advanced .rec-icon {
    background: linear-gradient(135deg, var(--ai-secondary), #7c3aed);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.recommendation-item.smart .rec-icon {
    background: linear-gradient(135deg, var(--ai-success), #059669);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.rec-content {
    flex: 1;
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: clamp(10px, 1.5vw, 15px);
}

.rec-content h4 {
    color: white;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 600;
    margin: 0;
}

.rec-badge {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.5vw, 6px);
    padding: clamp(4px, 0.5vw, 6px) clamp(8px, 1vw, 12px);
    border-radius: 20px;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.advanced-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.smart-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.rec-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.6;
    margin-bottom: clamp(15px, 2vw, 20px);
}

.rec-details {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1vw, 12px);
    margin-bottom: clamp(15px, 2vw, 20px);
    padding: clamp(12px, 1.5vw, 16px);
    background: rgba(0, 0, 0, 0.3);
    border-radius: clamp(8px, 1vw, 12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(4px, 0.5vw, 6px) 0;
}

.detail-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.8rem, 1vw, 0.9rem);
}

.detail-value {
    color: white;
    font-weight: 600;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
}

.rec-impact {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 12px);
    margin-bottom: clamp(15px, 2vw, 20px);
}

.impact-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.8rem, 1vw, 0.9rem);
}

.impact-value {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: clamp(4px, 0.5vw, 6px) clamp(8px, 1vw, 12px);
    border-radius: 20px;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.rec-actions {
    display: flex;
    gap: clamp(10px, 1.5vw, 15px);
    flex-wrap: wrap;
}

.btn-auto-apply,
.btn-learn-more {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.8vw, 8px);
    padding: clamp(8px, 1vw, 12px) clamp(12px, 1.5vw, 16px);
    border: none;
    border-radius: clamp(8px, 1vw, 12px);
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-auto-apply {
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-auto-apply:hover {
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-learn-more {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-learn-more:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-auto-apply::before,
.btn-learn-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-auto-apply:hover::before,
.btn-learn-more:hover::before {
    left: 100%;
}

/* Premium Modal Styles */
.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.premium-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.premium-modal {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(31, 41, 55, 0.9));
    border-radius: clamp(20px, 3vw, 25px);
    padding: clamp(25px, 4vw, 35px);
    max-width: clamp(400px, 50vw, 500px);
    width: 90%;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.premium-modal-overlay.show .premium-modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 16px);
    margin-bottom: clamp(20px, 3vw, 25px);
    padding-bottom: clamp(15px, 2vw, 20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-icon {
    width: clamp(40px, 5vw, 50px);
    height: clamp(40px, 5vw, 50px);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(18px, 2.2vw, 22px);
}

.modal-header h3 {
    color: white;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: clamp(30px, 4vw, 35px);
    height: clamp(30px, 4vw, 35px);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.6;
    margin-bottom: clamp(20px, 3vw, 25px);
}

.premium-benefits {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vw, 15px);
    margin-bottom: clamp(25px, 4vw, 30px);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 12px);
    padding: clamp(10px, 1.5vw, 12px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: clamp(8px, 1vw, 10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-item i {
    color: #10b981;
    font-size: clamp(14px, 1.8vw, 16px);
}

.benefit-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: clamp(12px, 2vw, 15px);
    justify-content: center;
}

.btn-upgrade,
.btn-cancel {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.8vw, 8px);
    padding: clamp(10px, 1.5vw, 12px) clamp(16px, 2vw, 20px);
    border: none;
    border-radius: clamp(8px, 1vw, 10px);
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-upgrade {
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-upgrade:hover {
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Real-time Analytics Styles */
.realtime-chart {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.chart-header h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.chart-controls {
    display: flex;
    gap: 10px;
}

.time-filter {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--ai-transition);
}

.time-filter:hover,
.time-filter.active {
    background: var(--ai-primary);
    color: white;
    border-color: var(--ai-primary);
}

.chart-area {
    height: 200px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.data-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--ai-primary);
    border: 3px solid white;
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.5s ease-out;
}

.data-point::after {
    content: attr(data-value);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.data-point:hover::after {
    opacity: 1;
}

.chart-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.grid-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.grid-line:nth-child(1) { top: 25%; }
.grid-line:nth-child(2) { top: 50%; }
.grid-line:nth-child(3) { top: 75%; }
.grid-line:nth-child(4) { top: 100%; }

.chart-legend {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.clicks {
    background: var(--ai-primary);
}

.legend-color.conversions {
    background: var(--ai-success);
}

/* Slider Tabs - Moved to Top */
.slider-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(8px, 1.5vw, 15px);
    margin: clamp(30px, 4vw, 40px) 0;
    padding: clamp(15px, 2vw, 20px);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(31, 41, 55, 0.4));
    border-radius: clamp(15px, 2vw, 20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.2vw, 12px);
    padding: clamp(15px, 2vw, 20px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: clamp(12px, 1.5vw, 15px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-btn:hover::before {
    opacity: 0.1;
}

.tab-btn.active::before {
    opacity: 0.2;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tab-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--ai-primary);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.tab-icon {
    width: clamp(35px, 4.5vw, 45px);
    height: clamp(35px, 4.5vw, 45px);
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(16px, 2vw, 20px);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.tab-btn.active .tab-icon {
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.tab-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(4px, 0.5vw, 6px);
    position: relative;
    z-index: 2;
}

.tab-title {
    color: white;
    font-size: clamp(0.8rem, 1.1vw, 0.95rem);
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.tab-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    text-align: center;
    line-height: 1.2;
}

.tab-btn.active .tab-title {
    color: white;
}

.tab-btn.active .tab-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-demo-section {
        padding: clamp(40px, 6vw, 70px) 0;
    }
    
    .demo-card {
        padding: clamp(20px, 3vw, 30px);
    }
    
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(12px, 2vw, 18px);
    }
    
    .metric-item {
        padding: clamp(15px, 2.5vw, 25px);
    }
    
    .metric-value {
        font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    }
    
    .chart-preview {
        grid-template-columns: 1fr;
        gap: clamp(20px, 3vw, 35px);
    }
    
    .age-bars {
        height: clamp(120px, 18vw, 170px);
        gap: clamp(8px, 1.2vw, 12px);
    }
    
    .pie-segment {
        width: clamp(80px, 10vw, 110px);
        height: clamp(80px, 10vw, 110px);
    }
    
    .recommendation-item {
        flex-direction: column;
        text-align: center;
        gap: clamp(12px, 2vw, 18px);
    }
    
    .chart-header {
        flex-direction: column;
        gap: clamp(12px, 2vw, 18px);
        align-items: flex-start;
    }
    
    /* Tab Responsive */
    .slider-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(6px, 1vw, 10px);
        padding: clamp(10px, 1.5vw, 15px);
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(15px, 2vw, 20px);
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: clamp(12px, 2vw, 15px);
        padding: clamp(15px, 2.5vw, 20px);
    }
    
    .feature-icon {
        width: clamp(40px, 5vw, 50px);
        height: clamp(40px, 5vw, 50px);
        font-size: clamp(18px, 2.2vw, 20px);
    }
    
    .tab-btn {
        padding: clamp(10px, 1.5vw, 15px);
        gap: clamp(6px, 1vw, 8px);
    }
    
    .tab-icon {
        width: clamp(30px, 4vw, 35px);
        height: clamp(30px, 4vw, 35px);
        font-size: clamp(14px, 1.8vw, 16px);
    }
    
    .tab-title {
        font-size: clamp(0.7rem, 1vw, 0.85rem);
    }
    
    .tab-subtitle {
        font-size: clamp(0.6rem, 0.8vw, 0.7rem);
    }
    
    .chart-controls {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .slider-tabs {
        grid-template-columns: 1fr;
        gap: clamp(8px, 1.2vw, 12px);
    }
    
    .tab-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: clamp(12px, 2vw, 16px);
    }
    
    .tab-content {
        align-items: flex-start;
        text-align: left;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: clamp(12px, 2vw, 15px);
    }
    
    .feature-item {
        flex-direction: row;
        text-align: left;
        gap: clamp(12px, 2vw, 15px);
    }
}
    
    .slider-navigation {
        gap: clamp(15px, 2.5vw, 25px);
    }
    
    .nav-btn {
        width: clamp(35px, 5vw, 45px);
        height: clamp(35px, 5vw, 45px);
        font-size: clamp(14px, 2vw, 18px);
    }
}

@media (max-width: 480px) {
    .demo-card {
        padding: clamp(15px, 2.5vw, 25px);
    }
    
    .metric-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: clamp(12px, 2vw, 18px);
    }
    
    .card-title {
        font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    }
    
    .age-bars {
        height: clamp(100px, 15vw, 140px);
    }
    
    .pie-segment {
        width: clamp(70px, 8vw, 90px);
        height: clamp(70px, 8vw, 90px);
    }
    
    .device-label {
        font-size: clamp(0.7rem, 1vw, 0.85rem);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

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

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .demo-card {
        border: 2px solid white;
    }
    
    .metric-item {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .nav-btn {
        border: 2px solid white;
    }
}

