* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0e27;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
  position: relative;
}

.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  top: -250px;
  left: -250px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  bottom: -200px;
  right: -200px;
  animation-delay: 7s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 14s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-50px, 50px) scale(0.9);
  }
}

.main-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
}

.content-wrapper {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.content-wrapper.hidden {
  display: none;
}

.content-wrapper.fade-out {
  opacity: 0;
  transform: translateY(-20px);
}

.header-section {
  text-align: center;
  margin-bottom: 40px;
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    transform: scale(1.05);
  }
}

.main-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.subtitle {
  font-size: 15px;
  color: #94a3b8;
  font-weight: 400;
  line-height: 1.5;
}

.info-card {
  background: rgba(100, 116, 139, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  transition: all 0.3s ease;
}

.info-card:hover {
  background: rgba(100, 116, 139, 0.15);
  border-color: rgba(148, 163, 184, 0.3);
  transform: translateY(-2px);
}

.info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.info-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #e2e8f0;
}

.info-content p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-label {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.3px;
}

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

.currency-symbol {
  position: absolute;
  left: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #667eea;
  pointer-events: none;
}

input[type="number"] {
  width: 100%;
  padding: 18px 20px 18px 50px;
  background: rgba(15, 23, 42, 0.6);
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

input[type="number"]::placeholder {
  color: #475569;
}

input[type="number"]:focus {
  border-color: #667eea;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.submit-button {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.submit-button:hover::before {
  left: 100%;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

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

.button-icon {
  transition: transform 0.3s ease;
}

.submit-button:hover .button-icon {
  transform: translateX(4px);
}

.loading-container {
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  border: 4px solid rgba(102, 126, 234, 0.2);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  font-size: 16px;
  color: #94a3b8;
  font-weight: 500;
}

.success-container,
.error-container {
  padding: 20px;
}

.success-header {
  text-align: center;
  margin-bottom: 32px;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation: success-pop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes success-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #e2e8f0;
}

.amount-display {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.qr-section {
  text-align: center;
  margin-bottom: 32px;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0e27;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  padding: 0;
  overflow: hidden;
}

.qr-placeholder canvas,
.qr-placeholder img {
  display: block;
  width: 200px !important;
  height: 200px !important;
  border-radius: 16px;
}

.qr-instruction {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
}

.code-section {
  margin-bottom: 32px;
}

textarea {
  width: 100%;
  height: 120px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  color: #94a3b8;
  font-size: 13px;
  font-family: 'Monaco', 'Courier New', monospace;
  resize: none;
  margin-bottom: 12px;
  outline: none;
  transition: all 0.3s ease;
}

textarea:focus {
  border-color: #667eea;
  background: rgba(15, 23, 42, 0.8);
}

.copy-button {
  width: 100%;
  padding: 16px;
  background: rgba(102, 126, 234, 0.1);
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  color: #667eea;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.copy-button:hover {
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

.copy-button:active {
  transform: translateY(0);
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.whatsapp-button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.secondary-button,
.back-button {
  width: 100%;
  padding: 16px;
  background: rgba(100, 116, 139, 0.1);
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-button:hover,
.back-button:hover {
  background: rgba(100, 116, 139, 0.2);
  border-color: rgba(148, 163, 184, 0.3);
  transform: translateY(-2px);
}

.error-container {
  text-align: center;
  padding: 40px 20px;
}

.error-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.error-container h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #e2e8f0;
}

.error-container p {
  font-size: 15px;
  color: #94a3b8;
  margin-bottom: 24px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .content-wrapper {
    padding: 32px 24px;
  }

  .main-title {
    font-size: 26px;
  }

  .subtitle {
    font-size: 14px;
  }

  .info-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .amount-display {
    font-size: 36px;
  }

  .qr-placeholder {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .content-wrapper {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .icon-wrapper {
    width: 64px;
    height: 64px;
  }

  .main-title {
    font-size: 24px;
  }

  .amount-display {
    font-size: 32px;
  }
}
