#digital-lab {
    min-height: 100vh;
    padding: 48px 22px;
    background:
        radial-gradient(circle at top, rgba(255, 110, 220, 0.10), transparent 30%),
        linear-gradient(180deg, #090c14 0%, #05070d 100%);
    color: #f4f7fb;
}

#digital-lab * {
    box-sizing: border-box;
}

#digital-lab::before {
    content: "";
    position: fixed;
    left: -50%;
    bottom: -40%;
    width: 200%;
    height: 120%;

    pointer-events: none;
    z-index: 0;

    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);

    background-size: 80px 80px;

    transform: perspective(900px) rotateX(65deg);

    animation: gridMove 35s linear infinite;

    mask-image: linear-gradient(
        to top,
        rgba(0,0,0,1),
        rgba(0,0,0,0.7),
        rgba(0,0,0,0)
    );
}
.console-shell {
    position: relative;
    z-index: 2;
}
@keyframes gridMove {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 0 200px, 200px 0;
    }
}
#digital-lab::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;

    background:
        radial-gradient(
            circle at center bottom,
            rgba(255,120,220,0.18),
            transparent 50%
        );

    z-index: 1;
}

#digital-lab .console-shell {
    max-width: 1400px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    box-shadow:
        0 25px 80px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
}

#digital-lab .console-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

#digital-lab .console-dots {
    display: flex;
    gap: 8px;
}

#digital-lab .console-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
}

#digital-lab .console-title,
#digital-lab .console-status,
#digital-lab .panel-label,
#digital-lab .screen-tag,
#digital-lab .card-kicker,
#digital-lab .meter-label,
#digital-lab .bottom-pill {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

#digital-lab .console-title {
    font-weight: 700;
    color: #f0c7ff;
    text-align: center;
    flex: 1;
}

#digital-lab .console-status {
    color: #8fffc5;
    white-space: nowrap;
}

#digital-lab .console-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 260px;
    gap: 18px;
    padding: 18px;
}

#digital-lab .panel {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    background: rgba(10, 15, 24, 0.76);
    padding: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

#digital-lab .panel-label {
    color: #89b4ff;
    margin-bottom: 14px;
}

#digital-lab .panel-center {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#digital-lab .hero-screen,
#digital-lab .mini-screen,
#digital-lab .meter-box {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
}

#digital-lab .screen-tag {
    display: inline-block;
    margin-bottom: 12px;
    color: #79e4ff;
}

#digital-lab .hero-screen h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05;
    color: #ffffff;
}

#digital-lab .hero-screen p,
#digital-lab .mini-screen p,
#digital-lab .lab-card p,
#digital-lab .status-list {
    color: rgba(240,245,255,0.78);
    line-height: 1.55;
}

#digital-lab .hero-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            transparent 0%,
            rgba(255,255,255,0.04) 50%,
            transparent 100%
        );
    animation: screenScan 6s linear infinite;
}

.hero-screen {
    position: relative;
    overflow: hidden;
}

@keyframes screenScan {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}
#digital-lab .hero-screen:hover {
    box-shadow:
        0 0 25px rgba(255,120,220,0.15),
        inset 0 0 20px rgba(255,120,220,0.05);
}

#digital-lab .lab-portals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

#digital-lab .lab-card {
    position: relative;
    display: block;
    min-height: 220px;
    padding: 20px;
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.10);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    box-shadow:
        0 10px 30px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.05);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

#digital-lab .lab-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);
    pointer-events: none;
}

#digital-lab .lab-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 124, 220, 0.48);
    box-shadow:
        0 18px 45px rgba(0,0,0,0.28),
        0 0 28px rgba(255, 124, 220, 0.10);
}

#digital-lab .card-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: #ff97e7;
}

#digital-lab .lab-card h2 {
    margin: 0 0 10px;
    font-size: 1.45rem;
    color: #ffffff;
}

#digital-lab .switch-cluster {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

#digital-lab .switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.82);
}

#digital-lab .switch {
    width: 42px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    position: relative;
    flex-shrink: 0;
}

#digital-lab .switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f5f7fa;
    transition: transform 0.2s ease;
}

#digital-lab .switch.on {
    background: rgba(91, 255, 190, 0.35);
}

#digital-lab .switch.on::after {
    transform: translateX(18px);
    background: #b8ffe1;
}

#digital-lab .status-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

#digital-lab .status-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

#digital-lab .status-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
    flex-shrink: 0;
}

#digital-lab .status-light.active {
    background: #8fffc5;
    box-shadow: 0 0 12px rgba(143,255,197,0.6);
    animation: statusPulse 2.4s ease-in-out infinite;
}

@keyframes statusPulse {
    0%,100% { opacity: .6 }
    50% { opacity: 1 }
}

#digital-lab .meter {
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    margin-top: 12px;
}

#digital-lab .meter span {
    display: block;
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #74e2ff 0%, #ff8de1 100%);
}

#digital-lab .console-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 18px 18px;
}

#digital-lab .bottom-pill {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.72);
}

@media (max-width: 1100px) {
    #digital-lab .console-grid {
        grid-template-columns: 1fr;
    }

    #digital-lab .lab-portals {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    #digital-lab {
        padding: 20px 12px;
    }

    #digital-lab .console-topbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    #digital-lab .hero-screen h1 {
        font-size: 2.1rem;
    }
}