@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #08090d;
    --panel: rgba(18, 19, 25, 0.82);
    --card: rgba(255, 255, 255, 0.035);
    --card-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.075);

    --text: #ffffff;
    --muted: #8d919d;

    --green: #35e59a;
    --red: #ff5570;
    --accent: #8b5cf6;

    --radius: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -10%, rgba(139, 92, 246, .16), transparent 35%),
        radial-gradient(circle at 100% 50%, rgba(53, 229, 154, .055), transparent 30%),
        var(--bg);

    color: var(--text);
    font-family: "Vazirmatn", sans-serif;
    overflow-x: hidden;
}

/* -------------------- Background -------------------- */

.blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
}

.blur1 {
    width: 350px;
    height: 350px;
    top: -180px;
    right: 10%;
    background: rgba(139, 92, 246, .13);
}

.blur2 {
    width: 280px;
    height: 280px;
    bottom: 0;
    left: -100px;
    background: rgba(53, 229, 154, .06);
}

.blur3 {
    width: 220px;
    height: 220px;
    top: 45%;
    right: -100px;
    background: rgba(255, 85, 112, .04);
}

/* -------------------- Wrapper -------------------- */

.wrapper {
    width: min(1100px, calc(100% - 32px));
    margin: auto;
    padding: 70px 0 30px;
}

/* -------------------- Hero -------------------- */

.hero {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 45px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.hero h1 span {
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #b38cff 50%,
        #8b5cf6 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--muted);
    font-size: 14px;
    line-height: 2.2;
}

/* -------------------- Panel -------------------- */

.status-panel {
    position: relative;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.015)
        ),
        var(--panel);

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .35),
        inset 0 1px 0 rgba(255,255,255,.035);
}

/* خط بالای پنل */

.status-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(139,92,246,.7),
        transparent
    );
}

/* -------------------- Panel Header -------------------- */

.panel-title {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 17px;
    font-weight: 700;
    margin-bottom: 22px;
}

.panel-title::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 5px rgba(53,229,154,.08),
        0 0 18px rgba(53,229,154,.45);
}

/* -------------------- Service List -------------------- */

.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* -------------------- Service Item -------------------- */

.service-item {
    position: relative;

    min-height: 92px;
    padding: 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    border-radius: var(--radius);
    border: 1px solid var(--border);

    background: var(--card);

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;

    animation: serviceIn .45s ease both;
}

.service-item:hover {
    transform: translateY(-3px);

    background: var(--card-hover);

    border-color: rgba(139,92,246,.22);

    box-shadow:
        0 15px 35px rgba(0,0,0,.22),
        0 0 30px rgba(139,92,246,.035);
}

.service-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

/* -------------------- Icon -------------------- */

.service-icon {
    flex: 0 0 50px;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    color: #b997ff;

    background:
        linear-gradient(
            145deg,
            rgba(139,92,246,.17),
            rgba(139,92,246,.055)
        );

    border: 1px solid rgba(139,92,246,.12);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04);
}

.service-icon span {
    font-size: 23px;
}

/* -------------------- Text -------------------- */

.service-text {
    min-width: 0;
}

.service-text h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-text p {
    color: var(--muted);
    font-size: 11px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -------------------- Status -------------------- */

.status {
    flex-shrink: 0;

    min-width: 88px;
    height: 34px;

    padding: 0 11px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border-radius: 11px;

    font-size: 11px;
    font-weight: 600;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

/* Online */

.status.online {
    color: var(--green);
    background: rgba(53,229,154,.07);
    border: 1px solid rgba(53,229,154,.1);
}

.status.online .status-dot {
    background: var(--green);

    box-shadow:
        0 0 0 4px rgba(53,229,154,.07),
        0 0 12px rgba(53,229,154,.6);

    animation: pulse 1.8s infinite;
}

/* Offline */

.status.offline {
    color: var(--red);
    background: rgba(255,85,112,.06);
    border: 1px solid rgba(255,85,112,.1);
}

.status.offline .status-dot {
    background: var(--red);

    box-shadow:
        0 0 0 4px rgba(255,85,112,.06),
        0 0 10px rgba(255,85,112,.4);
}

/* -------------------- Skeleton -------------------- */

.service-item.skeleton {
    pointer-events: none;
}

.skeleton-box {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,.035),
        rgba(255,255,255,.08),
        rgba(255,255,255,.035)
    );

    background-size: 200% 100%;

    animation: skeleton 1.3s infinite;
}

/* -------------------- Footer -------------------- */

.footer {
    text-align: center;

    color: #626672;

    font-size: 11px;

    margin-top: 28px;
    padding-bottom: 10px;
}

/* -------------------- Animations -------------------- */

@keyframes serviceIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(53,229,154,.25),
            0 0 10px rgba(53,229,154,.4);
    }

    70% {
        box-shadow:
            0 0 0 7px rgba(53,229,154,0),
            0 0 15px rgba(53,229,154,.5);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(53,229,154,0),
            0 0 10px rgba(53,229,154,.4);
    }
}

@keyframes skeleton {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* -------------------- Responsive -------------------- */

@media (max-width: 750px) {

    .wrapper {
        width: min(100% - 20px, 600px);
        padding-top: 45px;
    }

    .hero {
        margin-bottom: 30px;
    }

    .hero p {
        font-size: 12px;
    }

    .status-panel {
        padding: 16px;
        border-radius: 22px;
    }

    .service-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .service-item {
        padding: 13px;
        min-height: 82px;
    }

    .service-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
        border-radius: 13px;
    }

    .service-icon span {
        font-size: 20px;
    }

    .service-text h3 {
        font-size: 12px;
    }

    .service-text p {
        font-size: 9px;
    }

    .status {
        min-width: 70px;
        height: 30px;
        font-size: 9px;
    }
}