/* ==========================================================
   CAPYBARA MINING
   Premium Game Dashboard V2
========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#071321;
    color:#ffffff;
    overflow-x:hidden;
}

/* ===================================== */
/* BACKGROUND */
/* ===================================== */

.background-overlay{
    position:fixed;
    inset:0;
    background:url("../images/background.jpg");
    background-size:cover;
    background-position:center;
    opacity:.18;
    z-index:-2;
}

.background-overlay::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        to bottom,
        rgba(7,19,33,.15),
        rgba(7,19,33,.96)
    );
}

/* ===================================== */
/* CONTAINER */
/* ===================================== */

#app{
    max-width:420px;
    margin:auto;
    padding:18px;
    padding-bottom:120px;
}

/* ===================================== */
/* HEADER */
/* ===================================== */

.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:22px;
}

.logo-area{
    display:flex;
    align-items:center;
    gap:14px;
}

.logo{
    width:52px;
    height:52px;
    border-radius:50%;
    box-shadow:0 0 18px rgba(247,201,72,.35);
    animation:floating 4s ease-in-out infinite;
}

.logo-area h2{
    font-size:22px;
    font-weight:700;
}

.logo-area span{
    color:#93A4B8;
    font-size:12px;
}

.header-action{
    display:flex;
    gap:10px;
}

.circle-btn{
    width:44px;
    height:44px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    color:#fff;
    background:rgba(255,255,255,.06);
    backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,.08);
    transition:.30s;
}

.circle-btn:hover{
    transform:translateY(-2px);
    background:#F7C948;
    color:#071321;
}

/* ===================================== */
/* PROFILE CARD */
/* ===================================== */

.profile-card{
    background:#10243D;
    border:1px solid #1D3A5C;
    border-radius:22px;
    padding:18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
    box-shadow:0 12px 30px rgba(0,0,0,.30);
    backdrop-filter:blur(16px);
    transition:.30s;
}

.profile-card:hover{
    transform:translateY(-4px);
}

.profile-left{
    display:flex;
    align-items:center;
    gap:14px;
}

.avatar{
    width:70px;
    height:70px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #F7C948;
    animation:floating 5s ease-in-out infinite;
}

.profile-left h3{
    font-size:20px;
    margin-bottom:4px;
}

.level{
    display:inline-block;
    background:#F7C948;
    color:#071321;
    padding:4px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
}

.country{
    font-size:13px;
    color:#AEB8C4;
}

.profile-right h2{
    font-size:28px;
    color:#F7C948;
}

/* ===================================== */
/* XP BAR */
/* ===================================== */

.xp-card{
    background:#10243D;
    border:1px solid #1D3A5C;
    border-radius:22px;
    padding:18px;
    margin-bottom:18px;
    box-shadow:0 12px 30px rgba(0,0,0,.25);
    backdrop-filter:blur(16px);
    transition:.30s;
}

.xp-card:hover{
    transform:translateY(-4px);
}

.xp-header{
    display:flex;
    justify-content:space-between;
    margin-bottom:12px;
    font-size:14px;
    color:#C5D0DC;
}

.xp-bar{
    width:100%;
    height:12px;
    border-radius:999px;
    background:#0B1A2B;
    overflow:hidden;
}

.xp-fill{
    width:8%;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#F7C948,#FFD86B);
    box-shadow:0 0 15px rgba(247,201,72,.5);
    transition:width .5s ease;
}

/* ===================================== */
/* STATS GRID */
/* ===================================== */

.stats-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    margin-bottom:22px;
}

.stats-item{
    background:#10243D;
    border:1px solid #1D3A5C;
    border-radius:18px;
    padding:16px;
    text-align:center;
    transition:.30s;
    box-shadow:0 10px 20px rgba(0,0,0,.20);
    backdrop-filter:blur(16px);
}

.stats-item:hover{
    transform:translateY(-5px);
    border-color:#F7C948;
    box-shadow:0 0 20px rgba(247,201,72,.20);
}

.stats-item h4{
    color:#9CA8B5;
    font-size:13px;
    margin-bottom:8px;
    font-weight:500;
}

.stats-item h2{
    font-size:24px;
    color:#F7C948;
    font-weight:700;
}

/* ===================================== */
/* MINING CARD */
/* ===================================== */

.mining-card{
    background:#10243D;
    border:1px solid #1D3A5C;
    border-radius:28px;
    padding:30px 20px;
    text-align:center;
    margin-bottom:22px;
    position:relative;
    overflow:hidden;
    box-shadow:0 18px 40px rgba(0,0,0,.30);
    backdrop-filter:blur(16px);
}

.mining-title{
    font-size:18px;
    font-weight:700;
    margin-bottom:18px;
    color:#F7C948;
}

.capy-character{
    width:120px;
    max-width:100%;
    margin:0 auto 20px;
    display:block;
    filter:drop-shadow(0 12px 20px rgba(0,0,0,.35));
    animation:floating 6s ease-in-out infinite;
}

/* ===================================== */
/* CIRCLE PROGRESS - PERBAIKAN TOTAL */
/* ===================================== */

.circle-progress{
    width:220px;
    height:220px;
    margin:0 auto 24px;
    border-radius:50%;
    position: relative;
    /* ❌ HAPUS SEMUA transform: rotate() di sini */
    background: conic-gradient(#00E676 0deg, #1D3A5C 0deg);
    box-shadow: 0 0 25px rgba(0,230,118,.25);
}

.circle-inner{
    position: absolute;
    inset: 0;
    margin: auto;
    width:175px;
    height:175px;
    border-radius:50%;
    background:#071321;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    /* ❌ JANGAN ADA transform apa pun di sini */
}

.circle-inner h2{
    font-size:34px;
    color:#ffffff;
    margin-bottom:8px;
}

.circle-inner span{
    color:#9CA8B5;
    font-size:14px;
}

/* ===================================== */
/* START BUTTON */
/* ===================================== */

.start-btn{
    width:100%;
    border:none;
    border-radius:18px;
    padding:18px;
    cursor:pointer;
    font-size:18px;
    font-weight:700;
    color:#071321;
    background:linear-gradient(90deg,#F7C948,#FFD86B);
    transition:.30s;
    box-shadow:0 12px 30px rgba(247,201,72,.30);
}

.start-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 35px rgba(247,201,72,.45);
}

.start-btn:disabled{
    opacity:.7;
    cursor:not-allowed;
    transform:none;
}

/* ===================================== */
/* DAILY BONUS */
/* ===================================== */

.bonus-card{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px;
    margin-bottom:20px;
    border-radius:22px;
    background:linear-gradient(135deg,#5B3FD6,#7C4DFF);
    box-shadow:0 15px 35px rgba(124,77,255,.30);
}

.bonus-left{
    display:flex;
    align-items:center;
    gap:15px;
}

.bonus-icon{
    width:60px;
    height:60px;
    border-radius:18px;
    background:rgba(255,255,255,.15);
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:28px;
}

.bonus-left h3{
    font-size:18px;
    margin-bottom:5px;
}

.bonus-left p{
    color:#ECECEC;
    font-size:13px;
}

.claim-btn{
    border:none;
    cursor:pointer;
    padding:12px 24px;
    border-radius:14px;
    background:#F7C948;
    color:#071321;
    font-weight:700;
    transition:.3s;
}

.claim-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(247,201,72,.45);
}

/* ===================================== */
/* MENU GRID */
/* ===================================== */

.menu-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    margin-bottom:24px;
}

.menu-card{
    background:#10243D;
    border:1px solid #1D3A5C;
    border-radius:20px;
    padding:18px 10px;
    text-align:center;
    transition:.3s;
    cursor:pointer;
    backdrop-filter:blur(16px);
}

.menu-card:hover{
    transform:translateY(-5px);
    border-color:#F7C948;
    box-shadow:0 0 20px rgba(247,201,72,.25);
}

.menu-icon{
    font-size:28px;
    margin-bottom:10px;
}

.menu-card span{
    display:block;
    font-size:13px;
    font-weight:600;
}

/* ===================================== */
/* KOMPONEN LAINNYA */
/* ===================================== */

.statistics-card, .news-card, .rules-card, .achievement-card, .roadmap-card{
    background:#10243D;
    border:1px solid #1D3A5C;
    border-radius:22px;
    padding:20px;
    margin-bottom:22px;
    backdrop-filter:blur(16px);
    transition:.30s;
}

.statistics-card:hover, .news-card:hover, .rules-card:hover, .achievement-card:hover, .roadmap-card:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 45px rgba(0,0,0,.35);
}

.statistics-card h3, .news-header h3, .section-title h3, .achievement-card h3, .roadmap-card h3{
    color:#F7C948;
    margin-bottom:18px;
}

.statistics-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.statistics-item{
    background:#0B1A2B;
    border-radius:16px;
    padding:16px;
}

.statistics-item span{
    display:block;
    color:#9CA8B5;
    font-size:12px;
    margin-bottom:8px;
}

.statistics-item strong{
    font-size:18px;
    color:#00E676;
}

.news-item{
    padding:14px;
    border-radius:14px;
    background:#0B1A2B;
    margin-bottom:12px;
    transition:.3s;
}

.news-item:hover{
    background:#12263D;
}

.section-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
}

.section-title small{
    color:#8FA2B8;
    font-size:13px;
}

.achievement-list{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.achievement-item{
    display:flex;
    align-items:center;
    gap:16px;
    background:#0B1A2B;
    border-radius:16px;
    padding:14px;
    transition:.3s;
}

.achievement-item:hover{
    transform:translateX(6px);
    border-left:4px solid #F7C948;
}

.achievement-icon{
    width:56px;
    height:56px;
    border-radius:50%;
    background:linear-gradient(135deg,#F7C948,#FFD86B);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    color:#071321;
    font-weight:bold;
}

.achievement-info h4{
    font-size:16px;
    margin-bottom:4px;
}

.achievement-info span{
    font-size:13px;
    color:#9CA8B5;
}

.rules-list{
    list-style:none;
}

.rules-list li{
    padding:10px 0;
    border-bottom:1px solid rgba(255,255,255,.06);
    color:#D8E0EA;
    font-size:14px;
}

.rules-list li:last-child{
    border-bottom:none;
}

.roadmap-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px;
    margin-bottom:12px;
    border-radius:14px;
    background:#0B1A2B;
    transition:.3s;
}

.roadmap-item:hover{
    background:#142B45;
}

.roadmap-item.completed{
    border-left:4px solid #00E676;
}

.roadmap-item.active{
    border-left:4px solid #F7C948;
}

/* ===================================== */
/* BOTTOM NAVIGATION */
/* ===================================== */

.bottom-nav{
    position:fixed;
    left:50%;
    transform:translateX(-50%);
    bottom:0;
    width:100%;
    max-width:420px;
    display:flex;
    justify-content:space-around;
    align-items:center;
    background:#071321;
    border-top:1px solid #1D3A5C;
    padding:12px 0;
    backdrop-filter:blur(18px);
    z-index:999;
}

.nav-item{
    border:none;
    background:none;
    color:#90A3B8;
    cursor:pointer;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
    transition:.3s;
    font-size:13px;
}

.nav-item div{
    font-size:22px;
}

.nav-item:hover{
    color:#F7C948;
    transform:translateY(-3px);
}

.nav-item.active{
    color:#F7C948;
}

.nav-item.active div{
    text-shadow:0 0 14px rgba(247,201,72,.7);
}

/* ===================================== */
/* ANIMASI & EFEK */
/* ===================================== */

@keyframes floating{
    0%{ transform:translateY(0px); }
    50%{ transform:translateY(-8px); }
    100%{ transform:translateY(0px); }
}

@keyframes fadeIn{
    from{ opacity:0; transform:translateY(20px); }
    to{ opacity:1; transform:translateY(0); }
}

button:active{
    transform:scale(.96);
}

img{
    max-width:100%;
    display:block;
    user-select:none;
}

a{
    color:inherit;
    text-decoration:none;
}

/* SCROLLBAR */
::-webkit-scrollbar{ width:7px; }
::-webkit-scrollbar-track{ background:#071321; }
::-webkit-scrollbar-thumb{ background:#F7C948; border-radius:20px; }
::-webkit-scrollbar-thumb:hover{ background:#FFD86B; }

::selection{ background:#F7C948; color:#071321; }

/* UTILITAS */
.text-center{ text-align:center; }
.mt-10{ margin-top:10px; }
.mt-20{ margin-top:20px; }
.mb-20{ margin-bottom:20px; }
.hidden{ display:none; }
.footer-card{ text-align:center; padding:30px 10px 100px; color:#8EA2B9; }
.footer-card p{ font-size:15px; margin-bottom:8px; color:#F7C948; }
.footer-card small{ font-size:12px; }

/* ===================================== */
/* END OF FILE */
/* ===================================== */