*{
    box-sizing:border-box;
}

html{
    width:100%;
    min-height:100%;
    -webkit-text-size-adjust:100%;
}

body{
    margin:0;
    background:#f2f8ff;
    font-family:Arial, sans-serif;
    color:#101828;
    min-height:100vh;
    padding-bottom:100px;
}

a{
    text-decoration:none;
    color:inherit;
}

button{
    border:none;
    border-radius:12px;
    padding:14px 18px;
    background:#1677ee;
    color:white;
    font-weight:bold;
    font-size:16px;
    cursor:pointer;
}

button:active{
    transform:scale(0.98);
}

input{
    width:100%;
    padding:16px;
    border:1px solid #d0d5dd;
    border-radius:12px;
    margin-bottom:12px;
    font-size:15px;
    background:#f9fbff;
    color:#101828;
    outline:none;
}

input:focus{
    border-color:#1677ee;
    box-shadow:0 0 0 3px rgba(22,119,238,0.12);
}

input::placeholder{
    color:#98a2b3;
}

.app{
    width:100%;
    max-width:480px;
    margin:auto;
    padding:16px;
    padding-bottom:112px;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
    gap:12px;
}

.topbar h2{
    margin:0;
    line-height:1.1;
    font-size:24px;
}

.topbar span{
    font-size:26px;
    color:#667085;
}

.top-subtitle{
    display:block;
    margin-top:4px;
    font-size:12px;
    line-height:1.3;
    color:#667085;
}

.top-icon{
    width:42px;
    height:42px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.back-link{
    width:42px;
    height:42px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f8fbff;
    border:1px solid #d8e8ff;
    color:#1677ee;
    font-size:24px;
    font-weight:bold;
    box-shadow:0 6px 14px rgba(0,0,0,0.05);
    flex-shrink:0;
}

.page-title-center{
    flex:1;
    min-width:0;
}

.profile{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:16px;
}

.avatar{
    width:55px;
    height:55px;
    border-radius:50%;
    border:3px solid #1683ff;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#1683ff;
    font-weight:bold;
    flex-shrink:0;
    background:#ffffff;
}

.profile p{
    margin:0;
    color:#667085;
    font-size:13px;
}

.profile h3{
    margin:4px 0 0;
    font-size:17px;
    line-height:1.25;
    word-break:break-word;
}

.profile-text p{
    margin-bottom:3px;
    font-size:13px;
}

.profile-text h3{
    font-size:18px;
}

.earned-card{
    background:#f8fbff;
    border:1px solid #d8e8ff;
    border-radius:24px;
    padding:20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    box-shadow:0 8px 20px rgba(0,0,0,0.06);
    margin-bottom:16px;
}

.earned-card p{
    margin:0;
    color:#667085;
    font-weight:bold;
}

.earned-card h1{
    margin:8px 0 0;
    font-size:38px;
    line-height:1;
    word-break:break-word;
}

.earned-card small{
    display:block;
    margin-top:8px;
    color:#667085;
    font-size:12px;
    line-height:1.35;
}

.balance-content{
    min-width:0;
}

.withdraw-link{
    flex-shrink:0;
}

.withdraw-link button{
    min-height:42px;
    padding:0 16px;
    border-radius:14px;
}

.energy-card{
    background:linear-gradient(135deg,#64b5ff,#0052d9);
    color:white;
    padding:22px;
    border-radius:26px;
    margin-bottom:16px;
    box-shadow:0 12px 25px rgba(0,82,217,0.28);
}

.energy-card p{
    margin:0;
    font-weight:bold;
}

.energy-card h1{
    font-size:44px;
    line-height:1;
    margin:14px 0;
    text-align:center;
    word-break:break-word;
}

.section-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
}

.section-head p{
    margin-bottom:6px;
}

.section-head h1{
    margin:0;
    text-align:left;
}

.jar-badge{
    width:44px;
    height:44px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    flex-shrink:0;
    background:rgba(255,255,255,0.18);
}

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

.energy-stats div{
    background:rgba(255,255,255,0.18);
    padding:12px 9px;
    border-radius:14px;
    text-align:center;
    min-height:72px;
}

.energy-stats small{
    display:block;
    font-size:12px;
    line-height:1.25;
}

.energy-stats b{
    display:block;
    margin-top:6px;
    font-size:16px;
    line-height:1.2;
}

.banner{
    background:linear-gradient(135deg,#00264f,#0052d9);
    color:white;
    border-radius:22px;
    padding:22px;
    margin-bottom:16px;
}

.banner p{
    margin:0;
    line-height:1.45;
}

.banner h2{
    margin:8px 0;
    line-height:1.2;
    font-size:22px;
}

.banner span{
    color:#ffcc00;
}

.card{
    background:white;
    border-radius:20px;
    padding:18px;
    margin-bottom:16px;
    box-shadow:0 8px 18px rgba(0,0,0,0.07);
}

.card h2{
    margin-top:0;
    margin-bottom:12px;
    line-height:1.2;
    font-size:20px;
}

.card p{
    line-height:1.45;
}

.card-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:12px;
}

.card-head h2{
    margin:0;
}

.card-head a{
    font-size:13px;
    font-weight:700;
    color:#1677ee;
}

.card-head button{
    min-height:38px;
    padding:0 13px;
    border-radius:13px;
    font-size:14px;
}

.page-app,
.home-app{
    width:100%;
    max-width:480px;
    margin:0 auto;
    padding:16px 16px 112px;
}

.page-topbar,
.home-topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:16px;
}

.compact-profile,
.home-profile{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:16px;
}

.deposit-main-card,
.withdraw-balance-card,
.referral-main-card,
.home-balance-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-bottom:16px;
}

.deposit-title{
    font-size:30px;
}

.wallet-card,
.withdraw-form-card,
.referral-code-card,
.deposit-form-card,
.tier-card,
.deposit-info-card,
.withdraw-info-card,
.referral-info-card,
.home-mining-card,
.deposit-banner,
.home-banner{
    margin-bottom:16px;
}

.wallet-box{
    margin-top:8px;
    padding:13px;
    border-radius:14px;
    font-family:monospace;
    font-size:13px;
    line-height:1.45;
    word-break:break-all;
    background:#f5f9ff;
    border:1px solid #d8e8ff;
    color:#101828;
}

.deposit-note{
    margin-top:12px;
    padding:12px;
    border-radius:14px;
    background:#fff7e6;
    border:1px solid #ffd599;
    color:#9a5b00;
}

.deposit-note p{
    font-size:13px;
    line-height:1.45;
    margin:0 0 5px;
}

.deposit-note p:last-child{
    margin-bottom:0;
}

.deposit-info-card > p,
.withdraw-info-card > p,
.referral-info-card > p{
    margin-bottom:12px;
}

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

.deposit-stats div,
.withdraw-stats div,
.referral-stats div{
    min-height:72px;
    padding:11px 9px;
    border-radius:14px;
}

.deposit-stats small,
.withdraw-stats small,
.referral-stats small{
    display:block;
    margin-bottom:6px;
    font-size:11px;
    line-height:1.2;
}

.deposit-stats b,
.withdraw-stats b,
.referral-stats b{
    display:block;
    font-size:14px;
    line-height:1.25;
}

.input-label{
    display:block;
    font-size:13px;
    margin-bottom:6px;
    color:#667085;
    font-weight:bold;
}

.withdraw-form-card input,
.deposit-form-card input{
    width:100%;
    min-height:46px;
    margin-bottom:12px;
    border-radius:14px;
    padding:0 13px;
}

.full-btn{
    width:100%;
    min-height:46px;
    border-radius:14px;
    margin-top:2px;
}

.clean-list,
.mining-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.mini-badge{
    background:#eaf4ff;
    color:#1677ee;
    border-radius:999px;
    padding:7px 10px;
    font-size:12px;
    font-weight:bold;
    white-space:nowrap;
}

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

.tier-row{
    display:grid;
    grid-template-columns:42px 1fr 70px;
    align-items:center;
    gap:12px;
    background:#f5f9ff;
    border:1px solid #d8e8ff;
    border-radius:16px;
    padding:13px;
}

.tier-no{
    width:36px;
    height:36px;
    border-radius:50%;
    background:#1677ee;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
}

.tier-info small{
    display:block;
    color:#667085;
    font-size:12px;
    margin-bottom:4px;
}

.tier-info b{
    display:block;
    color:#101828;
    font-size:15px;
}

.tier-rate{
    text-align:right;
    color:#1677ee;
    font-size:18px;
    font-weight:bold;
}

.history-item{
    padding:12px;
    background:#f5f9ff;
    border-radius:14px;
    margin-bottom:10px;
    line-height:1.45;
}

.history-item:last-child{
    margin-bottom:0;
}

.history-item b{
    color:#101828;
}

.history-item small,
.history-item p{
    color:#667085;
}

/* Ai Mine plan package UI */

.package-card{
    background:linear-gradient(180deg,#ffffff,#f3f8ff);
    border:1px solid #d8e8ff;
    border-radius:24px;
    padding:18px;
    margin-bottom:18px;
    box-shadow:0 10px 22px rgba(0,82,217,0.10);
}

.package-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
}

.package-title{
    font-size:18px;
    font-weight:bold;
}

.package-status{
    padding:7px 10px;
    border-radius:999px;
    background:#e7f8ef;
    color:#067647;
    font-size:12px;
    font-weight:bold;
    white-space:nowrap;
}

.package-status.expired{
    background:#fff1f0;
    color:#d92d20;
}

.jar-wrap{
    display:flex;
    gap:16px;
    align-items:center;
}

.jar{
    width:86px;
    height:145px;
    border:4px solid #1677ee;
    border-radius:18px 18px 26px 26px;
    position:relative;
    overflow:hidden;
    background:#ffffff;
    box-shadow:inset 0 0 18px rgba(22,119,238,0.15);
    flex-shrink:0;
}

.jar::before{
    content:"";
    position:absolute;
    top:-10px;
    left:18px;
    width:42px;
    height:16px;
    border:4px solid #1677ee;
    border-bottom:none;
    border-radius:12px 12px 0 0;
    background:#ffffff;
    z-index:3;
}

.jar-fill{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:0%;
    background:linear-gradient(180deg,#7ed7ff,#1677ee);
    animation:jarWave 2.2s infinite ease-in-out;
    transition:height 0.8s ease;
}

.jar-fill::before{
    content:"";
    position:absolute;
    top:-8px;
    left:-20%;
    width:140%;
    height:18px;
    border-radius:50%;
    background:rgba(255,255,255,0.65);
    animation:waveMove 2.5s infinite linear;
}

@keyframes jarWave{
    0%,100%{ filter:brightness(1); }
    50%{ filter:brightness(1.15); }
}

@keyframes waveMove{
    0%{ transform:translateX(0); }
    100%{ transform:translateX(20%); }
}

.jar-empty{
    position:absolute;
    top:8px;
    left:0;
    right:0;
    text-align:center;
    font-size:20px;
    opacity:0.35;
    z-index:2;
}

.package-info{
    flex:1;
    min-width:0;
}

.package-info p{
    margin:6px 0;
    color:#344054;
    font-size:14px;
    line-height:1.35;
}

.package-info b{
    color:#101828;
}

.progress-bar{
    width:100%;
    height:13px;
    background:#e5efff;
    border-radius:999px;
    overflow:hidden;
    margin:14px 0 8px;
}

.progress-fill{
    height:100%;
    width:0%;
    border-radius:999px;
    background:linear-gradient(90deg,#64b5ff,#0052d9);
    transition:width 0.8s ease;
}

.loss-warning{
    background:#fff7e6;
    border:1px solid #ffd599;
    color:#9a5b00;
    padding:12px;
    border-radius:14px;
    font-size:13px;
    font-weight:bold;
    margin-top:12px;
    line-height:1.45;
}

.loss-warning.danger{
    background:#fff1f0;
    border-color:#ffb3b3;
    color:#b42318;
}

.package-footer{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:12px;
}

.package-mini{
    background:#eef6ff;
    border-radius:14px;
    padding:12px;
    text-align:center;
}

.package-mini small{
    display:block;
    color:#667085;
    margin-bottom:4px;
}

.package-mini b{
    color:#1677ee;
}

/* Referral UI */

.level-row{
    display:grid;
    grid-template-columns:50px 1fr 80px;
    align-items:center;
    gap:8px;
    background:white;
    border-radius:16px;
    padding:14px;
    margin-bottom:12px;
    box-shadow:0 6px 15px rgba(0,0,0,0.06);
}

.level-row b{
    color:#1677ee;
}

.ref-hero{
    background:linear-gradient(135deg,#081f4d,#1677ee);
    color:white;
    border-radius:28px;
    padding:24px;
    margin-bottom:18px;
    box-shadow:0 14px 30px rgba(0,82,217,0.28);
}

.ref-hero p{
    margin:0 0 8px;
    font-weight:bold;
    color:#ffcc00;
}

.ref-hero h1{
    margin:0;
    font-size:34px;
    line-height:1;
    word-break:break-word;
}

.ref-hero span{
    display:block;
    margin-top:8px;
    color:#d9eaff;
    font-size:14px;
    line-height:1.45;
}

.ref-link-box{
    background:rgba(255,255,255,0.15);
    border:1px solid rgba(255,255,255,0.25);
    border-radius:18px;
    padding:12px;
    margin-top:18px;
}

.ref-link-box input{
    background:white;
    margin-bottom:10px;
}

.ref-link-box button{
    width:100%;
    background:#ffcc00;
    color:#101828;
}

.ref-stats-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-bottom:18px;
}

.ref-stat-card{
    background:white;
    border-radius:20px;
    padding:18px;
    box-shadow:0 8px 18px rgba(0,0,0,0.07);
}

.ref-stat-card.wide{
    grid-column:1 / 3;
    background:linear-gradient(135deg,#fff7e6,#ffffff);
    border:1px solid #ffd599;
}

.ref-stat-card small{
    display:block;
    color:#667085;
    margin-bottom:8px;
    font-weight:bold;
}

.ref-stat-card b{
    font-size:28px;
    color:#1677ee;
    word-break:break-word;
}

.muted{
    color:#667085;
    font-size:14px;
    margin-top:-8px;
}

.ref-level-card{
    background:linear-gradient(180deg,#ffffff,#f5f9ff);
    border:1px solid #e1edff;
    border-radius:18px;
    padding:14px;
    margin-bottom:12px;
    box-shadow:0 6px 15px rgba(0,0,0,0.05);
}

.ref-level-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:10px;
}

.ref-level-badge{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#1677ee;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    flex-shrink:0;
}

.ref-level-rate{
    background:#eaf4ff;
    color:#1677ee;
    border-radius:999px;
    padding:7px 10px;
    font-size:12px;
    font-weight:bold;
    white-space:nowrap;
}

.ref-level-bar{
    height:10px;
    background:#e5efff;
    border-radius:999px;
    overflow:hidden;
    margin:8px 0;
}

.ref-level-fill{
    height:100%;
    width:0%;
    background:linear-gradient(90deg,#64b5ff,#0052d9);
    border-radius:999px;
    transition:width 0.8s ease;
}

.ref-level-meta{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:10px;
}

.ref-level-meta div{
    background:#eef6ff;
    border-radius:12px;
    padding:10px;
    text-align:center;
}

.ref-level-meta small{
    display:block;
    color:#667085;
    margin-bottom:4px;
}

.ref-level-meta b{
    color:#101828;
}

.team-card{
    display:flex;
    align-items:center;
    gap:12px;
    background:#f5f9ff;
    border-radius:16px;
    padding:14px;
    margin-bottom:10px;
}

.team-avatar{
    width:44px;
    height:44px;
    border-radius:50%;
    background:#1677ee;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    flex-shrink:0;
}

.team-card p{
    margin:0;
    color:#667085;
    font-size:13px;
    line-height:1.4;
}

.team-card b{
    display:block;
    margin-bottom:4px;
}

.commission-card{
    background:#fffdf5;
    border:1px solid #ffe2a8;
    border-radius:16px;
    padding:14px;
    margin-bottom:10px;
}

.commission-card h3{
    margin:0 0 8px;
    color:#9a5b00;
    font-size:16px;
}

.commission-card p{
    margin:5px 0;
    color:#344054;
    font-size:14px;
    line-height:1.4;
}

/* Profile helpers */

.profile-info-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.profile-info-item{
    background:#f5f9ff;
    border:1px solid #d8e8ff;
    border-radius:14px;
    padding:12px;
}

.profile-info-item small{
    display:block;
    color:#667085;
    margin-bottom:4px;
    font-weight:bold;
}

.profile-info-item b{
    color:#101828;
    word-break:break-word;
}

.copy-input-row{
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
    align-items:center;
}

.copy-input-row input{
    margin-bottom:0;
}

/* Bottom navigation */

.bottom-nav{
    position:fixed;
    left:50%;
    bottom:12px;
    transform:translateX(-50%);
    width:calc(100% - 24px);
    max-width:480px;
    margin:auto;
    background:white;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    padding:8px 0;
    border:1px solid #e5e7eb;
    border-radius:22px;
    box-shadow:0 -8px 20px rgba(0,0,0,0.08);
    z-index:50;
}

.bottom-nav a{
    min-height:48px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    line-height:1.25;
    text-align:center;
    color:#667085;
    font-size:12px;
    border-radius:16px;
}

.bottom-nav a.active{
    color:#1677ee;
    font-weight:bold;
}

/* Desktop preview comfort */

@media (min-width:520px){
    body{
        padding-top:12px;
    }
}

/* Small mobile */

@media (max-width:420px){
    .app,
    .page-app,
    .home-app{
        padding-left:14px;
        padding-right:14px;
    }

    .earned-card{
        padding:18px;
    }

    .earned-card h1{
        font-size:34px;
    }

    .energy-card{
        padding:20px;
    }

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

    .energy-stats{
        gap:8px;
    }

    .energy-stats div{
        padding:11px 7px;
    }

    .energy-stats b{
        font-size:15px;
    }

    .card{
        padding:16px;
    }

    .jar-wrap{
        gap:12px;
    }

    .jar{
        width:78px;
        height:132px;
    }

    .jar::before{
        left:16px;
        width:38px;
    }
}

@media (max-width:380px){
    .app,
    .page-app,
    .home-app{
        padding-left:12px;
        padding-right:12px;
    }

    .topbar{
        margin-bottom:16px;
    }

    .profile{
        margin-bottom:16px;
    }

    .earned-card{
        align-items:flex-start;
    }

    .earned-card h1,
    .deposit-main-card h1,
    .withdraw-balance-card h1,
    .referral-main-card h1,
    .home-balance-card h1{
        font-size:30px;
    }

    .deposit-stats,
    .withdraw-stats,
    .referral-stats,
    .energy-stats{
        gap:8px;
    }

    .deposit-stats div,
    .withdraw-stats div,
    .referral-stats div,
    .energy-stats div{
        padding:10px 7px;
    }

    .deposit-stats b,
    .withdraw-stats b,
    .referral-stats b,
    .energy-stats b{
        font-size:13px;
    }

    .tier-row{
        grid-template-columns:38px 1fr 64px;
        gap:9px;
        padding:12px;
    }

    .tier-no{
        width:34px;
        height:34px;
    }

    .tier-rate{
        font-size:16px;
    }

    .package-head{
        align-items:flex-start;
    }

    .jar-wrap{
        align-items:flex-start;
    }

    .package-footer,
    .ref-level-meta,
    .ref-stats-grid{
        grid-template-columns:1fr;
    }

    .ref-stat-card.wide{
        grid-column:auto;
    }

    .level-row{
        grid-template-columns:44px 1fr;
    }

    .level-row > :last-child{
        grid-column:1 / 3;
    }

    .copy-input-row{
        grid-template-columns:1fr;
    }

    .bottom-nav{
        width:calc(100% - 16px);
        bottom:8px;
    }
}


/* =========================
   Home Dashboard Balance Polish
   ========================= */

.home-wallet-card{
    position:relative;
    overflow:hidden;
    background:linear-gradient(180deg,#ffffff,#f5f9ff);
    border:1px solid #cfe4ff;
    align-items:stretch;
}

.home-wallet-card::before{
    content:"";
    position:absolute;
    width:150px;
    height:150px;
    right:-70px;
    top:-70px;
    border-radius:50%;
    background:rgba(22,119,238,0.10);
}

.home-wallet-card::after{
    content:"";
    position:absolute;
    width:96px;
    height:96px;
    left:-45px;
    bottom:-45px;
    border-radius:50%;
    background:rgba(255,204,0,0.16);
}

.home-wallet-card .balance-content{
    position:relative;
    z-index:2;
    flex:1;
}

.balance-label-row{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.balance-label-row p{
    margin:0;
}

.balance-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:24px;
    padding:4px 9px;
    border-radius:999px;
    background:#eaf4ff;
    color:#1677ee;
    font-size:11px;
    font-weight:800;
    letter-spacing:0.3px;
}

.home-wallet-card h1{
    font-size:42px;
    margin:10px 0 0;
    letter-spacing:-1px;
}

.balance-meta-row{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:8px;
}

.balance-meta-row small{
    margin:0;
}

.balance-spark{
    width:24px;
    height:24px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#fff7e6;
    color:#9a5b00;
    font-size:13px;
    flex-shrink:0;
}

.deposit-home-link{
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
}

.deposit-home-link button{
    min-width:94px;
    min-height:46px;
    border-radius:16px;
    box-shadow:0 8px 18px rgba(22,119,238,0.22);
}

@media (max-width:420px){
    .home-wallet-card{
        padding:18px;
    }

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

    .deposit-home-link button{
        min-width:86px;
        padding:0 14px;
    }
}

@media (max-width:360px){
    .home-wallet-card{
        flex-direction:column;
        align-items:flex-start;
    }

    .deposit-home-link{
        width:100%;
    }

    .deposit-home-link button{
        width:100%;
    }
}


/* =========================
   Frontend polish + mobile fixes
   Safe overrides only: no API/backend flow changes
   ========================= */

:root{
    --nav-height: 76px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body{
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 28px);
    overflow-x:hidden;
}

.app,
.page-app,
.home-app{
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 36px);
}

.card,
.earned-card,
.energy-card,
.banner,
.package-card{
    transform: translateZ(0);
}

.bottom-nav{
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    bottom: calc(8px + var(--safe-bottom));
    padding: 7px 5px;
    min-height: var(--nav-height);
}

.bottom-nav a{
    min-width:0;
    font-size:11px;
    gap:2px;
}

.bottom-nav a.active{
    background:#eaf4ff;
}

/* Home: make packages/agents less bulky and keep deposit as the main action */
.home-profile{
    margin-bottom:12px;
}

.home-wallet-card{
    margin-bottom:14px;
}

.home-wallet-card .deposit-home-link button{
    background:linear-gradient(135deg,#12b76a,#1677ee);
    min-width:104px;
}

.home-mining-card{
    padding:18px;
    border-radius:24px;
}

.home-mining-card h1{
    font-size:34px;
}

.home-banner{
    padding:16px;
    border-radius:20px;
}

.home-banner h2{
    font-size:19px;
    margin:6px 0;
}

.home-app .mining-card{
    padding:15px;
}

.home-app .package-card{
    padding:13px;
    border-radius:18px;
    margin-bottom:10px;
}

.home-app .package-head{
    margin-bottom:10px;
}

.home-app .package-title{
    font-size:15px;
}

.home-app .jar-wrap{
    gap:10px;
}

.home-app .jar{
    width:54px;
    height:86px;
    border-width:3px;
    border-radius:14px 14px 18px 18px;
}

.home-app .jar::before{
    left:12px;
    width:25px;
    height:11px;
    border-width:3px;
}

.home-app .jar-empty{
    font-size:15px;
}

.home-app .package-info p{
    margin:3px 0;
    font-size:12px;
}

.home-app .progress-bar{
    height:9px;
    margin:10px 0 7px;
}

.home-app .package-footer{
    gap:7px;
    margin-top:8px;
}

.home-app .package-mini{
    padding:8px;
    border-radius:12px;
}

.home-app .loss-warning{
    padding:9px;
    border-radius:12px;
    font-size:12px;
    margin-top:8px;
}

/* Deposit: keep CTA usable when keyboard opens */
.deposit-page-space{
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 58px);
}

.deposit-amount-row input{
    -webkit-user-select:text;
    user-select:text;
}

body.keyboard-open{
    padding-bottom: calc(180px + var(--safe-bottom));
}

body.keyboard-open .deposit-page-space{
    padding-bottom: calc(240px + var(--safe-bottom));
}

body.keyboard-open .bottom-nav{
    transform:translate(-50%, 120%);
}

.keyboard-deposit-bar{
    max-width:456px;
    margin:0 auto;
}

@media (max-width:420px){
    .topbar h2{ font-size:22px; }
    .earned-card h1{ font-size:32px; }
    .home-wallet-card h1{ font-size:34px; }
    .energy-card h1{ font-size:34px; }
    .energy-stats div{ min-height:64px; }
    .bottom-nav{ width:calc(100% - 14px); }
}

@media (max-width:360px){
    .bottom-nav a{ font-size:10.5px; }
    .home-wallet-card h1{ font-size:30px; }
    .home-app .jar{ width:48px; height:78px; }
}


/* Home: Active Agent balance card polish */
.agent-balance-card{
    position:relative;
    overflow:hidden;
    text-align:center;
    padding:24px 18px;
    border-radius:28px;
    background:linear-gradient(135deg,#1167f1,#004bd6);
}

.agent-balance-card::before{
    content:"";
    position:absolute;
    inset:-60px auto auto -40px;
    width:160px;
    height:160px;
    border-radius:999px;
    background:rgba(255,255,255,0.12);
}

.agent-balance-icon{
    width:54px;
    height:54px;
    border-radius:20px;
    margin:0 auto 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    background:rgba(255,255,255,0.18);
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.22);
}

.agent-balance-card p{
    font-size:17px;
    letter-spacing:.2px;
    opacity:.95;
}

.agent-balance-card h1{
    font-size:48px;
    line-height:1;
    margin:10px 0 8px;
    text-align:center;
}

.agent-balance-card span{
    display:block;
    color:rgba(255,255,255,0.82);
    font-size:14px;
    font-weight:700;
}

.agent-activate-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    margin-top:16px;
    padding:0 20px;
    border-radius:999px;
    background:rgba(255,255,255,0.95);
    color:#075fe4;
    font-size:14px;
    font-weight:900;
    text-decoration:none;
    box-shadow:0 10px 22px rgba(0,0,0,0.12);
}

.agent-banner{
    background:linear-gradient(135deg,#021f54,#0054d8);
}

.agent-banner h2{
    max-width:560px;
}

@media(max-width:420px){
    .agent-balance-card{
        padding:22px 16px;
    }
    .agent-balance-card h1{
        font-size:44px;
    }
    .agent-activate-link{
        width:100%;
    }
}


/* =========================
   Ai Mine 10-day plan UI
   ========================= */
.jar,.jar-wrap,.jar-fill,.jar-empty,.jar-badge{display:none!important;}
.mining-line-card{padding:16px;border-radius:20px;}
.plan-value-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px;}
.plan-value-row>div{background:#f5f9ff;border:1px solid #d8e8ff;border-radius:14px;padding:11px;min-width:0;}
.plan-value-row small,.plan-value-row span{display:block;color:#667085;font-size:11px;line-height:1.35;}
.plan-value-row b{display:block;color:#101828;font-size:16px;margin:4px 0;word-break:break-word;}
.day-progress-head{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#667085;margin-bottom:8px;}
.day-progress-head b{color:#1677ee;}
.ten-day-track{height:12px;background:#e5efff;border-radius:999px;overflow:hidden;box-shadow:inset 0 1px 2px rgba(16,24,40,.08);}
.ten-day-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#12b76a,#1677ee);transition:width .6s ease;}
.day-dots{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;margin:9px 0 13px;}
.day-dots span{height:24px;border-radius:8px;background:#eef2f6;color:#98a2b3;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;}
.day-dots span.done{background:#e7f8ef;color:#067647;}
.day-dots span.current{background:#eaf4ff;color:#1677ee;box-shadow:0 0 0 2px rgba(22,119,238,.12);}
.plan-next-line{margin-top:10px;padding:10px 12px;border-radius:12px;background:#f8fbff;border:1px solid #d8e8ff;color:#475467;font-size:12px;line-height:1.4;}
.ref-table-wrap{width:100%;overflow-x:auto;border:1px solid #d8e8ff;border-radius:15px;background:#fff;}
.ref-table{width:100%;border-collapse:collapse;min-width:680px;}
.ref-table th,.ref-table td{padding:11px 10px;border-bottom:1px solid #edf3ff;text-align:left;font-size:12px;white-space:nowrap;}
.ref-table th{background:#f5f9ff;color:#475467;text-transform:uppercase;font-size:10px;letter-spacing:.04em;}
.ref-table td{color:#344054;}.ref-table tr:last-child td{border-bottom:0;}.ref-table small{color:#667085;}
@media(max-width:380px){.plan-value-row{grid-template-columns:1fr}.day-dots{gap:2px}.day-dots span{height:22px;font-size:9px}.package-footer{grid-template-columns:1fr 1fr}}

/* =========================================================
   Ai Mine Professional UI System v5
   ========================================================= */
:root{
  --am-bg:#07111f;
  --am-surface:#0d1b2e;
  --am-card:#10243a;
  --am-card-2:#132b43;
  --am-line:rgba(148,181,210,.16);
  --am-text:#f7fbff;
  --am-muted:#91a9be;
  --am-primary:#22d3a6;
  --am-primary-2:#12b886;
  --am-accent:#7c83ff;
  --am-gold:#f6c453;
  --am-danger:#ff6b7a;
  --am-radius:22px;
  --am-shadow:0 18px 45px rgba(0,0,0,.24);
}
html,body{background:var(--am-bg);color:var(--am-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
body{background:
 radial-gradient(circle at 10% -10%,rgba(124,131,255,.22),transparent 30%),
 radial-gradient(circle at 100% 8%,rgba(34,211,166,.16),transparent 28%),
 linear-gradient(180deg,#081421 0%,#07111f 100%);}
.app,.page-app,.home-app{max-width:520px;padding:18px 16px 118px}
.topbar{margin-bottom:20px}.topbar h2{font-size:22px;letter-spacing:-.35px;color:var(--am-text)}
.top-subtitle,.profile p,.card p,.muted{color:var(--am-muted)}
.top-icon,.back-link{background:rgba(255,255,255,.055);border:1px solid var(--am-line);color:var(--am-primary);box-shadow:none}
.avatar{background:linear-gradient(145deg,rgba(34,211,166,.20),rgba(124,131,255,.18));border:1px solid rgba(34,211,166,.4);color:var(--am-primary)}
.card,.earned-card,.package-card,.ref-stat-card{background:linear-gradient(180deg,rgba(19,43,67,.96),rgba(13,27,46,.98));border:1px solid var(--am-line);box-shadow:var(--am-shadow);border-radius:var(--am-radius);color:var(--am-text)}
.card{padding:18px;margin-bottom:14px}.card h2{font-size:18px;letter-spacing:-.2px}.card-head{margin-bottom:14px}
button{background:linear-gradient(135deg,var(--am-primary),var(--am-primary-2));color:#03231c;border-radius:14px;box-shadow:0 10px 24px rgba(34,211,166,.16);font-weight:800}
.secondary-btn{background:rgba(255,255,255,.05)!important;color:var(--am-text)!important;border:1px solid var(--am-line)!important;box-shadow:none!important}
input,select,textarea{background:#091827!important;border:1px solid rgba(145,169,190,.22)!important;color:var(--am-text)!important;border-radius:14px!important}
input:focus{border-color:var(--am-primary)!important;box-shadow:0 0 0 4px rgba(34,211,166,.10)!important}
.home-wallet-card{background:linear-gradient(145deg,#163753,#10253c 60%,#0d1b2e);border-color:rgba(34,211,166,.28)}
.home-wallet-card h1,.earned-card h1{color:var(--am-text);letter-spacing:-1.3px}
.balance-pill{background:rgba(34,211,166,.13);color:var(--am-primary);border:1px solid rgba(34,211,166,.22)}
.agent-balance-card,.energy-card,.about-hero,.referral-hero,.deposit-hero{background:linear-gradient(135deg,#121f47 0%,#203a70 52%,#126b63 100%)!important;border:1px solid rgba(255,255,255,.10)!important;box-shadow:var(--am-shadow)!important}
.agent-activate-link{background:var(--am-text);color:#10243a}
.banner,.agent-banner{background:linear-gradient(135deg,rgba(124,131,255,.22),rgba(34,211,166,.12));border:1px solid var(--am-line);box-shadow:none}
.banner h2,.banner p,.banner span{color:var(--am-text)}
.bottom-nav{background:rgba(9,24,39,.94);border:1px solid var(--am-line);box-shadow:0 14px 40px rgba(0,0,0,.38);backdrop-filter:blur(18px)}
.bottom-nav a{color:var(--am-muted)}.bottom-nav a.active{background:rgba(34,211,166,.12);color:var(--am-primary)}
/* Deposit */
.deposit-input-wrap{background:rgba(7,17,31,.55)!important;border-color:rgba(255,255,255,.12)!important;box-shadow:none!important}
.deposit-amount-row input{background:rgba(255,255,255,.06)!important;color:#fff!important}.usdt-box{background:#07111f!important;border:1px solid var(--am-line)}
.quick-amounts button{background:rgba(255,255,255,.06)!important;color:var(--am-text)!important;border:1px solid var(--am-line)!important;box-shadow:none}
.chain-pill{background:rgba(34,211,166,.14)!important;color:#7af0cf!important}.trust-mini{background:rgba(7,17,31,.48)!important;border-color:rgba(255,255,255,.10)!important}.trust-mini b{color:#fff!important}.trust-mini small{color:#b3c5d5!important}
.tier-card{padding:18px}.tier-list{display:grid!important;grid-template-columns:1fr 1fr!important;gap:11px!important}
.tier-row{display:block!important;min-height:158px;padding:15px!important;background:linear-gradient(145deg,rgba(124,131,255,.11),rgba(34,211,166,.07))!important;border:1px solid var(--am-line)!important;border-radius:18px!important;position:relative;overflow:hidden}
.tier-row::after{content:"";position:absolute;width:72px;height:72px;border-radius:50%;right:-26px;bottom:-28px;background:rgba(34,211,166,.10)}
.tier-row:nth-child(4){border-color:rgba(246,196,83,.42)!important;background:linear-gradient(145deg,rgba(246,196,83,.14),rgba(124,131,255,.08))!important}
.tier-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.tier-no{background:rgba(255,255,255,.07)!important;color:var(--am-muted)!important;border:1px solid var(--am-line);font-size:11px}.tier-rate{font-size:25px!important;color:var(--am-primary)!important;letter-spacing:-.8px}.tier-row:nth-child(4) .tier-rate{color:var(--am-gold)!important}
.tier-info small{color:var(--am-muted)!important}.tier-info b{color:var(--am-text)!important;font-size:14px!important;margin:5px 0}.tier-info span{display:block;color:var(--am-muted);font-size:11px;line-height:1.35}
.mini-badge{background:rgba(124,131,255,.15);color:#bfc3ff;border:1px solid rgba(124,131,255,.25)}
.wallet-box,.history-item,.empty-box,.summary-box,.profile-info-item,.package-mini,.level-meta div{background:rgba(255,255,255,.045)!important;border:1px solid var(--am-line)!important;color:var(--am-text)!important}
/* Plans */
.mining-line-card{padding:17px!important}.plan-value-row{gap:10px}.plan-value-row>div{background:rgba(255,255,255,.045)!important;border:1px solid var(--am-line)!important;border-radius:15px!important}.plan-value-row small,.plan-value-row span,.package-info p,.package-mini small{color:var(--am-muted)!important}.plan-value-row b,.package-info b{color:var(--am-text)!important}
.progress-bar{height:10px;background:rgba(255,255,255,.08)}.progress-fill{background:linear-gradient(90deg,var(--am-primary),var(--am-accent))}.day-dot{background:rgba(255,255,255,.08)!important;color:var(--am-muted)!important}.day-dot.done{background:var(--am-primary)!important;color:#03231c!important}
.package-status{background:rgba(34,211,166,.13);color:#80f2d3;border:1px solid rgba(34,211,166,.18)}
/* Referral tables */
.data-table-wrap{border:1px solid var(--am-line)!important;border-radius:16px!important;overflow:auto;background:rgba(255,255,255,.025)}
.data-table{min-width:620px!important}.data-table th{background:rgba(124,131,255,.12)!important;color:#c9ccff!important}.data-table td{color:var(--am-text)!important;border-color:var(--am-line)!important}.ref-plan-box{background:rgba(255,255,255,.045)!important;border-color:var(--am-line)!important}.ref-plan-box.highlight{background:rgba(34,211,166,.10)!important;border-color:rgba(34,211,166,.25)!important}.ref-plan-box b{color:var(--am-primary)!important}
/* Compact operational status */
.compact-status-card{display:flex;justify-content:space-between;align-items:center;gap:12px;background:linear-gradient(180deg,rgba(19,43,67,.96),rgba(13,27,46,.98));border:1px solid var(--am-line);border-radius:18px;padding:14px 16px;margin-bottom:14px}.compact-status-card small{display:block;color:var(--am-muted);font-size:11px;margin-bottom:4px}.compact-status-card b{font-size:13px;color:var(--am-text);line-height:1.35}.unlock-badge{margin:0!important;background:rgba(246,196,83,.12)!important;color:var(--am-gold)!important;border:1px solid rgba(246,196,83,.22)}.unlock-badge.ok{background:rgba(34,211,166,.12)!important;color:var(--am-primary)!important;border-color:rgba(34,211,166,.22)}
/* About + FAQ */
.about-grid{gap:10px}.about-mini{background:rgba(255,255,255,.045)!important;border-color:var(--am-line)!important}.about-mini small{color:var(--am-muted)!important}.about-mini b{color:var(--am-text)!important}.about-mini.highlight{background:rgba(34,211,166,.10)!important;border-color:rgba(34,211,166,.24)!important}.about-point{border-color:var(--am-line)!important}.about-point p{color:var(--am-muted)!important}.about-point-icon{background:rgba(124,131,255,.12)!important}
.faq-card{padding-bottom:8px}.faq-item{border:1px solid var(--am-line)!important;border-radius:15px!important;padding:0!important;margin-bottom:9px;background:rgba(255,255,255,.035)}.faq-item summary{cursor:pointer;list-style:none;padding:15px 16px;color:var(--am-text);font-size:14px;font-weight:750;position:relative}.faq-item summary::-webkit-details-marker{display:none}.faq-item summary::after{content:"+";position:absolute;right:16px;color:var(--am-primary);font-size:20px;top:10px}.faq-item[open] summary::after{content:"−"}.faq-item p{padding:0 16px 15px!important;color:var(--am-muted)!important;font-size:13px!important;line-height:1.55!important}
.warning-box{background:rgba(246,196,83,.08)!important;border-color:rgba(246,196,83,.24)!important;color:#f4dda0!important}
@media(max-width:390px){.tier-list{grid-template-columns:1fr!important}.tier-row{min-height:132px}.trust-row{grid-template-columns:1fr 1fr!important}.plan-value-row{grid-template-columns:1fr!important}}


/* =========================================================
   Ai Mine Blue Professional UI v6.1
   Screenshot-inspired, clean mobile alignment
   ========================================================= */
:root{
  --ae-blue:#2f80ed; --ae-blue2:#56a7ef; --ae-deep:#153862;
  --ae-ink:#182033; --ae-muted:#60708a; --ae-bg:#f7fbff;
  --ae-card:#ffffff; --ae-soft:#eef6ff; --ae-line:#dce9f7;
  --ae-shadow:0 8px 22px rgba(35,74,125,.12);
}
html,body{background:var(--ae-bg);color:var(--ae-ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
body{padding-bottom:92px}.app,.page-app,.home-app{max-width:480px;padding:14px 16px 104px}
.ae-home{padding-top:12px}.ae-brandbar{display:flex;align-items:center;gap:10px;margin:0 0 22px}
.ae-brandmark,.ae-user-avatar{display:grid;place-items:center;border:2px solid #31a6ef;color:#2489d8;background:#fff;font-weight:900}
.ae-brandmark{width:42px;height:42px;border-radius:14px}.ae-brandcopy{display:flex;flex-direction:column;line-height:1.15}.ae-brandcopy b{font-size:19px}.ae-brandcopy small{font-size:11px;color:var(--ae-muted);margin-top:3px}.ae-profile-link{margin-left:auto;color:#8b98aa;font-size:20px;letter-spacing:2px;padding:8px}
.ae-userline{display:flex;align-items:center;gap:12px;margin-bottom:14px}.ae-user-avatar{width:48px;height:48px;border-radius:50%}.ae-user-copy{min-width:0}.ae-user-copy small{display:block;color:var(--ae-muted);font-size:12px;font-weight:600;margin-bottom:2px}.ae-user-copy div{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ae-user-copy b{color:var(--ae-blue);font-size:15px}.ae-user-copy span,.ae-user-copy strong{color:#111827;font-size:12px}
.ae-balance-card{display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(135deg,#fff,#edf5ff);border:1px solid #d4e5f7;border-radius:24px;padding:17px 20px;margin-bottom:14px;box-shadow:var(--ae-shadow)}
.ae-balance-card small{color:var(--ae-muted);font-weight:800;font-size:13px}.ae-balance-card h1{margin:6px 0 2px;font-size:34px;line-height:1;color:#202536;letter-spacing:-1px}.ae-balance-card span{font-size:11px;color:#8592a5}.ae-withdraw-btn{background:var(--ae-blue);color:#fff;border-radius:13px;padding:12px 14px;font-weight:800;font-size:13px;white-space:nowrap;box-shadow:0 7px 16px rgba(47,128,237,.25)}
.ae-energy-card{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--ae-blue2),#337fd3);color:#fff;border-radius:25px;padding:18px 20px 14px;margin-bottom:15px;box-shadow:0 14px 28px rgba(47,128,237,.24)}
.ae-energy-card:after{content:"AM";position:absolute;right:18px;top:14px;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.12);color:rgba(255,255,255,.22);font-weight:900;transform:rotate(12deg)}
.ae-energy-head{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:800;opacity:.95}.ae-energy-head b{background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:5px 9px}.ae-energy-card h2{text-align:center;font-size:43px;line-height:1;margin:18px 0 17px;letter-spacing:-1px}
.ae-energy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.ae-energy-grid>div{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.22);border-radius:13px;padding:9px 6px;text-align:center}.ae-energy-grid small{display:block;font-size:10px;opacity:.9}.ae-energy-grid b{display:block;font-size:14px;margin-top:3px}.ae-energy-grid .return-highlight{background:#fff;color:var(--ae-blue);box-shadow:0 5px 14px rgba(11,57,108,.14)}
.ae-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:15px}.ae-actions a{background:#fff;border:1px solid #e3edf8;border-radius:17px;padding:14px 12px;box-shadow:0 6px 16px rgba(34,73,119,.08);display:flex;flex-direction:column;min-height:103px}.ae-action-icon{width:34px;height:34px;border-radius:11px;background:#fff4e7;display:grid;place-items:center;margin-bottom:8px}.ae-action-icon.gift{background:#eef6ff}.ae-actions b{font-size:16px}.ae-actions small{color:var(--ae-muted);margin-top:4px;font-size:12px}
.ae-tier-strip{display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:8px;background:linear-gradient(135deg,#072e60,#18558f);color:#fff;border-radius:18px;padding:13px 14px;margin-bottom:15px;box-shadow:var(--ae-shadow)}.ae-tier-strip small{display:block;font-size:9px;color:#bcd8f4}.ae-tier-strip b{font-size:16px}.ae-tier-strip a{font-size:11px;font-weight:800;background:#fff;color:var(--ae-blue);padding:8px 9px;border-radius:9px}
.ae-section-card{background:#fff;border:1px solid #e1ebf5;border-radius:20px;padding:15px;margin-bottom:14px;box-shadow:0 6px 18px rgba(36,72,117,.08)}.ae-section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.ae-section-title small{color:var(--ae-blue);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.ae-section-title h2{font-size:17px;margin:2px 0 0}.ae-section-title a,.ae-section-title button{background:#edf5ff;color:var(--ae-blue);padding:8px 10px;border-radius:10px;font-size:11px;font-weight:800;border:0;min-height:auto}
.mining-line-card{border:1px solid #e0ebf6!important;box-shadow:none!important;border-radius:16px!important;padding:13px!important}.package-title{font-size:13px!important}.package-status{font-size:10px!important}.ten-day-track{height:8px!important;background:#e9f1fa!important}.ten-day-fill{background:linear-gradient(90deg,#48a4ee,#2f80ed)!important}.day-dots span{width:20px!important;height:20px!important;font-size:9px!important}.day-dots span.done,.day-dots span.current{background:var(--ae-blue)!important;color:#fff!important}.plan-value-row b,.package-mini b{color:var(--ae-blue)!important}.plan-next-line{font-size:10px!important;color:var(--ae-muted)!important;background:#f4f8fd!important;border:0!important}
.ae-bottom-nav{grid-template-columns:repeat(5,1fr)!important;min-height:72px!important;padding:7px 4px calc(7px + env(safe-area-inset-bottom,0px))!important;background:#fff!important;border:0!important;border-top:1px solid #dfe8f3!important;border-radius:0!important;bottom:0!important;width:100%!important;max-width:480px!important;box-shadow:0 -4px 16px rgba(30,61,100,.08)!important}.ae-bottom-nav a{gap:2px!important;min-height:52px!important;background:transparent!important}.ae-bottom-nav a span{font-size:22px;line-height:1;color:#9aa9bb}.ae-bottom-nav a b{font-size:10px;color:#9aa9bb}.ae-bottom-nav a.active span,.ae-bottom-nav a.active b{color:var(--ae-blue)}
/* shared pages */
.ae-page-header,.page-topbar{display:flex;align-items:center;gap:12px;margin-bottom:14px}.ae-page-header>div,.page-title-center{flex:1}.ae-page-header h1,.page-topbar h2{font-size:21px;margin:0}.ae-page-header small,.top-subtitle{font-size:11px;color:var(--ae-muted)}.ae-back,.back-link{width:38px;height:38px;border-radius:12px;background:#fff;border:1px solid #dfeaf6;display:grid;place-items:center;color:var(--ae-blue);font-size:27px;box-shadow:0 5px 13px rgba(35,72,116,.08)}.ae-header-icon,.top-icon{width:38px;height:38px;border-radius:12px;background:#eef6ff;color:var(--ae-blue);display:grid;place-items:center}
.card,.earned-card,.energy-card,.deposit-hero,.referral-hero{border-radius:20px!important;box-shadow:0 6px 18px rgba(34,70,112,.08)!important;border:1px solid #e0eaf5!important}.card{padding:15px!important}.card h2{font-size:17px!important}.deposit-main-btn,.full-btn,button{border-radius:12px}.deposit-main-btn,.full-btn{background:var(--ae-blue)!important}.tier-card{background:#fff!important}.tier-row,.ref-plan-box,.summary-box{border-radius:14px!important;background:#f4f8fd!important;border-color:#e0eaf5!important}.tier-row:last-child{background:linear-gradient(135deg,#edf6ff,#e8f1ff)!important;border-color:#8cc5f3!important}.tier-rate,.mini-badge,.summary-box b{color:var(--ae-blue)!important}
/* referral */
.ae-ref-summary{background:linear-gradient(135deg,#4fa4e8,#337fd3);color:#fff;border-radius:23px;padding:19px;margin-bottom:14px;box-shadow:0 12px 24px rgba(47,128,237,.2)}.ae-ref-summary>small{font-size:11px;font-weight:700}.ae-ref-summary h1{font-size:35px;margin:6px 0 15px}.ae-ref-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.ae-ref-summary-grid div{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);border-radius:12px;padding:9px}.ae-ref-summary-grid small{display:block;font-size:9px}.ae-ref-summary-grid b{font-size:13px}.ae-code-box{background:#f3f8fd;border:1px dashed #b9d5ee;border-radius:12px;padding:12px;font-size:11px;word-break:break-all;color:#38506d}.ae-code-line{font-size:11px;color:var(--ae-muted);margin:9px 0}.ae-code-line b{color:var(--ae-ink)}.ae-share-wide{width:100%;background:var(--ae-blue);font-size:13px;padding:11px}.ae-level-list{display:flex;flex-direction:column;gap:9px}.ae-level-row{position:relative;display:grid;grid-template-columns:34px 1fr 1fr 1.25fr;align-items:center;gap:5px;background:linear-gradient(135deg,#fff,#f3f8fd);border:1px solid #e0eaf5;border-radius:15px;padding:11px 10px;box-shadow:0 5px 13px rgba(38,72,112,.08)}.ae-level-no{color:var(--ae-blue);font-weight:900;font-size:13px}.ae-level-row>div:not(.ae-level-no){display:flex;flex-direction:column}.ae-level-row b{font-size:12px}.ae-level-row small{font-size:9px;color:var(--ae-muted)}.ae-level-reward{text-align:right;align-items:flex-end}.ae-level-reward b{color:var(--ae-blue)}.ae-level-unlock{position:absolute;right:8px;top:-6px;background:#edf5ff;color:#6b7f98;font-size:7px;padding:2px 5px;border-radius:999px}.ae-team-list{display:flex;flex-direction:column;gap:9px}.ae-team-row{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;padding:10px;background:#f6f9fd;border-radius:14px}.ae-team-row>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--ae-blue);color:#fff;font-weight:800}.ae-team-row div{display:flex;flex-direction:column}.ae-team-row b{font-size:12px}.ae-team-row small{font-size:9px;color:var(--ae-muted)}.ae-team-row strong{font-size:12px;color:var(--ae-blue)}
/* FAQ/about and compact instructions */
.faq-item{border:1px solid #e0eaf5!important;border-radius:14px!important;background:#fff!important;margin-bottom:8px!important}.faq-item summary{font-size:13px!important}.faq-item p{font-size:11px!important;color:var(--ae-muted)!important}.about-hero{background:linear-gradient(135deg,#4fa4e8,#337fd3)!important}.about-mini,.about-point{background:#f6f9fd!important;border-color:#e0eaf5!important}
@media(max-width:370px){.app,.page-app,.home-app{padding-left:12px;padding-right:12px}.ae-balance-card h1{font-size:29px}.ae-energy-card h2{font-size:37px}.ae-energy-grid b{font-size:12px}.ae-level-row{grid-template-columns:30px 1fr 1fr 1.2fr}.ae-user-copy div{max-width:280px}}
