.up-dashboard-v2 {
    --up-bg: #050b13;
    --up-card: #0d1524;
    --up-card-2: #101a2b;
    --up-border: #202c42;
    --up-text: #f4f7fc;
    --up-muted: #8996ab;

    position: relative;
    overflow: hidden;
    padding:
        clamp(72px, 8vw, 118px)
        clamp(16px, 3vw, 44px);

    border-top: 1px solid rgba(83, 110, 148, .25);
    border-bottom: 1px solid rgba(83, 110, 148, .25);

    background:
        linear-gradient(
            rgba(52, 81, 120, .045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(52, 81, 120, .045) 1px,
            transparent 1px
        ),
        radial-gradient(
            circle at 12% 18%,
            rgba(27, 126, 179, .11),
            transparent 32rem
        ),
        #050b13;

    background-size:
        80px 80px,
        80px 80px,
        auto,
        auto;
}

.up-dashboard-wrap {
    width: min(100%, 1540px);
    margin-inline: auto;
}

.up-dashboard-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 42px;
    align-items: end;
    margin-bottom: 40px;
}

.up-dashboard-kicker {
    margin: 0 0 14px;
    color: #77def1;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .18em;
}

.up-dashboard-header h2 {
    margin: 0;
    color: var(--up-text);
    font-size: clamp(48px, 6vw, 88px);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: .95;
}

.up-dashboard-header h2 span {
    color: #83e1ef;
}

.up-dashboard-description {
    max-width: 760px;
    margin: 20px 0 0;
    color: var(--up-muted);
    font-size: 18px;
    line-height: 1.7;
}

.up-collector-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 265px;
    padding: 22px;
    border: 1px solid #2a3a55;
    border-radius: 22px;
    background: rgba(14, 25, 42, .90);
}

.up-live-orb,
.up-card-dot {
    display: block;
    flex: 0 0 auto;
    width: 12px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #70df84;
    box-shadow: 0 0 18px rgba(112, 223, 132, .72);
}

.up-live-orb {
    margin-top: 4px;
}

.up-collector-box small {
    color: var(--up-muted);
    font-weight: 850;
    letter-spacing: .12em;
}

.up-collector-box strong {
    display: block;
    margin: 6px 0;
    color: var(--up-text);
    font-size: 23px;
}

.up-collector-box time {
    color: var(--up-muted);
    font-size: 13px;
}

.up-dashboard-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

.up-dashboard-grid-primary,
.up-dashboard-grid-health {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.up-v2-card,
.up-v2-wide-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--up-border);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(17, 27, 45, .98),
            rgba(11, 18, 32, .98)
        );
    box-shadow: 0 22px 55px rgba(0, 0, 0, .18);
}

.up-v2-card {
    min-height: 330px;
    padding: 28px;
}

.up-v2-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 190px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--card-accent);
    opacity: .09;
    filter: blur(20px);
}

.up-card-core {
    --card-accent: #70df84;
    --card-rgb: 112, 223, 132;
}

.up-card-peers {
    --card-accent: #ed6767;
    --card-rgb: 237, 103, 103;
}

.up-card-mempool {
    --card-accent: #a783f3;
    --card-rgb: 167, 131, 243;
}

.up-card-electrs {
    --card-accent: #f2a44e;
    --card-rgb: 242, 164, 78;
}

.up-card-cpu {
    --card-accent: #73d87a;
    --card-rgb: 115, 216, 122;
}

.up-card-memory {
    --card-accent: #70c6f4;
    --card-rgb: 112, 198, 244;
}

.up-card-disk {
    --card-accent: #f4a94f;
    --card-rgb: 244, 169, 79;
}

.up-card-rpc {
    --card-accent: #e77bb6;
    --card-rgb: 231, 123, 182;
}

.up-v2-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 31px;
    color: var(--up-muted);
    font-size: 16px;
}

.up-v2-card-head b {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(var(--card-rgb), .12);
    color: var(--card-accent);
    font-size: 13px;
}

.up-card-dot {
    background: var(--card-accent);
    box-shadow: 0 0 15px rgba(var(--card-rgb), .62);
}

.up-v2-big-number {
    display: block;
    margin: 30px 0 12px;
    color: var(--up-text);
    font-size: clamp(42px, 4vw, 65px);
    letter-spacing: -.045em;
    line-height: 1;
}

.up-v2-health-number {
    display: block;
    margin: 32px 0 14px;
    color: var(--up-text);
    font-size: clamp(39px, 3.5vw, 57px);
    letter-spacing: -.04em;
}

.up-v2-card p {
    margin: 0;
    color: var(--up-muted);
    line-height: 1.6;
}

.up-v2-card p b {
    color: var(--up-text);
}

.up-v2-card > small {
    display: block;
    margin-top: 15px;
    color: var(--up-muted);
}

.up-v2-progress,
.up-v2-mini-progress {
    overflow: hidden;
    border-radius: 999px;
    background: #19243a;
}

.up-v2-progress {
    height: 9px;
    margin: 25px 0 0;
}

.up-v2-mini-progress {
    height: 9px;
    margin: 24px 0 12px;
}

.up-v2-progress i,
.up-v2-mini-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--card-accent);
    box-shadow: 0 0 13px rgba(var(--card-rgb), .32);
    transition: width .6s ease;
}

.up-sparkline {
    width: 100%;
    height: 72px;
    margin-top: 8px;
    overflow: visible;
    color: var(--card-accent);
}

.up-sparkline polyline {
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter:
        drop-shadow(
            0 0 5px
            rgba(var(--card-rgb), .45)
        );
}

.up-index-visual {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 85px;
    margin-top: 32px;
}

.up-index-visual span {
    flex: 1;
    border-radius: 7px 7px 3px 3px;
    background: linear-gradient(
        180deg,
        rgba(242, 164, 78, .95),
        rgba(242, 164, 78, .18)
    );
    animation:
        upIndexPulse 1.8s ease-in-out infinite alternate;
}

.up-index-visual span:nth-child(1) {
    height: 30%;
}

.up-index-visual span:nth-child(2) {
    height: 54%;
    animation-delay: .2s;
}

.up-index-visual span:nth-child(3) {
    height: 78%;
    animation-delay: .4s;
}

.up-index-visual span:nth-child(4) {
    height: 48%;
    animation-delay: .6s;
}

.up-index-visual span:nth-child(5) {
    height: 88%;
    animation-delay: .8s;
}

@keyframes upIndexPulse {
    from {
        opacity: .42;
        transform: scaleY(.82);
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

.up-disk-rings {
    position: relative;
    width: 92px;
    height: 92px;
    margin: 22px auto 0;
}

.up-disk-rings span {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(244, 169, 79, .18);
    border-top-color: #f4a94f;
    border-radius: 50%;
    animation: upDiskSpin 8s linear infinite;
}

.up-disk-rings span:nth-child(2) {
    inset: 14px;
    animation-duration: 6s;
    animation-direction: reverse;
}

.up-disk-rings span:nth-child(3) {
    inset: 29px;
    animation-duration: 4s;
}

@keyframes upDiskSpin {
    to {
        transform: rotate(360deg);
    }
}

.up-dashboard-lower {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 18px;
    margin-bottom: 18px;
}

.up-v2-wide-card {
    min-height: 470px;
    padding: clamp(25px, 3vw, 38px);
}

.up-wide-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.up-wide-card-head small {
    color: #7f8ca2;
    font-weight: 900;
    letter-spacing: .13em;
}

.up-wide-card-head h3 {
    margin: 9px 0 0;
    color: var(--up-text);
    font-size: clamp(28px, 3vw, 43px);
}

.up-wide-card-head > span {
    color: var(--up-muted);
    font-size: 13px;
}

.up-traffic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--up-border);
    border-radius: 17px;
    background: var(--up-border);
}

.up-traffic-grid > div {
    min-height: 104px;
    padding: 20px;
    background: #0b1423;
}

.up-traffic-grid span {
    display: block;
    margin-bottom: 9px;
    color: var(--up-muted);
}

.up-traffic-grid strong {
    color: var(--up-text);
    font-size: 24px;
}

.up-wide-chart,
.up-main-chart {
    width: 100%;
    overflow: visible;
}

.up-wide-chart {
    height: 170px;
    margin-top: 25px;
    color: #48d2e8;
}

.up-main-chart {
    height: 260px;
    color: #ed6767;
}

.up-wide-chart polygon,
.up-main-chart polygon {
    fill: url(#upTrafficGradient);
}

.up-main-chart polygon {
    fill: url(#upMainGradient);
}

.up-wide-chart polyline,
.up-main-chart polyline {
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter:
        drop-shadow(
            0 0 7px
            rgba(72, 210, 232, .35)
        );
}

.up-chart-grid-lines line {
    stroke: rgba(111, 134, 164, .15);
    stroke-width: 1;
}

.up-chart-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.up-chart-tabs button {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid var(--up-border);
    border-radius: 999px;
    background: transparent;
    color: var(--up-muted);
    cursor: pointer;
}

.up-chart-tabs button.is-active {
    border-color: rgba(111, 218, 237, .42);
    background: rgba(111, 218, 237, .11);
    color: #83e1ef;
}

.up-chart-current {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin: 5px 0 22px;
}

.up-chart-current span {
    color: var(--up-muted);
}

.up-chart-current strong {
    color: var(--up-text);
    font-size: 36px;
}

.up-dashboard-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--up-border);
    border-radius: 20px;
    background: rgba(12, 22, 38, .78);
}

.up-proof-list,
.up-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.up-proof-list span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--up-border);
    border-radius: 999px;
    color: var(--up-muted);
    font-size: 13px;
}

.up-proof-list span::before {
    content: "";
    width: 8px;
    aspect-ratio: 1;
    margin-right: 8px;
    border-radius: 50%;
    background: #70df84;
    box-shadow: 0 0 10px rgba(112, 223, 132, .6);
}

.up-dashboard-actions a {
    color: #7fddeb;
    font-weight: 750;
    text-decoration: none;
}

@media (max-width: 1180px) {
    .up-dashboard-grid-primary,
    .up-dashboard-grid-health {
        grid-template-columns: repeat(2, 1fr);
    }

    .up-dashboard-lower {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .up-dashboard-v2 {
        padding: 68px 15px;
    }

    .up-dashboard-header {
        grid-template-columns: 1fr;
    }

    .up-collector-box {
        min-width: 0;
    }

    .up-dashboard-grid-primary,
    .up-dashboard-grid-health {
        grid-template-columns: 1fr;
    }

    .up-v2-card {
        min-height: 300px;
    }

    .up-wide-card-head,
    .up-dashboard-footer {
        flex-direction: column;
    }

    .up-traffic-grid {
        grid-template-columns: 1fr;
    }

    .up-chart-tabs {
        margin-top: 8px;
    }
}
