/* =============================================
   RECARGA MERCADOPAGO - ESTILOS
   ============================================= */

.recarga-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.recarga-modal {
  background: var(--panel);
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
  position: relative;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.recarga-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.title-icon {
  font-size: 32px;
}

.title-text h2 {
  margin: 0;
  font-size: 20px;
  color: var(--text);
}

.title-text p {
  margin: 4px 0 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Body */
.recarga-body {
  padding: 24px;
}

.recarga-instrucciones {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.recarga-instrucciones h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: var(--text);
}

.recarga-instrucciones ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.recarga-instrucciones li {
  margin: 8px 0;
  font-size: 14px;
}

/* Formulario */
.recarga-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-input {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* Preview de monto y loading */
.preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--panel-2);
  border: 2px dashed var(--border);
  border-radius: 12px;
}

.preview-container h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.info-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-primary);
}

.info-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.amount-preview {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(0, 176, 155, 0.1), rgba(150, 201, 61, 0.1));
  border: 2px solid rgba(0, 176, 155, 0.3);
  border-radius: 12px;
  margin-top: 20px;
}

.preview-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.preview-amount {
  font-size: 32px;
  font-weight: 700;
  color: #00b09b;
  text-shadow: 0 2px 4px rgba(0, 176, 155, 0.2);
}

.loading-status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--panel-2);
  border-radius: 12px;
  margin-top: 20px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 176, 155, 0.2);
  border-top-color: #00b09b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 14px;
  color: var(--text-primary);
}

/* Estado de verificación */
.verification-status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--panel-2);
  border-radius: 12px;
  margin-top: 20px;
}

.status-icon {
  font-size: 32px;
}

.status-icon.success {
  color: #10b981;
}

.status-icon.error {
  color: #ef4444;
}

.status-text {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}

.status-text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

/* Footer */
.recarga-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--panel);
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Responsive */
@media (max-width: 768px) {
  .recarga-modal {
    width: 95%;
    max-height: 95vh;
  }

  .qr-image {
    width: 200px;
    height: 200px;
  }
}
