/* ============================================
   BALANCE PAGE STYLES
   ============================================ */

.balance-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 25px;
  align-items: start;
}

.balance-left {
  width: 100%;
}

.balance-right {
  width: 100%;
}

/* Section Title */
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

/* Amount Selection */
.amount-selection {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.amount-btn {
  position: relative;
  padding: 16px 12px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.amount-btn:hover {
  border-color: #E91E63;
  background: rgba(233, 30, 99, 0.02);
}

.amount-btn.active {
  border-color: #E91E63;
  background: rgba(233, 30, 99, 0.06);
}

.amount-bonus {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 4px 8px;
  background: linear-gradient(135deg, #66BB6A 0%, #43A047 100%);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  color: white;
  box-shadow: 0 2px 8px rgba(102, 187, 106, 0.3);
}

.amount-value {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* Custom Amount Input */
.custom-amount-input {
  position: relative;
  margin-bottom: 24px;
}

.custom-amount-input input {
  width: 100%;
  padding: 16px 50px 16px 20px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.custom-amount-input input:focus {
  outline: none;
  border-color: #E91E63;
}

.custom-amount-input input::placeholder {
  color: #999;
  font-weight: 400;
}

.currency-label {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 600;
  color: #666;
  pointer-events: none;
}

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.payment-method-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method-card:hover {
  background: #f0f1f5;
  border-color: #E91E63;
}

.payment-method-card.selected {
  background: rgba(233, 30, 99, 0.06);
  border-color: #E91E63;
}

.payment-method-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #E91E63;
}

.payment-method-info {
  flex: 1;
  min-width: 0;
}

.payment-method-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.payment-method-info p {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.payment-method-radio {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.payment-method-card.selected .payment-method-radio {
  border-color: #E91E63;
  background: #E91E63;
}

.radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.payment-method-card.selected .radio-dot {
  opacity: 1;
}

/* Submit Button */
.balance-submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.balance-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.3);
}

.balance-submit-btn:active {
  transform: translateY(0);
}

/* Balance History */
.balance-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Custom scrollbar */
.balance-history::-webkit-scrollbar {
  width: 6px;
}

.balance-history::-webkit-scrollbar-track {
  background: #f5f6fa;
  border-radius: 10px;
}

.balance-history::-webkit-scrollbar-thumb {
  background: #E91E63;
  border-radius: 10px;
}

.balance-history::-webkit-scrollbar-thumb:hover {
  background: #C2185B;
}

.history-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 13px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.history-item:hover {
  background: #f0f1f5;
}

.history-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.history-item.deposit .history-icon {
  background: linear-gradient(135deg, #66BB6A 0%, #43A047 100%);
  color: white;
}

.history-item.spent .history-icon {
  background: linear-gradient(135deg, #EF5350 0%, #E53935 100%);
  color: white;
}

.history-info {
  flex: 1;
  min-width: 0;
}

.history-amount {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.history-item.deposit .history-amount {
  color: #43A047;
}

.history-item.spent .history-amount {
  color: #E53935;
}

.history-method {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.history-date {
  font-size: 11px;
  color: #999;
}

/* Animation */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1200px) {
  .amount-selection {
    grid-template-columns: repeat(3, 1fr);
  }

  .balance-content {
    grid-template-columns: 1fr;
  }

  .balance-right {
    order: -1;
  }

  .balance-history {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .amount-selection {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-method-card {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .payment-method-radio {
    grid-column: 1 / -1;
    width: 20px;
    height: 20px;
    margin-top: 8px;
  }

  .balance-history {
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .amount-selection {
    gap: 8px;
  }

  .amount-btn {
    padding: 12px 8px;
  }

  .amount-value {
    font-size: 12px;
  }

  .amount-bonus {
    font-size: 9px;
    padding: 3px 6px;
  }
}
