*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#edf1f6;
    font-family:'Inter',sans-serif;
    min-height:100vh;
    padding:12px;

    display:block;   /* IMPORTANT: remove flex */
}
/* PHONE */
.phone{
    width:390px;
    max-width:100%;
    background:#fff;
    border-radius:40px;
    padding:28px 22px 35px;
    box-shadow:0 20px 50px rgba(0,0,0,.08);

    margin:20px auto;   /* centers it instead of flex */
}

/* HEADER */
.top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.title{
    display:flex;
    gap:8px;
    align-items:baseline;
    flex-direction:row;
}

.light{ font-weight:300; }
.bold{ font-weight:700; }

.profile{
    width:52px;
    height:52px;
    border-radius:50%;
    background:#f1f3f8;
    display:flex;
    justify-content:center;
    align-items:center;
    font-weight:700;
    color:#555;
    font-size:18px;
}

/* BALANCE */
.balance{
    margin-bottom:28px;
}

.small{
    color:#9d9d9d;
    font-size:14px;
    margin-bottom:6px;
}

.money{
    font-size:40px;   /* reduced for better mobile balance */
    font-weight:700;
    letter-spacing:-0.5px;
}

/* CARDS */
.cards{
    display:flex;
    gap:15px;
    margin-bottom:30px;
}

.card{
    flex:1;
    background:#f7f8fb;
    border-radius:24px;
    padding:16px;   /* slightly reduced */
    min-height:110px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.card-title{
    font-size:14px;  /* reduced */
    color:#666;
}

.card-icon{
    font-size:26px; /* reduced */
    color:#888;
}

.interest{
    font-size:16px; /* reduced */
    font-weight:700;
}

/* ANALYTICS */
.analytics{
    position:relative;
    width:70px;
    height:60px;
}

/* BASE DOT */
.dot{
    position:absolute;
    border-radius:50%;
}

/* BLUE */
.blue{
    width:18px;
    height:18px;
    background:#4a6cff;
    left:16px;
    top:10px;
}

/* PURPLE (same color as blue now) */
.purple{
    width:14px;
    height:14px;
    background:#4a6cff;
    left:32px;
    top:22px;
}

/* GREEN */
.green{
    width:12px;
    height:12px;
    background:#49c97f;
    left:46px;
    top:18px;
}
/* SECTION */
.section{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
    font-size:20px; /* reduced from 24 */
    font-weight:600;
}

/* TRANSACTIONS */
.transaction{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
}

.circle{
    width:50px;
    height:50px;
    border-radius:50%;
    background:#eef2f7;
    display:flex;
    justify-content:center;
    align-items:center;
    font-weight:700;
    margin-right:12px;
    color:#444;
}

.name{
    font-weight:600;
    margin-bottom:3px;
    font-size:14px;
}

.date{
    font-size:12px;
    color:#999;
}

.amount{
    font-size:16px;
    font-weight:700;
}

/* BUTTONS */
.bottom{
    margin-top:30px;
    display:flex;
    gap:15px;
}

button{
    flex:1;
    height:52px;  /* reduced */
    border:none;
    cursor:pointer;
    border-radius:22px;
    font-size:14px; /* reduced */
    font-weight:600;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 16px;
    background:#2b2f36;
    color:#fff;
}

/* TEXT COLORS */
.portfolio{ font-weight:700; color:#9d9d9d; }
.cash{ font-weight:700; color:#000; }

/* ================= MOBILE ONLY TUNING ================= */
@media (max-width: 480px){

    .phone{
        border-radius:28px;
        padding:18px 14px;
    }

    .money{
        font-size:34px; /* key fix */
    }

    .section{
        font-size:18px;
    }

    .profile{
        width:46px;
        height:46px;
        font-size:16px;
    }

    .card{
        padding:14px;
    }

    .card-title{
        font-size:13px;
    }

    .interest{
        font-size:15px;
    }

    button{
        height:50px;
        font-size:13px;
    }

    .circle{
        width:46px;
        height:46px;
    }
}
.left{
    display:flex;
    align-items:center;
    min-width:0;
}

/* ADD THIS FIX */
.left > div:last-child{
    display:flex;
    flex-direction:column;
    justify-content:center;
}