/* frontend/public/css/wallet.css */
/* 80s / Early 90s Synthwave Neon Arcade Prize Vault & Wallet Stylesheet */

.wallet-layout *,
.wallet-layout *::before,
.wallet-layout *::after {
  box-sizing: border-box;
}

.wallet-layout {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 14px 14px 108px 14px;
  color: #ffffff;
  overflow: visible;
}

.is-hidden {
  display: none !important;
}

/* =========================================================
   1. ARCADE PRIZE VAULT HERO CARD
   ========================================================= */

.vault-hero-card {
  width: 100%;
  background: radial-gradient(circle at 50% 20%, #16302b 0%, #0d0620 72%, #070312 100%);
  border: 2px solid #00ff66;
  border-radius: 22px;
  padding: 16px 14px;
  margin-bottom: 18px;
  text-align: center;
  box-shadow: 0 0 24px rgba(0, 255, 102, 0.25), inset 0 0 18px rgba(0, 240, 255, 0.12);
  overflow: hidden;
}

.vault-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.vault-tag {
  font-family: monospace, sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  color: #00ff66;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(0, 255, 102, 0.12);
  border: 1px solid rgba(0, 255, 102, 0.45);
}

.vault-tier-pill {
  font-family: monospace, sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  color: #fde047;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(253, 224, 71, 0.12);
  border: 1px solid rgba(253, 224, 71, 0.45);
  white-space: nowrap;
}

.vault-balance-label {
  font-family: monospace, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 1.4px;
  margin-bottom: 4px;
}

.vault-cash-amount {
  font-family: monospace, sans-serif;
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.05;
  color: #00ff66;
  text-shadow: 0 0 18px rgba(0, 255, 102, 0.65), 0 3px 0 #000000;
  margin-bottom: 14px;
}

.vault-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.vault-stat-box {
  min-width: 0;
  padding: 9px 6px;
  border-radius: 12px;
  background: rgba(7, 3, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-box-label {
  font-family: monospace, sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-box-value {
  font-family: monospace, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-box-value.gold  { color: #fde047; }
.stat-box-value.cyan  { color: #00f0ff; }
.stat-box-value.green { color: #00ff66; }

/* =========================================================
   2. PAYOUT METHODS 2x2 ARCADE GRID
   ========================================================= */

.wallet-section {
  width: 100%;
  margin-bottom: 18px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.section-title-row h2 {
  margin: 0;
  font-family: monospace, sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.8px;
}

.section-hint {
  font-family: monospace, sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  color: #00f0ff;
}

.payout-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.method-card {
  min-width: 0;
  padding: 12px 11px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(24, 12, 48, 0.92), rgba(9, 5, 20, 0.98));
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.6);
  transition: transform 0.08s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.method-card:active {
  transform: translateY(3px);
}

.method-card.active {
  border-color: #00f0ff;
  background: linear-gradient(160deg, rgba(0, 240, 255, 0.18), rgba(28, 12, 54, 0.96));
  box-shadow: 0 4px 0 #0284c7, 0 0 16px rgba(0, 240, 255, 0.38);
}

.method-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.method-icon {
  font-size: 1.45rem;
}

.method-min-badge {
  font-family: monospace, sans-serif;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.min-green { background: rgba(0, 255, 102, 0.15); color: #00ff66; border: 1px solid rgba(0, 255, 102, 0.4); }
.min-cyan  { background: rgba(0, 240, 255, 0.15); color: #00f0ff; border: 1px solid rgba(0, 240, 255, 0.4); }
.min-gold  { background: rgba(253, 224, 71, 0.15); color: #fde047; border: 1px solid rgba(253, 224, 71, 0.4); }
.min-pink  { background: rgba(255, 0, 127, 0.18); color: #ff007f; border: 1px solid rgba(255, 0, 127, 0.45); }

.method-name {
  font-family: monospace, sans-serif;
  font-size: 0.84rem;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.method-desc {
  font-family: monospace, sans-serif;
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.method-desc.has-saved {
  color: #00ff66;
}

/* =========================================================
   3. CASHOUT DISPENSE TERMINAL FORM & SAVED HANDLES
   ========================================================= */

.cashout-terminal-card {
  width: 100%;
  background: rgba(16, 8, 36, 0.94);
  border: 2px solid #ff007f;
  border-radius: 20px;
  padding: 16px 14px;
  margin-bottom: 18px;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.25);
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-method-title {
  font-family: monospace, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  color: #00f0ff;
  letter-spacing: 0.6px;
}

.terminal-min-tag {
  font-family: monospace, sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  color: #fde047;
}

.terminal-form-group {
  margin-bottom: 14px;
  text-align: left;
}

.label-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.terminal-label {
  display: block;
  font-family: monospace, sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  color: #cbd5e1;
  letter-spacing: 0.6px;
  margin: 0;
}

.saved-status-pill {
  font-family: monospace, sans-serif;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  white-space: nowrap;
}

.saved-status-pill.is-saved {
  background: rgba(0, 255, 102, 0.15);
  border: 1px solid rgba(0, 255, 102, 0.45);
  color: #00ff66;
}

.destination-save-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.destination-save-row .terminal-input {
  flex: 1;
  min-width: 0;
}

.save-handle-btn {
  flex-shrink: 0;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid #00f0ff;
  background: rgba(0, 240, 255, 0.14);
  color: #00f0ff;
  font-family: monospace, sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  cursor: pointer;
  box-shadow: 0 3px 0 #0369a1;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.save-handle-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0369a1;
}

.charity-select {
  cursor: pointer;
}

.charity-mission-box {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 0, 127, 0.1);
  border: 1px solid rgba(255, 0, 127, 0.35);
  font-size: 0.74rem;
  color: #e2e8f0;
  line-height: 1.4;
}

.amount-input-row {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.currency-prefix {
  position: absolute;
  left: 14px;
  font-family: monospace, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #00ff66;
  pointer-events: none;
}

.terminal-input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 240, 255, 0.38);
  background: #070312;
  color: #ffffff;
  font-family: monospace, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: text;
  -webkit-user-select: text;
}

.terminal-input:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

.amount-input {
  padding-left: 30px;
  font-size: 1.1rem;
  color: #00ff66;
}

.quick-amount-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.quick-amt-btn {
  padding: 7px 4px;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
  font-family: monospace, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.quick-amt-btn.max-btn {
  border-color: #fde047;
  background: rgba(253, 224, 71, 0.15);
  color: #fde047;
}

.wallet-feedback-box {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-family: monospace, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.4;
}

.wallet-feedback-box.is-visible {
  display: block;
}

.wallet-feedback-box.is-error {
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid #f43f5e;
  color: #fda4af;
}

.wallet-feedback-box.is-success {
  background: rgba(0, 255, 102, 0.14);
  border: 1px solid #00ff66;
  color: #00ff66;
}

/* 3D Arcade Cash Dispense Button */
.dispense-cash-btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #fde047;
  background: linear-gradient(180deg, #00ff66 0%, #059669 100%);
  color: #000000;
  font-family: monospace, sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 5px 0 #065f46, 0 0 20px rgba(0, 255, 102, 0.45);
  transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.2s ease;
}

.dispense-cash-btn:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #065f46;
}

.dispense-cash-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* =========================================================
   4. SELF-REPORTING TAX DISCLAIMER & ANNUAL LIMIT TRACKER
   ========================================================= */

.tax-compliance-card {
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  background: rgba(16, 8, 36, 0.9);
  border: 1.5px solid rgba(0, 240, 255, 0.28);
  margin-bottom: 18px;
}

.tax-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tax-title {
  font-family: monospace, sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  color: #ffffff;
}

.tax-sub {
  font-family: monospace, sans-serif;
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 2px;
}

.w9-badge {
  flex-shrink: 0;
  font-family: monospace, sans-serif;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.w9-clear    { background: rgba(0, 255, 102, 0.14); color: #00ff66; border: 1px solid #00ff66; }
.w9-required { background: rgba(253, 224, 71, 0.18); color: #fde047; border: 1px solid #fde047; }
.w9-verified { background: rgba(0, 240, 255, 0.16); color: #00f0ff; border: 1px solid #00f0ff; }

.tax-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #070312;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 10px;
}

.tax-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00f0ff, #fde047, #ff007f);
  transition: width 0.4s ease;
}

.tax-disclaimer-copy {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(7, 3, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.73rem;
  color: #cbd5e1;
  line-height: 1.45;
  text-align: left;
}

.tax-disclaimer-copy strong {
  color: #fde047;
}

/* =========================================================
   5. VAULT ACTIVITY LEDGER
   ========================================================= */

.ledger-filter-tabs {
  display: flex;
  gap: 6px;
}

.ledger-tab {
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(7, 3, 18, 0.8);
  color: #94a3b8;
  font-family: monospace, sans-serif;
  font-size: 0.66rem;
  font-weight: 900;
  cursor: pointer;
}

.ledger-tab.active {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.16);
  color: #00f0ff;
}

.ledger-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ledger-empty {
  padding: 20px 14px;
  border-radius: 14px;
  background: rgba(16, 8, 36, 0.75);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  text-align: center;
  font-family: monospace, sans-serif;
  font-size: 0.76rem;
  color: #94a3b8;
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(16, 8, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ledger-row-left {
  min-width: 0;
  flex: 1;
}

.ledger-row-title {
  font-family: monospace, sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-row-meta {
  font-family: monospace, sans-serif;
  font-size: 0.66rem;
  color: #94a3b8;
  margin-top: 2px;
}

.ledger-row-right {
  flex-shrink: 0;
  text-align: right;
}

.ledger-row-amount {
  font-family: monospace, sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
}

.ledger-row-amount.is-credit { color: #00ff66; }
.ledger-row-amount.is-debit  { color: #fde047; }

.ledger-status-tag {
  display: inline-block;
  font-family: monospace, sans-serif;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 5px;
  margin-top: 2px;
  text-transform: uppercase;
}

.status-paid      { background: rgba(0, 255, 102, 0.16); color: #00ff66; }
.status-pending   { background: rgba(253, 224, 71, 0.16); color: #fde047; }
.status-converted { background: rgba(0, 240, 255, 0.16); color: #00f0ff; }