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

body{
    margin:0;
    font-family:Arial,sans-serif;
    background:#f4f6f9;
    padding-bottom:100px;
}

/* Banner Ads */
.banner-ad{
    width:100%;
    height:90px;
    background:#dcdcdc;
    border:1px solid #bbb;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    margin-bottom:0px;
    margin-top: 40px;
}

/* Content */
.content{
    padding:5px;
    min-height:500px;
}
/* Bottom Navbar */ 
.navbar{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    height:75px;
    display:flex;
    background:#0f172a;
    border-top:2px solid #00ffff;
    box-shadow:0 -5px 25px rgba(0,255,255,.25);
    z-index:999;
}

.nav-item{
    flex:1;
    text-decoration:none;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    color:#6ee7ff;
    transition:.25s;
    position:relative;
    overflow:hidden;
}

.nav-item .icon{
    font-size:22px;
    margin-bottom:4px;
}

.nav-item .label{
    font-size:11px;
    font-weight:700;
    letter-spacing:1px;
}

.nav-item.active{
    background:linear-gradient(
        180deg,
        #00ffff 0%,
        #00b7ff 50%,
        #008cff 100%
    );
    color:white;
    text-shadow:
        0 0 10px #aaaaaa,
        0 0 20px #00ffff;
    box-shadow:
        inset 0 3px 0 rgba(255,255,255,.5),
        inset 0 -4px 0 rgba(0,0,0,.25),
        0 0 25px rgba(0,255,255,.8);
}

.nav-item.active .icon{
    transform:translateY(-2px);
}

.nav-item:hover{
    background:#172554;
}

.player-panel{
    width:100%;
    margin:0;
    border-radius:0 0 20px 20px;

    height:110px;
    background:#0f172a;
    border-top:none;
    border-left:none;
    border-right:none;
    border-bottom:2px solid #00ffff;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:15px 20px;

    box-shadow:
        0 5px 20px rgba(0,255,255,.15),
        inset 0 2px 0 rgba(255,255,255,.1);
}

.player-info h2{
    margin:0;
    color:white;
    font-size:22px;
}

.player-info span{
    color:#94a3b8;
    font-size:13px;
}

.coins{
    color:#ffd700;
    font-size:20px;
    font-weight:bold;
}

.level-circle{
    width:90px;
    height:90px;
    position:relative;
}

.level-circle svg{
    transform:rotate(-90deg);
}

.bg-circle{
    fill:none;
    stroke:#1e293b;
    stroke-width:8;
}

.progress-circle{
    fill:none;
    stroke:#00ffff;
    stroke-width:8;
    stroke-linecap:round;

    stroke-dasharray:220;
}

.level-text{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);

    color:white;
    font-size:20px;
    font-weight:bold;
}

.loadout-section{
    margin-top:8px;
    background:#0f172a;
    padding:15px;
    border-radius:0 0 20px 20px;
    border-top:2px solid #00ffff;
    border-bottom:2px solid #00ffff;
}

.loadout-header{
    color:#00ffff;
    font-size:18px;
    font-weight:bold;
    margin-bottom:15px;
}

.loadout-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

.equip-card{
    background:#111827;
    border-radius:16px;
    padding:10px;
    text-align:center;
    border:1px solid rgba(0,255,255,.3);
}

.equip-type{
    color:#00ffff;
    font-size:11px;
    font-weight:bold;
    margin-bottom:8px;
}

.equip-card img{
    width:100%;
    height:70px;
    object-fit:contain;
}

.equip-name{
    color:white;
    font-size:12px;
    font-weight:bold;
    margin-top:8px;
}

.equip-stat{
    color:#ffd700;
    font-size:11px;
    margin-top:4px;
}

.total-xp{
    margin-top:15px;
    text-align:center;
    color:#00ffff;
    font-size:18px;
    font-weight:bold;
}

.diamond-section{
    margin-top:10px;
    background:#0f172a;
    border-top:2px solid #00ffff;
    border-bottom:2px solid #00ffff;
    padding:15px;
    border-radius:0 0 20px 20px;
}

.diamond-header{
    color:#00ffff;
    font-size:18px;
    font-weight:bold;
    margin-bottom:15px;
}

.diamond-card{
    display:flex;
    align-items:center;
    gap:12px;

    background:#111827;

    padding:12px;
    border-radius:16px;

    margin-bottom:10px;

    border:1px solid rgba(0,255,255,.25);
}

.diamond-card img{
    width:60px;
    height:60px;
    object-fit:contain;
}

.diamond-info{
    flex:1;
}

.diamond-title{
    color:white;
    font-weight:bold;
    font-size:15px;
}

.diamond-cost{
    color:#ffd700;
    font-size:13px;
    margin-top:3px;
}

.convert-btn{
    border:none;
    padding:10px 16px;
    border-radius:12px;

    background:linear-gradient(
        180deg,
        #00ffff,
        #0099ff
    );

    color:white;
    font-weight:bold;
    cursor:pointer;

    box-shadow:
        0 0 15px rgba(0,255,255,.5);
}

.feature-card{
    background:#0f172a;
    border-top:2px solid #00ffff;
    border-bottom:2px solid #00ffff;
    border-radius:0 0 20px 20px;

    padding:15px;
    margin-top:10px;
}

.feature-title{
    color:#00ffff;
    font-size:18px;
    font-weight:bold;
    margin-bottom:10px;
}

.feature-text{
    color:white;
    font-size:14px;
    margin-bottom:15px;
}

.feature-btn{
    width:100%;
    border:none;
    border-radius:14px;

    padding:12px;

    color:white;
    font-weight:bold;

    background:linear-gradient(
        180deg,
        #00ffff,
        #008cff
    );

    box-shadow:
        0 0 15px rgba(0,255,255,.4);
}

.shop-title{
    text-align:center;
    color:#00ffff;
    font-size:24px;
    font-weight:bold;
    margin:15px 0;
}

.shop-tabs{
    display:flex;
    background:#0f172a;
    border:2px solid #00ffff;
    border-radius:18px;
    overflow:hidden;
    margin-bottom:15px;
}

.shop-tab{
    flex:1;
    border:none;
    background:transparent;
    color:#6ee7ff;
    padding:14px;
    font-weight:bold;
}

.shop-tab.active{
    background:linear-gradient(
        180deg,
        #00ffff,
        #008cff
    );
    color:white;
}

.shop-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
}

.shop-card{
    background:#0f172a;
    border:1px solid rgba(0,255,255,.3);
    border-radius:16px;
    padding:10px;
    text-align:center;
}

.shop-card img{
    width:100%;
    height:120px;
    object-fit:contain;
}

.item-name{
    color:white;
    font-weight:bold;
    margin-top:10px;
}

.item-level{
    color:#ffd700;
    font-size:12px;
    margin-top:5px;
}

.locked img{
    filter:blur(8px) brightness(.4);
}

.owned{
    border:2px solid #00ff66;
}

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;
}

.auth-popup {
    width: 320px;
    background: #0f172a;

    border: 2px solid #00ffff;
    box-shadow: 0 0 25px rgba(0,255,255,0.4);

    border-radius: 15px;
    padding: 20px;

    text-align: center;
    color: white;

    animation: pop 0.25s ease;
}

.auth-popup h2 {
    margin-bottom: 15px;
    color: #00ffff;
}

.auth-popup input {
    width: 100%;
    margin: 8px 0;
    padding: 10px;

    background: #172554;
    border: 1px solid #00ffff;
    border-radius: 8px;

    color: white;
    outline: none;
}

.auth-popup button {
    width: 100%;
    margin-top: 10px;
    padding: 10px;

    background: linear-gradient(90deg, #00ffff, #008cff);
    border: none;
    border-radius: 8px;

    color: white;
    font-weight: bold;
    cursor: pointer;
}

.auth-popup button:hover {
    box-shadow: 0 0 15px #00ffff;
}

@keyframes pop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.auth-popup select {
    width: 100%;
    margin: 8px 0;
    padding: 10px;

    background: #172554;
    border: 1px solid #00ffff;
    border-radius: 8px;

    color: white;
    outline: none;

    appearance: none;
    cursor: pointer;
}

.auth-popup select:hover {
    box-shadow: 0 0 10px rgba(0,255,255,0.4);
}

#dialCode {
    background: #172554;
    border: 1px solid #00ffff;
    color: white;
    border-radius: 8px;
    padding: 10px;
}

.claimed-btn {
    background: #666 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.buy-btn{
    width:100%;
    margin-top:12px;
    padding:10px;
    border:none;
    border-radius:12px;
    background:#00c853;
    color:white;
    font-weight:700;
    font-size:14px;
    cursor:pointer;
}

.buy-btn:hover{
    opacity:0.9;
}

.use-btn {
    background: #00b7ff;
    color: black;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.owned-badge{
    margin-top:12px;
    padding:8px;
    border-radius:10px;
    background:#1e88e5;
    color:white;
    font-size:13px;
    font-weight:bold;
    text-align:center;
}

.locked-text{
    margin-top:12px;
    opacity:0.7;
    font-size:13px;
    text-align:center;
}

/* ===== LEADERBOARD PAGE ===== */

.leaderboard-title {
    color: #00ffff;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    margin: 15px 0;
    text-shadow: 0 0 10px rgba(0,255,255,0.4);
}

/* Tabs (if you use region/global buttons) */
.lb-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 10px 0 20px;
}

.lb-tab {
    padding: 8px 14px;
    border: 1px solid #00ffff;
    background: #0f172a;
    color: #6ee7ff;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.lb-tab.active {
    background: linear-gradient(180deg,#00ffff,#008cff);
    color: white;
}

/* Leaderboard list */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

/* Each player row */
.lb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #0f172a;
    border: 1px solid rgba(0,255,255,0.2);
    border-radius: 12px;

    padding: 12px 15px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Text styles */
.lb-username {
    color: white;
    font-weight: 700;
}

.lb-meta {
    color: #94a3b8;
    font-size: 12px;
}

.lb-right {
    text-align: right;
    color: #00ffff;
    font-weight: 700;
}

/* ===== LEADERBOARD CONTAINER ===== */

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

/* ===== CARD ===== */

.leaderboard-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #0f172a;
    border: 1px solid rgba(0,255,255,0.2);
    border-radius: 12px;

    padding: 12px 14px;

    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ===== RANK ===== */

.leaderboard-rank {
    color: #00ffff;
    font-weight: 800;
    font-size: 16px;
    width: 50px;
}

/* ===== LEFT INFO ===== */

.leaderboard-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.leaderboard-name {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.leaderboard-stats {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 3px;
}

/* ===== XP RIGHT SIDE ===== */

.leaderboard-xp {
    color: #00ffff;
    font-weight: 800;
    font-size: 13px;
    text-align: right;
}

/* ===== TITLE ===== */

.leaderboard-title {
    color: #00ffff;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    margin: 15px 0;
}

.leaderboard-container {
    background: #0f172a;
    border: 1px solid rgba(0,255,255,0.15);
    border-radius: 16px;

    margin: 10px;
    padding: 12px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.xp-banner {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 1px solid #00ffff;
    color: #00ffff;

    padding: 15px;
    margin: 10px;
    margin-top: 10px;

    text-align: center;
    font-weight: bold;

    border-radius: 12px;

    cursor: pointer;
    box-shadow: 0 0 15px rgba(0,255,255,0.2);

    transition: 0.3s;
}

.xp-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(0,255,255,0.4);
}

.xp-banner.disabled {
    background: #1f2937;
    color: #6b7280;
    border: 1px solid #374151;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.xp-subtext {
    font-size: 11px;
    margin-top: 5px;
    color: #94a3b8;
}

.edit-icon {
    font-size: 14px;
    margin-left: 8px;
    cursor: pointer;
    color: #00ffff;
}

.edit-icon:hover {
    color: #ffffff;
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #0f172a;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    color: white;
}

.modal-content input {
    width: 100%;
    margin: 8px 0;
    padding: 10px;
    border-radius: 6px;
    border: none;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-save {
    background: linear-gradient(135deg, #00ffff, #00b7ff);
    color: #000;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    flex: 1;
    transition: 0.2s;
}

.btn-save:hover {
    box-shadow: 0 0 15px rgba(0,255,255,0.6);
    transform: translateY(-2px);
}

.btn-delete {
    background: linear-gradient(135deg, #ff4d4d, #b30000);
    color: white ;
    border: none ;
    padding: 10px 15px ;
    border-radius: 8px ;
    font-weight: bold ;
    cursor: pointer ;
    flex: 1 ;
    transition: 0.2s ;
}

.btn-delete:hover {
    box-shadow: 0 0 15px rgba(255,0,0,0.5);
    transform: translateY(-2px);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: #0f172a;
    padding: 20px;
    border-radius: 12px;
    color: white;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 26px;
    cursor: pointer;
    color: #ff4d4d; /* red */
    font-weight: bold;
    transition: 0.2s;
}

.modal-close:hover {
    color: #ff0000;
    transform: scale(1.2);
} 

.popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup.hidden {
    display: none;
}

.popup-box {
    background: #0f172a;
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 300px;
    border: 2px solid #00ffff;
}

.popup-box button {
    margin-top: 10px;
    padding: 8px 15px;
    background: #00ffff;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.login-link{
    margin-top:12px;
    font-size:13px;
    color:#00ffff;
    cursor:pointer;
    text-decoration:underline;
    text-align:center;
}

.login-link:hover{
    color:#00b7ff;
}

#toastContainer{
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

.toast{
    background: #0f172a;
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #00ffff;
    box-shadow: 0 0 20px rgba(0,255,255,0.3);
    margin-top: 10px;
    min-width: 220px;
    text-align: center;
    font-size: 13px;
    animation: slideUp 0.3s ease;
}

.toast strong{
    color:#00ffff;
}

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

#toastContainer{
    position:fixed;
    bottom:90px;
    left:50%;
    transform:translateX(-50%);
    z-index:99999;
}

.toast{
    background:#111827;
    color:white;
    padding:14px 20px;
    border-radius:12px;
    margin-top:10px;
    font-weight:bold;
    box-shadow:0 0 20px rgba(0,0,0,0.4);
    animation:slideUp .3s ease;
}

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