*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: 'Segoe UI', sans-serif;
}
html, body{
    height:100%;
}


body{
    background:#f2f2f2;
    display:flex;
    flex-direction:column;
    padding-bottom: 0px;
     padding-top: calc(90px + env(safe-area-inset-top));
}
.main-content{
    flex:1;
}
/* TOP BAR */
/*.topbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    background:#2315F5;
    color:#fff;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:14px;
    padding-top: 50px; 

    z-index:9999;
}*/
.topbar{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    background:#2315F5;

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:12px 14px;

    padding-top:38px;

    z-index:9999;

    box-sizing:border-box;

}
.menu-btn{
    font-size:22px;
    cursor:pointer;
}

.logo{
    background:#fff;
    color:#e53935;
    padding:5px 12px;
    border-radius:10px;
    font-weight:bold;
}

body{
    position:relative;
    z-index:1;
}
/* DRAWER */
.drawer{
    position: fixed;
    top: 0;              /* 🔥 KEEP THIS */
    left: -260px;
    width: 260px;
    height: 100vh;       /* 🔥 FULL HEIGHT */

    background: #fff;
    padding-top: 60px;   /* 🔥 THIS FIX */
    transition: 0.3s;

    z-index: 9999;

    pointer-events: none;

    /* ❌ REMOVE THIS */
    /* margin-top: 44px; */
}

.drawer.active{
    left:0;
    pointer-events:auto; /* 🔥 ADD */
}

.drawer .profile{
    padding:20px;
    background:#eee;
    color:#000;
}

.drawer a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:15px;
    text-decoration:none;
    color:#000;
    border-bottom:1px solid #eee;
}

.overlay{
    position:fixed;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.4);
    display:none;
    z-index:1500;
    pointer-events:none; /* 🔥 ADD */
	
}

.overlay.active{
    display:block;
    pointer-events:auto; /* 🔥 ADD */
}

/* FORM */
.form-container{
    padding:20px;
    margin-top:40px;
}

.title{
    color:#e53935;
    font-size:22px;
    margin-bottom:5px;
}

.subtitle{
    color:#777;
    margin-bottom:20px;
}

.input{
    width:100%;
    padding:15px;
    border-radius:30px;
    border:1px solid #ddd;
    margin-bottom:15px;
    font-size:14px;
}

.btn{
    width:100%;
    padding:15px;
    background:#e53935;
    border:none;
    border-radius:30px;
    color:#fff;
    font-size:16px;
}

/* CARD */
.card{
    background:#fff;
    border-radius:15px;
    padding:15px;
    margin-bottom:15px;
    box-shadow:0 3px 8px rgba(0,0,0,0.1);
}

.card h3{
    font-size:16px;
}

.red{
    color:#e53935;
}

.green{
    color:#2e7d32;
}

.bottom-nav{
    position: fixed;
    bottom: env(safe-area-inset-bottom);
    width: 100%;
    background:#000;
    display:flex;
    justify-content:space-around;
    padding:10px 0;
    border-top:1px solid #ddd;
}

.bottom-nav div{
    text-align:center;
    font-size:12px;
}

/* RESPONSIVE */
@media(min-width:768px){
    .form-container{
        max-width:400px;
        margin:auto;
    }
}
/* POPUP */
.popup{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    z-index:9999;
}

.popup-box{
    background:#fff;
    width:85%;
    max-width:320px;
    margin:150px auto;
    padding:20px;
    border-radius:15px;
    text-align:center;
    animation:scaleUp 0.2s ease;
}

@keyframes scaleUp{
    from{transform:scale(0.8);opacity:0;}
    to{transform:scale(1);opacity:1;}
}
/* 🔥 ADMIN CONTAINER FIX */
.container{
    width:100%;
    padding:15px;
    background-color: #B6D7A8;
}
/* 🔥 ADMIN LAYOUT (DESKTOP FIRST) */
.admin-container{
    width:100%;
    max-width:1400px;
    margin:auto;
    padding:20px;
}

/* TABLE FULL WIDTH */
.market-table{
    width:100%;
    min-width:1200px;
}

/* DESKTOP FONT BIG */
@media(min-width:992px){
    .market-table th{
        font-size:17px;
    }
    .market-table td{
        font-size:16px;
    }
}
.card{
    background:#fff;
    border-radius:15px;
    padding:15px;
    margin-bottom:15px;
    box-shadow:0 3px 10px rgba(0,0,0,0.1);
    transition:0.2s;
}

.card:hover{
    transform:scale(1.02);
}
/* CENTER TEXT */
.title-center {
    text-align: center;
    color: #ffff;
    margin-bottom: 30px;
    text-transform: capitalize; /* 🔥 important */
}

.subtitle-center{
    text-align:center;
    color:#777;
    margin-bottom:20px;
}

/* GRID FORM */
.grid-form{
    display:grid;
    grid-template-columns:1fr;
    gap:15px;
}

/* DESKTOP GRID */
@media(min-width:768px){
    .grid-form{
        grid-template-columns:1fr 1fr;
    }
}

/* FULL WIDTH */
.full{
    grid-column:1 / -1;
}
/* TABLE */
.table-responsive{
    overflow-x:auto;
}

.market-table{
    width:100%;
    min-width:900px; /* 🔥 desktop width */
    border-collapse:collapse;
    background:#fff;
    border-radius:10px;
}

/* HEADER */
.market-table th{
    background:#e53935;
    color:#fff;
    padding:14px;
    font-size:15px; /* 🔥 bigger */
}

/* BODY */
.market-table td{
    padding:14px;
    border-bottom:1px solid #eee;
    font-size:14px;
}

/* DESKTOP FONT BOOST */
@media(min-width:992px){
    .market-table th{
        font-size:16px;
    }
    .market-table td{
        font-size:15px;
    }
}

/* EDIT BUTTON */
.edit-btn{
    background:#2196f3;
    color:#fff;
    border:none;
    padding:6px 12px;
    border-radius:6px;
    cursor:pointer;
}

/* PAGINATION */
.pagination{
    margin-top:20px;
    text-align:center;
}

.pagination a{
    display:inline-block;
    padding:8px 12px;
    margin:3px;
    background:#eee;
    color:#333;
    text-decoration:none;
    border-radius:6px;
}

.pagination a.active{
    background:#e53935;
    color:#fff;
}
/* TOP INFO */
.top-info{
    text-align:center;
    color:#000;
    font-weight:bold;
    margin:10px 0;
}

/* ACTION BUTTONS */
.action-row{
    display:flex;
    gap:10px;
    margin-bottom:15px;
}

.action-btn{
    flex:1;
    background:#fff;
    color:#e53935;
    padding:10px;
    text-align:center;
    border-radius:25px;
    font-size:14px;
}

/* MARKET CARD */
.market-card{
    background:#fff;
    border-radius:15px;
    padding:15px;
    margin-bottom:15px;
    display:flex;
    justify-content:space-between;
    box-shadow:0 3px 8px rgba(0,0,0,0.1);
}

.market-card h3{
    font-size:16px;
}

.result{
    color:#e53935;
    font-weight:bold;
}

.time-row{
    display:flex;
    gap:20px;
    font-size:12px;
    margin-top:5px;
}

.time{
    color:#e53935;
}

/* PLAY BUTTON */
.play-btn{
    width:50px;
    height:50px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    color:#fff;
}

.play-btn.green{
    background:#3EF83D;
}

.play-btn.red{
    background:#e53935;
}

.play-btn.disabled{
    background:#999;
}
/* TABLE WRAPPER */
.table-responsive{
    overflow-x:auto;
}

/* TABLE */
.market-table{
    width:100%;
    min-width:900px;
    border-collapse:collapse;
    background:#fff;
    border-radius:10px;
}

/* HEADER */
.market-table th{
    background:#e53935;
    color:#fff;
    padding:14px;
    font-size:15px;
}

/* BODY */
.market-table td{
    padding:14px;
    border-bottom:1px solid #eee;
    font-size:14px;
}

/* BUTTON */
.btn.green{
    background:#2e7d32;
    padding:6px 12px;
    border-radius:6px;
    color:#fff;
    text-decoration:none;
}

.btn.red{
    background:#e53935;
    padding:6px 12px;
    border-radius:6px;
    color:#fff;
    text-decoration:none;
}

/* DESKTOP IMPROVE */
@media(min-width:992px){
    .market-table th{
        font-size:16px;
    }
    .market-table td{
        font-size:15px;
    }
}
/* VIEW BUTTON */
.view-btn{
    background:#2196f3;
    color:#fff;
    border:none;
    padding:6px 12px;
    border-radius:6px;
    cursor:pointer;
}

/* POPUP FIX */
.popup{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.7);
    z-index:9999;
}

.popup-box{
    width:90%;
    max-width:400px;
    margin:80px auto;
    background:#fff;
    padding:15px;
    border-radius:10px;
    text-align:center;
}

/* PAGINATION */
.pagination{
    margin-top:20px;
    text-align:center;
}

.pagination a{
    padding:8px 12px;
    margin:3px;
    background:#eee;
    text-decoration:none;
    border-radius:6px;
    color:#333;
}

.pagination a.active{
    background:#e53935;
    color:#fff;
}

/* 💰 WALLET UI */
.wallet-box{
    display:flex;
    align-items:center;
    gap:6px;
    background:#fff;
    color:#e53935;
    padding:6px 12px;
    border-radius:20px;
    font-weight:bold;
    font-size:14px;
    box-shadow:0 2px 6px rgba(0,0,0,0.15);
}

/* ICON */
.wallet-icon{
    font-size:14px;
}
/* WALLET PAGE */
.wallet-container{
    padding:15px;
}

/* TITLE */
.wallet-title{
    font-size:22px;
    font-weight:bold;
    color:#e53935;
    margin-bottom:15px;
    display:flex;
    align-items:center;
    gap:10px;
}

.back-btn{
    cursor:pointer;
}

/* CARD */
.wallet-card{
    display:flex;
    align-items:center;
    gap:15px;
    background:#fff;
    padding:15px;
    border-radius:12px;
    margin-bottom:15px;
    box-shadow:0 3px 10px rgba(0,0,0,0.1);
    cursor:pointer;
    transition:0.2s;
}

.wallet-card:hover{
    transform:scale(1.02);
}

/* ICON (SINGLE COLOR 🔥) */
.wallet-card .icon{
    width:45px;
    height:45px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#e53935;
    color:#fff;
    font-size:20px;
}

/* TEXT */
.wallet-card h3{
    margin:0;
    font-size:16px;
}

.wallet-card p{
    margin:0;
    font-size:13px;
    color:#777;
}

/* ✅ FINAL SAFE AREA FIX (NO UI BREAK) */




