.v3-dashboard {
    --v3-bg: #f5f7fb;
    --v3-card: #ffffff;
    --v3-text: #101828;
    --v3-soft: #475467;
    --v3-muted: #667085;
    --v3-border: #e4e7ec;
    --v3-blue: #3157e8;

    display: grid;
    gap: 22px;
    width: 100%;
    min-width: 0;
    color: var(--v3-text);
}

.v3-dashboard *,
.v3-dashboard *::before,
.v3-dashboard *::after {
    box-sizing: border-box;
}

.v3-dashboard a {
    color: inherit;
    text-decoration: none;
}

.v3-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 164px;
    padding: 31px 34px;
    overflow: hidden;
    border: 1px solid #dfe5f1;
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(90, 114, 255, .16),
            transparent 33%
        ),
        linear-gradient(135deg, #ffffff 0%, #f4f7ff 100%);
    box-shadow: 0 14px 38px rgba(16, 24, 40, .06);
}

.v3-hero::after {
    position: absolute;
    right: -60px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    border: 34px solid rgba(49, 87, 232, .045);
    border-radius: 50%;
    content: "";
}

.v3-hero-copy,
.v3-hero-side {
    position: relative;
    z-index: 1;
}

.v3-eyebrow {
    margin-bottom: 12px;
    color: #3157e8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.v3-hero h1 {
    margin: 0;
    color: #101828;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1px;
}

.v3-hero p {
    margin: 10px 0 0;
    color: #667085;
    font-size: 14px;
}

.v3-hero-side {
    display: grid;
    justify-items: end;
    gap: 11px;
}

.v3-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid #c8f1d5;
    border-radius: 999px;
    background: #f0fdf4;
    color: #16763b;
    font-size: 12px;
    font-weight: 800;
}

.v3-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .12);
}

.v3-time {
    color: #98a2b3;
    font-size: 12px;
    font-weight: 600;
}

.v3-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.v3-summary-card {
    min-width: 0;
    min-height: 148px;
    padding: 21px;
    border: 1px solid var(--v3-border);
    border-radius: 16px;
    background: var(--v3-card);
    box-shadow: 0 5px 18px rgba(16, 24, 40, .035);
}

.v3-summary-primary {
    border-color: transparent;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(255, 255, 255, .25),
            transparent 38%
        ),
        linear-gradient(135deg, #3157e8, #6146d7);
    color: #ffffff;
}

.v3-summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.v3-summary-label {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.v3-summary-primary .v3-summary-label {
    color: rgba(255, 255, 255, .74);
}

.v3-summary-value {
    margin-top: 11px;
    color: #101828;
    font-size: 31px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
}

.v3-summary-primary .v3-summary-value {
    color: #ffffff;
}

.v3-summary-status {
    margin-top: 13px;
    color: #101828;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
}

.v3-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .16);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

.v3-icon-blue {
    background: #eef4ff;
    color: #3157e8;
}

.v3-icon-violet {
    background: #f4f0ff;
    color: #7545d8;
}

.v3-icon-green {
    background: #ecfdf3;
    color: #159455;
}

.v3-icon-red {
    background: #fef3f2;
    color: #d92d20;
}

.v3-summary-footer {
    margin-top: 27px;
    color: #98a2b3;
    font-size: 12px;
}

.v3-summary-footer strong {
    color: #344054;
}

.v3-summary-primary .v3-summary-footer,
.v3-summary-primary .v3-summary-footer strong {
    color: rgba(255, 255, 255, .74);
}

.v3-section,
.v3-quick-section {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--v3-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 7px 24px rgba(16, 24, 40, .04);
}

.v3-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.v3-section-heading h2 {
    margin: 0;
    color: #101828;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.25px;
}

.v3-section-heading p {
    margin: 5px 0 0;
    color: #98a2b3;
    font-size: 12px;
}

.v3-section-count {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
}

.v3-module-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.v3-module-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 217px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #fafbfc);
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.v3-module-card:hover {
    border-color: #b9c7f9;
    box-shadow: 0 15px 32px rgba(16, 24, 40, .09);
    transform: translateY(-3px);
}

.v3-module-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.v3-module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 900;
}

.v3-module-movie .v3-module-icon {
    background: #eef4ff;
    color: #3157e8;
}

.v3-module-image .v3-module-icon {
    background: #fff1f3;
    color: #e04472;
}

.v3-module-manga .v3-module-icon {
    background: #f4f0ff;
    color: #7545d8;
}

.v3-module-short .v3-module-icon {
    background: #ecfdf3;
    color: #159455;
}

.v3-module-novel .v3-module-icon {
    background: #fff7e8;
    color: #d27b00;
}

.v3-module-state {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.v3-state-running {
    background: #ecfdf3;
    color: #16804b;
}

.v3-state-ready {
    background: #eef4ff;
    color: #3157e8;
}

.v3-state-planning {
    background: #f2f4f7;
    color: #667085;
}

.v3-module-name {
    margin-top: 17px;
    color: #101828;
    font-size: 16px;
    font-weight: 900;
}

.v3-module-description {
    min-height: 41px;
    margin-top: 6px;
    color: #98a2b3;
    font-size: 11px;
    line-height: 1.75;
}

.v3-module-bottom {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 3px 7px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0f1f3;
}

.v3-module-bottom strong {
    color: #101828;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.v3-module-bottom span {
    color: #98a2b3;
    font-size: 10px;
}

.v3-module-bottom i {
    grid-column: 1 / -1;
    margin-top: 7px;
    color: #3157e8;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.v3-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(310px, .7fr);
    gap: 22px;
    min-width: 0;
}

.v3-data-list,
.v3-system-list {
    overflow: hidden;
    border: 1px solid #eaecf0;
    border-radius: 13px;
}

.v3-data-row,
.v3-system-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 51px;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f1f3;
}

.v3-data-row:last-child,
.v3-system-row:last-child {
    border-bottom: 0;
}

.v3-data-row span,
.v3-system-row span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #667085;
    font-size: 12px;
}

.v3-data-row strong,
.v3-system-row strong {
    color: #344054;
    font-size: 12px;
    font-weight: 900;
}

.v3-system-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.v3-dot-green {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .1);
}

.v3-dot-blue {
    background: #5285f8;
    box-shadow: 0 0 0 4px rgba(82, 133, 248, .1);
}

.v3-dot-red {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .1);
}

.v3-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.v3-quick-grid a {
    position: relative;
    display: grid;
    gap: 5px;
    min-width: 0;
    min-height: 93px;
    padding: 17px 42px 17px 17px;
    border: 1px solid #e4e7ec;
    border-radius: 13px;
    background: #fbfcfe;
    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease;
}

.v3-quick-grid a:hover {
    border-color: #b9c7f9;
    background: #f7f9ff;
    transform: translateY(-2px);
}

.v3-quick-grid span {
    color: #101828;
    font-size: 13px;
    font-weight: 900;
}

.v3-quick-grid b {
    color: #98a2b3;
    font-size: 10px;
    font-weight: 600;
}

.v3-quick-grid i {
    position: absolute;
    top: 50%;
    right: 17px;
    color: #3157e8;
    font-size: 18px;
    font-style: normal;
    transform: translateY(-50%);
}

@media (max-width: 1280px) {
    .v3-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v3-module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .v3-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v3-lower-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .v3-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .v3-dashboard {
        gap: 15px;
    }

    .v3-hero {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
        padding: 24px 20px;
    }

    .v3-hero h1 {
        font-size: 28px;
    }

    .v3-hero-side {
        justify-items: start;
    }

    .v3-summary-grid,
    .v3-module-grid,
    .v3-quick-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .v3-section,
    .v3-quick-section {
        padding: 19px;
    }

    .v3-module-card {
        min-height: 195px;
    }
}
