/* ================================
   WITHDRAW PAGE STYLES
   ================================ */

/* Balance Overview */
.balance-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.balance-card {
  background: var(--gradient-glow);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.balance-card.secondary {
  background: var(--bg-card);
}

.balance-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.balance-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-primary);
}

.balance-card.secondary .balance-value {
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* Withdraw Card */
.withdraw-card {
  max-width: 600px;
}

.withdraw-form {
  padding: 24px;
}

.form-section {
  margin-bottom: 24px;
}

.section-label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

/* Method Selector */
.method-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.method-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.method-option:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.method-option.active {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.method-option .method-icon {
  font-size: 1.2rem;
}

/* Amount Input */
.amount-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
  transition: border-color var(--transition-fast);
}

.amount-input-wrapper:focus-within {
  border-color: var(--accent-primary);
}

.currency-sign {
  padding: 12px 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
}

.amount-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 12px 8px;
  min-width: 0;
}

.amount-input::placeholder {
  color: var(--text-muted);
}

.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.max-btn {
  padding: 10px 16px;
  background: var(--accent-primary);
  border: none;
  border-radius: var(--radius-sm);
  color: #000;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.max-btn:hover {
  filter: brightness(1.1);
}

.amount-hints {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Wallet Input */
.wallet-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-mono);
  transition: border-color var(--transition-fast);
}

.wallet-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.wallet-input::placeholder {
  color: var(--text-muted);
  font-family: var(--font-primary);
}

.input-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Withdraw Summary */
.withdraw-summary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.withdraw-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.withdraw-summary .summary-row.total {
  border-top: 1px solid var(--border-color);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.withdraw-summary .summary-row.total span:last-child {
  color: var(--accent-primary);
}

/* Info Box */
.info-box {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 24px;
  max-width: 600px;
}

.info-box h4 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.info-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-box li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.info-box li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
}

.info-box strong {
  color: var(--text-primary);
}

/* Success Modal Additions */
.success-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Form Alert */
.form-alert {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: none;
}

.form-alert.visible {
  display: block;
}

.form-alert.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.form-alert.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 600px) {
  .balance-overview {
    grid-template-columns: 1fr;
  }
  
  .balance-value {
    font-size: 1.5rem;
  }
  
  .method-selector {
    flex-direction: column;
  }
  
  .method-option {
    width: 100%;
    justify-content: center;
  }
  
  .amount-input {
    font-size: 1.25rem;
  }
}
