*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Inter,Arial,sans-serif;
}

body{
    background:#f3f5f9;
    color:#1e293b;
    padding:12px;
    padding-bottom:90px;
}
.pet-speed{
    margin-top:4px;
    font-size:13px;
    color:#4CAF50;
    font-weight:600;
}
#createQRBtn {
    width: 100%;
    height: 55px;
    border: none;
    border-radius: 15px;
    background: #008cff;
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
}
#depositSuccess{
    position:fixed;
    inset:0;
    display:flex;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.45);
    z-index:99999;
    opacity:0;
    transition:.3s;
}


#depositSuccess.show{
    opacity:1;
}


.deposit-success-box{

    width:300px;
    background:white;
    border-radius:22px;
    padding:25px;
    text-align:center;
    animation:pop .3s;

}


.deposit-icon{

    font-size:55px;
    margin-bottom:10px;

}


.deposit-title{

    font-size:22px;
    font-weight:800;
    color:#16a34a;

}


.deposit-coin{

    margin-top:15px;
    font-size:28px;
    font-weight:900;
    color:#f59e0b;

}


.deposit-balance{

    margin-top:12px;
    font-size:16px;

}


.deposit-success-box button{

    margin-top:20px;
    width:100%;
    padding:12px;
    border:none;
    border-radius:12px;
    background:#16a34a;
    color:white;
    font-size:16px;
    font-weight:bold;

}


@keyframes pop{

    from{
        transform:scale(.7);
    }

    to{
        transform:scale(1);
    }

}
#createQRBtn:active {
    transform: scale(0.97);
}
.deposit-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
    margin-bottom:15px;
}

.deposit-grid button{
    padding:12px;
    border:none;
    border-radius:10px;
    cursor:pointer;
}

#depositInput{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border-radius:10px;
}
/* ========================= */
.shop-modal{
    position:fixed;
    inset:0;
    display:flex;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.55);
    z-index:99999;
}

.shop-box{
    width:92%;
    max-width:420px;
    max-height:88vh;
    background:#fff;
    border-radius:24px;
    overflow-y:auto;
    overflow-x:hidden;
}

.shop-title{
    margin-bottom:18px;
    font-size:32px;
    font-weight:700;
}

.pet-list{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.pet-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#f8f8f8;
    border-radius:18px;
    padding:16px;
}

.pet-icon{
    width:70px;
    height:70px;
    flex-shrink:0;
}

.pet-icon img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.pet-info{
    flex:1;
    margin-left:16px;
}

.buy-btn{
    min-width:90px;
}
#expModal{
display:none;
position:fixed;
left:0;
top:0;
width:100%;
height:100%;
background:rgba(0,0,0,.55);
z-index:9999;
justify-content:center;
align-items:center;
}

#expModal.show{
display:flex;
}

#expModal .modal-content{

width:92%;
max-width:360px;

background:#fff;

border-radius:20px;

padding:25px;

animation:popup .25s;

}

@keyframes popup{

from{
transform:scale(.9);
opacity:0;
}

to{
transform:scale(1);
opacity:1;
}

}
.shop-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:16px;
    margin-top:15px;
}

.shop-btn-card{
    height:140px;
    background:#fff;
    border-radius:22px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    transition:.2s;
    box-shadow:0 8px 22px rgba(0,0,0,.06);
}

.shop-btn-card:active{
    transform:scale(.96);
}

.shop-icon{
    font-size:54px;
    margin-bottom:12px;
}

.shop-title{
    font-size:20px;
    font-weight:700;
    color:#1f2937;
}

#expModal input{

width:100%;
padding:14px;

border:2px solid #22c55e;

border-radius:12px;

font-size:16px;

outline:none;

}
.container{
    max-width:480px;
    margin:auto;
}
#pc-blocker {
    display:none;
    position:fixed;
    inset:0;
    background:#111827;
    z-index:99999;
    align-items:center;
    justify-content:center;
}

.pc-box {
    background:white;
    color:#111827;
    width:85%;
    max-width:400px;
    padding:30px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,.3);
}

.pc-icon {
    font-size:50px;
    margin-bottom:15px;
}

.pc-box h2 {
    margin:0 0 10px;
}

.pc-box p {
    color:#6b7280;
}
/* ========================= */
/* Card */
/* ========================= */

.card{
    background:#fff;
    border-radius:22px;
    padding:18px;
    margin-bottom:14px;
    box-shadow:0 6px 18px rgba(0,0,0,.05);
}

/* ========================= */
/* Header */
/* ========================= */

.my-pet-card{

    display:flex;
    align-items:center;
    gap:15px;

    background:#fff;
    border-radius:16px;

    padding:15px;
    margin-bottom:12px;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

}

.my-pet-card img{

    width:60px;
    height:60px;
    object-fit:contain;

}

.pet-info{

    flex:1;

}

.pet-name{

    font-size:20px;
    font-weight:700;

}

.pet-bonus{

    color:#ff9800;
    margin-top:4px;

}
.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.modal.show{
    display:flex;
}

.modal-box{
    width:92%;
    max-width:360px;
    background:#fff;
    border-radius:18px;
    padding:20px;
    animation:pop .25s;
}

/* Generic modal content used in many modals */
.modal-content{
    width:92%;
    max-width:420px;
    background:#fff;
    border-radius:18px;
    padding:18px;
    animation:pop .2s ease;
    box-shadow:0 12px 40px rgba(2,6,23,0.15);
}

/* QR box styling */
#qrBox{ text-align:center; margin-top:12px; }

/* Debug message area */
#debugMsg{ background:#fff7f7; border-left:4px solid #ef4444; padding:12px; color:#7f1d1d; }
.popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    visibility:hidden;
    transition:.25s;
    z-index:99999;
}

.popup.show{
    opacity:1;
    visibility:visible;
}

.popup-box{

    width:340px;
    max-width:92%;

    background:#fff;
    border-radius:22px;

    padding:28px;

    text-align:center;

    animation:pop .25s ease;

    box-shadow:0 20px 60px rgba(0,0,0,.25);
}

@keyframes pop{
    from{
        transform:scale(.8);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

.popup-icon{

    width:90px;
    height:90px;

    margin:auto;

    border-radius:50%;

    background:linear-gradient(135deg,#22c55e,#16a34a);

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:48px;

    color:#fff;

    margin-bottom:18px;
}

.popup-box h2{
    margin:0 0 18px;
    font-size:24px;
    color:#111827;
}

.popup-btn{

    width:100%;

    margin-top:22px;

    border:none;

    padding:14px;

    border-radius:14px;

    background:#16a34a;

    color:#fff;

    font-size:16px;

    font-weight:bold;

    cursor:pointer;
}
.stake-row{
    display:flex;
    justify-content:space-between;
    margin:12px 0;
    font-size:16px;
}

.stake-total{

    margin-top:20px;

    padding:18px;

    border-radius:16px;

    background:linear-gradient(135deg,#22c55e,#16a34a);

    color:#fff;

    font-weight:bold;
}

.stake-total div{

    margin-top:8px;

    font-size:28px;

    font-weight:700;
}
/* ===========================
   Lucky Wheel
=========================== */

.spin-box{
    width:95%;
    max-width:430px;
    background:#fff;
    border-radius:22px;
    padding:20px;
    text-align:center;
}

.spin-text{
    color:#666;
    font-size:14px;
    margin-bottom:18px;
}

.spin-card{
    border-radius:18px;
    background:linear-gradient(135deg,#fff7e6,#fff);
    border:2px solid #ffd36a;
}

.wheel-wrapper{

    position:relative;

    width:340px;
    height:340px;

    margin:25px auto;

}
.page{
    position:fixed;
    inset:0;
    background:#f5f7fb;
    z-index:9999;
    overflow-y:auto;
}

.page-header{
    display:flex;
    align-items:center;
    gap:15px;
    padding:18px;
    background:#fff;
    border-bottom:1px solid #e5e5e5;
}

.page-header h2{
    margin:0;
}

.page-header small{
    color:#888;
}

.back-btn{
    width:40px;
    height:40px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    font-size:22px;
}

.page-body{
    padding:15px;
}

.market-search{
    width:100%;
    padding:12px;
    border-radius:12px;
    border:1px solid #ddd;
    box-sizing:border-box;
    margin-bottom:15px;
}

.market-actions{
    display:flex;
    gap:10px;
    margin-bottom:15px;
}

.market-actions .btn{
    flex:1;
}

.market-item{
    display:flex;
    align-items:center;
    gap:15px;
    padding:12px;
    background:#fff;
    border-radius:14px;
    margin-bottom:12px;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
}
/* ===============================
   PET UPGRADE MODAL
================================ */


#petUpgradeModal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.65);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

    padding:15px;

}





#upgradePetList{


    width:100%;

    max-width:520px;


    max-height:85vh;


    overflow-y:auto;


    background:#fff;


    border-radius:18px;


    padding:15px;


    box-shadow:0 10px 40px #0005;


}





/* thanh cuộn */

#upgradePetList::-webkit-scrollbar{

    width:8px;

}


#upgradePetList::-webkit-scrollbar-thumb{

    background:#f59e0b;

    border-radius:10px;

}





/* ===============================
   PET CARD
================================ */


.my-pet-card{


    display:flex;


    flex-direction:column;


    gap:10px;


    background:linear-gradient(
        135deg,
        #ffffff,
        #f8fafc
    );


    border:2px solid #e2e8f0;


    border-radius:18px;


    padding:15px;


    margin-bottom:15px;


    position:relative;


}





.my-pet-card img{


    width:100px;


    height:100px;


    object-fit:contain;


    margin:auto;


}





.pet-info{


    text-align:center;


    font-size:15px;


    color:#334155;


}





.pet-name{


    font-size:22px;


    font-weight:bold;


    color:#7c3aed;


    margin-bottom:8px;


}





/* level */


.pet-info div:nth-child(2){


    color:#2563eb;

    font-weight:bold;


}





/* speed */


.pet-info div:nth-child(4){


    background:#dcfce7;


    color:#166534;


    padding:8px;


    border-radius:10px;


    margin-top:8px;


}





/* capacity */


.pet-info div:nth-child(5){


    background:#dbeafe;


    color:#1e40af;


    padding:8px;


    border-radius:10px;


    margin-top:5px;


}





/* đá */


.pet-info div:last-child{


    background:#fff7ed;


    border-radius:12px;


    padding:10px;


}





/* nút nâng */


.upgrade-btn{


    width:100%;


    padding:12px;


    border:none;


    border-radius:14px;


    background:

    linear-gradient(
        135deg,
        #22c55e,
        #16a34a
    );


    color:white;


    font-size:17px;


    font-weight:bold;


    cursor:pointer;


}





.upgrade-btn:active{


    transform:scale(.96);


}




/* ===============================
   NÚT NÂNG CẤP PET TRANG SHOP
================================ */

.upgrade-shop-btn{


    width:100%;


    margin-top:12px;


    padding:14px;


    border:none;


    border-radius:14px;


    cursor:pointer;


    font-size:17px;


    font-weight:700;


    color:white;



    background:

    linear-gradient(
        135deg,
        #f59e0b,
        #ea580c
    );



    box-shadow:

    0 8px 20px rgba(234,88,12,.35);



    transition:.2s;


}





.upgrade-shop-btn:hover{


    transform:translateY(-2px);


    background:

    linear-gradient(
        135deg,
        #fb923c,
        #c2410c
    );


}





.upgrade-shop-btn:active{


    transform:scale(.95);


}
.stone-shop-btn{


    width:100%;


    margin-bottom:12px;


    padding:14px;


    border:none;


    border-radius:14px;


    cursor:pointer;


    font-size:17px;


    font-weight:700;


    color:white;



    background:

    linear-gradient(
        135deg,
        #2563eb,
        #1e40af
    );



    box-shadow:

    0 8px 20px rgba(37,99,235,.35);


    transition:.2s;


}



.stone-shop-btn:hover{


    transform:translateY(-2px);


}



.stone-shop-btn:active{


    transform:scale(.95);


}
#stoneShopModal{


    display:none;


    position:fixed;


    inset:0;


    background:rgba(0,0,0,.6);


    z-index:9999;


    justify-content:center;


    align-items:center;


}



.stone-shop-box{


    width:90%;


    max-width:420px;


    background:white;


    border-radius:20px;


    padding:20px;


    max-height:80vh;


    overflow-y:auto;


}



.stone-item{


    background:#f8fafc;


    border-radius:15px;


    padding:15px;


    margin-top:15px;


    border:2px solid #e2e8f0;


    text-align:center;


}



.stone-title{


    font-size:20px;


    font-weight:bold;


    color:#1e293b;


}



.stone-price{


    margin:10px;


    color:#dc2626;


    font-weight:bold;


}



.stone-item button{


    width:100%;


    padding:12px;


    border:0;


    border-radius:12px;


    background:#22c55e;


    color:white;


    font-weight:bold;


}
/* ===== Modal ===== */

#sellHistoryModal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

#sellHistoryModal .modal-content{
    width:95%;
    max-width:420px;
    max-height:85vh;
    overflow-y:auto;
    background:#1b1b2f;
    border-radius:16px;
    padding:18px;
    color:#fff;
    border:2px solid #3d4cff;
    box-shadow:0 0 20px rgba(0,0,0,.5);
}

#sellHistoryModal h2{
    text-align:center;
    margin:0 0 15px;
    font-size:22px;
}

/* ===== Item ===== */

.history-item{
    display:flex;
    gap:12px;
    align-items:center;
    background:#252540;
    border-radius:12px;
    padding:10px;
    margin-bottom:12px;
}

.history-item img{
    width:70px;
    height:70px;
    object-fit:contain;
    flex-shrink:0;
}

.history-info{
    flex:1;
    font-size:14px;
    line-height:1.6;
}

.history-info b{
    font-size:16px;
    color:#ffd54f;
}

.history-price{
    color:#67e867;
    font-weight:bold;
}

.history-receive{
    color:#55c8ff;
}

.history-fee{
    color:#ff8d8d;
}

.history-time{
    font-size:12px;
    color:#bdbdbd;
    margin-top:4px;
}

/* ===== Button ===== */

.history-close{
    width:100%;
    border:none;
    border-radius:10px;
    padding:12px;
    margin-top:10px;
    cursor:pointer;
    font-size:15px;
    background:#4b6bff;
    color:#fff;
    transition:.2s;
}

.history-close:hover{
    background:#6f87ff;
}
/* ==========================================
   SỬA LẠI KHUNG CHỨA VÀ ẢNH ĐÁ THƯỜNG
========================================== */

.stone-icon-box {
    width: 140px;          /* Tăng kích thước khung chứa lên 140px (hoặc 120px tùy bạn muốn) */
    height: 140px;         /* Chiều cao tương xứng để tạo thành khung vuông */
    margin: 15px auto;     /* Căn giữa khung ảnh và tạo khoảng cách trên/dưới */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;   /* Nền sáng nhẹ phía sau viên đá (tùy chọn) */
    border-radius: 16px;   /* Bo tròn nhẹ góc khung ảnh */
}

.stone-icon-box img {
    width: 100%;           /* Đổi từ 2px thành 100% để ảnh vừa vặn với khung chứa */
    height: 100%;          /* Đổi từ 20px thành 100% */
    object-fit: contain;   /* Giữ nguyên tỷ lệ ảnh gốc, không bị móp méo hay kéo dãn */
    padding: 10px;         /* Tạo khoảng đệm nhỏ xung quanh viên đá cho đẹp */
}
.close-btn{


    width:100%;


    margin-top:15px;


    padding:12px;


    border:0;


    border-radius:12px;


    background:#64748b;


    color:white;


}
/* ===============================
   ĐỘT PHÁ
================================ */


.my-pet-card:has(.break-point){


    border-color:#f97316;


    background:

    linear-gradient(
        135deg,
        #fff7ed,
        #ffffff
    );


}





.break-text{


    color:#ea580c;

    font-weight:bold;

}

.market-pet-card img{

    width:60px;
    height:60px;

}
.market-item.selected{
    border:2px solid #00c853;
    background:#eaffef;
}
.market-item img{
    width:70px;
    height:70px;
    object-fit:contain;
}

.market-info{
    flex:1;
}

.market-name{
    font-size:17px;
    font-weight:bold;
}

.market-level{
    color:#777;
    margin-top:4px;
}

.market-price{
    margin-top:8px;
    color:#ff8c00;
    font-weight:bold;
}

.market-buy{
    padding:10px 16px;
    border:none;
    border-radius:10px;
    background:#22c55e;
    color:#fff;
    cursor:pointer;
}
.market-item{
    display:flex;
    align-items:center;
    gap:15px;
    padding:12px;
    margin-bottom:12px;
    border-radius:12px;
    background:#f7f7f7;
}

.market-item img{
    width:70px;
    height:70px;
    object-fit:contain;
}

.market-info{
    flex:1;
}

.market-price{
    color:#ff6600;
    font-weight:bold;
    margin-top:5px;
}

.market-buy{
    background:#00b894;
    color:#fff;
    border:none;
    padding:8px 16px;
    border-radius:8px;
    cursor:pointer;
}

.market-buy:hover{
    opacity:.9;
}
/* ===== My Pets ===== */

#petShopModal{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:flex-start;
    background:rgba(0,0,0,.6);
    z-index:99999;

    overflow-y:auto;
    -webkit-overflow-scrolling:touch;

    padding:20px 0;
}

#petShopModal.show{
    display:flex;
}

#petShopModal .modal-content{
    width:95%;
    max-width:430px;

    background:#fff;
    border-radius:20px;

    margin:auto 0;

    max-height:90vh;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;

    padding:18px;
}

.shop-container{
    width:100%;
}

.pet-list{
    display:flex;
    flex-direction:column;
    gap:14px;
}
.pet-storage,
.pet-time{
    font-size:14px;
    font-weight:600;
    margin-top:2px;
}

.pet-storage{
    color:#1e88e5;
}

.pet-time{
    color:#ff9800;
}
.pet-capacity{
    font-size:13px;
    color:#2563eb;
    margin-top:4px;
    font-weight:600;
}
#wheel{
    border-radius:50%;
    border:10px solid #ffd54f;
    background:#fff;
}
#wheelCanvas{

      display:block;
    max-width:100%;
    height:auto;
    margin:auto;

    border-radius:50%;

    background:#fff;

    box-shadow:
        0 8px 25px rgba(0,0,0,.18),
        inset 0 0 0 10px #FFD54F,
        inset 0 0 0 20px #FFF8E1;

    transition:
        transform 5s cubic-bezier(.15,.85,.18,1);

}

.wheel-pointer{

    position:absolute;

    top:-18px;

    left:50%;

    transform:translateX(-50%);

    width:0;
    height:0;

    border-left:18px solid transparent;
    border-right:18px solid transparent;
    border-top:35px solid #ef4444;

    z-index:20;

    filter:drop-shadow(0 3px 6px rgba(0,0,0,.3));

}

.wheel-center{

    position:absolute;

    left:50%;
    top:50%;

    transform:translate(-50%,-50%);

    width:92px;
    height:92px;

    border-radius:50%;

    border:none;

    background:linear-gradient(180deg,#ffb300,#ff7a00);

    color:#fff;

    font-size:20px;
    font-weight:bold;

    cursor:pointer;

    box-shadow:
        0 8px 20px rgba(255,152,0,.45);

    z-index:15;

}

.wheel-center:active{

    transform:
        translate(-50%,-50%)
        scale(.96);

}

.spin-result{

    min-height:40px;

    font-size:20px;

    font-weight:bold;

    color:#16a34a;

    margin-top:20px;

}
@keyframes pop{
    from{
        transform:scale(.9);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}
.use-btn{

    background:#ff9800;
    color:#fff;
    border:none;
    border-radius:12px;

    padding:10px 18px;
    font-weight:bold;

}

.using-btn{

    background:#22c55e;
    color:#fff;
    border:none;
    border-radius:12px;

    padding:10px 18px;
    font-weight:bold;

}
#msgModal{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.55);
    z-index:99999;   /* lớn hơn modal shop */
}
.profile-actions{
    display:flex;
    gap:10px;
    margin-top:12px;
}

.exp-btn,
.pet-btn{
    flex:1;
    border:none;
    border-radius:12px;
    color:#fff;
    font-weight:700;
    height:42px;
    cursor:pointer;
}

.exp-btn{
    background:#22c55e;
}

.pet-btn{
    background:#ff9800;
}
#msgModal.show{
    display:flex;
}

#msgModal .modal-content{
    width:320px;
    background:#fff;
    border-radius:20px;
    padding:25px;
    text-align:center;
    animation:pop .25s;
}

@keyframes pop{
    from{
        transform:scale(.8);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}
.pet-list{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.pet-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#f8f8f8;
    border-radius:18px;
    padding:15px;
}

.pet-icon{
    width:70px;
    height:70px;
    flex-shrink:0;
}

.pet-icon img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.pet-info{
    flex:1;
    margin-left:15px;
}

.pet-name{
    font-size:18px;
    font-weight:700;
}

.pet-price{
    color:#ff9800;
    margin-top:5px;
    font-weight:600;
}

.buy-btn{
    border:none;
    background:#ff9800;
    color:#fff;
    padding:10px 20px;
    border-radius:14px;
    cursor:pointer;
    font-weight:700;
}

.buy-btn:hover{
    background:#ff8700;
}
.header{
    background:#fff;
    border-radius:18px;
    padding:16px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 6px 18px rgba(0,0,0,.05);
    margin-bottom:16px;
}

.profile{
    display:flex;
    align-items:center;
    gap:12px;
}

.avatar{
    width:52px;
    height:52px;
    border-radius:50%;
    font-size:24px;
}

.title{
    color:#94a3b8;
    font-size:13px;
    font-weight:600;
}

.userid{
    font-size:26px;
    font-weight:700;
    color:#ff6a00;
    margin-top:4px;
}
.user-info{
    display:flex;
    flex-direction:column;
    gap:6px;
}
.deposit-btn{
    background:linear-gradient(90deg,#ff9800,#ff6a00);
    color:#fff;
    border:none;
    padding:10px 16px;
    border-radius:13px;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(255,106,0,.25);
}
.deposit-btn:active{
    transform:scale(.97);
}
.line{
    margin:22px 0;
    border-top:1px solid #ececec;
}

/* ========================= */
/* Info */
/* ========================= */

.info{
    display:flex;
    gap:15px;
}

.box{
    flex:1;
    background:#f5f6fa;
    border-radius:18px;
    padding:16px;
    text-align:center;
}
.toast{
    position:fixed;
    left:50%;
    bottom:80px;
    transform:translateX(-50%);
    background:#16a34a;
    color:#fff;
    padding:14px 20px;
    border-radius:12px;
    font-weight:bold;
    opacity:0;
    transition:.3s;
    z-index:9999;
}

.toast.show{
    opacity:1;
}
.box-title{
    color:#64748b;
    font-weight:600;
}

.box-value{
    margin-top:8px;
    font-size:22px;
    font-weight:700;
}

/* ========================= */
/* Balance */
/* ========================= */

.balance-card{
    margin-top:20px;
    background:linear-gradient(135deg,#ff9800,#ff6a00);
    color:#fff;
    border-radius:22px;
    padding:25px;
    text-align:center;
}

.balance-card h2{
    font-size:17px;
    margin-bottom:10px;
}

.balance-card h1{
    font-size:42px;
}

/* ========================= */
/* Task */
/* ========================= */

.task{
    background:#fff;
    border-radius:24px;
    padding:20px;
    margin-bottom:18px;
    box-shadow:0 8px 25px rgba(0,0,0,.05);
}

.task-title{
    font-size:23px;
    font-weight:700;
    margin-bottom:10px;
}

.task-desc{
    color:#64748b;
    line-height:1.5;
    margin-bottom:18px;
}

.reward{
    color:#ff6a00;
    font-size:16px;
    font-weight:700;
    margin-bottom:18px;
	 border-radius:16px;
	     padding:14px;
}

/* ========================= */
/* Button */
/* ========================= */

.btn{
    width:100%;
    border:none;
    cursor:pointer;
    border-radius:18px;
    background:linear-gradient(90deg,#ff9800,#ff6a00);
    color:#fff;
    padding:16px;
    font-size:17px;
    font-weight:700;
    transition:.25s;
}

.btn:hover{
    transform:translateY(-2px);
}

.btn:disabled{
    opacity:.6;
}

/* ========================= */
/* Input */
/* ========================= */

input,
select{
    width:100%;
    border:none;
    outline:none;
    background:#f4f6fa;
    border-radius:16px;
    padding:15px;
    margin-bottom:15px;
    font-size:15px;
}

/* ========================= */
/* Bottom */
/* ========================= */

.bottom{
    position:fixed;
    left:10px;
    right:10px;
    bottom:10px;

    background:#fff;
    border-radius:22px;

    display:flex;
    justify-content:space-around;

    padding:8px;

    box-shadow:0 5px 20px rgba(0,0,0,.08);
}
.tab{

    flex:1;

    border:none;

    background:none;

    color:#94a3b8;

    cursor:pointer;

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:6px;

    padding:12px;

    border-radius:18px;

    transition:.2s;

    font-size:14px;

}

.tab.active{

    background:#fff5ea;

    color:#ff6a00;

    font-weight:700;

}

.tab span{

    font-size:14px;

}

/* ========================= */
/* Modal */
/* ========================= */
.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.modal.show{
    display:flex;
}

.modal-content{
    width:90%;
    max-width:420px;
    background:#fff;
    border-radius:24px;
    padding:24px;
    animation:popup .25s ease;
}

@keyframes popup{
    from{
        transform:scale(.9);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

.modal-content h3{
    margin-bottom:15px;
    font-size:28px;
    font-weight:700;
}

.modal-content p{
    color:#64748b;
    margin-bottom:18px;
    line-height:1.5;
}

.modal-content input{
    width:100%;
    height:52px;
    border:none;
    outline:none;
    background:#f1f5f9;
    border-radius:14px;
    padding:0 16px;
    font-size:16px;
    margin-bottom:20px;
}

.modal-actions{
    display:flex;
    gap:12px;
}

.modal-actions button{
    flex:1;
    border:none;
    border-radius:14px;
    height:48px;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
}
#createQRBtn{
    width:100%;
    height:55px;
    border:0;
    border-radius:15px;
    background:#2563eb;
    color:white;
    font-size:18px;
    font-weight:700;
    margin-top:15px;
}
#btnVerify{
    background:linear-gradient(90deg,#ff9800,#ff6a00);
    color:#fff;
}

#btnClose{
    background:#e2e8f0;
    color:#334155;
}

.loading,
.empty{

    background:#fff;

    border-radius:20px;

    padding:25px;

    text-align:center;

    color:#64748b;

}
/* ===== My Pets ===== */

#myPetModal{
    align-items:flex-start;
    padding:20px 0;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
}

#myPetModal .modal-content{
    width:95%;
    max-width:430px;
    max-height:90vh;
    display:flex;
    flex-direction:column;
}

#myPetList{
    flex:1;
    overflow-y:auto;
    max-height:70vh;
    padding-right:6px;
    -webkit-overflow-scrolling:touch;
}

#myPetList::-webkit-scrollbar{
    width:6px;
}

#myPetList::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:10px;
}
#sellConfirmText{
    background:#fff8e1;
    border:2px solid #f59e0b;
    border-radius:14px;
    padding:15px;
    margin:15px 0;
    line-height:1.8;
    font-size:15px;
}

#sellConfirmText .price{
    color:#2563eb;
    font-weight:bold;
}

#sellConfirmText .fee{
    color:#ef4444;
    font-weight:bold;
}

#sellConfirmText .receive{
    color:#16a34a;
    font-weight:bold;
}