/* Moodboard-faithful banking UI system */
:root {
  --bg: #000000;
  --surface: #121214;
  --surface-2: #1c1c1e;
  --line: rgba(255,255,255,0.1);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.45);
  --green: #30d158;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }
.phone {
  max-width: 430px; margin: 0 auto; min-height: 100dvh;
  background: var(--bg);
  padding: calc(10px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));
  position: relative;
}

/* Home — moodboard */
.home-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.home-user { display: flex; align-items: center; gap: 10px; }
.home-user img, .home-user .av {
  width: 40px; height: 40px; border-radius: 50%;
  background: #2c2c2e; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.home-user .hi { font-size: 12px; color: var(--muted); }
.home-user .nm { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.home-actions { display: flex; gap: 8px; }
.home-actions a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
}

.balance-wrap { text-align: center; padding: 8px 0 4px; }
.bal-chips {
  display: inline-flex; gap: 6px; margin-bottom: 12px;
  background: rgba(255,255,255,0.06); border-radius: 999px; padding: 4px;
}
.bal-chips span {
  font-size: 11px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  color: var(--muted);
}
.bal-chips span.on {
  background: rgba(255,255,255,0.12); color: #fff;
}
.bal-num {
  font-size: 42px; font-weight: 600; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px;
}
.bal-num .arr {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: inline-flex; align-items: center; justify-content: center;
}
.bal-note { font-size: 12px; color: var(--muted); margin-top: 6px; }

.cards-row {
  display: flex; gap: 12px; margin: 22px 0 18px;
  overflow-x: auto; scrollbar-width: none; padding: 0 2px;
}
.cards-row::-webkit-scrollbar { display: none; }
.v-card {
  flex: 0 0 160px; height: 100px; border-radius: 18px;
  padding: 14px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.12);
}
.v-card.dark {
  background: linear-gradient(145deg, #1e1e22, #0d0d0f);
}
.v-card.gold {
  background: linear-gradient(145deg, #e8c49a, #c9a06e 40%, #9a7349);
  color: #1a1208; border-color: rgba(255,255,255,0.25);
}
.v-card .brand { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.v-card .last { font-size: 12px; opacity: 0.7; }
.v-card .lbl { font-size: 10px; opacity: 0.6; }
.v-card .amt { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.v-add {
  flex: 0 0 52px; height: 100px; border-radius: 18px;
  border: 1.5px dashed rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: rgba(255,255,255,0.4);
}

.sr-row { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 10px; margin-bottom: 22px; }
.sr-btn {
  height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08);
}
.sr-btn.main { background: #fff; color: #000; }
.sr-more {
  height: 48px; border-radius: 14px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}

.block-title {
  font-size: 14px; font-weight: 600; margin-bottom: 12px; color: rgba(255,255,255,0.9);
}
.qs-row { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin-bottom: 22px; }
.qs-row::-webkit-scrollbar { display: none; }
.qs-item { width: 60px; text-align: center; flex: 0 0 auto; }
.qs-item .a {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 6px;
  background: #2c2c2e; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; border: 1.5px solid rgba(255,255,255,0.08);
}
.qs-item .a.plus { border-style: dashed; background: transparent; font-size: 20px; color: var(--muted); }
.qs-item span { font-size: 11px; color: var(--muted); }

.shared-box {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 14px 16px; margin-bottom: 20px;
}
.shared-box .row { display: flex; align-items: center; justify-content: space-between; }
.shared-box .avs { display: flex; }
.shared-box .avs span {
  width: 28px; height: 28px; border-radius: 50%; background: #3a3a3c;
  border: 2px solid #000; margin-left: -8px; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.shared-box .avs span:first-child { margin-left: 0; }
.shared-meta { font-size: 12px; color: var(--muted); margin-top: 8px; }

.tx-block { margin-top: 8px; }
.tx-line {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}
.tx-line:last-child { border-bottom: none; }
.tx-ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: #1c1c1e; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.tx-line .t { flex: 1; min-width: 0; }
.tx-line .t strong { display: block; font-size: 15px; font-weight: 560; }
.tx-line .t span { font-size: 12px; color: var(--muted); }
.tx-line .m { font-size: 15px; font-weight: 560; font-variant-numeric: tabular-nums; }
.tx-line .m.in { color: var(--green); }

.nav-dock {
  position: sticky; bottom: 0; margin: 16px -18px -10px;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  background: rgba(0,0,0,0.92); backdrop-filter: blur(16px);
  display: flex; justify-content: space-around;
  border-top: 0.5px solid rgba(255,255,255,0.08);
}
.nav-dock a { opacity: 0.4; padding: 8px; }
.nav-dock a.on { opacity: 1; }

/* Card detail screen */
.card-hero {
  margin: 12px 0 20px; border-radius: 22px; height: 200px;
  background: linear-gradient(145deg, #1a1a1e 0%, #0a0a0c 100%);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 20px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
.card-hero .gold-tab {
  position: absolute; right: 0; top: 24px; width: 36px; height: 64px;
  background: linear-gradient(180deg, #e8c49a, #b8895a);
  border-radius: 12px 0 0 12px;
}
.card-hero .visa { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; }
.card-hero .num { font-size: 18px; letter-spacing: 0.12em; margin-top: 20px; }
.card-hero .who { font-size: 13px; color: var(--muted); margin-top: 8px; }
.card-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--green); font-weight: 600; margin-bottom: 8px;
}
.card-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.big-bal { font-size: 36px; font-weight: 600; letter-spacing: -0.04em; margin: 4px 0 16px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.card-actions a {
  height: 48px; border-radius: 14px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600;
}
.menu-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 4px; border-bottom: 0.5px solid rgba(255,255,255,0.06);
  font-size: 15px; font-weight: 500;
}
.menu-list a span { margin-left: auto; color: var(--muted); }

/* Manage card toggles */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 0.5px solid rgba(255,255,255,0.06);
}
.toggle-row .info strong { display: block; font-size: 15px; font-weight: 560; }
.toggle-row .info span { font-size: 12px; color: var(--muted); }
.switch {
  width: 50px; height: 30px; border-radius: 99px; background: #3a3a3c;
  position: relative; transition: background 0.2s; flex-shrink: 0;
}
.switch.on { background: var(--green); }
.switch i {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; transition: transform 0.2s;
}
.switch.on i { transform: translateX(20px); }

/* Transfer + confirm */
.amt-hero {
  text-align: center; font-size: 48px; font-weight: 600;
  letter-spacing: -0.04em; margin: 12px 0; font-variant-numeric: tabular-nums;
}
.presets { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.presets button {
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  font-size: 13px; font-weight: 600;
}
.keypad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  max-width: 300px; margin: 12px auto;
}
.keypad button {
  height: 58px; border-radius: 16px;
  background: rgba(255,255,255,0.06); font-size: 22px; font-weight: 500;
}
.keypad button:active { background: rgba(255,255,255,0.12); }
.confirm-box {
  background: rgba(255,255,255,0.05); border-radius: 18px;
  padding: 16px; margin: 12px 0; border: 1px solid rgba(255,255,255,0.08);
}
.confirm-box .line {
  display: flex; justify-content: space-between; padding: 8px 0;
  font-size: 14px;
}
.confirm-box .line span:first-child { color: var(--muted); }
.dual-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.dual-btns button, .dual-btns a {
  height: 52px; border-radius: 14px; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.dual-btns .ghost { background: rgba(255,255,255,0.08); }
.dual-btns .solid { background: #fff; color: #000; }
.page-title {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.page-title h1 { font-size: 18px; font-weight: 600; flex: 1; text-align: center; margin-right: 28px; }
.page-title a { font-size: 20px; color: var(--muted); width: 28px; }
.from-pill {
  background: rgba(255,255,255,0.06); border-radius: 14px; padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid rgba(255,255,255,0.08); margin-bottom: 16px;
}
.from-pill strong { display: block; font-size: 14px; }
.from-pill span { font-size: 12px; color: var(--muted); }
.person-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.05); border-radius: 14px; padding: 12px;
  margin: 12px 0;
}
.person-row .av {
  width: 40px; height: 40px; border-radius: 50%; background: #2c2c2e;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px;
}
.person-row input {
  flex: 1; background: transparent; border: none; color: #fff; font-size: 15px; outline: none;
}
.secure-note {
  text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px;
}
