/* GLOBAL STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
    background: #000;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    text-align: center;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* TOP BAR */
.topbar {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
}

.wallet-display {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

/* BUTTON STYLE (Reusable) */
.btn-glow {
    width: 100%;
    background: linear-gradient(90deg, #f35fe7, #6c0167);
    color: #fff;
    font-weight: 700;
    padding: 12px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 10px;
}

.btn-glow:hover {
    transform: scale(1.03);
}

/* CONNECT BUTTON */
#connectBtn {
    width: auto;          /* make button fit the text */
    padding: 8px 16px;    /* adjust padding to your liking */
    font-weight: 600;
}

#connectBtn:hover {
    transform: scale(1.05);
}

/* CENTER CARD */
.center {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 15px;
}

.center-card {
    width: 100%;
    max-width: 480px;
    background: #111;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

/* WITHDRAWABLE SECTION */
.withdraw-section {
    background: linear-gradient(135deg, rgba(0,50,255,0.3), rgba(0,0,0,0.3)); /* lighter */
    padding: 20px;
    border-radius: 16px;
    color: #fff;
    margin-bottom: 20px;
}


.withdraw-title {
    font-weight: 700;
    font-size: 1rem;
    text-align: left;
}

.withdraw-amount {
    font-size: 2rem;
    font-weight: 900;
    margin: 10px 0 5px 0;
}

.withdraw-usd {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

/* ASSETS SECTION */
.assets {
    background: #111;
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.assets h3 {
    font-weight: 700;
    margin-bottom: 10px;
}

.wallet-balance {
    font-weight: 600;
    margin-bottom: 10px;
}

.wallet-actions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.wallet-btn {
    flex: 0 0 48%;
    cursor: pointer;
    margin-bottom: 10px;
}

/* USER TOTALS */
.user-stats-simple {
    background: #111;
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.user-stats-simple .stat {
    font-weight: 600;
    margin-bottom: 5px;
}

/* CENTER LOGO */
.center-logo {
    margin: 20px 0;
}
.logo-center {
    width: 120px;
    display: block;
    margin: 0 auto;
}

/* DEPOSIT INPUT */
.deposit-box {
    background: #111;
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.deposit-box label {
    font-weight: 600;
}

.deposit-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.deposit-row input {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #333;
    background: #222;
    color: #fff;
    min-width: 0;
}

/* REFERRAL LINK */
.referral {
    background: #111;
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.ref-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.ref-row input {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #333;
    background: #222;
    color: #fff;
    min-width: 0;
}

/* FOOTER */
footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links img {
    width: 32px;
    margin: 0 5px;
}

/* BOTTOM NAVIGATION */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    background: #111;
    padding: 10px 0;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.5);
    z-index: 100;
}

.bottom-btn {
    background: linear-gradient(90deg, #f35fe7, #6c0167);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}
.bottom-btn:hover {
    transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 500px) {
    .deposit-row, .ref-row, .wallet-actions {
        flex-direction: column;
    }

    .wallet-btn, .deposit-row button, .ref-row button {
        width: 100%;
    }
}
