:root {
    --primary-light: #e6f0fa;
    --primary-blue: #3b82f6;
    --primary-dark-blue: #1e3a8a;
    --accent-pink: #ec489a;
    --text-dark: #0f172a;
    --text-gray: #334155;
    --border-light: #cbd5e1;
    --green-dark: #15803d;
    --green-light: #22c55e;
    --red: #a13e3e;
    --yellow: #b68b40;
    --playstore-green: #3a9f8a;
    --card-bg: rgba(230, 240, 250, 0.95);
    --minecraft-stone: #8b8b8b;
    --minecraft-dirt: #8b5a2b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Minecraft', monospace;
    background: url('main.gif') center center fixed no-repeat;
    background-size: cover;
    color: var(--text-dark);
    line-height: 1.6;
    letter-spacing: 0.5px;
    min-height: 100vh;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    cursor: default;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--primary-light);
    border-bottom: 4px solid var(--primary-blue);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    height: 115px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 91px;
}

.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s;
}

.logo-container:hover {
    transform: translateX(-50%) scale(1.02);
}

.logo-container img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.glitch-text {
    font-size: 44px;
    font-weight: 900;
    text-transform: uppercase;
    font-family: 'Minecraft', monospace;
    background: linear-gradient(135deg, #5d3a1a, #8b5a2b, #b87c3a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 
        2px 2px 0 #3a2810,
        4px 4px 0 #2a1e0a;
    letter-spacing: 3px;
    position: relative;
}

.menu-toggle {
    background: var(--primary-light);
    border: 2px solid var(--border-light);
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.menu-toggle:hover {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.05);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.auth-btn {
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Minecraft', monospace;
    font-size: 14px;
    border: none;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.login-btn {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-light);
}

.register-btn {
    background: var(--primary-blue);
    color: var(--primary-light);
    border: none;
}

.login-btn:hover {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

.register-btn:hover {
    background: var(--accent-pink);
    transform: scale(1.02);
}

.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: var(--primary-light);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    padding: 50px 25px;
    transition: left 0.3s ease;
    overflow-y: auto;
    border-right: 1px solid var(--border-light);
}

.sidebar.active {
    left: 0;
}

.sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 2px solid var(--border-light);
    font-size: 22px;
    color: var(--text-dark);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sidebar-close:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: scale(1.05);
}

.sidebar h3 {
    color: var(--text-dark);
    margin-bottom: 30px;
    font-size: 24px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
    text-align: center;
    font-weight: 900;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-links a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid transparent;
}

.sidebar-links a i {
    width: 24px;
    color: var(--primary-blue);
    font-size: 18px;
}

.sidebar-links a:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--border-light);
    transform: translateX(5px) scale(1.02);
}

.hero {
    padding: 190px 0 100px;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    color: var(--primary-light);
    margin-bottom: 25px;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 18px;
    color: var(--primary-light);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.download-area {
    padding: 50px 0;
    background: transparent;
    margin: 20px;
}

.status-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.status-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.status-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
    transform: translateY(-3px) scale(1.01);
}

.status-text strong {
    display: block;
    font-size: 38px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 900;
}

.status-text span {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 600;
}

.online-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    background: #dcfce7;
    padding: 8px 16px;
    border-radius: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background-color: var(--green-light);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 6px var(--green-light);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.online-count {
    font-size: 18px;
    font-weight: 800;
    color: var(--green-dark);
}

.download-panel-section {
    padding: 50px 0;
    background: transparent;
    margin: 20px;
}

.download-panel {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.download-panel:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.os-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.os-tab {
    padding: 20px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--primary-light);
    color: var(--text-dark);
}

.os-tab.active {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

.os-tab:hover {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.05);
    transform: scale(1.02);
}

.os-tab-logo {
    font-size: 40px;
    margin-bottom: 12px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.windows-logo {
    color: var(--primary-blue);
}

.macos-logo {
    color: var(--text-dark);
}

.android-logo {
    color: var(--text-dark);
}

.download-content {
    display: none;
}

.download-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.download-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-download, .btn-playstore {
    flex: 1;
    min-width: 200px;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: 'Minecraft', monospace;
    letter-spacing: 0.5px;
}

.btn-download {
    background: var(--primary-blue);
    color: var(--primary-light);
}

.btn-download:hover {
    background: var(--accent-pink);
    transform: scale(1.02) translateY(-2px);
}

.btn-playstore {
    background: var(--playstore-green);
    color: var(--primary-light);
}

.btn-playstore:hover {
    background: #2a7a6a;
    transform: scale(1.02) translateY(-2px);
}

.smp-section {
    padding: 80px 0;
    background: transparent;
    margin: 20px;
}

.smp-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    max-width: 800px;
    margin: 0 auto;
}

.smp-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.smp-card h2 {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 900;
    letter-spacing: 2px;
}

.smp-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 30px;
}

.smp-stat {
    text-align: center;
}

.smp-stat i {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 12px;
    display: block;
}

.smp-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: var(--text-dark);
}

.smp-stat-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 600;
}

.smp-description {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.btn-smp-play {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-pink));
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Minecraft', monospace;
    transition: all 0.2s ease;
    margin-bottom: 25px;
}

.btn-smp-play:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.smp-ip {
    background: rgba(0, 0, 0, 0.05);
    padding: 12px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.copy-ip-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--primary-blue);
    transition: all 0.2s;
}

.copy-ip-btn:hover {
    transform: scale(1.1);
    color: var(--accent-pink);
}

.features-section {
    padding: 80px 0;
    background: transparent;
    margin: 20px;
}

.features-section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary-light);
    margin-bottom: 40px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.feature-card:hover {
    border-color: var(--primary-blue);
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 800;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 14px;
}

.feature-detail {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
    color: var(--text-gray);
    font-size: 13px;
}

.feature-detail.active {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

.support-section {
    padding: 80px 0;
    background: transparent;
    margin: 20px;
}

.support-section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary-light);
    margin-bottom: 40px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.support-content {
    text-align: center;
    padding: 40px;
}

.support-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(230, 240, 250, 0.9);
    color: var(--text-dark);
    padding: 16px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.2s;
    border: 2px solid var(--border-light);
}

.support-email:hover {
    border-color: var(--primary-blue);
    background: var(--primary-light);
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

footer {
    background: var(--primary-light);
    color: var(--text-dark);
    padding: 60px 0 30px;
    position: relative;
    margin-top: 40px;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 50px;
}

.footer-grid h4 {
    color: var(--text-dark);
    margin-bottom: 18px;
    font-size: 16px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 800;
}

.footer-grid h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--primary-blue);
}

.footer-grid a {
    color: var(--text-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.2s;
    padding: 4px 0;
    font-weight: 500;
    font-size: 14px;
}

.footer-grid a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border-light);
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 500;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.modal {
    background: var(--primary-light);
    padding: 35px;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.2s ease;
    border: 1px solid var(--border-light);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-15px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    margin: 10px 0;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Minecraft', monospace;
    font-weight: 500;
    font-size: 14px;
    background: var(--primary-light);
    color: var(--text-dark);
    transition: all 0.2s;
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    transform: scale(1.01);
}

.modal-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-blue);
    color: var(--primary-light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Minecraft', monospace;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 700;
    transition: all 0.2s;
}

.modal-submit-btn:hover {
    background: var(--accent-pink);
    transform: scale(1.02);
}

.character-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.character-option {
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: var(--primary-light);
    color: var(--text-dark);
}

.character-option.selected {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

.character-option:hover {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.05);
    transform: scale(1.02);
}

.character-option img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
    transition: transform 0.2s;
}

.character-option:hover img {
    transform: scale(1.05);
}

.character-option div {
    font-size: 12px;
    font-weight: 600;
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 12px;
}

.forgot-password a:hover {
    color: var(--primary-blue);
    transform: scale(1.02);
    display: inline-block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.servers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 550px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.server-item {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--primary-blue);
    transition: all 0.2s ease;
    cursor: pointer;
}

.server-item:hover {
    transform: translateX(5px) scale(1.01);
    background: rgba(59, 130, 246, 0.1);
}

.server-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 12px;
    animation: pulse 2s infinite;
}

.server-status-indicator.online {
    background: var(--green-light);
    box-shadow: 0 0 6px var(--green-light);
}

.server-name {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.server-ms {
    font-size: 14px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.server-ms.ping-good {
    background: #dcfce7;
    color: var(--green-dark);
}

.server-ms.ping-medium {
    background: #fef3c7;
    color: #b45309;
}

.server-ms.ping-high {
    background: #fee2e2;
    color: #b91c1c;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .os-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .glitch-text {
        font-size: 28px;
    }
    
    .logo-container img {
        height: 70px;
    }
    
    .auth-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .status-container {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
    
    .character-selection {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .smp-stats {
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .smp-card h2 {
        font-size: 28px;
    }
}