* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #050816;
    color: white;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(0,255,255,0.15), transparent 35%),
        radial-gradient(circle at bottom right, rgba(255,0,255,0.15), transparent 35%);
    z-index: -1;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(18px);
    background: rgba(10,10,20,0.45);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #7de2ff;
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

.btn-primary {
    background: linear-gradient(135deg, #68e1ff, #8b5cf6);
    color: black;
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: white;
    backdrop-filter: blur(20px);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 40px 80px;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 82px;
    line-height: 0.95;
    font-weight: 900;
    margin-bottom: 25px;
}

.hero-text h1 span {
    color: #68e1ff;
    text-shadow: 0 0 25px rgba(104,225,255,0.6);
}

.hero-text p {
    color: #b8c0d9;
    font-size: 19px;
    line-height: 1.7;
    max-width: 620px;
    margin-bottom: 40px;
}

.status-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 100px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    margin-bottom: 35px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 12px #00ff88;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 42px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}

.glass-card {
    position: absolute;
    bottom: -30px;
    right: -20px;
    padding: 28px;
    width: 300px;
    border-radius: 32px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,0.08);
}

.glass-card h3 {
    margin-bottom: 18px;
    font-size: 24px;
}

.instance {
    background: rgba(255,255,255,0.04);
    border-radius: 22px;
    padding: 16px;
    margin-top: 14px;
    border: 1px solid rgba(255,255,255,0.05);
}

.instance small {
    color: #8ea0c5;
}

.features {
    padding: 80px 40px 120px;
}

.features-grid {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.feature-card {
    background: rgba(255,255,255,0.05);
    border-radius: 34px;
    padding: 35px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    width: 65px;
    height: 65px;
    border-radius: 22px;
    background: linear-gradient(135deg, #68e1ff, #8b5cf6);
    margin-bottom: 25px;
}

.feature-card h2 {
    margin-bottom: 12px;
    font-size: 22px;
}

.feature-card p {
    color: #aab3cc;
    line-height: 1.6;
}

footer {
    padding: 40px;
    text-align: center;
    color: #8ea0c5;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

@media(max-width: 1100px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 60px;
    }

    .glass-card {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 25px;
        width: 100%;
    }
}

@media(max-width: 700px) {
    .navbar {
        padding: 18px 20px;
        flex-direction: column;
        gap: 20px;
    }

    .hero {
        padding: 180px 20px 80px;
    }

    .hero-text h1 {
        font-size: 46px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .nav-buttons {
        width: 100%;
        flex-direction: column;
    }
}

/* Index.php */
html { scroll-behavior: smooth; }
.feature-card h2 { font-size: 1.1rem; margin-bottom: 5px; }
.feature-card p { font-size: 1.5rem; font-weight: 700; }
.instance-badge { padding: 4px 8px; border-radius: 4px; background: rgba(0,200,83,0.2); color: #00c853; font-weight: bold; }
.charts-container { max-width: 1100px; margin: 30px auto; padding: 0 20px; display: flex; flex-direction: column; gap: 30px; }
.chart-box { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 20px; border-radius: 12px; }
.chart-box h3 { margin-top: 0; margin-bottom: 15px; font-size: 1.2rem; color: #fff; font-weight: 600; }
.chart-wrapper { position: relative; height: 300px; width: 100%; }

.leaderboard-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.leaderboard-item:last-child { border-bottom: none; }
.rank-medal { font-size: 1.2rem; margin-right: 10px; }

/* Ranking.php */
.ranking-container {
    max-width: 900px;
    margin: 140px auto 60px; 
    padding: 0 20px;
}

.search-box {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto 40px auto;
    padding: 14px 20px;
    border-radius: 18px; 
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 15px;
    transition: 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-box:focus {
    outline: none;
    border-color: #68e1ff;
    box-shadow: 0 0 15px rgba(104,225,255,0.2);
    background: rgba(255,255,255,0.08);
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 50px;
    min-height: 240px;
}

.podium-slot {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    width: 30%;
    max-width: 220px;
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.podium-slot:hover {
    transform: translateY(-5px);
}


.podium-slot:nth-child(1) {
    order: 2; 
    height: 210px;
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.1);
}

.podium-slot:nth-child(2) {
    order: 1; 
    height: 180px;
    border-color: rgba(192, 192, 192, 0.3);
}

.podium-slot:nth-child(3) {
    order: 3; 
    height: 160px;
    border-color: rgba(205, 127, 50, 0.3);
}

.podium-rank {
    font-size: 45px;
    margin-bottom: 15px;
    line-height: 1;
}

.podium-name {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    margin-bottom: 5px;
    word-break: break-word;
}

.podium-time {
    color: #68e1ff;
    font-weight: 600;
    font-size: 14px;
}

.table-box {
    background: rgba(255,255,255,0.03);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    overflow-x: auto; 
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 18px 24px;
    text-align: left;
}

th {
    background: rgba(0,0,0,0.3);
    color: #8ea0c5;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

td {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #e0e0e0;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255,255,255,0.04);
}

.rank-highlight {
    font-weight: 700;
    color: #fff;
}

@media (max-width: 768px) {
    .podium {
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    .podium-slot {
        width: 100%;
        max-width: 100%;
        height: auto !important;
        order: 0 !important; 
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 25px;
        text-align: left;
    }

    .podium-rank {
        font-size: 32px;
        margin-bottom: 0;
    }

    .podium-name {
        flex-grow: 1;
        margin-left: 20px;
        font-size: 16px;
    }
}