:root{
  --bg:#f7f8fb;
  --card:#ffffff;
  --muted:#7b8794;
  --accent:#0aa89e;
  --red:#ff6b6b;
  --green:#2ecc71;
  --blue:#4da6ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}

.screen{
  width:375px;
  height:812px;
  background:linear-gradient(180deg, rgba(255,255,255,0.9), rgba(250,250,252,0.96));
  border-radius:28px;
  box-shadow:0 20px 40px rgba(20,30,40,0.12);
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:18px;
  overflow:hidden;
}

/* header */
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.date{color:var(--muted); font-size:14px}
.avatar{
  width:40px; height:40px; border-radius:50%; background:#ddd;
  object-fit:cover;
  box-shadow:0 2px 6px rgba(0,0,0,0.08);
}

/* balance card */
.balance-card{
  background:var(--card);
  padding:16px;
  border-radius:14px;
  box-shadow:0 6px 18px rgba(16,24,40,0.06);
}
.balance-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:6px;
}
.label{color:var(--muted); font-size:13px}
.change{display:inline-flex; gap:6px; align-items:center; font-weight:600; color:var(--muted); font-size:13px}
.change.positive{color:var(--green)}
.amount{font-size:28px; font-weight:700; margin-bottom:8px}
.sparkline svg{width:100%; height:40px; display:block}

/* quick actions */
.quick-actions{
  display:flex;
  gap:12px;
  justify-content:space-between;
}
.qa{
  flex:1;
  background:var(--card);
  border-radius:12px;
  padding:10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  border:0;
  box-shadow:0 6px 18px rgba(16,24,40,0.04);
  min-height:64px;
  cursor:pointer;
}
.qa-icon{
  width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700;
}
.qa-label{font-size:13px; color:var(--muted)}
.qa.red .qa-icon{background:linear-gradient(180deg,var(--red),#ff4b4b)}
.qa.green .qa-icon{background:linear-gradient(180deg,var(--green),#22c55e)}
.qa.blue .qa-icon{background:linear-gradient(180deg,var(--blue),#2b8cff)}

/* activity */
.activity{
  background:transparent;
  flex:1;
  display:flex;
  flex-direction:column;
}
.activity h3{margin:0 0 8px 0; font-size:16px; color:#243142}
.activity ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px}
.activity li{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:var(--card);
  padding:10px;
  border-radius:12px;
  box-shadow:0 6px 14px rgba(16,24,40,0.04);
}
.tx-left{display:flex; gap:10px; align-items:center}
.tx-icon{
  width:44px; height:44px; border-radius:10px; display:grid; place-items:center; font-size:18px; background:linear-gradient(180deg,#f2f4f7,#eef2f6); color:#3b4a59;
}
.tx-name{font-weight:600}
.tx-time{font-size:12px; color:var(--muted)}
.tx-amount{font-weight:700}
.tx-amount.negative{color:var(--red)}
.tx-amount.positive{color:var(--green)}