.home-page {
    display: block;
}

.home-header {
    margin-bottom: 14px;
}

.dashboard-container {
    position: relative;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.dashboard-container::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
}

.dashboard-container-primary {
    background:
        linear-gradient(180deg, rgba(14, 22, 42, 0.94), rgba(10, 16, 31, 0.98));
}

.dashboard-container-primary::before {
    background:
        radial-gradient(circle at top right, rgba(74, 144, 226, 0.10), transparent 28%),
        radial-gradient(circle at bottom left, rgba(39, 212, 168, 0.08), transparent 22%);
}

.dashboard-container-secondary {
    background:
        linear-gradient(180deg, rgba(16, 24, 46, 0.95), rgba(9, 15, 28, 0.99));
}

.dashboard-container-secondary::before {
    background:
        radial-gradient(circle at top left, rgba(74, 144, 226, 0.12), transparent 26%),
        radial-gradient(circle at bottom right, rgba(39, 212, 168, 0.10), transparent 24%);
}

.dashboard-container-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.dashboard-container-title {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.dashboard-container-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.18), rgba(39, 212, 168, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d8ebff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-stat-card {
    min-height: 68px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 8px 8px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(22, 32, 58, 0.96), rgba(14, 22, 40, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-stat-card:hover {
    transform: translateY(-1px);
    border-color: rgba(74, 144, 226, 0.24);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.20),
        0 0 0 1px rgba(74, 144, 226, 0.06) inset;
}

.home-stat-card .card-label {
    color: #9fb1d1;
    font-size: 0.68rem;
    font-weight: 600;
    margin-bottom: 3px;
    letter-spacing: 0.01em;
    text-align: center;
    line-height: 1.1;
}

.home-stat-card .card-value {
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.1;
    word-break: break-word;
    text-align: center;
}

.home-stat-card-glow::after {
    content: "";
    position: absolute;
    right: -20px;
    top: -20px;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.14), transparent 70%);
    pointer-events: none;
}

.home-chart-card {
    margin-top: 0;
    position: relative;
    z-index: 2;
    height: 100%;
}

/* CONTAINER 2 */
.stats-chart-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 12% 74% 12%;
    gap: 10px;
    align-items: stretch;
}

.stats-side-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    min-width: 0;
}

.side-stat-card {
    flex: 1;
    min-height: 84px;
    padding: 8px 6px;
    border-radius: 14px;
}

.side-stat-card .card-label {
    font-size: 0.64rem;
    margin-bottom: 4px;
    line-height: 1.1;
}

.side-stat-card .card-value {
    font-size: 0.78rem;
    line-height: 1.05;
}

.stats-chart-center {
    min-width: 0;
    display: flex;
}

.stats-chart-center .chart-card {
    width: 100%;
}

.stats-chart-center .chart-wrap {
    height: 320px;
}

/* RESPONSIVE */
@media (max-width: 1399px) {
    .home-stat-card {
        min-height: 70px;
    }

    .home-stat-card .card-value {
        font-size: 0.84rem;
    }

    .side-stat-card {
        min-height: 80px;
    }

    .side-stat-card .card-value {
        font-size: 0.74rem;
    }
}

@media (max-width: 1199px) {
    .dashboard-container {
        padding: 12px 14px;
    }

    .stats-chart-layout {
        grid-template-columns: 14% 72% 14%;
        gap: 10px;
    }

    .home-stat-card {
        min-height: 74px;
        padding: 8px;
    }

    .home-stat-card .card-label {
        font-size: 0.7rem;
    }

    .home-stat-card .card-value {
        font-size: 0.86rem;
    }

    .side-stat-card {
        min-height: 78px;
        padding: 8px 5px;
    }

    .side-stat-card .card-label {
        font-size: 0.62rem;
    }

    .side-stat-card .card-value {
        font-size: 0.72rem;
    }

    .stats-chart-center .chart-wrap {
        height: 290px;
    }
}

@media (max-width: 991px) {
    .dashboard-container {
        padding: 12px;
        border-radius: 18px;
    }

    .dashboard-container-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .stats-chart-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stats-side-column {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .home-stat-card,
    .side-stat-card {
        min-height: 74px;
    }

    .stats-chart-center .chart-wrap {
        height: 260px;
    }
}

@media (max-width: 767px) {
    .home-header {
        margin-bottom: 12px;
    }

    .dashboard-container {
        padding: 10px;
        border-radius: 16px;
    }

    .dashboard-container-title {
        font-size: 0.95rem;
    }

    .dashboard-container-badge {
        min-height: 26px;
        padding: 4px 8px;
        font-size: 0.64rem;
    }

    .home-stat-card,
    .side-stat-card {
        min-height: 68px;
        border-radius: 12px;
        padding: 8px 6px;
    }

    .home-stat-card .card-label,
    .side-stat-card .card-label {
        font-size: 0.64rem;
        margin-bottom: 3px;
    }

    .home-stat-card .card-value,
    .side-stat-card .card-value {
        font-size: 0.78rem;
    }

    .stats-side-column {
        grid-template-columns: 1fr;
    }

    .stats-chart-center .chart-wrap {
        height: 220px;
    }
}