/* DevPay Wallet — dark premium theme (BankPro-inspired, 2026-11-24).
   Deep navy + gold. Green is kept only for the TEST ONLY badge and success states. */
:root {
  --navy: #0a1628;
  --navy-deep: #060e1c;
  --card: #101f38;
  --card-2: #0d1a2e;
  --gold: #c9a96a;
  --gold-bright: #e6d5a8;
  --gold-dim: rgba(201, 169, 106, 0.35);
  --text: #f4f1e8;
  --muted: #9aa8c0;
  --border: rgba(201, 169, 106, 0.35);
  --green: #3fae7a;
  --green-text: #7fd6a8;
  --red: #e57373;
  --red-bg: rgba(179, 38, 30, 0.18);
  --ok-bg: rgba(63, 174, 122, 0.15);
  --amber: #e6c25a;
  --amber-bg: rgba(230, 194, 90, 0.15);
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #16294d 0%, var(--navy) 55%, var(--navy-deep) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
#app { max-width: 480px; margin: 0 auto; padding: 0 14px 130px; }
/* Floating pill bottom navigation: HOME / ACTIVITY / PEOPLE */
.bottomnav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 14px; width: calc(100% - 28px); max-width: 452px;
  display: flex; background: #12233f; border: 1px solid var(--gold-dim);
  border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  padding: 6px; z-index: 10;
}
.nav-btn {
  flex: 1; padding: 10px 4px; border: none; background: transparent;
  font-size: 0.95rem; font-weight: 700; cursor: pointer; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em; border-radius: 999px;
}
.nav-btn.active { background: var(--gold); color: var(--navy); }
.nav-panel h2 { margin-top: 18px; }
h1 { font-size: 1.4rem; margin: 18px 0 4px; }
h2 { font-size: 1.05rem; margin: 0 0 10px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0 8px;
}
.brand { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--gold); color: var(--navy); font-weight: 800;
}
.test-banner {
  background: var(--ok-bg); color: var(--green-text); border: 1px solid rgba(63, 174, 122, 0.4);
  border-radius: 8px; padding: 8px 10px; font-size: 0.85rem; font-weight: 600;
  text-align: center; margin: 4px 0 12px;
}
.view.hidden, .hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.error {
  background: var(--red-bg); color: var(--red);
  border-radius: 8px; padding: 9px 10px; font-size: 0.9rem; margin: 10px 0;
}
.ok {
  background: var(--ok-bg); color: var(--green-text);
  border-radius: 8px; padding: 9px 10px; font-size: 0.9rem; margin: 10px 0;
}

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin: 12px 0;
}
label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }
input, select {
  display: block; width: 100%; margin-top: 4px; padding: 11px 10px;
  font-size: 1rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--navy); color: var(--text);
}
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.btn {
  display: inline-block; padding: 12px 18px; border: none; border-radius: 10px;
  font-size: 1rem; font-weight: 700; cursor: pointer; background: var(--gold); color: var(--navy);
}
.btn:active { background: #b8985a; }
.btn-ghost { background: transparent; color: var(--gold-bright); padding: 8px 10px; }
.btn-small { padding: 7px 12px; font-size: 0.85rem; }
.btn-secondary { background: rgba(255, 255, 255, 0.08); color: var(--text); }
form .btn-primary { width: 100%; margin-top: 4px; }

.tabs { display: flex; gap: 6px; margin: 14px 0 4px; }
.tab {
  flex: 1; padding: 10px 6px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); font-size: 0.95rem; font-weight: 600; cursor: pointer; color: var(--text);
}
.tab.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.badge {
  display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 10px;
  background: var(--red); color: #fff; font-size: 0.75rem; text-align: center;
}

.balance-card { text-align: center; }
.balance-label { color: var(--muted); font-size: 0.9rem; }
.balance-amount { font-size: 3rem; font-weight: 800; margin: 4px 0 10px; line-height: 1.1; }
.balance-amount .cur-symbol { font-size: 1.8rem; font-weight: 700; margin-right: 2px; }
.balance-amount .balance-cents { font-size: 1.4rem; font-weight: 700; }
.currency-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cur-btn {
  padding: 8px 22px; border: none; background: transparent; font-weight: 700; cursor: pointer; font-size: 0.95rem; color: var(--muted);
}
.cur-btn.active { background: var(--gold); color: var(--navy); }

/* Wallet rows: one per currency, flag circle, tap to switch */
.wallet-rows { margin: 12px 0; }
.wallet-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; color: var(--text); cursor: pointer; text-align: left;
  font-size: 1rem; margin-bottom: 8px;
}
.wallet-row.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.flag-circle {
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none;
  border: 1px solid rgba(255, 255, 255, 0.25); display: flex;
}
.flag-circle svg { width: 30px; height: 30px; display: block; }
.wallet-row .wr-code { font-weight: 700; }
.wallet-row .wr-amount { margin-left: auto; font-weight: 800; }

/* Four actions in one gold-outlined card, like BankPro's Deposit/Move/Details */
.actions {
  display: flex; margin: 12px 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.action-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 16px 4px; border: none; border-right: 1px solid var(--border);
  background: transparent; font-size: 0.9rem; font-weight: 700; cursor: pointer; color: var(--gold-bright);
}
.action-btn:last-child { border-right: none; }
.action-icon { display: flex; color: var(--gold); }
.action-icon svg { width: 24px; height: 24px; }
.action-btn:active { background: rgba(201, 169, 106, 0.12); }

/* Home page sections: Quick send + Recent activity */
.home-section { margin: 20px 0 4px; }
.home-heading { margin: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.link-btn { background: transparent; border: none; color: var(--gold-bright); font-weight: 700; font-size: 0.9rem; cursor: pointer; padding: 0; }
.quick-send { display: flex; gap: 14px; overflow-x: auto; padding: 2px 0 6px; }
.quick-send-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; background: transparent; border: none; cursor: pointer; padding: 0; min-width: 56px; }
.quick-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; }
.quick-name { font-size: 0.85rem; font-weight: 600; color: var(--text); max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.list { list-style: none; margin: 0; padding: 0; }
.list li {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 12px; margin-bottom: 8px;
}
.list .row-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.list .row-sub { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.pill {
  display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 0.75rem; font-weight: 700;
  background: var(--ok-bg); color: var(--green-text);
}
.pill.pending { background: var(--amber-bg); color: var(--amber); }
.pill.declined, .pill.failed { background: var(--red-bg); color: var(--red); }
.amount-neg { color: var(--red); }
.amount-pos { color: var(--green-text); }
.contact-actions { margin-top: 8px; display: flex; gap: 8px; }

/* Elegant empty states: gold line illustration + short message */
.empty-state { text-align: center; padding: 28px 16px; color: var(--muted); }
.empty-state svg { width: 84px; height: 84px; color: var(--gold); opacity: 0.85; margin-bottom: 10px; }
.empty-state .es-title { color: var(--text); font-weight: 700; margin-bottom: 4px; font-size: 1.05rem; }
.empty-state .es-text { font-size: 0.9rem; }
li.empty-state { background: transparent; border: 1px dashed var(--gold-dim); }

/* Assets tab: breakdown under the Home total, per-currency totals card */
.balance-breakdown { margin: 2px 0 8px; }
.asset-total-row {
  display: flex; justify-content: space-between; gap: 8px;
  font-weight: 800; font-size: 1.15rem; padding: 4px 0; text-align: left;
}

/* Services grid: 3-column dark-navy tiles with gold icons (BSA-style) */
.services-grid-section { margin-top: 4px; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0;
}
.service-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 6px 12px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 0.9rem; font-weight: 700; cursor: pointer;
}
.service-tile:active { background: rgba(201, 169, 106, 0.12); }
.service-icon { display: flex; color: var(--gold); }
.service-icon svg { width: 26px; height: 26px; }

/* Top Up sheet */
.topup-operator {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--navy); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 10px; margin-top: 4px; font-weight: 700;
}
#topupOperatorSelect { margin-top: 8px; }
.topup-min { color: var(--gold-bright); font-weight: 700; margin: 0 0 8px; }
.topup-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.topup-chip {
  flex: 1 1 22%; padding: 10px 4px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--text); font-weight: 700; cursor: pointer; font-size: 0.9rem;
}
.topup-chip.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.topup-nav { display: flex; gap: 10px; margin-top: 12px; }
.topup-nav .btn { flex: 1; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
#topupReviewBtn, #topupDoneBtn { width: 100%; margin-top: 4px; }
#topupHint { min-height: 1.2em; margin: 6px 0; }
.topup-summary { margin: 0 0 12px; }
.topup-summary div {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--border);
}
.topup-summary dt { color: var(--muted); }
.topup-summary dd { margin: 0; font-weight: 700; text-align: right; }

.footer { text-align: center; margin-top: 24px; }
@media (min-width: 520px) {
  #app { padding-top: 10px; }
}
