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

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#0b1020;
    color:white;
}

.navbar{
    width:100%;
    padding:20px 7%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#11182d;
    position:sticky;
    top:0;
    z-index:1000;
}

.logo{
    font-size:30px;
    font-weight:bold;
    color:#00ffae;
}

nav{
    display:flex;
    align-items:center;
    gap:20px;
}

nav a{
    color:white;
    text-decoration:none;
    font-size:15px;
}

.nav-btn{
    background:#00ffae;
    color:#000;
    padding:10px 20px;
    border-radius:8px;
    font-weight:bold;
}

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:80px 7%;
}

.hero-content{
    max-width:900px;
    text-align:center;
}

.live-badge{
    display:inline-block;
    background:rgba(0,255,174,0.1);
    color:#00ffae;
    padding:10px 20px;
    border-radius:30px;
    margin-bottom:25px;
    font-size:14px;
}

.hero h1{
    font-size:70px;
    line-height:1.1;
    margin-bottom:25px;
}

.hero p{
    font-size:20px;
    color:#b7bfd3;
    line-height:1.7;
    margin-bottom:40px;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-bottom:60px;
    flex-wrap:wrap;
}

.primary-btn{
    background:#00ffae;
    color:#000;
    padding:18px 35px;
    border-radius:12px;
    text-decoration:none;
    font-weight:bold;
}

.secondary-btn{
    border:1px solid #2d3650;
    color:white;
    padding:18px 35px;
    border-radius:12px;
    text-decoration:none;
}

.stats{
    display:flex;
    justify-content:center;
    gap:25px;
    flex-wrap:wrap;
}

.stat-box{
    background:#131b31;
    padding:30px;
    border-radius:20px;
    min-width:180px;
}

.stat-box h2{
    color:#00ffae;
    margin-bottom:10px;
    font-size:40px;
}

.stat-box p{
    margin:0;
    font-size:15px;
}

@media(max-width:768px){

    .navbar{
        flex-direction:column;
        gap:20px;
    }

    .hero h1{
        font-size:42px;
    }

    .hero p{
        font-size:16px;
    }

    .stats{
        flex-direction:column;
    }

}


.modern-login{
    min-height:100vh;
    padding:80px 7%;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:center;
}

.login-left{
    background:linear-gradient(180deg,#101933,#0b1226);
    border:1px solid #1f2a4d;
    padding:50px;
    border-radius:30px;
}

.login-left h1{
    font-size:60px;
    line-height:1.1;
    margin:30px 0;
}

.login-left p{
    color:#aeb7d0;
    line-height:1.7;
    font-size:18px;
}

.feature-list{
    margin-top:40px;
    display:flex;
    flex-direction:column;
    gap:25px;
}

.feature-item{
    display:flex;
    gap:20px;
    align-items:flex-start;
}

.feature-icon{
    width:60px;
    height:60px;
    background:#00ffae20;
    border-radius:18px;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:28px;
}

.feature-item h3{
    margin-bottom:8px;
}

.feature-item p{
    margin:0;
    font-size:15px;
}

.login-right{
    background:#131b31;
    padding:50px;
    border-radius:30px;
    border:1px solid #1f2a4d;
}

.login-right h2{
    font-size:48px;
    margin-bottom:15px;
}

.login-subtext{
    color:#aeb7d0;
    margin-bottom:35px;
}

.modern-form{
    display:flex;
    flex-direction:column;
}

.modern-form label{
    margin-bottom:10px;
    margin-top:20px;
    font-size:15px;
}

.modern-form input{
    width:100%;
    padding:18px;
    background:#1b2544;
    border:1px solid #2b3760;
    border-radius:14px;
    color:white;
    font-size:16px;
}

.modern-form button{
    margin-top:30px;
    padding:20px;
    border:none;
    border-radius:14px;
    background:#00ffae;
    color:black;
    font-size:17px;
    font-weight:bold;
    cursor:pointer;
}

.login-links-modern{
    margin-top:30px;
    display:flex;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
}

.login-links-modern a{
    color:#00ffae;
    text-decoration:none;
}

@media(max-width:900px){

    .modern-login{
        grid-template-columns:1fr;
    }

    .login-left h1{
        font-size:42px;
    }

    .login-right h2{
        font-size:38px;
    }

}

.lobby-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:80px 7%;
}

.lobby-card{
    width:100%;
    max-width:900px;
    background:#131b31;
    border:1px solid #1f2a4d;
    border-radius:30px;
    padding:60px;
    text-align:center;
}

.lobby-card h1{
    font-size:55px;
    margin:30px 0 20px;
}

.lobby-text{
    color:#aeb7d0;
    font-size:18px;
    line-height:1.7;
    max-width:700px;
    margin:auto;
}

.countdown-box{
    display:flex;
    justify-content:center;
    gap:25px;
    margin:50px 0;
}

.time-box{
    width:180px;
    height:180px;
    background:#1a2342;
    border-radius:25px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

.time-box h2{
    font-size:70px;
    color:#00ffae;
}

.time-box span{
    color:#aeb7d0;
    margin-top:10px;
}

.lobby-stats{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
    margin-bottom:40px;
}

.lobby-stat{
    background:#1a2342;
    padding:25px;
    border-radius:20px;
    min-width:180px;
}

.lobby-stat h3{
    color:#00ffae;
    font-size:35px;
    margin-bottom:10px;
}

.rules-box{
    background:#1a2342;
    padding:35px;
    border-radius:25px;
    text-align:left;
    margin-bottom:40px;
}

.rules-box h3{
    margin-bottom:20px;
}

.rules-box ul{
    padding-left:20px;
    color:#c8d0e5;
    line-height:2;
}

.start-btn{
    display:inline-block;
    margin-top:10px;
}

@media(max-width:768px){

    .lobby-card{
        padding:35px;
    }

    .lobby-card h1{
        font-size:40px;
    }

    .countdown-box{
        flex-direction:column;
        align-items:center;
    }

    .time-box{
        width:150px;
        height:150px;
    }

}

.game-page{
    min-height:100vh;
    padding:80px 7%;
}

.game-top{
    max-width:900px;
    margin:0 auto 25px;
    display:flex;
    justify-content:space-between;
    gap:20px;
    color:#aeb7d0;
    font-size:18px;
}

.game-top strong{
    color:#00ffae;
}

.timer-bar{
    max-width:900px;
    height:14px;
    background:#1a2342;
    border-radius:20px;
    overflow:hidden;
    margin:0 auto 40px;
}

.timer-fill{
    height:100%;
    width:70%;
    background:#00ffae;
    border-radius:20px;
}

.question-card{
    max-width:900px;
    margin:auto;
    background:#131b31;
    border:1px solid #1f2a4d;
    border-radius:30px;
    padding:60px;
    text-align:center;
}

.question-card h1{
    font-size:55px;
    line-height:1.2;
    margin:35px 0 20px;
}

.question-card p{
    color:#aeb7d0;
    font-size:18px;
    margin-bottom:40px;
}

.answer-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
    margin-bottom:35px;
}

.answer-buttons button{
    padding:35px;
    border:none;
    border-radius:22px;
    font-size:35px;
    font-weight:bold;
    cursor:pointer;
}

.yes-btn{
    background:#00ffae;
    color:#000;
}

.no-btn{
    background:#ff3b6b;
    color:white;
}

.feedback-box{
    background:#1a2342;
    padding:20px;
    border-radius:15px;
    color:#c8d0e5;
}

@media(max-width:768px){
    .game-top{
        flex-direction:column;
        text-align:center;
    }

    .question-card{
        padding:35px;
    }

    .question-card h1{
        font-size:36px;
    }

    .answer-buttons{
        grid-template-columns:1fr;
    }
}

.timer-fill{
    transition:width 10s linear;
}

.feedback-box.correct{
    background:#00ffae20;
    color:#00ffae;
    border:1px solid #00ffae;
}

.feedback-box.wrong{
    background:#ff3b6b20;
    color:#ff3b6b;
    border:1px solid #ff3b6b;
}

.result-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:80px 7%;
}

.result-card{
    width:100%;
    max-width:850px;
    background:#131b31;
    border:1px solid #1f2a4d;
    border-radius:30px;
    padding:60px;
    text-align:center;
}

.result-card h1{
    font-size:60px;
    margin:30px 0 20px;
}

.result-card p{
    color:#aeb7d0;
    font-size:18px;
}

.result-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin:45px 0;
}

.result-stats div{
    background:#1a2342;
    padding:30px;
    border-radius:22px;
}

.result-stats h3{
    color:#00ffae;
    font-size:42px;
    margin-bottom:10px;
}

.next-game-box{
    background:#0f172e;
    border:1px solid #1f2a4d;
    border-radius:22px;
    padding:30px;
    margin-bottom:40px;
}

.next-game-box h2{
    color:#00ffae;
    font-size:50px;
    margin-top:10px;
}

.result-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

@media(max-width:768px){
    .result-card{
        padding:35px;
    }

    .result-card h1{
        font-size:42px;
    }

    .result-stats{
        grid-template-columns:1fr;
    }
}

/* LEADERBOARD PAGE */
.leaderboard-page{
    min-height:100vh;
    padding:80px 7%;
}

.leaderboard-header{
    text-align:center;
    max-width:800px;
    margin:0 auto 40px;
}

.leaderboard-header h1{
    font-size:60px;
    margin:25px 0 15px;
}

.leaderboard-header p{
    color:#aeb7d0;
    font-size:18px;
}

.tabs{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-bottom:35px;
    flex-wrap:wrap;
}

.tabs button{
    padding:14px 28px;
    border:none;
    border-radius:12px;
    background:#1a2342;
    color:white;
    cursor:pointer;
    font-weight:bold;
}

.tabs button.active{
    background:#00ffae;
    color:#000;
}

.leaderboard-card{
    max-width:900px;
    margin:auto;
    background:#131b31;
    border:1px solid #1f2a4d;
    border-radius:30px;
    padding:30px;
}

.leaderboard-row{
    display:grid;
    grid-template-columns:80px 1fr 140px 140px;
    align-items:center;
    gap:20px;
    padding:22px;
    border-bottom:1px solid #243052;
}

.leaderboard-row:last-child{
    border-bottom:none;
}

.leaderboard-row span{
    color:#00ffae;
    font-weight:bold;
}

.leaderboard-row small{
    color:#aeb7d0;
}

.leaderboard-row b{
    text-align:right;
}

.leaderboard-row.top{
    background:#00ffae12;
    border-radius:18px;
}

@media(max-width:768px){
    .leaderboard-header h1{
        font-size:42px;
    }

    .leaderboard-row{
        grid-template-columns:1fr;
        text-align:center;
    }

    .leaderboard-row b{
        text-align:center;
    }
}

/* Profile Page CSS */

.profile-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:80px 7%;
}

.profile-card{
    width:100%;
    max-width:900px;
    background:#131b31;
    border:1px solid #1f2a4d;
    border-radius:30px;
    padding:50px;
}

.profile-top{
    display:flex;
    align-items:center;
    gap:25px;
    margin-bottom:40px;
}

.avatar{
    width:100px;
    height:100px;
    border-radius:50%;
    background:#00ffae;
    color:#000;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:45px;
    font-weight:bold;
}

.profile-top h1{
    font-size:45px;
    margin-bottom:8px;
}

.profile-top p{
    color:#aeb7d0;
}

.profile-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:40px;
}

.profile-stats div{
    background:#1a2342;
    padding:25px;
    border-radius:20px;
    text-align:center;
}

.profile-stats h3{
    color:#00ffae;
    font-size:38px;
    margin-bottom:10px;
}

.profile-stats p{
    color:#aeb7d0;
}

.profile-progress{
    background:#1a2342;
    padding:30px;
    border-radius:22px;
    margin-bottom:40px;
}

.profile-progress h3{
    margin-bottom:20px;
}

.progress-bar{
    width:100%;
    height:16px;
    background:#0b1020;
    border-radius:20px;
    overflow:hidden;
    margin-bottom:15px;
}

.progress-fill{
    width:68%;
    height:100%;
    background:#00ffae;
    border-radius:20px;
}

.profile-progress p{
    color:#aeb7d0;
}

.profile-actions{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

@media(max-width:768px){
    .profile-card{
        padding:35px;
    }

    .profile-top{
        flex-direction:column;
        text-align:center;
    }

    .profile-stats{
        grid-template-columns:1fr;
    }

    .profile-actions{
        justify-content:center;
    }
}

/* Admin Dashboard CSS */

.admin-page{
    min-height:100vh;
    padding:80px 7%;
}

.admin-header{
    text-align:center;
    max-width:850px;
    margin:0 auto 45px;
}

.admin-header h1{
    font-size:60px;
    margin:25px 0 15px;
}

.admin-header p{
    color:#aeb7d0;
    font-size:18px;
}

.admin-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
    margin-bottom:35px;
}

.admin-card,
.admin-table-card{
    background:#131b31;
    border:1px solid #1f2a4d;
    border-radius:25px;
    padding:30px;
}

.admin-card h3,
.admin-table-card h3{
    margin-bottom:22px;
}

.admin-card input,
.admin-card textarea,
.admin-card select{
    width:100%;
    padding:15px;
    margin-bottom:15px;
    border-radius:12px;
    border:1px solid #2b3760;
    background:#1a2342;
    color:white;
    outline:none;
}

.admin-card textarea{
    min-height:110px;
    resize:none;
}

.admin-card button{
    width:100%;
    padding:15px;
    border:none;
    border-radius:12px;
    background:#00ffae;
    color:#000;
    font-weight:bold;
    cursor:pointer;
    margin-bottom:12px;
}

.admin-card .danger-btn{
    background:#ff3b6b;
    color:white;
}

.admin-stat{
    display:flex;
    justify-content:space-between;
    padding:16px 0;
    border-bottom:1px solid #243052;
}

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

.admin-stat span{
    color:#aeb7d0;
}

.admin-stat strong{
    color:#00ffae;
}

.admin-table-card{
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
}

th, td{
    padding:18px;
    text-align:left;
    border-bottom:1px solid #243052;
}

th{
    color:#aeb7d0;
}

.status-live{
    color:#00ffae;
}

.status-out{
    color:#ff3b6b;
}

@media(max-width:1100px){
    .admin-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:768px){
    .admin-header h1{
        font-size:42px;
    }

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

/* Question Action Buttons CSS */

.edit-question-btn,
.delete-question-btn{
    padding:10px 16px;
    border:none;
    border-radius:10px;
    font-weight:bold;
    cursor:pointer;
    margin-right:8px;
}

.edit-question-btn{
    background:#00ffae;
    color:#000;
}

.delete-question-btn{
    background:#ff3b6b;
    color:white;
}

/* Automated Game Engine CSS */

.answer-buttons button:disabled{
    opacity:0.6;
    cursor:not-allowed;
}

.selected-answer{
    outline:4px solid white;
    transform:scale(1.03);
}