/**
 * Elite666 - Recharge & Wallet Stylesheet (PRD v1.3 - Theme-proof 2026-11-28)
 */

/* Balance Card */
.deposit-hero-card {
  background: var(--gold-gradient);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin: 12px 14px;
  color: #14120E;
  box-shadow: var(--gold-glow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deposit-hero-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(31, 27, 18, 0.75);
}

.deposit-hero-val {
  font-size: 26px;
  font-weight: 900;
  margin-top: 2px;
}

.deposit-refresh-btn {
  background: rgba(255, 255, 255, 0.4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

/* Payment Method Tiles with +5% Bonus Corner Badge */
.method-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 14px 14px;
}

.method-tile {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  text-align: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.method-tile.active {
  background: var(--gold-gradient);
  border-color: transparent;
  box-shadow: var(--gold-glow);
  color: #12100C;
}

.method-tile.active .method-tile-name {
  color: #12100C;
}

.method-tile-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--danger);
  color: #FFFFFF;
  font-size: 8px;
  font-weight: 900;
  padding: 2px 5px;
  border-bottom-left-radius: 6px;
}

.method-tile-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.method-tile-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}

/* Channel Card */
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.channel-row-card {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--ink);
}

.channel-row-card.active {
  border-color: var(--gold-2);
  background: var(--bg-gold-light);
}

/* Preset Amount Chips (100, 500, 1K, 5K, 30K, 50K) */
.preset-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.preset-chip {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-chip.active, .preset-chip:hover {
  background: var(--bg-gold-light);
  border-color: var(--gold-2);
  color: var(--gold-3);
}

/* Instructions Card */
.instruction-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 14px;
}

.instruction-card ul {
  padding-left: 18px;
  margin-top: 4px;
}

/* Sticky Bottom Deposit Bar */
.sticky-deposit-bar {
  position: sticky;
  bottom: calc(var(--nav-height) + 10px);
  margin: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 10px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 95;
}

/* Bound Withdrawal Wallets */
.bound-wallet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.bound-wallet-card {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--ink);
}

.bound-wallet-card.active {
  border-color: var(--gold-2);
  background: var(--bg-gold-light);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

.wallet-empty-bind-box {
  background: var(--bg-soft);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 14px;
  text-align: center;
  margin-bottom: 14px;
}

/* ============ DESKTOP LAYOUT (PC, min-width 768px) - 2026-12-03 ============ */
@media (min-width: 768px) {
  /* Cashier pages (deposit / withdraw) sit in a centered 720px column */
  .cashier-page > * {
    max-width: 720px;
    /* !important: the withdraw hero card carries an inline margin that
       would otherwise defeat the centering on desktop */
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* Extra clearance so the sticky deposit bar never covers the promotions */
  .cashier-deposit {
    padding-bottom: 150px !important;
  }
  /* All method tiles in one row (Nagad, bKash, USDT, Rocket) */
  .method-tile-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
  /* Amount chips fill each row evenly, no empty cells */
  .preset-amount-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  }
}