﻿:root {
    --ill-bg: #0f1624;
    --ill-bg-soft: rgba(17, 24, 39, 0.5);
    --ill-text: #e5e7eb;
    --ill-muted: #9ca3af;
    --ill-accent: #8b5cf6;
    --ill-accent-2: #6366f1;
    --ill-success: #34d399;
    --ill-track: #1f2937;
}

.illustration {
    position: relative;
    padding: 1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(168, 85, 247, 0.9));
    box-shadow: 0 18px 40px rgba(7, 10, 20, 0.45);
}

.illustration__content {
    position: relative;
    border-radius: 19px;
    padding: 24px;
    background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(168, 85, 247, 0.18), transparent 40%),
        var(--ill-bg);
    color: var(--ill-text);
    animation: illustration-float 6s ease-in-out infinite;
}

@keyframes illustration-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

.illustration__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.illustration__title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.illustration__badge {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #1e1b4b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration__badge-icon {
    width: 22px;
    height: 22px;
    color: #818cf8;
}

.illustration__title-text {
    font-weight: 600;
    letter-spacing: 0.2px;
}

.illustration__delta {
    font-weight: 600;
    background: linear-gradient(135deg, var(--ill-accent-2), var(--ill-accent));
    -webkit-background-clip: text;
    color: transparent;
}

.illustration__progress {
    display: grid;
    gap: 12px;
}

.illustration__track {
    height: 8px;
    background: var(--ill-track);
    border-radius: 999px;
    overflow: hidden;
}

.illustration__bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.35);
}

.progress-78 { width: 78%; }
.progress-65 { width: 65%; }
.progress-92 { width: 92%; }

.illustration__stats {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.illustration__stat-card {
    background: var(--ill-bg-soft);
    padding: 12px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.illustration__stat-label {
    font-size: 12px;
    color: var(--ill-muted);
    margin-bottom: 6px;
}

.illustration__stat-value {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ill-accent-2), var(--ill-accent));
    -webkit-background-clip: text;
    color: transparent;
}

.illustration__stat-change {
    margin-top: 6px;
    font-size: 12px;
    color: var(--ill-success);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.illustration__stat-icon {
    width: 12px;
    height: 12px;
}

.illustration__chart-block {
    margin-top: 24px;
}

.illustration__chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.illustration__chart-title {
    font-size: 13px;
    color: var(--ill-muted);
}

.illustration__chart-subtitle {
    font-size: 11px;
    color: #6b7280;
}

.illustration__chart {
    height: 80px;
    display: grid;
    grid-template-columns: repeat(13, minmax(0, 1fr));
    gap: 4px;
    align-items: end;
}

.illustration__bar-col {
    width: 100%;
    border-radius: 4px 4px 2px 2px;
    background: rgba(49, 46, 129, 0.4);
    min-height: 8px;
}

.illustration__bar-col--accent {
    background: linear-gradient(180deg, #6366f1, #a855f7);
}

.chart-30 { height: 30%; }
.chart-40 { height: 40%; }
.chart-45 { height: 45%; }
.chart-50 { height: 50%; }
.chart-55 { height: 55%; }
.chart-60 { height: 60%; }
.chart-65 { height: 65%; }
.chart-70 { height: 70%; }
.chart-75 { height: 75%; }
.chart-80 { height: 80%; }
.chart-85 { height: 85%; }
.chart-90 { height: 90%; }
.chart-100 { height: 100%; }

@media (max-width: 480px) {
    .illustration {
        max-width: 100%;
    }

    .illustration__content {
        padding: 20px;
    }

    .illustration__stats {
        grid-template-columns: 1fr;
    }
}

.illustration-float {
    position: absolute;
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(16px);
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.illustration-float--sales {
    top: -2.5rem;
    left: -2.5rem;
}

.illustration-float--rating {
    bottom: -1.25rem;
    right: -1.25rem;
}

.illustration-float__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.illustration-float__icon {
    width: 32px;
    height: 32px;
}

.illustration-float__icon--indigo {
    color: #6366f1;
}

.illustration-float__icon--green {
    color: #34d399;
}

.illustration-float__label {
    font-size: 0.75rem;
    color: #9ca3af;
}

.illustration-float__value {
    font-size: 1.125rem;
    font-weight: 700;
}

.illustration-float__value--gradient {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    color: transparent;
}

.illustration-float__value--green {
    color: #34d399;
}

@media (max-width: 640px) {
    .illustration-float--sales {
        top: -1.5rem;
        left: -1rem;
    }

    .illustration-float--rating {
        bottom: -0.5rem;
        right: -0.5rem;
    }
}
