:root{
  --bg:#0f1720;
  --glass-bg: rgba(255,255,255,0.06);
  --glass-2: rgba(255,255,255,0.04);
  --accent:#06b6a4;
  --muted: rgba(255,255,255,0.7);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color-scheme: dark;
}
html,body{
  height:100%;
  margin:0;
  background: linear-gradient(180deg,#071018 0%, #0b1220 100%);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
#app{
  height:100vh;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  padding:18px;
  box-sizing:border-box;
  flex-direction:column;
}

/* Card */
.card{
  width:92%;
  max-width:540px;
  border-radius:16px;
  padding:16px;
  box-sizing:border-box;
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  border:1px solid rgba(255,255,255,0.06);
  box-shadow: 0 6px 24px rgba(2,6,23,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
}
.glass{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.card-top{
  display:flex;
  gap:12px;
  align-items:center;
}
.bank-logo{
  width:56px;
  height:56px;
  flex:0 0 56px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, rgba(6,182,164,0.12), rgba(11,83,83,0.12));
  border:1px solid rgba(255,255,255,0.04);
}
.account-info .name{
  font-weight:600;
  font-size:16px;
  color:white;
}
.account-meta{ font-size:12px; color:var(--muted); margin-top:6px; }

.balance-block{
  margin-top:16px;
  padding:12px;
  border-radius:12px;
  background: linear-gradient(180deg, rgba(6,182,164,0.06), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.03);
}
.balance-block .label{ font-size:12px; color:var(--muted); }
.balance{ font-size:28px; font-weight:700; margin-top:6px; color:#fff; }

.details{ margin-top:12px; padding:10px; border-radius:10px; display:flex; gap:12px; flex-wrap:wrap;}
.details .detail-row{ min-width:120px; flex:1; display:flex; flex-direction:column; color:var(--muted); font-size:13px;}
.details strong{ color:#fff; margin-top:6px; font-weight:600; font-size:14px; }

.actions{ display:flex; gap:8px; margin-top:14px; }
.btn{
  flex:1;
  min-height:48px;
  background:linear-gradient(180deg,var(--accent), #0a8c78);
  color:white;
  border:0;
  border-radius:10px;
  font-weight:600;
  font-size:15px;
}
.btn.outline{
  background:transparent;
  border:1px solid rgba(255,255,255,0.06);
  color:var(--muted);
}

.trans-pane{
  width:92%;
  max-width:540px;
  border-radius:14px;
  padding:10px;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,0.04);
}
.pane-header{ display:flex; justify-content:space-between; align-items:center; color:var(--muted); margin-bottom:8px; }
.balance-small{ font-weight:700; color:#fff; }

.tx-list{ list-style:none; margin:0; padding:0; max-height:220px; overflow:auto; }
.tx-item{
  display:flex; justify-content:space-between; gap:12px; padding:8px 6px; border-bottom:1px dashed rgba(255,255,255,0.02);
}
.tx-left{ display:flex; gap:10px; align-items:center; min-width:0;}
.tx-icon{ width:40px; height:40px; border-radius:10px; background:rgba(255,255,255,0.02); display:flex; align-items:center; justify-content:center; color:var(--muted); flex:0 0 40px; font-weight:700; }
.tx-meta{ min-width:0; overflow:hidden; }
.tx-title{ font-weight:600; color:#fff; font-size:14px; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.tx-sub{ font-size:12px; color:var(--muted); margin-top:4px; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.tx-amt{ font-weight:700; color:#fff; min-width:84px; text-align:right; }

.modal{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(2,6,23,0.4); z-index:60; }
.hidden{ display:none; }
.modal-card{
  width:92%;
  max-width:420px;
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:12px;
  padding:14px;
  position:relative;
  border:1px solid rgba(255,255,255,0.04);
  box-shadow:0 12px 40px rgba(2,6,23,0.6);
}
.modal-close{ position:absolute; right:10px; top:8px; background:transparent; border:0; color:var(--muted); font-size:18px; }

.form{ display:flex; flex-direction:column; gap:8px; margin-top:6px; }
.form label{ font-size:12px; color:var(--muted); }
.form input[type="text"], .form input[type="password"], .form input[type="number"], .form select, .form input[type="file"]{
  width:100%;
  height:44px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.04);
  background:rgba(255,255,255,0.01);
  color:white;
  padding:8px 10px;
  box-sizing:border-box;
}
.form-actions{ display:flex; gap:8px; margin-top:8px; }

@media(min-width:720px){
  #app{ flex-direction:row; align-items:flex-start; padding:28px; }
}

/* Sign-in page enhancements */
.sign-card{ position:relative; overflow:hidden; transition:transform .28s ease, box-shadow .28s ease; }
.sign-hero{ display:flex; justify-content:center; margin-bottom:8px; pointer-events:none; }
.hero-logo{
  width:92px;
  height:auto;
  display:block;
  transform-origin:center;
  animation:heroFloat 4s ease-in-out infinite;
  filter:drop-shadow(0 8px 18px rgba(2,6,23,0.6));
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding:6px;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,0.04);
}

/* subtle animated lines behind form */
.sign-card::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(6,182,164,0.02), transparent 30%, rgba(6,182,164,0.02));
  transform:translateX(-10%);
  opacity:0.7;
  pointer-events:none;
  mix-blend-mode:overlay;
  animation:panLines 8s linear infinite;
}

/* micro-shake for failed sign-in */
@keyframes shake {
  0%{ transform:translateX(0); }
  20%{ transform:translateX(-6px); }
  40%{ transform:translateX(6px); }
  60%{ transform:translateX(-4px); }
  80%{ transform:translateX(4px); }
  100%{ transform:translateX(0); }
}
.shake{ animation:shake .42s ease-in-out; }

/* hero float */
@keyframes heroFloat{
  0%{ transform:translateY(0) scale(1); }
  50%{ transform:translateY(-6px) scale(1.02); }
  100%{ transform:translateY(0) scale(1); }
}

/* pan lines */
@keyframes panLines{
  0%{ transform:translateX(-12%); }
  50%{ transform:translateX(8%); }
  100%{ transform:translateX(-12%); }
}

/* slightly elevate focused card */
.sign-card:focus-within{ transform:translateY(-6px); box-shadow:0 18px 48px rgba(2,6,23,0.7); }