* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #39d66b;
    --green-soft: #68ff9e;
    --green-dark: #237c42;
    --yellow: #ffd166;
    --red: #ff6464;
    --bg: #101211;
    --panel: rgba(255, 255, 255, .06);
    --panel-strong: rgba(255, 255, 255, .09);
    --border: rgba(255, 255, 255, .12);
    --text-soft: rgba(255, 255, 255, .72);
}

body {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: white;
    background: var(--bg);
    overflow-x: hidden;
}

a,
button {
    font-family: inherit;
}

.background {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(57, 214, 107, .28), transparent 36%),
        radial-gradient(circle at 15% 20%, rgba(57, 214, 107, .12), transparent 28%),
        linear-gradient(180deg, #14251d 0%, #101211 55%, #0b0d0c 100%);
    z-index: -3;
}

.particles {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        radial-gradient(rgba(104,255,158,.07) 1px, transparent 1px);
    background-size: 44px 44px, 90px 90px;
    background-position: 0 0, 20px 30px;
    animation: drift 30s linear infinite;
    opacity: .7;
    z-index: -2;
    pointer-events: none;
}

.page {
    width: min(1120px, 92%);
    margin: auto;
    padding: 54px 0 42px;
}

.hero,
.subpage-header {
    text-align: center;
    padding: 10px 0 44px;
    animation: fadeUp .75s ease both;
}

.logo {
    width: 175px;
    border-radius: 50%;
    margin-bottom: 26px;
    box-shadow:
        0 24px 70px rgba(0,0,0,.45),
        0 0 0 1px rgba(255,255,255,.08);
}

.small-logo {
    width: 120px;
}

.eyebrow {
    color: var(--green-soft);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 14px;
}

h1 {
    font-size: clamp(44px, 8vw, 86px);
    line-height: .92;
    font-weight: 900;
    letter-spacing: 5px;
}

.subpage-title {
    font-size: clamp(42px, 7vw, 72px);
}

h2 {
    color: var(--green-soft);
    font-size: clamp(20px, 3vw, 31px);
    font-weight: 300;
    letter-spacing: 12px;
    margin: 20px 0 24px;
}

.subtitle {
    color: var(--text-soft);
    font-size: clamp(16px, 2vw, 21px);
    max-width: 760px;
    margin: 20px auto 34px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.buttons a,
.secondary-button,
.mode-button {
    color: white;
    text-decoration: none;
    background: linear-gradient(180deg, #42d56c, #31b858);
    padding: 15px 28px;
    border-radius: 13px;
    font-weight: 800;
    box-shadow: 0 16px 35px rgba(49,184,88,.22);
    transition:
        transform .2s ease,
        filter .2s ease,
        opacity .2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.buttons a:hover,
.secondary-button:hover,
.mode-button:hover {
    transform: translateY(-4px);
    filter: brightness(1.08);
}

.buttons .soon,
.mode-button.secondary {
    background: linear-gradient(180deg, #2d8f4a, #246f3b);
}

.mode-button.disabled {
    background: #5e5e5e;
    color: #d4d4d4;
    cursor: not-allowed;
    box-shadow: none;
}

.mode-button.disabled:hover {
    transform: none;
    filter: none;
}

.back-link {
    display: inline-block;
    color: var(--green-soft);
    text-decoration: none;
    margin-bottom: 24px;
    font-weight: 700;
}

.status-grid,
.live-stats {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

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

.live-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-card,
.stat-card,
.card,
.news article,
.mode-card,
.network-highlight,
.service-card,
.overall-status-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: 0 24px 80px rgba(0,0,0,.35);
    backdrop-filter: blur(14px);
}

.status-card,
.stat-card {
    border-radius: 18px;
    padding: 20px;
}

.status-card div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.status-card p,
.stat-card p,
.section-title p {
    color: var(--text-soft);
}

.stat-card span {
    display: block;
    color: var(--green-soft);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.stat-card strong {
    display: block;
    font-size: clamp(27px, 4vw, 40px);
    margin: 8px 0 2px;
}

.stat-card p {
    font-size: 13px;
}

.status-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #999;
    box-shadow: 0 0 18px currentColor;
    flex: 0 0 auto;
}

.status-dot.online {
    background: var(--green);
    color: var(--green);
    animation: pulse 1.6s infinite;
}

.status-dot.offline {
    background: var(--red);
    color: var(--red);
}

.status-dot.checking {
    background: var(--yellow);
    color: var(--yellow);
}

.card {
    border-radius: 28px;
    padding: clamp(24px, 4vw, 38px);
}

.section-title {
    text-align: center;
    margin-bottom: 28px;
}

.section-title span,
.news span {
    color: var(--green-soft);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title h3 {
    font-size: clamp(30px, 5vw, 46px);
    margin: 8px 0;
}

.server-list {
    display: grid;
    gap: 18px;
}

.server {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 20px;
    padding: 22px;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.server:hover {
    transform: translateY(-3px);
    border-color: rgba(104,255,158,.35);
    background: rgba(0,0,0,.36);
}

.server-main {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.server small {
    display: block;
    color: var(--green-soft);
    font-weight: 700;
    margin-bottom: 8px;
}

.server h4 {
    font-size: clamp(22px, 4vw, 31px);
    word-break: break-word;
}

.server p {
    color: var(--text-soft);
    margin-top: 6px;
    font-size: 14px;
}

.server button {
    border: none;
    border-radius: 13px;
    background: linear-gradient(180deg, #42d56c, #31b858);
    color: white;
    padding: 15px 26px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform .2s ease,
        filter .2s ease;
    white-space: nowrap;
}

.server button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.server button:disabled {
    cursor: not-allowed;
    background: #5e5e5e;
    color: #d1d1d1;
    transform: none;
}

.server-disabled h4 {
    color: #9d9d9d;
}

.featured-modes,
.all-modes-section,
.services-preview,
.dynamic-news,
.all-services-section {
    margin-top: 60px;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.mode-card {
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 360px;
    transition:
        transform .2s ease,
        border-color .2s ease;
}

.mode-card:hover {
    transform: translateY(-5px);
    border-color: rgba(104,255,158,.35);
}

.mode-visual {
    min-height: 135px;
    padding: 22px;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(180deg, transparent, rgba(0,0,0,.6)),
        var(--mode-gradient, linear-gradient(135deg, #184d31, #11271d));
}

.mode-visual h3 {
    font-size: 25px;
}

.mode-content {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mode-category {
    color: var(--green-soft);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-bottom: 10px;
}

.mode-description {
    color: var(--text-soft);
    line-height: 1.65;
    margin-bottom: 18px;
    flex: 1;
}

.mode-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.mode-badge {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

.mode-badge.online {
    color: var(--green-soft);
}

.mode-badge.soon {
    color: var(--yellow);
}

.mode-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mode-button {
    padding: 11px 16px;
    font-size: 13px;
    box-shadow: none;
}

.center-action {
    text-align: center;
    margin-top: 28px;
}

.network-highlight {
    border-radius: 28px;
    padding: 32px;
    margin-bottom: 48px;
}

.network-highlight h2 {
    letter-spacing: 1px;
    font-size: clamp(30px, 5vw, 48px);
    margin: 8px 0 14px;
}

.network-highlight p {
    color: var(--text-soft);
    max-width: 760px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    border-radius: 18px;
    padding: 20px;
}

.service-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}

.service-card > p {
    color: var(--text-soft);
    font-size: 13px;
}

.service-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    color: var(--text-soft);
    font-size: 12px;
}

.service-state {
    font-weight: 800;
}

.service-state.online {
    color: var(--green-soft);
}

.service-state.offline {
    color: var(--red);
}

.service-state.checking {
    color: var(--yellow);
}

.overall-status-panel {
    border-radius: 24px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.overall-status-panel > .status-dot {
    width: 18px;
    height: 18px;
}

.overall-status-panel h2 {
    letter-spacing: 0;
    margin: 4px 0 8px;
    font-size: clamp(25px, 4vw, 40px);
}

.overall-status-panel p:last-child {
    color: var(--text-soft);
}

.last-update {
    text-align: center;
    color: var(--text-soft);
    margin-top: 26px;
}

.news {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.news article {
    border-radius: 20px;
    padding: 22px;
}

.news h3 {
    margin: 8px 0;
}

.news p {
    color: var(--text-soft);
    margin-bottom: 14px;
}

.news small {
    color: rgba(255,255,255,.45);
}

.news-link {
    display: block;
    width: max-content;
    margin-top: 14px;
    color: var(--green-soft);
    text-decoration: none;
    font-weight: 700;
}

footer {
    text-align: center;
    color: rgba(255,255,255,.48);
    margin-top: 50px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--text-soft);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--green-soft);
}

#toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 20, 20, .94);
    border: 1px solid rgba(104,255,158,.28);
    color: white;
    padding: 14px 22px;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,.4);
    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
    z-index: 10;
}

#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(57,214,107,.55);
    }

    50% {
        box-shadow: 0 0 0 9px rgba(57,214,107,0);
    }
}

@keyframes drift {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(44px);
    }
}

@media (max-width: 900px) {
    .modes-grid,
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 780px) {
    .status-grid,
    .news,
    .modes-grid,
    .services-grid,
    .live-stats {
        grid-template-columns: 1fr;
    }

    .server {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .server-main {
        text-align: center;
    }

    .server button {
        width: 100%;
    }

    h1 {
        letter-spacing: 2px;
    }

    h2 {
        letter-spacing: 8px;
    }

    .mode-card {
        min-height: 0;
    }

    .overall-status-panel {
        align-items: flex-start;
    }
}


.news article {
    overflow: hidden;
}

.news-image {
    margin: -22px -22px 18px;
    height: 180px;
    background: rgba(0, 0, 0, .3);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-news {
    border-color: rgba(104, 255, 158, .5) !important;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, .35),
        0 0 30px rgba(57, 214, 107, .1) !important;
}

.featured-label {
    display: inline-block;
    margin-left: 8px;
    color: #ffd166 !important;
    font-size: 11px !important;
    letter-spacing: 1px !important;
}
