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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 25% 25%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: -1;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader-container {
    text-align: center;
    color: #22c55e;
}

.block-loader {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.block-loader .block {
    width: 16px;
    height: 16px;
    background: #22c55e;
    border-radius: 2px;
    animation: blockPulse 1.4s infinite ease-in-out;
}

.block-loader .block:nth-child(1) { animation-delay: -0.32s; }
.block-loader .block:nth-child(2) { animation-delay: -0.16s; }
.block-loader .block:nth-child(3) { animation-delay: 0s; }
.block-loader .block:nth-child(4) { animation-delay: 0.16s; }

@keyframes blockPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.main-card {
    max-width: 900px;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
            0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 0 0 1px rgba(255, 255, 255, 0.05);
}

.header-block {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="10" height="10" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 20px 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.logo-text h1 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.logo-text span {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 40px;
}

.info-block {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.info-block:hover {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.15);
}

.block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 24px 0;
}

.block-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    position: relative;
}

.block-icon.status {
    background: linear-gradient(45deg, #ef4444 0%, #dc2626 100%);
}

.block-icon.progress {
    background: linear-gradient(45deg, #3b82f6 0%, #2563eb 100%);
}

.block-icon.server {
    background: linear-gradient(45deg, #8b5cf6 0%, #7c3aed 100%);
}

.block-icon::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.block-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.block-content {
    padding: 16px 24px 24px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    color: #ef4444;
}

.info-block p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 14px;
}

.progress-container {
    margin-bottom: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 2s ease;
}

.progress-text {
    font-size: 14px;
    color: #22c55e;
    font-weight: 500;
}

.progress-blocks {
    display: flex;
    gap: 4px;
    margin-top: 12px;
}

.mini-block {
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mini-block.active {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.server-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.label {
    color: #94a3b8;
    font-size: 14px;
}

.value {
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
}

.action-block {
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-block .block-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    width: 100%;
    min-height: 200px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.button-icon {
    width: 20px;
    height: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #ffffff;
}

.social-link.discord {
    background: rgba(88, 101, 242, 0.2);
}

.social-link.discord:hover {
    background: rgba(88, 101, 242, 0.3);
    color: #ffffff;
}

.social-link.twitter {
    background: rgba(29, 161, 242, 0.2);
}

.social-link.twitter:hover {
    background: rgba(29, 161, 242, 0.3);
    color: #ffffff;
}

.social-link.youtube {
    background: rgba(255, 0, 0, 0.2);
}

.social-link.youtube:hover {
    background: rgba(255, 0, 0, 0.3);
    color: #ffffff;
}

/* BLOCK ANIMATION */
.floating-blocks {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-block {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 4px;
    animation: float 15s linear infinite;
    bottom: -50px;
}

.floating-block:nth-child(1) {
    left: 10%;
    width: 25px;
    height: 25px;
    animation-delay: 0s;
    animation-duration: 20s;
}

.floating-block:nth-child(2) {
    left: 30%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 18s;
}

.floating-block:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.floating-block:nth-child(4) {
    left: 70%;
    width: 30px;
    height: 30px;
    animation-delay: 6s;
    animation-duration: 25s;
}

.floating-block:nth-child(5) {
    left: 85%;
    width: 18px;
    height: 18px;
    animation-delay: 8s;
    animation-duration: 19s;
}

.floating-block:nth-child(6) {
    left: 20%;
    width: 22px;
    height: 22px;
    animation-delay: 10s;
    animation-duration: 21s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 16px;
    }

    .header-block {
        padding: 32px 24px;
    }

    .logo-container {
        flex-direction: column;
        gap: 16px;
    }

    .logo-text h1 {
        font-size: 36px;
    }

    .action-block .block-content {
        min-height: 160px;
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 16px;
    }

    .main-card {
        border-radius: 16px;
    }

    .logo-text h1 {
        font-size: 28px;
    }

    .block-content {
        padding: 12px 20px 20px;
    }

    .block-header {
        padding: 20px 20px 0;
    }

    .action-block .block-content {
        min-height: 140px;
        padding: 24px 20px;
        gap: 20px;
    }
}