/* === STATISTIK PAGE STYLES === */

/* Quick Stats Section */
.quick-stats-section {
    padding: 5rem 0;
    background: white;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

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

.stat-card-main {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
    border-left: 4px solid;
}

.stat-card-main.primary {
    border-color: #10b981;
}

.stat-card-main.success {
    border-color: #059669;
}

.stat-card-main.warning {
    border-color: #34d399;
}

.stat-card-main.info {
    border-color: #10b981;
}

.stat-card-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.stat-icon-main {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-main.primary .stat-icon-main {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-card-main.success .stat-icon-main {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.stat-card-main.warning .stat-icon-main {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.stat-card-main.info .stat-icon-main {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-icon-main i {
    font-size: 2rem;
    color: white;
}

.stat-info-main h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.25rem;
}

.stat-info-main p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

/* Demographics Section */
.demographics-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.demo-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.demo-card:hover {
    border-color: #10b981;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.demo-header i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.demo-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.demo-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.demo-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.demo-label span {
    font-size: 0.95rem;
    color: #64748b;
}

.demo-label strong {
    font-size: 1rem;
    color: #1e293b;
}

.demo-label .percentage {
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: visible;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.progress-label {
    position: absolute;
    right: -35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: #10b981;
    white-space: nowrap;
}

.progress-fill.blue {
    background: linear-gradient(90deg, #059669 0%, #047857 100%);
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}

.progress-fill.blue .progress-label {
    color: #059669;
}

.progress-fill.purple {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* Wilayah Section */
.wilayah-section {
    padding: 5rem 0;
    background: white;
}

.wilayah-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.wilayah-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
    border-radius: 20px;
    border: 2px solid #a7f3d0;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.summary-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-icon i {
    font-size: 2rem;
    color: white;
}

.summary-info h4 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.25rem;
}

.summary-info p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

.rw-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.rw-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.rw-card:hover {
    transform: translateY(-5px);
    border-color: #10b981;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.rw-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.rt-count {
    padding: 0.25rem 0.75rem;
    background: #10b981;
    color: white;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.rw-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 1rem;
}

.rw-stats {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.rw-stats span {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rw-stats i {
    color: #10b981;
}

/* Responsive */
@media (max-width: 992px) {
    .stats-grid-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .wilayah-summary {
        grid-template-columns: 1fr;
    }
}

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

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

    .rw-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stat-card-main {
        flex-direction: column;
        text-align: center;
    }

    .stat-info-main h3 {
        font-size: 2rem;
    }
}

/* Tab System */
.data-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    border-color: #10b981;
    background: #f0fdfa;
    color: #10b981;
}

.tab-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chart View */
.chart-container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
}

.chart-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chart-card h3 i {
    color: #10b981;
}

.chart-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.btn-action {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

/* Comparison View */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.comparison-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    height: fit-content;
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.comparison-header i {
    font-size: 1.5rem;
    color: #10b981;
}

.comparison-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* Gender Comparison */
.comparison-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.comp-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.comp-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.comp-item.male .comp-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.comp-item.female .comp-icon {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
}

.comp-data h4 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.comp-data p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0.25rem 0;
}

.comp-percent {
    font-size: 1rem;
    font-weight: 700;
    color: #10b981;
}

.comp-vs {
    font-size: 1.2rem;
    font-weight: 800;
    color: #cbd5e1;
    padding: 0 1rem;
}

.comp-bar {
    display: flex;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
}

.comp-fill.male {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.comp-fill.female {
    background: linear-gradient(90deg, #ec4899 0%, #db2777 100%);
}

/* Ranking List */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.rank-item:hover {
    transform: translateX(3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.rank-item.gold {
    background: linear-gradient(135deg, #fef9e7 0%, #ffffff 100%);
    border-color: #fbbf24;
}

.rank-item.silver {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-color: #cbd5e1;
}

.rank-item.bronze {
    background: linear-gradient(135deg, #fff5eb 0%, #ffffff 100%);
    border-color: #fb923c;
}

.rank-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.rank-item.gold .rank-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.rank-item.silver .rank-badge {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.rank-item.bronze .rank-badge {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem;
}

.rank-info p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.rank-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    text-align: right;
    white-space: nowrap;
}

.rank-value span {
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 600;
    display: block;
    margin-top: 0.25rem;
}

/* Insights Section */
.insights-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
    border-radius: 20px;
    border: 2px solid #a7f3d0;
}

.insights-section h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.insights-section h3 i {
    color: #fbbf24;
    font-size: 2rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.insight-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.insight-card:hover {
    border-color: #10b981;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.insight-card i {
    font-size: 2.5rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.insight-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem;
}

.insight-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .data-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
    }

    .chart-container-grid {
        grid-template-columns: 1fr;
    }

    .comparison-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .comp-vs {
        transform: rotate(90deg);
        padding: 1rem 0;
    }

    .chart-actions {
        flex-direction: column;
    }

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

/* ==================================================
   STATISTIK KELURAHAN - MODERN ANALYTICS DASHBOARD
   Data Visualization with Green Theme
   ================================================== */

/* Hide old heroes */
.hero-stats,
.page-hero {
    display: none !important;
}

/* ==================================================
   HERO DASHBOARD - Modern Dark Theme
   ================================================== */
.hero-dashboard {
    min-height: 85vh;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding: 5rem 0 8rem;
    overflow: hidden;
}

/* Grid background */
.dashboard-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.dashboard-grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
}

.dashboard-header {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.dashboard-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: white;
    margin: 0 0 1.5rem;
    line-height: 1.1;
}

.title-gradient {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 3.5rem;
    font-weight: 400;
}

/* Quick Stats - Floating Cards */
.dashboard-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.quick-stat-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
}

.quick-stat-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 2rem;
    color: white;
}

.stat-data {
    flex: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Wave Divider */
.dashboard-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
}

.dashboard-wave svg {
    width: 100%;
    height: 100%;
}

/* ==================================================
   QUICK STATS SECTION - Colored Cards
   ================================================== */
.quick-stats-section {
    padding: 4rem 0;
    background: #f8fafc;
}

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

.stat-card-main {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.stat-card-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.stat-card-main.primary {
    border-color: #10b981;
}

.stat-card-main.primary .stat-icon-main {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-card-main.success .stat-icon-main {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-card-main.warning .stat-icon-main {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-card-main.info .stat-icon-main {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-icon-main {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-main i {
    font-size: 1.8rem;
    color: white;
}

.stat-info-main h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.25rem;
}

.stat-info-main p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* ==================================================
   DEMOGRAPHICS SECTION
   ================================================== */
.demographics-section {
    padding: 5rem 0;
    background: white;
}

.section-header-center {
    text-align: center;
    margin: 0 auto 3.5rem;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-badge {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}

.icon-badge i {
    font-size: 2.5rem;
    color: white;
}

.section-title-main {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 1rem;
    text-align: center;
    width: 100%;
}

.section-desc {
    font-size: 1.15rem;
    color: #64748b;
    margin: 0;
    text-align: center;
    width: 100%;
}

/* Tabs */
.data-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.875rem 2rem;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #64748b;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.tab-btn.active {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Demo Cards */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.demo-card {
    background: white;
    border-radius: 20px;
    border: 2px solid #f1f5f9;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.demo-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.demo-header i {
    font-size: 1.5rem;
}

.demo-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.demo-content {
    padding: 2rem;
}

.demo-item {
    margin-bottom: 1.75rem;
}

.demo-item:last-child {
    margin-bottom: 0;
}

.demo-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.demo-label span {
    font-size: 0.95rem;
    color: #64748b;
}

.demo-label strong {
    font-size: 1.05rem;
    color: #1e293b;
}

.percentage {
    color: #10b981;
    font-weight: 600;
}

/* Progress Bars */
.progress-bar {
    height: 12px;
    background: #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 20px;
    transition: width 1s ease-out;
    position: relative;
}

.progress-fill.blue {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

.progress-fill.purple {
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
}

.progress-label {
    display: none;
}

/* Charts */
.chart-container-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.chart-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chart-card h3 i {
    color: #10b981;
}

.chart-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-action {
    padding: 0.875rem 2rem;
    background: #10b981;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.comparison-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.comparison-header i {
    font-size: 1.75rem;
    color: #10b981;
}

.comparison-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* Hero Icon Stats */
.hero-icon-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.comp-item {
    text-align: center;
    flex: 1;
}

.comp-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.comp-item.male .comp-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.comp-item.female .comp-icon {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.comp-icon i {
    font-size: 2.5rem;
    color: white;
}

.comp-data h4 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.5rem;
}

.comp-data p {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 0.75rem;
}

.comp-percent {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #10b981;
}

.comp-vs {
    font-size: 1.25rem;
    font-weight: 800;
    color: #e2e8f0;
}

.comp-bar {
    height: 14px;
    background: #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
}

.comp-fill {
    height: 100%;
}

.comp-fill.male {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

.comp-fill.female {
    background: linear-gradient(90deg, #ec4899 0%, #f472b6 100%);
}

/* Ranking List */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px solid #f1f5f9;
    transition: all 0.3s;
}

.rank-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.rank-badge {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.rank-item.gold .rank-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.rank-item.silver .rank-badge {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.rank-item.bronze .rank-badge {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.rank-info {
    flex: 1;
}

.rank-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem;
}

.rank-info p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.rank-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
}

.rank-value span {
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 600;
}

/* Insights */
.insights-section {
    margin-top: 3rem;
}

.insights-section h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.insights-section h3 i {
    color: #fbbf24;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.insight-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 16px;
    padding: 1.75rem;
    border: 2px solid #10b981;
}

.insight-card i {
    font-size: 2rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.insight-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 0.75rem;
}

.insight-card p {
    font-size: 0.9rem;
    color: #047857;
    margin: 0;
    line-height: 1.6;
}

/* ==================================================
   WILAYAH SECTION
   ================================================== */
.wilayah-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.wilayah-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.wilayah-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-item {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 2px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.summary-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-icon i {
    font-size: 1.75rem;
    color: white;
}

.summary-info h4 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.25rem;
}

.summary-info p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* RW Cards */
.rw-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.rw-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    border: 2px solid #f1f5f9;
    transition: all 0.3s;
}

.rw-card:hover {
    border-color: #10b981;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.rw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.rw-header h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.rt-count {
    padding: 0.375rem 0.875rem;
    background: #ecfdf5;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #059669;
}

.rw-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 1rem;
}

.rw-stats {
    display: flex;
    gap: 1.5rem;
}

.rw-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 600;
}

.rw-stats i {
    color: #10b981;
}

/* ==================================================
   CTA SECTION
   ================================================== */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.cta-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-icon i {
    font-size: 3rem;
    color: white;
}

.cta-text {
    flex: 1;
}

.cta-text h3 {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin: 0 0 0.5rem;
}

.cta-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-primary {
    background: white;
    color: #059669;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: #059669;
}

/* ==================================================
   RESPONSIVE
   ================================================== */
@media (max-width: 1024px) {
    .dashboard-quick-stats {
        grid-template-columns: 1fr;
    }

    .stats-grid-main {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .chart-container-grid {
        grid-template-columns: 1fr;
    }

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

    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .dashboard-title {
        font-size: 2.75rem;
    }

    .stats-grid-main {
        grid-template-columns: 1fr;
    }

    .rw-list {
        grid-template-columns: 1fr;
    }

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

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Comparison Mobile Fixes */
    .comparison-card {
        padding: 1.5rem;
        overflow-x: hidden;
    }

    .hero-icon-stats {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .comp-icon {
        width: 60px;
        height: 60px;
    }

    .comp-icon i {
        font-size: 2rem;
    }

    .comp-data h4 {
        font-size: 1.75rem;
    }

    .comp-data p {
        font-size: 0.9rem;
    }

    .ranking-list {
        gap: 1rem;
    }

    .rank-item {
        padding: 1rem;
        gap: 1rem;
    }

    .rank-badge {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }
}