* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
}

.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: #1a1a2e;
}

.language-selector {
    position: relative;
    cursor: pointer;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 120px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s ease;
}

.language-option:hover {
    background: rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
.stats-section {
    margin-top: 70px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-container {
    
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #ff6b6b);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    margin: 1rem 0;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #ff6b6b);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
    text-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-trend {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 600;
}
.stat-trends {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 600;
}
.trend-up {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.trend-down {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.trend-neutral {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '🔄';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.search-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem auto;
    width: 95%;
    
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.search-container {
    
    margin: 0 auto;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-header h2 {
    color: #fff;
    font-size: 1.5rem;
}

.search-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-group {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.search-input-group:focus-within {
    border-color: #feca57;
    box-shadow: 0 8px 30px rgba(254, 202, 87, 0.3);
    transform: translateY(-2px);
}

.search-input {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: #fff;
    font-size: 1.1rem;
    width: 400px;
    outline: none;
    font-weight: 500;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.search-btn, .filter-toggle, .reset-filters {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border: none;
    padding: 1rem 2rem;
    color: #1a1a2e;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.search-btn:hover, .filter-toggle:hover, .reset-filters:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff8e8e, #ffd166);
}

.filters-panel {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: #ffffff;
    outline: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-select:hover {
    border-color: #feca57;
    background: rgba(254, 202, 87, 0.1);
}
.filter-select option {
    background: #1a1a2e !important;
    color: #fff !important;
    padding: 10px;
    font-size: 14px;
}
.servers-section {
    padding: 2rem;
}

.servers-container {
    
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.servers-container h2 {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.servers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.server-count {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
}

.server-count span {
    color: #feca57;
    font-weight: 800;
    font-size: 1.3rem;
}

.sort-select {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    color: #fff;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.sort-select option{
    background: #1a1a2e !important;
    color: #fff !important;
    padding: 10px;
    font-size: 14px;
}
.filter-select option {
    background: #1a1a2e !important;
    color: #fff !important;
    padding: 10px;
    font-size: 14px;
}
.sort-select:hover {
    border-color: #feca57;
    background: rgba(254, 202, 87, 0.1);
}

.servers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.server-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s ease;
    display: grid;
    grid-template-columns: 60px 1fr 140px 100px 80px 100px;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.account-id-link {
    transition: all 0.3s ease;
}

.account-id-link:hover {
    color: #feca57 !important;
    text-decoration: underline !important;
    transform: translateY(-1px);
}
.server-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.server-item:hover::before {
    left: 100%;
}

.server-item:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(254, 202, 87, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.server-number {
    font-weight: 900;
    color: #feca57;
    text-align: center;
    font-size: 1.3rem;
    text-shadow: 0 2px 8px rgba(254, 202, 87, 0.4);
}

.server-ip {
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.9rem;
}

.server-name {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.3;
}

.server-players {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1rem;
}

.server-players span {
    color: #2ecc71;
    font-weight: 800;
}

.server-ping {
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
}

.ping-good { 
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.ping-medium { 
    color: #feca57;
    background: rgba(254, 202, 87, 0.15);
    border: 1px solid rgba(254, 202, 87, 0.3);
}

.ping-bad { 
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.server-country {
    text-align: center;
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.server-version {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255,255,255,0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
}

.pastebin-link {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    border: none;
    cursor: pointer;
}

.pastebin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #3ba3e8, #3498db);
}

.server-offline {
    opacity: 0.6;
    background: linear-gradient(135deg, rgba(255,0,0,0.1) 0%, rgba(255,0,0,0.05) 100%);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.status-online {
    background: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
}

.status-offline {
    background: #e74c3c;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.5);
}

.server-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

.badge-official {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.badge-modded {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.badge-whitelist {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.badge-friendlyfire {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.period-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.period-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.period-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: #1a1a2e;
    border-color: transparent;
}

.period-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1200px) {
    .server-item {
        grid-template-columns: 50px 1fr 90px 80px 70px 60px 90px 80px;
        gap: 0.8rem;
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .search-section,
    .servers-container {
        padding: 1.5rem;
        margin: 1rem;
        width: auto;
    }
    
    .server-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .server-number {
        font-size: 1.5rem;
    }
    
    .server-country {
        font-size: 2rem;
    }
    
    .search-input {
        width: 100%;
    }
    
    .servers-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .filters-panel {
        grid-template-columns: 1fr;
    }

    .server-badge {
        display: block;
        margin: 0.2rem 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.server-item {
    animation: fadeInUp 0.6s ease forwards;
}
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: #feca57;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-info {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1rem;
}

.page-info span {
    color: #feca57;
    font-weight: 800;
}

@media (max-width: 768px) {
    .pagination-controls {
        flex-direction: column;
        gap: 0.8rem;
    }
}
.footer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 2rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    text-align: center;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-text {
        font-size: 0.9rem;
    }
    
    .footer-disclaimer {
        font-size: 0.8rem;
    }
}

.server-detail-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.server-detail-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 2% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 1800px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 25px;
    z-index: 1;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.server-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.server-detail-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.server-detail-name {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.server-detail-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-online {
    background: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.status-offline {
    background: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.server-detail-actions {
    display: flex;
    gap: 15px;
}

.server-detail-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-detail-btn.connect {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.server-detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.server-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.server-detail-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.server-detail-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-icon {
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #feca57;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.info-value {
    color: #fff;
    font-weight: 600;
}

.player-count {
    color: #2ecc71;
    font-weight: 700;
}

.player-max {
    color: rgba(255, 255, 255, 0.7);
}

.coordinates-container {
    display: flex;
    gap: 20px;
}

.coordinate-set {
    flex: 1;
}

.coordinate-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #feca57;
    font-size: 0.9rem;
}

.hosting-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.server-detail-stats {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}
.chart-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 10px;
}

.period-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.period-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.period-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: #1a1a2e;
    border-color: transparent;
}

.period-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.server-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.server-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-official {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.badge-modded {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.badge-whitelist {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.badge-friendlyfire {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge-private {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

@media (max-width: 768px) {
    .server-detail-content {
        margin: 5% auto;
        padding: 20px;
        width: 95%;
    }
    
    .server-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .server-detail-stats {
        grid-template-columns: 1fr;
    }
    
    .server-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .coordinates-container {
        flex-direction: column;
    }
    
    .server-detail-actions {
        width: 100%;
        justify-content: space-between;
    }
}
.footer-creators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.creators-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.creator-link {
    color: #feca57;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.creator-link:hover {
    color: #ff6b6b;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.creators-separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: bold;
}

@media (max-width: 768px) {
    .footer-creators {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .creators-separator {
        display: none;
    }
}
.map-section {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    min-height: 80vh;
}

.map-container {
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.map-container h2 {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-stats {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
}

.map-stats span {
    color: #feca57;
    font-weight: 800;
}

.map-filter-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #feca57;
}

.map-filter-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: #1a1a2e;
}

.toggle-icon {
    font-size: 1.2rem;
}

.servers-map {
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #1a1a2e;
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(236, 236, 236, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}
.server-popup h3,
.server-popup p,
.server-popup span,
.server-popup .server-list-item span {
    filter: invert(1) hue-rotate(180deg);
    color: #fff !important;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}
.ymaps-2-1-79-map {
    filter: invert(0.9) hue-rotate(180deg) contrast(1.2);
}

.ymaps-2-1-79-map .ymaps-2-1-79-inner-panes {
    filter: invert(1) hue-rotate(180deg);
}
.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.online-marker {
    background: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
}

.offline-marker {
    background: #e74c3c;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.5);
}

.cluster-marker {
    background: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

:root {
    --map-tile-filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3) brightness(0.7);
}

.map-tiles {
    filter: var(--map-tile-filter);
}

.leaflet-container {
    background: #1a1a2e;
}

.leaflet-popup-content-wrapper {
    background: rgba(20, 25, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    backdrop-filter: blur(10px);
}

.leaflet-popup-tip {
    background: #ffffff;
}

.server-popup {
    min-width: 200px;
}

.server-popup h3 {
    color: #feca57;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.server-popup p {
    margin: 0.3rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.server-popup .server-list {
    max-height: 200px;
    overflow-y: auto;
    margin: 0.5rem 0;
}

.server-popup .server-list-item {
    padding: 0.5rem;
    border-bottom: 1px solid rgb(255, 255, 255);
    cursor: pointer;
    transition: 0.3s ease;
}

.server-popup .server-list-item:hover {
    background: rgb(255, 255, 255);
}

.server-popup .server-list-item:last-child {
    border-bottom: none;
}

.server-popup .server-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .map-section {
        padding: 1rem;
    }
    
    .map-container {
        padding: 1.5rem;
    }
    
    .map-controls {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .servers-map {
        height: 400px;
    }
    
    .map-legend {
        flex-direction: column;
        gap: 0.5rem;
    }
}
.ymaps-2-1-79-map {
    filter: invert(0.9) hue-rotate(180deg) contrast(1.2);
}

.ymaps-2-1-79-map .ymaps-2-1-79-inner-panes {
    filter: invert(1) hue-rotate(180deg);
}

.server-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.server-popup h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

.server-popup button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.map-toggle-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 768px) {
    .map-toggle-group {
        flex-direction: column;
        width: 100%;
    }
    
    .map-toggle-group .map-filter-btn {
        width: 100%;
        justify-content: center;
    }
}
#users-count {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
    margin-left: 10px;
    white-space: nowrap;
}
@media (max-width: 768px) {
    #users-count {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
        margin-left: 5px;
    }
    
    .logo {
        flex-wrap: wrap;
        gap: 5px;
    }
}