/* =============================================
   UNBAN.LIVE - Deposit/Top Up Styles
   ============================================= */

/* Steps Indicator */
.deposit-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  padding: 0 20px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  opacity: 0.5;
  transition: all var(--transition-base);
}

.step-item.active {
  opacity: 1;
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
}

.step-item.completed {
  opacity: 1;
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

.step-number {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border-color);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
}

.step-item.active .step-number {
  background: var(--gradient-primary);
  color: white;
}

.step-item.completed .step-number {
  background: var(--success);
  color: white;
}

.step-item span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.step-item.active span {
  color: var(--text-primary);
}

.step-line {
  width: 40px;
  height: 2px;
  background: var(--border-color);
}

/* Deposit Card */
.deposit-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.deposit-card-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deposit-card-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.back-btn:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.back-btn svg {
  width: 16px;
  height: 16px;
}

.deposit-card-body {
  padding: 24px;
}

/* Payment Methods Grid */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.method-btn:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.05);
}

.method-btn.selected {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
}

.method-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  font-weight: 700;
}

.method-icon.btc {
  background: linear-gradient(135deg, #F7931A, #FFAB40);
  color: white;
}

.method-icon.eth {
  background: linear-gradient(135deg, #627EEA, #8C9EFF);
  color: white;
}

.method-icon.sol {
  background: linear-gradient(135deg, #9945FF, #14F195);
  color: white;
}

.method-icon.monad {
  background: linear-gradient(135deg, #8B5CF6, #A855F7);
  color: white;
}

.method-icon.sui {
  background: linear-gradient(135deg, #4DA2FF, #6FBCFF);
  color: white;
}

.method-icon.polygon {
  background: linear-gradient(135deg, #8247E5, #A879FF);
  color: white;
}

.method-icon.hype {
  background: linear-gradient(135deg, #00D395, #26FFB8);
  color: #1E1E1E;
}

.method-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.method-network {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Amount Input */
.amount-section {
  margin-bottom: 24px;
}

.amount-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.amount-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-prefix {
  position: absolute;
  left: 16px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
}

.amount-input {
  width: 100%;
  padding: 16px 16px 16px 50px;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
}

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

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

/* Preset Amounts */
.amount-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.preset-btn {
  padding: 8px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-btn:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.preset-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Summary */
.deposit-summary {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.9375rem;
}

.summary-row:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

.summary-row span:first-child {
  color: var(--text-secondary);
}

.summary-row span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

.summary-row.total {
  padding-top: 12px;
  margin-top: 4px;
}

.summary-row.total span:last-child {
  font-size: 1.125rem;
  color: var(--success);
}

/* Payment Details */
.payment-details {
  text-align: center;
}

.payment-info {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.payment-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.payment-crypto {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Wallet Address */
.wallet-section {
  margin-bottom: 24px;
}

.wallet-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.wallet-address-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.wallet-address {
  flex: 1;
  font-family: 'Space Mono', monospace;
  font-size: 0.8125rem;
  color: var(--text-primary);
  word-break: break-all;
  text-align: left;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.copy-btn:hover {
  transform: scale(1.02);
}

.copy-btn.copied {
  background: var(--success);
}

.copy-btn svg {
  width: 16px;
  height: 16px;
}

/* QR Code */
.qr-section {
  margin-bottom: 24px;
}

.qr-code {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code svg {
  width: 100%;
  height: 100%;
}

.qr-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Warning */
.payment-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.payment-warning svg {
  width: 24px;
  height: 24px;
  color: var(--warning);
  flex-shrink: 0;
}

.payment-warning p {
  font-size: 0.875rem;
  color: var(--warning);
  line-height: 1.5;
}

.payment-warning strong {
  color: var(--text-primary);
}

/* Status */
.payment-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--warning);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.payment-status span {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Timer */
.payment-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.payment-timer svg {
  width: 18px;
  height: 18px;
}

.timer-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* Payment Sent Button */
.payment-sent-btn {
  margin-top: 20px;
  margin-bottom: 10px;
}

.payment-sent-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.payment-sent-btn.submitted {
  background: var(--success);
  pointer-events: none;
}

/* Demo Button */
.demo-btn {
  width: 100%;
  padding: 14px;
  background: var(--bg-input);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.demo-btn:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

/* Success State */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.success-overlay.active {
  opacity: 1;
  visibility: visible;
}

.success-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  max-width: 400px;
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.success-overlay.active .success-modal {
  transform: scale(1);
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  color: var(--success);
}

.success-modal h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.success-modal p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.success-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--success);
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 768px) {
  .deposit-steps {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .step-line {
    display: none;
  }
  
  .step-item {
    flex: 1;
    min-width: 100px;
    justify-content: center;
    padding: 10px 12px;
  }
  
  .step-item span {
    display: none;
  }
  
  .methods-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .wallet-address-box {
    flex-direction: column;
  }
  
  .wallet-address {
    text-align: center;
  }
  
  .copy-btn {
    width: 100%;
    justify-content: center;
  }
}
