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

:root {
    --primary-color: #FFD700;
    --secondary-color: #1a1a1a;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --accent-color: #FFD700;
    --text-light: #FFFFFF;
    --text-muted: #b0b0b0;
    --success-color: #43b581;
    --warning-color: #FFD700;
    --danger-color: #f04747;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-light);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 
        100px 100px white,
        200px 50px white,
        300px 150px white,
        400px 100px white,
        500px 200px white,
        150px 300px white,
        250px 350px white,
        350px 250px white,
        450px 300px white,
        600px 150px white;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

main {
    position: relative;
    z-index: 2;
}

/* Navbar */
.navbar {
    background: rgba(35, 39, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid var(--primary-color);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-links {
    display: flex;
    gap: 2rem;
}

.navbar-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.navbar-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-bottom: 3px solid #FFD700;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        #FFD700 0px,
        #FFD700 20px,
        transparent 20px,
        transparent 40px
    );
}

.hero-content {
    animation: slideInDown 0.8s ease;
}

.title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700, #FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
}

/* Status Section */
.status-section {
    padding: 2rem;
    text-align: center;
    background: rgba(26, 26, 26, 0.8);
    border-top: 2px solid #FFD700;
    border-bottom: 2px solid #FFD700;
}

.status-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

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

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

.last-update {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Servers Section */
.servers-section {
    padding: 3rem 2rem;
    position: relative;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.05) 50%, 
        transparent 100%);
}

.servers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        #FFD700 0px,
        #FFD700 30px,
        transparent 30px,
        transparent 60px
    );
}

.servers-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        #FFD700 0px,
        #FFD700 30px,
        transparent 30px,
        transparent 60px
    );
}

.shop-section .section-title {
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--accent-color);
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.shop-section {
    padding: 3rem 2rem;
    background: #000;
    position: relative;
}

.shop-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        #FFD700 0px,
        #FFD700 10px,
        #000 10px,
        #000 20px
    );
    pointer-events: none;
}

.section-subtitle {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2rem;
    color: #FFF;
    line-height: 1.7;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    max-width: 1400px;
    margin: 0 auto;
}

.shop-card {
    background: #1a1a1a;
    border: 3px solid #FFD700;
    border-radius: 20px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    backdrop-filter: blur(12px);
    color: #FFF;
}

.shop-card:hover {
    border-color: #FFF;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.shop-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #FFD700;
    color: #000;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    width: fit-content;
}

.shop-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
}

.shop-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.shop-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFD700;
}

.price::before {
    content: 'Ŧ ';
}

.shop-button {
    background: #FFD700;
    border: 2px solid #FFF;
    border-radius: 14px;
    color: #000;
    padding: 0.95rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.shop-button:hover {
    transform: translateY(-2px);
    background: #FFF;
    color: #FFD700;
}

.server-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(26, 26, 26, 0.95));
    border: 2px solid #FFD700;
    border-radius: 12px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.server-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
    border-color: #FFF;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(26, 26, 26, 1));
}

.server-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFD700, #FFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.server-name {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.server-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.server-stat {
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
}

.server-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.server-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.server-status {
    text-align: center;
    padding: 0.75rem;
    background: rgba(67, 181, 129, 0.2);
    border-radius: 8px;
    color: var(--success-color);
    font-weight: 500;
}

.view-details {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.view-details:hover {
    background: #7289da;
}

/* Stats Section */
.stats-section {
    padding: 3rem 2rem;
    background: rgba(54, 57, 63, 0.3);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15), rgba(88, 101, 242, 0.15));
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.2);
    border-color: var(--accent-color);
}

.stat-icon {
    font-size: 3rem;
    min-width: 80px;
    text-align: center;
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-bg));
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-stat-group {
    margin-bottom: 1.5rem;
}

.modal-stat-group h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.modal-stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(88, 101, 242, 0.2);
    color: var(--text-muted);
}

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

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.spinner {
    border: 4px solid rgba(88, 101, 242, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
footer {
    background: var(--darker-bg);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--primary-color);
    margin-top: 3rem;
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-links {
        gap: 1rem;
    }

    .servers-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .modal-content {
        width: 95%;
    }
}
