/* =========================================================
   BNB MINING - VIP DARK DASHBOARD
========================================================= */

:root {
    --bg: #050505;
    --surface: #0c0e10;
    --surface2: #111418;
    --border: #272b30;

    --text: #f5f7fa;
    --muted: #929aa4;

    --gold: #f3ba2f;

    --green: #42e0a1;
    --red: #ff5869;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(243,186,47,.08),
            transparent 38%
        ),
        #050505;

    color: var(--text);

    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    outline: 0;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   APP
========================================================= */

.app {
    width: 100%;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255,255,255,.018),
            transparent 35%
        ),
        #050505;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
========================================================= */

.top-header {
    width: 100%;
    height: 68px;

    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #090a0c;

    border-bottom: 1px solid #22262b;

    position: relative;
    z-index: 50;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    gap: 11px;
}

.header-right {
    gap: 10px;
}


/* =========================================================
   LOGO
========================================================= */

.bnb-logo {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.bnb-logo span {
    color: #f3ba2f;

    font-size: 30px;

    transform: rotate(45deg);

    display: block;

    text-shadow:
        0 0 9px rgba(243,186,47,.35);
}


/* =========================================================
   BRAND
========================================================= */

.brand-name {
    display: flex;
    align-items: center;

    font-size: 18px;
    font-weight: 700;
}

.brand-name span {
    color: #f5f7fa;
}

.brand-name strong {
    margin-left: 4px;
    color: var(--gold);
}


/* =========================================================
   NETWORK
========================================================= */

.network-status {
    height: 30px;

    padding: 0 11px;

    display: flex;
    align-items: center;
    gap: 7px;

    border-radius: 9px;

    background: #15181c;

    border: 1px solid #292e34;

    color: #e8ebee;

    font-size: 11px;
    font-weight: 700;
}

.status-dot,
.wallet-dot {
    border-radius: 50%;
    background: #00d084;
}

.status-dot {
    width: 7px;
    height: 7px;

    box-shadow:
        0 0 9px rgba(0,208,132,.75);
}

.wallet-dot {
    width: 5px;
    height: 5px;
}


/* =========================================================
   WALLET
========================================================= */

.wallet-address {
    height: 30px;

    padding: 0 10px;

    display: flex;
    align-items: center;
    gap: 7px;

    border-radius: 9px;

    background: #15181c;

    border: 1px solid #292e34;

    color: #edf0f3;

    font-size: 11px;
    font-weight: 600;

    transition: .18s ease;
}

.wallet-address:hover {
    border-color: #454b52;
    background: #1b1f24;
}


/* =========================================================
   SECONDARY
========================================================= */

.secondary-bar {
    width: 100%;
    height: 30px;

    padding: 0 25px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #08090a;

    border-bottom: 1px solid #202328;
}


/* REF */

.ref-section {
    display: flex;
    align-items: center;
    gap: 7px;

    font-size: 9px;
    letter-spacing: .8px;

    color: #858e98;
}

.ref-line {
    width: 74px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            #806b32,
            #302b1d
        );
}

.ref-check {
    color: var(--gold);
}


/* MODE */

.mode-switch {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%,-50%);

    height: 18px;

    display: flex;

    border-radius: 5px;

    overflow: hidden;

    background: #101216;

    border: 1px solid #3b4148;
}

.mode-btn {
    width: 21px;
    height: 16px;

    background: transparent;

    color: #727a83;

    font-size: 9px;
    font-weight: 700;
}

.mode-btn.active {
    color: var(--gold);
    background: #292d32;
}


/* USER */

.user-id {
    display: flex;
    align-items: center;
    gap: 5px;

    font-size: 10px;
    color: #7f8994;
}

.user-id strong {
    color: #d5dae0;
    letter-spacing: 1px;
}

.copy-icon {
    background: transparent;
    color: #7f8994;
    font-size: 11px;
}

.copy-icon:hover {
    color: var(--gold);
}


/* =========================================================
   MAIN
========================================================= */

.main-content {
    width: 100%;
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding:
        12px
        0
        30px;
}


/* =========================================================
   HERO
========================================================= */

.hero-section {
    width: 100%;
    max-width: 540px;

    padding: 0 10px;

    text-align: center;
}

.hero-section h1 {
    margin-bottom: 18px;

    color: #f5f7fa;

    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;

    letter-spacing: -1px;
}

.hero-section h1 span {
    color: var(--gold);
}


/* =========================================================
   PROGRESS CONTAINER
========================================================= */

.progress-container {
    width: 100%;
    max-width: 475px;

    margin: auto;

    padding: 9px 12px;

    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            #111316,
            #090a0c
        );

    border: 1px solid #282c31;

    box-shadow:
        0 10px 35px rgba(0,0,0,.4),
        inset 0 1px 0 rgba(255,255,255,.025);
}


/* =========================================================
   ROW
========================================================= */

.progress-row {
    width: 100%;
    height: 20px;

    display: grid;

    grid-template-columns:
        42px
        1fr
        31px;

    align-items: center;

    gap: 8px;
}


/* =========================================================
   LABELS
========================================================= */

.progress-label {
    text-align: left;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .7px;
}

.pool-label {
    color: #54e4a7;
}

.earn-label {
    color: #ff6673;
}


/* =========================================================
   TRACK
========================================================= */

.progress-track {
    width: 100%;
    height: 7px;

    position: relative;

    overflow: hidden;

    border-radius: 100px;

    background: #25282c;
}


/* =========================================================
   FILL
========================================================= */

.progress-fill {
    height: 100%;

    position: relative;

    overflow: hidden;

    border-radius: 100px;

    will-change: width, transform;

    transition:
        width 110ms cubic-bezier(.18,.8,.22,1);
}


/* POOL */

.pool-progress {
    background:
        linear-gradient(
            90deg,
            #19a96e,
            #58efb1,
            #19b978
        );

    box-shadow:
        0 0 9px rgba(66,224,161,.65),
        0 0 20px rgba(66,224,161,.2);
}


/* EARN */

.earn-progress {
    background:
        linear-gradient(
            90deg,
            #9e2938,
            #ff5969,
            #bd3343
        );

    box-shadow:
        0 0 9px rgba(255,88,105,.65),
        0 0 20px rgba(255,88,105,.2);
}


/* =========================================================
   FAST MOVING LIGHT
========================================================= */

.pool-progress::before,
.earn-progress::before {
    content: "";

    position: absolute;

    top: -100%;
    left: -50%;

    width: 30%;
    height: 300%;

    transform: skewX(-22deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.85),
            transparent
        );

    animation:
        progressLight
        .42s
        linear
        infinite;

    pointer-events: none;
}

@keyframes progressLight {

    from {
        left: -50%;
    }

    to {
        left: 140%;
    }

}


/* =========================================================
   PERCENTAGE
========================================================= */

.progress-percentage {
    text-align: right;

    color: #c3c9cf;

    font-size: 9px;
    font-weight: 800;

    font-variant-numeric: tabular-nums;

    will-change: transform;
}

.vip-number-change {
    animation:
        numberFlash
        110ms
        ease-out;
}

@keyframes numberFlash {

    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    45% {
        transform: scale(1.25);
        filter: brightness(1.7);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }

}


/* =========================================================
   BUBBLES
========================================================= */

.vip-progress-bubble {
    position: absolute;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #fff;

    pointer-events: none;

    z-index: 20;

    box-shadow:
        0 0 5px currentColor,
        0 0 12px currentColor;

    will-change: transform, opacity;
}

.vip-progress-bubble.large {
    width: 6px;
    height: 6px;
}

.vip-progress-bubble.small {
    width: 2px;
    height: 2px;
}


/* =========================================================
   MINING STATUS
========================================================= */

.mining-status {
    width: 100%;
    max-width: 540px;

    margin-top: 8px;

    display: grid;

    grid-template-columns:
        1fr
        1fr
        1fr;

    align-items: center;

    color: #aab2bc;

    font-size: 11px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bnb-value {
    text-align: center;
}

.bnb-value strong {
    color: #c4cad0;
    font-weight: 600;
}

.earning-time {
    text-align: right;
}


/* =========================================================
   BALANCE CARD
========================================================= */

.balance-card {
    width: 100%;
    max-width: 508px;

    margin-top: 23px;

    padding:
        15px
        16px
        13px;

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            #101214,
            #090a0c
        );

    border: 1px solid #282c31;

    box-shadow:
        0 15px 45px rgba(0,0,0,.45),
        inset 0 1px 0 rgba(255,255,255,.025);
}


/* =========================================================
   CARD HEADER
========================================================= */

.card-header {
    width: 100%;

    display: grid;

    grid-template-columns:
        1fr
        auto
        24px;

    align-items: center;

    gap: 10px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 4px;

    color: #c3c9cf;

    font-size: 14px;
}

.card-title-icon {
    color: #c3c9cf;
}


/* BADGE */

.mining-status-badge {
    padding: 4px 9px;

    border-radius: 8px;

    background: #191c20;

    color: #aeb5bd;

    font-size: 10px;
}


/* MENU */

.menu-button {
    width: 24px;
    height: 30px;

    background: transparent;

    color: #9da5ae;

    font-size: 20px;

    border-radius: 6px;
}

.menu-button:hover {
    color: #fff;
    background: #1b1e22;
}


/* =========================================================
   BALANCE
========================================================= */

.total-balance {
    margin-top: 14px;
}

.balance-number {
    color: #f4f6f8;

    font-size: 27px;
    font-weight: 700;

    letter-spacing: -.7px;
}

.balance-usd {
    margin-top: 2px;

    color: #8b949e;

    font-size: 11px;
}

.divider {
    width: 100%;
    height: 1px;

    margin: 11px 0;

    background: #25292e;
}


/* =========================================================
   BALANCE ROW
========================================================= */

.balance-row {
    width: 100%;
    min-height: 32px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.balance-label {
    color: #8d96a0;
    font-size: 12px;
}

.balance-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.balance-value strong {
    color: #f0f2f4;
    font-size: 12px;
}

.balance-value span {
    color: #8d959d;
    font-size: 10px;
}

.balance-value.earned strong {
    color: #42e0a1;
}


/* =========================================================
   STATISTICS
========================================================= */

.statistics {
    width: 100%;

    display: grid;

    grid-template-columns:
        1fr
        1fr
        1fr;

    gap: 10px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-box:nth-child(2) {
    align-items: center;
}

.stat-box:nth-child(3) {
    align-items: flex-end;
}

.stat-title {
    color: #6f7984;
    font-size: 9px;
}

.stat-box strong {
    color: #f1f3f5;
    font-size: 12px;
}

.stat-box small {
    color: #929aa3;
    font-size: 10px;
}

.stat-box small.positive {
    color: #00c982;
    font-weight: 700;
}


/* =========================================================
   SUBSCRIBE
========================================================= */

.subscribe-section {
    width: 100%;
    max-width: 508px;

    margin-top: 43px;
}

.subscribe-button {
    width: 100%;
    height: 48px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border-radius: 13px;

    background:
        linear-gradient(
            90deg,
            #dca400,
            #f3ba2f,
            #eeb300
        );

    color: #101820;

    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 5px 18px rgba(243,186,47,.2);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.subscribe-button::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 65%;
    height: 100%;

    transform: skewX(-20deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.35),
            transparent
        );

    animation:
        buttonShine
        1.2s
        linear
        infinite;
}

@keyframes buttonShine {

    from {
        left: -100%;
    }

    to {
        left: 150%;
    }

}

.subscribe-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 9px 25px rgba(243,186,47,.3);
}

.button-icon,
.subscribe-button span:last-child {
    position: relative;
    z-index: 2;
}


/* =========================================================
   FEATURES
========================================================= */

.features-section {
    width: 100%;
    max-width: 508px;

    margin-top: 16px;

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 10px;
}

.feature-card {
    min-height: 98px;

    padding: 12px 5px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 3px;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #101214,
            #090a0c
        );

    border: 1px solid #272b30;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);

    border-color: #3c4249;

    box-shadow:
        0 14px 35px rgba(0,0,0,.4);
}

.feature-icon {
    font-size: 24px;
}

.feature-card strong {
    color: #f0f2f4;
    font-size: 13px;
}

.feature-card span {
    color: #858e98;
    font-size: 10px;
}


/* =========================================================
   BOTTOM
========================================================= */

.bottom-subscribe {
    width: 100%;
    max-width: 375px;

    margin-top: 30px;
}

.bottom-button {
    background:
        linear-gradient(
            135deg,
            #181e24,
            #242c34
        );

    color: #fff;

    box-shadow:
        0 7px 20px rgba(0,0,0,.3);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: 100%;

    min-height: 50px;

    padding: 15px 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #070809;

    border-top: 1px solid #202328;

    color: #7f8892;

    font-size: 10px;
}

.footer-right {
    display: flex;
    gap: 18px;
}

.footer-right a:hover {
    color: var(--gold);
}


/* =========================================================
   MODAL OVERLAY
========================================================= */

.mining-modal-overlay {
    position: fixed;

    inset: 0;

    z-index: 99999;

    padding: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(0,0,0,.72);

    backdrop-filter:
        blur(5px);

    -webkit-backdrop-filter:
        blur(5px);

    animation:
        overlayIn
        .18s
        ease-out;
}

@keyframes overlayIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


/* =========================================================
   MODAL
========================================================= */

.mining-modal {
    width: 100%;
    max-width: 450px;

    position: relative;

    padding:
        25px
        25px
        26px;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #15181c,
            #090a0c
        );

    border: 1px solid #dca900;

    color: #f5f7fa;

    box-shadow:
        0 25px 80px rgba(0,0,0,.7);

    animation:
        modalIn
        .22s
        cubic-bezier(.2,.8,.2,1);
}

@keyframes modalIn {

    from {
        opacity: 0;
        transform:
            translateY(15px)
            scale(.97);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }

}


/* =========================================================
   MODAL CLOSE
========================================================= */

.modal-close {
    position: absolute;

    top: 11px;
    right: 12px;

    width: 34px;
    height: 34px;

    background: transparent;

    color: #d6dbe0;

    font-size: 28px;
    line-height: 1;

    border-radius: 50%;
}

.modal-close:hover {
    background: #22262b;
    color: #fff;
}


/* =========================================================
   MODAL TEXT
========================================================= */

.mining-modal h2 {
    margin-bottom: 5px;

    color: #f3ba2f !important;

    font-size: 21px;
    font-weight: 800;
}

.modal-subtitle {
    margin-bottom: 19px;

    color: #c1c8cf !important;

    font-size: 12px;
}


/* =========================================================
   INFO
========================================================= */

.subscription-info {
    width: 100%;

    padding: 12px 14px;

    margin-bottom: 17px;

    border-radius: 13px;

    background: #191c20;

    border: 1px solid #2b3036;
}

.info-row {
    width: 100%;
    min-height: 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    color: #b7c0c9;
    font-size: 13px;
}

.info-row span {
    color: #a0aab4 !important;
}

.info-row strong {
    color: #ffffff !important;

    text-align: right;

    font-weight: 700;
}


/* =========================================================
   PLANS
========================================================= */

.mining-plans {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 8px;
}

.mining-plan {
    min-height: 61px;

    padding: 7px 3px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 3px;

    border-radius: 11px;

    background: #191c20;

    border: 1px solid #2c3137;

    color: #fff;

    transition: .16s ease;
}

.mining-plan:hover {
    transform: translateY(-2px);

    border-color: #e8ae00;

    background: #22262b;
}

.mining-plan.active {
    background: #29230f;

    border-color: #e9ad00;

    box-shadow:
        0 0 0 1px rgba(233,173,0,.12);
}

.mining-plan span {
    color: #f4f6f8;

    font-size: 13px;
    font-weight: 700;
}

.mining-plan small {
    color: #42dba2;

    font-size: 9px;
}


/* =========================================================
   SELECTED INFO
========================================================= */

.selected-plan-info {
    width: 100%;

    min-height: 43px;

    margin-top: 16px;

    padding: 0 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 9px;

    background: #10251f;

    border: 1px solid #205c4d;

    color: #a9b7b3;

    font-size: 12px;
}

.selected-plan-info strong {
    color: #fff;
}


/* =========================================================
   CONFIRM
========================================================= */

.confirm-payment-button {
    width: 100%;
    height: 53px;

    margin-top: 17px;

    border-radius: 12px;

    background:
        linear-gradient(
            90deg,
            #dfa500,
            #f0b800,
            #eab000
        );

    color: #101820;

    font-size: 15px;
    font-weight: 800;

    box-shadow:
        0 7px 20px rgba(225,172,0,.2);
}

.confirm-payment-button:hover {
    filter: brightness(1.05);

    transform: translateY(-2px);
}


/* =========================================================
   PAYMENT NOTE
========================================================= */

.payment-note {
    margin-top: 11px;

    color: #9ba5af !important;

    font-size: 10px;

    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   NOTIFICATION
========================================================= */

.app-notification {
    position: fixed;

    top: 82px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 100000;

    max-width: calc(100% - 30px);

    padding: 11px 17px;

    border-radius: 10px;

    color: #fff;

    background: #171b20;

    border: 1px solid #343a41;

    box-shadow:
        0 10px 35px rgba(0,0,0,.5);

    font-size: 12px;

    display: none;
}

.app-notification.success {
    border-color: #26795e;
}

.app-notification.error {
    border-color: #9b3946;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #08090a;
}

::-webkit-scrollbar-thumb {
    background: #30343a;
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: #464c54;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .balance-card,
    .subscribe-section,
    .features-section {
        max-width: calc(100% - 30px);
    }

}

@media (max-width: 600px) {

    .top-header {
        height: 62px;
        padding: 0 13px;
    }

    .brand-name {
        font-size: 16px;
    }

    .bnb-logo {
        width: 27px;
        height: 27px;
    }

    .bnb-logo span {
        font-size: 27px;
    }

    .network-status {
        padding: 0 7px;
        font-size: 9px;
    }

    .wallet-address {
        padding: 0 7px;
        font-size: 9px;
    }

    .secondary-bar {
        padding: 0 12px;
    }

    .ref-line {
        width: 35px;
    }

    .hero-section {
        padding: 0 12px;
    }

    .hero-section h1 {
        font-size: 24px;
    }

    .progress-container {
        padding: 7px 9px;
    }

    .progress-row {
        grid-template-columns:
            40px
            1fr
            29px;

        gap: 6px;
    }

    .mining-status {
        font-size: 10px;
    }

    .balance-card {
        padding:
            13px
            12px
            12px;

        border-radius: 15px;
    }

    .balance-number {
        font-size: 24px;
    }

    .statistics {
        gap: 5px;
    }

    .features-section {
        grid-template-columns:
            repeat(2,1fr);

        gap: 8px;
    }

    .feature-card {
        min-height: 92px;
    }

    .bottom-subscribe {
        max-width: calc(100% - 70px);
    }

    .footer {
        padding: 13px 15px;

        flex-direction: column;

        gap: 10px;
    }

    .mining-modal {
        padding:
            23px
            17px
            22px;

        border-radius: 18px;
    }

    .mining-plans {
        gap: 5px;
    }

    .mining-plan span {
        font-size: 11px;
    }

}

@media (max-width: 380px) {

    .network-status {
        display: none;
    }

    .brand-name {
        font-size: 14px;
    }

    .wallet-address {
        font-size: 9px;
    }

    .hero-section h1 {
        font-size: 22px;
    }

    .mining-modal h2 {
        font-size: 18px;
    }

    .info-row {
        font-size: 11px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}