/* ----- FULL PAYMENT PAGE - PRODUCTION GRADE ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body {
  background: white;
  font-family: 'Inter', sans-serif;
  color: #0a0e1a;
  line-height: 1.5;
  min-height: 100vh;
}

.payment-page {
  position: relative;
  min-height: 100vh;
  padding: 80px 0;
  background: white;
  overflow: hidden;
  isolation: isolate;
}

/* background effects */
.payment-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

.bg-glow {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
  border-radius: 50%;
}

.payment-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* header with back button */
.payment-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.back-button {
  position: absolute;
  left: 0;
  top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 40px;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.back-button:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
  transform: translateX(-4px);
}

.back-button i {
  font-size: 1rem;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(37, 99, 235, 0.04);
  color: #2563eb;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 2px;
  padding: 8px 24px;
  border-radius: 100px;
  margin-bottom: 28px;
  text-transform: uppercase;
  border: 1px solid rgba(37, 99, 235, 0.1);
  backdrop-filter: blur(4px);
}

.badge-shine {
  width: 8px;
  height: 8px;
  background: #2563eb;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.badge-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -10px;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine 3s infinite;
}

.payment-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #0f172a;
}

.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.payment-subhead {
  font-size: 1.2rem;
  color: #475569;
  max-width: 600px;
  margin: 0 auto;
}

/* ----- TABS ----- */
.payment-tabs {
  background: white;
  border-radius: 48px;
  border: 1px solid rgba(203, 213, 225, 0.4);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  margin-bottom: 40px;
}

.tab-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px;
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: transparent;
  border: none;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Space Grotesk', sans-serif;
}

.tab-btn i {
  font-size: 1.4rem;
}

.tab-btn.active {
  background: white;
  color: #2563eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.tab-btn:not(.active):hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.5);
}

/* tab content */
.tab-content {
  padding: 48px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* payment grid */
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* QR code section */
.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #64748b;
  margin-bottom: 20px;
}

.qr-wrapper {
  background: white;
  padding: 24px;
  border-radius: 32px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
  display: inline-block;
}

.qrcode-container {
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcode-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 0.9rem;
}

.qr-hint i {
  color: #2563eb;
}

/* address section */
.address-section {
  background: #f8fafc;
  border-radius: 32px;
  padding: 32px;
  border: 1px solid #e2e8f0;
}

.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 8px 20px;
  border-radius: 40px;
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

.network-badge i {
  color: #2563eb;
  font-size: 1.1rem;
}

.network-badge span {
  font-weight: 600;
  color: #0f172a;
}

.address-container {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
}

.address-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.address-label span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.address-verify {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #059669;
  font-size: 0.8rem;
  font-weight: 600;
}

.address-verify i {
  font-size: 0.9rem;
}

.address-text {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
  word-break: break-all;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
  line-height: 1.6;
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

.copy-btn i {
  font-size: 1.1rem;
}

.payment-details {
  margin-top: 24px;
  padding: 20px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
}

.detail-value {
  font-weight: 600;
  color: #0f172a;
}

.minimum-notice {
  margin-top: 24px;
  padding: 16px 20px;
  background: #eef2ff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1e40af;
  font-size: 0.95rem;
  border: 1px solid #2563eb20;
}

.minimum-notice i {
  font-size: 1.1rem;
}

/* security footer */
.security-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  padding: 24px;
  background: #f8fafc;
  border-radius: 40px;
  border: 1px solid #e2e8f0;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 0.9rem;
}

.security-item i {
  color: #2563eb;
}

/* ----- DEVELOPER FORM SECTION ----- */
.developer-section {
  margin-top: 60px;
  padding: 48px;
  background: white;
  border-radius: 48px;
  border: 1px solid rgba(203, 213, 225, 0.4);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.02);
  position: relative;
}

.developer-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.developer-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(145deg, #eef2ff, #e6ecfe);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.developer-icon i {
  font-size: 1.8rem;
  color: #2563eb;
}

.developer-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.developer-header p {
  color: #475569;
  font-size: 0.95rem;
}

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

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

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
}

.form-label i {
  color: #2563eb;
}

.form-input {
  padding: 18px 24px;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  font-size: 1rem;
  transition: all 0.2s;
  background: white;
  font-family: 'Inter', sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
  color: #94a3b8;
}

.complete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 32px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  border: none;
  border-radius: 40px;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.complete-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 30px -8px rgba(37, 99, 235, 0.3);
}

.complete-btn i {
  font-size: 1.2rem;
}

.form-footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 8px;
}

.form-footnote i {
  color: #2563eb;
}

/* ----- CUSTOM ALERT MODAL ----- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 48px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 50px 70px -20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(203, 213, 225, 0.4);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, #eef2ff, #e6ecfe);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.modal-icon i {
  font-size: 2.5rem;
}

.modal-icon.success i {
  color: #059669;
}

.modal-icon.error i {
  color: #dc2626;
}

.modal-icon.warning i {
  color: #d97706;
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.modal-message {
  color: #475569;
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.modal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 48px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  border: none;
  border-radius: 40px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 30px -8px rgba(37, 99, 235, 0.3);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  20% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

/* responsive */
@media (max-width: 900px) {
  .payment-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .payment-header h2 {
    font-size: 2.5rem;
  }

  .tab-content {
    padding: 32px;
  }

  .security-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .back-button {
    position: relative;
    top: 0;
    margin-bottom: 20px;
    display: inline-flex;
  }

  .payment-header {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .developer-section {
    padding: 32px;
  }
}

@media (max-width: 600px) {
  .payment-page {
    padding: 40px 0;
  }

  .tab-btn {
    padding: 16px 8px;
    font-size: 0.9rem;
  }

  .tab-btn i {
    font-size: 1.1rem;
  }

  .tab-content {
    padding: 24px;
  }

  .qrcode-container {
    width: 200px;
    height: 200px;
  }

  .developer-header {
    flex-direction: column;
    text-align: center;
  }

  .developer-header h3 {
    font-size: 1.5rem;
  }

  .modal-content {
    padding: 32px 24px;
  }
}