.servers-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px 90px;
}

.servers-header {
    margin-bottom: 32px;
    animation: itemIn 0.6s var(--ease-out) both;
}

.servers-header h1 {
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -1px;
}

.servers-header p {
    margin-top: 8px;
    font-size: 15px;
    color: #a3a6ad;
}

.servers-empty {
    font-size: 14px;
    color: #80848e;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.server-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.06),
        0 16px 40px rgba(0, 0, 0, 0.3);
    animation: itemIn 0.6s var(--ease-out) var(--delay, 0s) both;
    transition: transform 0.45s cubic-bezier(0.34, 1.36, 0.64, 1), border-color 0.3s, box-shadow 0.3s;
}

.server-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.08),
        0 24px 54px rgba(0, 0, 0, 0.4);
}

.server-cover {
    position: relative;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.server-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.server-card:hover .server-cover img {
    transform: scale(1.05);
}

.server-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 21, 24, 0.05) 0%, rgba(20, 21, 24, 0.35) 50%, rgba(20, 21, 24, 0.9) 100%);
}

.server-cover-content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 20px;
    z-index: 1;
}

.server-edition {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.server-name {
    margin-top: 10px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.server-tagline {
    display: block;
    margin-top: 6px;
    font-size: 13.5px;
    color: #d5d7dc;
}

.server-state {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid;
    border-radius: 999px;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.server-state::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.state-online {
    color: #86efac;
    background: rgba(20, 60, 35, 0.55);
    border-color: rgba(34, 197, 94, 0.4);
}

.state-online::before {
    box-shadow: 0 0 8px currentColor;
    animation: statusPulse 2s ease-in-out infinite;
}

.state-offline {
    color: #fca5a5;
    background: rgba(70, 20, 20, 0.55);
    border-color: rgba(239, 68, 68, 0.4);
}

.state-soon {
    color: #fcd34d;
    background: rgba(70, 55, 10, 0.55);
    border-color: rgba(234, 179, 8, 0.4);
}

.server-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 18px;
    padding: 22px 24px 24px;
}

.server-description {
    font-size: 14px;
    line-height: 1.65;
    color: #c4c7cd;
}

.server-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.server-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.server-meta-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: #80848e;
}

.server-meta-value {
    font-size: 16px;
    font-weight: 700;
}

.server-address {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
}

.server-address code {
    display: block;
    margin-top: 3px;
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    font-size: 14px;
    font-weight: 600;
    word-break: break-all;
}

.server-soon {
    font-size: 13px;
    color: #80848e;
}

.server-join {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 46px;
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    color: #1e1f22;
    background: linear-gradient(180deg, #ffffff 0%, #dfe1e6 100%);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}

.server-join svg {
    width: 16px;
    height: 16px;
}

.server-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.server-join.is-disabled {
    color: #80848e;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    box-shadow: none;
    cursor: default;
}

.server-join.is-disabled:hover {
    transform: none;
}

@media (max-width: 480px) {
    .servers-grid {
        grid-template-columns: 1fr;
    }

    .server-name {
        font-size: 32px;
    }
}
