:root {
  --primary: #0b3c5d;
  --accent: #1fa971;
  --danger: #d64545;
  --bg: #eaf2ff;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
}

/* GLOBAL */
* {
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 90px;
  visibility: hidden;
}

/* HEADER */

.header {
  background: linear-gradient(135deg, #0b3c5d, #1a5f9e);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
}
.user-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: white;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.notify-btn {
  background: white;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  position: relative;
}

.notif-badge {
  background: var(--danger);
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 50%;
  position: absolute;
  top: -6px;
  right: -8px;
  display: none;
}

/* BALANCE CARD */

.balance-card {
  background: linear-gradient(135deg, #ffffff, #f2f7ff);
  margin: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #dbe8ff;
  box-shadow: 0 10px 24px rgba(11, 60, 93, 0.12);
}
.balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance-label {
  font-size: 13px;
  color: var(--muted);
}

.balance-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.balance-display h1 {
  font-size: 30px;
  margin: 6px 0;
}

.eye-icon {
  color: var(--muted);
  cursor: pointer;
}

.top-history-btn {
  background: #eef2f7;
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

/* FUNDING BOX */

.funding-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
}

.bank-name {
  font-weight: 600;
}

.account-name {
  font-size: 12px;
  color: var(--muted);
}

.account-number {
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.copy-icon {
  margin-left: 6px;
  cursor: pointer;
}

#getAccountBtn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.deposit-fee-note {
  text-align: center;
  font-size: 12px;
  margin-top: 10px;
  color: var(--muted);
}

/* ACTIONS */

.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px;
  background: #f2f7ff;
  border-radius: 16px;
  margin: 0 16px;
}
.action-link {
  text-decoration: none;
}

.action-card {
  background: #f8fbff;
  padding: 16px 10px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(11, 60, 93, 0.06);
  transition: 0.2s;
  font-size: 18px;
  border: 1px solid #e6eef8;
}
.action-card span {
  display: block;
  font-size: 13px;
  margin-top: 6px;
  color: var(--text);
  font-weight: 500;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(11, 60, 93, 0.15);
  background: #f0f6ff;
}

/* TRANSACTIONS */

.transactions {
  margin: 16px;
}

.trans-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.trans-header h3 {
  margin: 0;
}

.trans-header a {
  font-size: 13px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

.trans-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.trans-service {
  flex: 1;
}

.trans-status {
  flex: 1;
  text-align: center;
  font-size: 13px;
}

.trans-amount {
  flex: 1;
  text-align: right;
  font-weight: 600;
}

.trans-status.Pending {
  color: orange;
}

.trans-status.Approved {
  color: var(--accent);
}

.trans-status.Failed {
  color: var(--danger);
}

/* BOTTOM NAV */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f8fbff;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -6px 18px rgba(11, 60, 93, 0.12);
  border-top: 1px solid #e6eef8;
}

.bottom-nav button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 10px;
  transition: 0.2s;
}

.bottom-nav button:hover {
  color: var(--primary);
}

.bottom-nav .active {
  color: var(--primary);
  font-weight: 600;
}

/* WHATSAPP */

.whatsapp-btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.transactions {
  margin: 16px;
  background: #f7faff;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #dbe8ff;
}

/* POPUP MODAL */

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box {
  background: white;
  padding: 24px;
  border-radius: 14px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.popup-box h3 {
  margin-top: 0;
}

.popup-box p {
  font-size: 14px;
  margin: 15px 0;
}

.popup-box button {
  background: #0b3c5d;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.popup-overlay {
  display: none;
}

.bank-info {
  display: flex;
  flex-direction: column;
}
