body { background: #0a3535; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }

/* Prevent iOS auto-zoom */
input, textarea, select { font-size: 16px; }
a, button, [onclick] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.wallet-page {
  padding: 24px 16px 90px;
  max-width: 520px;
  margin: 0 auto;
}

/* BALANCE CARD */
.bal-card {
  background: #0d2d2d;
  border: 1px solid #1a4040;
  border-radius: 20px;
  padding: 24px 20px 20px;
  margin-bottom: 16px;
}

.bal-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b9a9a;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.bal-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.bal-icon {
  width: 48px; height: 48px;
  background: #162032;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.bal-amount {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}

.fp-card {
  background: #0a2020;
  border: 1px solid #1a3535;
  border-radius: 14px;
  padding: 14px 18px;
}

.fp-label {
  font-size: 10px;
  font-weight: 700;
  color: #6b9a9a;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.fp-amount {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.fp-text {
  color: #8b5cf6;
  font-weight: 900;
}

/* ACTION BUTTONS */
.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-deposit {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 18px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(34,197,94,0.3);
  min-height: 58px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s;
}
.btn-deposit:active { transform: scale(0.96); }

.btn-cashout {
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 18px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(249,115,22,0.3);
  min-height: 58px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s;
}
.btn-cashout:active { transform: scale(0.96); }

.btn-loadcredit {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 18px 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
  min-height: 58px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s;
}
.btn-loadcredit:active { transform: scale(0.96); }

.btn-winnings {
  background: linear-gradient(135deg, #b45309, #f59e0b);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 18px 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
  min-height: 58px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s;
}
.btn-winnings:active { transform: scale(0.96); }

/* TRANSACTIONS CARD */
.txn-card {
  background: #0d2d2d;
  border: 1px solid #1a4040;
  border-radius: 20px;
  padding: 20px;
}

.txn-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.txn-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.txn-header p {
  font-size: 12px;
  color: #6b9a9a;
}

.refresh-txn {
  background: rgba(255,255,255,0.07);
  border: 1px solid #1a4040;
  color: #94a3b8;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.txn-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #0a2020;
  border-radius: 12px;
  margin-bottom: 8px;
}

.txn-icon {
  width: 40px; height: 40px;
  background: #162032;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.txn-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.txn-name { font-size: 14px; font-weight: 600; color: #fff; }
.txn-date { font-size: 12px; color: #6b9a9a; }

.txn-amount { font-size: 15px; font-weight: 700; }
.txn-amount.positive { color: #22c55e; }
.txn-amount.negative { color: #ef4444; }

/* MODALS */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.modal.hidden { display: none; }
.hidden { display: none !important; }

.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); }

.modal-sheet {
  position: relative; z-index: 1;
  background: #0d2d2d;
  border: 1px solid #1a4040;
  border-radius: 24px 24px 0 0;
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom, 0px));
  width: 100%; max-width: 520px;
  touch-action: manipulation;
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sheet-handle {
  width: 40px; height: 4px;
  background: #1a4040;
  border-radius: 2px;
  margin: 0 auto 20px;
}

.modal-sheet h2 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.sheet-sub { font-size: 13px; color: #6b9a9a; margin-bottom: 20px; }

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.amt-btn {
  background: #0a2020;
  border: 1px solid #1a4040;
  color: #fff;
  border-radius: 10px;
  padding: 14px 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s;
  min-height: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.amt-btn:active, .amt-btn.selected {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
  transform: scale(0.95);
}

.custom-amt {
  display: flex;
  align-items: center;
  background: #0a2020;
  border: 1.5px solid #1a4040;
  border-radius: 12px;
  padding: 4px 16px;
  margin-bottom: 16px;
  gap: 6px;
}
.custom-amt span { font-size: 18px; font-weight: 700; color: #6b9a9a; }
.custom-amt input {
  flex: 1; background: none; border: none;
  color: #fff; font-size: 18px; font-weight: 700;
  outline: none; padding: 14px 0;
  min-height: 52px;
  -webkit-appearance: none;
  appearance: none;
}
.custom-amt input::placeholder { color: #2d5555; }

.method-list { margin-bottom: 16px; }
.method-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0a2020;
  border: 1px solid #1a4040;
  border-radius: 10px;
  margin-bottom: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.btn-confirm-green {
  width: 100%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff; border: none; border-radius: 14px;
  padding: 17px; font-size: 16px; font-weight: 700; cursor: pointer;
  min-height: 54px; touch-action: manipulation;
}
.btn-confirm-green:active { opacity: 0.85; transform: scale(0.98); }

.btn-confirm-orange {
  width: 100%;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff; border: none; border-radius: 14px;
  padding: 17px; font-size: 16px; font-weight: 700; cursor: pointer;
  min-height: 54px; touch-action: manipulation;
}
.btn-confirm-orange:active { opacity: 0.85; transform: scale(0.98); }

/* METHOD GRID */
.section-label {
  font-size: 10px;
  font-weight: 700;
  color: #6b9a9a;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.method-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0a2020;
  border: 1.5px solid #1a4040;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: all 0.12s;
  min-height: 52px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.method-chip input[type="radio"] { accent-color: #22c55e; width: 18px; height: 18px; flex-shrink: 0; }
.method-chip:has(input:checked) {
  border-color: #22c55e;
  background: #0d2d1a;
}
.method-chip:active { transform: scale(0.97); }

/* PAY LINK BOX */
.pay-link-box {
  background: #0a2020;
  border: 1px solid #1a4040;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #94a3b8;
  padding: 7px 0;
  border-bottom: 1px solid #1a4040;
}
.info-row:last-of-type { border-bottom: none; }

/* MANUAL INSTRUCTIONS */
.info-box {
  background: #0a2020;
  border: 1px solid #1a4040;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}

.bnav-item.active { color: #f0c040 !important; }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .bal-card { padding: 20px 16px; }
  .bal-amount { font-size: 30px; }
  .wallet-actions { padding: 0 14px; gap: 10px; }
  .txn-card { margin: 14px 14px 100px; }
  .amount-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .modal-sheet { padding: 22px 18px 36px; }
}

/* ── Cashout quick amounts ── */
.quick-amounts {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 16px;
}
.qa-btn {
  flex: 1; min-width: 52px;
  background: #0d1b35; border: 1.5px solid #1e2d4a;
  border-radius: 10px; padding: 10px 6px;
  color: #cbd5e1; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.qa-btn.active, .qa-btn:active {
  background: #f0c040; border-color: #f0c040; color: #1a0800;
}

/* ── Tip agent cards ── */
.tip-agents { display: flex; flex-direction: column; gap: 10px; }
.tip-agent-card {
  display: flex; align-items: center; gap: 12px;
  background: #0d1b35; border: 1.5px solid #1e2d4a;
  border-radius: 14px; padding: 12px 14px; cursor: pointer;
  transition: border-color 0.15s;
}
.tip-agent-card.selected { border-color: #f0a500; background: #1a1200; }
.tip-agent-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  background: #1e2d4a;
}
.nicky-avatar  { background: #3d1a4a; }
.brody-avatar  { background: #0f2d1a; }
.fp-avatar     { background: #1a0800; flex-direction: column; gap: 0; font-size: 10px; }
.fp-avatar .crown { font-size: 14px; color: #f0c040; line-height: 1; }
.fp-avatar .fp    { font-size: 9px; color: #f0c040; font-weight: 800; }
.tip-agent-info { flex: 1; display: flex; flex-direction: column; }
.tip-agent-name { font-size: 15px; font-weight: 700; color: #fff; }
.tip-agent-role { font-size: 12px; color: #6b7280; margin-top: 2px; }
.tip-agent-check {
  font-size: 16px; color: #f0a500; font-weight: 700;
}
.tip-agent-check.hidden { display: none; }
