/* DASHBOARD PREVIEW SECTION */

.dashboard-preview-section {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 45px 0 70px;
}

.dashboard-preview-heading {
    max-width: 780px;
}

.dashboard-preview-heading h2 {
    margin-top: 8px;
    color: #ffffff;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.04;
    letter-spacing: -3px;
}

.dashboard-preview-heading p {
    max-width: 650px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 17px;
    line-height: 1.75;
}

/* OUTER SHELL */

.dashboard-preview-shell {
    position: relative;
    overflow: hidden;
    margin-top: 58px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    background:
        radial-gradient(
            circle at 18% 16%,
            rgba(126, 34, 206, 0.18),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018)
        );
    backdrop-filter: blur(26px);
    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.dashboard-preview-shell::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -160px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(168, 85, 247, 0.25),
            transparent 68%
        );
    filter: blur(35px);
    pointer-events: none;
}

.dashboard-preview-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            115deg,
            transparent 18%,
            rgba(255, 255, 255, 0.025) 50%,
            transparent 82%
        );
    pointer-events: none;
}

/* TOP BAR */

.dashboard-preview-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
    padding: 0 16px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-preview-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: 0.5px;
}

.dashboard-preview-brand-mark {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background:
        linear-gradient(
            145deg,
            #b96cff,
            #6d28d9
        );
    box-shadow:
        0 10px 26px rgba(126, 34, 206, 0.34);
}

.dashboard-preview-brand-mark::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-top-color: transparent;
    border-radius: 7px;
    transform: rotate(45deg);
}

.dashboard-preview-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(34, 197, 94, 0.16);
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.08);
    color: #86efac;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-preview-status > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow:
        0 0 8px rgba(34, 197, 94, 0.95),
        0 0 18px rgba(34, 197, 94, 0.6);
}

/* DASHBOARD GRID */

.dashboard-preview-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(300px, 0.65fr);
    gap: 18px;
    padding-top: 18px;
}

.dashboard-preview-main,
.dashboard-preview-side {
    min-width: 0;
}

.dashboard-preview-side {
    display: grid;
    gap: 18px;
}

/* CARDS */

.dashboard-preview-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018)
        );
    box-shadow:
        0 18px 52px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.dashboard-preview-card::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(126, 34, 206, 0.18),
            transparent 70%
        );
    filter: blur(28px);
    pointer-events: none;
}

.dashboard-preview-connection {
    min-height: 100%;
    padding: 32px;
}

.dashboard-preview-label {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.dashboard-preview-state {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 10px 15px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    font-size: 14px;
    font-weight: 750;
}

.dashboard-preview-state-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow:
        0 0 10px rgba(34, 197, 94, 0.95),
        0 0 20px rgba(34, 197, 94, 0.55);
}

/* SERVER */

.dashboard-preview-server {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.016)
        );
}

.dashboard-preview-flag {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 16px;
    font-weight: 850;
    letter-spacing: 1px;
}

.dashboard-preview-server strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.dashboard-preview-server span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 13px;
}

.dashboard-preview-ping {
    padding: 8px 11px;
    border: 1px solid rgba(168, 85, 247, 0.16);
    border-radius: 999px;
    background: rgba(126, 34, 206, 0.08);
    color: #d8b4fe;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

/* BUTTON */

.dashboard-preview-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    margin-top: 26px;
    border-radius: 16px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #a855f7,
            #6d28d9
        );
    box-shadow:
        0 18px 48px rgba(126, 34, 206, 0.3);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.dashboard-preview-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 24px 66px rgba(126, 34, 206, 0.44);
}

/* SIDE VALUES */

.dashboard-preview-value {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 24px;
    color: #ffffff;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1.2px;
}

.dashboard-preview-caption {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 14px;
}

/* HOVER */

@media (hover: hover) and (pointer: fine) {
    .dashboard-preview-card:hover {
        transform: translateY(-5px);
        border-color: rgba(168, 85, 247, 0.28);
        box-shadow:
            0 26px 68px rgba(0, 0, 0, 0.3),
            0 0 36px rgba(126, 34, 206, 0.08);
    }
}

/* TABLET */

@media (max-width: 900px) {
    .dashboard-preview-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-preview-side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* MOBILE */

@media (max-width: 700px) {
    .dashboard-preview-section {
        width: min(100% - 28px, 1180px);
        padding: 32px 0;
    }

    .dashboard-preview-heading h2 {
        font-size: clamp(32px, 9vw, 38px);
        line-height: 1.02;
        letter-spacing: -1.3px;
    }

    .dashboard-preview-heading p {
        font-size: 15px;
        line-height: 1.65;
    }

    .dashboard-preview-shell {
        margin-top: 32px;
        padding: 12px;
        border-radius: 24px;
    }

    .dashboard-preview-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 8px 8px 16px;
    }

    .dashboard-preview-grid {
        gap: 14px;
        padding-top: 14px;
    }

    .dashboard-preview-side {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dashboard-preview-card {
        padding: 22px;
        border-radius: 20px;
    }

    .dashboard-preview-connection {
        padding: 24px;
    }

    .dashboard-preview-server {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
        padding: 18px;
    }

    .dashboard-preview-ping {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .dashboard-preview-value {
        font-size: 28px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .dashboard-preview-card,
    .dashboard-preview-button {
        transition: none;
    }
}
