:root {
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --primary-accent: #25d366; /* WhatsApp Green */
  --primary-gradient: linear-gradient(135deg, #25d366 0%, #075e54 100%);
  --orange-accent: #f97316; /* App Orange highlights */
  --orange-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --success: #10b981;
  --error: #ef4444;
  --info: #0284c7;
}

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

body {
  font-family: 'Poppins', 'Outfit', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 211, 102, 0.05) 0, transparent 50%),
    radial-gradient(at 100% 100%, rgba(249, 115, 22, 0.05) 0, transparent 50%);
}

.main-wrapper {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 10;
}

/* Header Styling */
.header {
  text-align: center;
  margin-top: 10px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 12px;
  animation: float 4s ease-in-out infinite;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.08);
  cursor: pointer;
}

.logo:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.4);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2);
}

.logo-img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1.5px solid rgba(249, 115, 22, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.logo:hover .logo-img {
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #075e54;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 3px 8px;
  border-radius: 20px;
  margin-left: 4px;
  transition: all 0.3s ease;
}

.logo:hover .logo-app-badge {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

.logo-app-badge i {
  font-size: 0.75rem;
  color: #00c853;
  transition: color 0.3s ease;
}

.logo:hover .logo-app-badge i {
  color: #ffffff;
}

.header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

/* Grid Content */
.content-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 25px;
}

@media (max-width: 820px) {
  .content-container {
    grid-template-columns: 1fr;
  }
}

/* Card Styling */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(148, 163, 184, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 15px 30px rgba(148, 163, 184, 0.22);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.title-icon {
  color: #075e54;
}

/* Satbara Details Item */
.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 10px;
}

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

.detail-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

/* Manual Mode Section */
.manual-notice {
  font-size: 0.85rem;
  color: #d97706;
  margin-bottom: 15px;
  background: rgba(217, 119, 6, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid #d97706;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

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

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus {
  border-color: var(--orange-accent);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.1);
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

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

.phone-input-wrapper .country-code {
  padding: 0 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-right: 1px solid var(--border-light);
  background: #f8fafc;
}

.phone-input-wrapper input {
  border: none;
  background: transparent;
  flex: 1;
  padding: 12px 16px;
  color: var(--text-primary);
  outline: none;
}

.input-helper {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.required {
  color: var(--error);
}

/* Payment Summary */
.payment-summary-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.free-badge {
  color: var(--primary-accent);
  font-weight: 600;
  font-size: 0.8rem;
  background: rgba(37, 211, 102, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.divider {
  height: 1px;
  background: var(--border-light);
  margin: 12px 0;
}

.summary-row.total {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.total-amount {
  color: #075e54;
  font-weight: 700;
  font-size: 1.15rem;
}

/* Alert Boxes */
.alert-box {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 20px;
}

.alert-box.info {
  background: rgba(2, 132, 199, 0.05);
  border: 1px solid rgba(2, 132, 199, 0.15);
  color: #0369a1;
}

.alert-box.info .alert-icon {
  color: #0284c7;
  margin-top: 2px;
}

.alert-box.error {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.alert-box.error .alert-icon {
  color: var(--error);
  margin-top: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(7, 94, 84, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(7, 94, 84, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--orange-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

.spinner {
  font-size: 1.1rem;
}

/* Success status page styles */
.success-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
}

.success-icon {
  font-size: 2.5rem;
  color: #075e54;
}

.status-headline {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.status-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

/* Timeline/Progress Steps */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 35px;
  text-align: left;
  background: #f8fafc;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
}

.timeline-step {
  display: flex;
  gap: 15px;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.timeline-step.active {
  opacity: 1;
}

.step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-step.active .step-icon {
  background: rgba(249, 115, 22, 0.1);
  border-color: var(--orange-accent);
  color: var(--orange-accent);
}

.timeline-step.completed .step-icon {
  background: rgba(37, 211, 102, 0.1);
  border-color: #25d366;
  color: #075e54;
}

.step-details {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

/* Loading animations */
.pulse-glow {
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% { text-shadow: 0 0 2px rgba(37, 211, 102, 0.2); }
  50% { text-shadow: 0 0 8px rgba(37, 211, 102, 0.6); }
  100% { text-shadow: 0 0 2px rgba(37, 211, 102, 0.2); }
}

/* Footer Section */
.footer {
  text-align: center;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* App Promotion Card styles */
.app-promo-card {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}

.app-promo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.phone-mockup {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 50%;
  margin-bottom: 5px;
}

.promo-app-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.25);
  border: 2px solid rgba(249, 115, 22, 0.4);
  transition: transform 0.3s ease;
}

.phone-mockup:hover .promo-app-logo {
  transform: scale(1.06);
}

.mockup-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: var(--orange-gradient);
  font-size: 0.7rem;
  color: #fff;
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.app-promo-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

.promo-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 500px;
}

/* Playstore Button */
.playstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 24px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 10px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.playstore-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.playstore-btn .play-icon {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #25d366 0%, #075e54 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.play-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.play-btn-text span {
  font-size: 0.65rem;
  color: #a8a29e;
  letter-spacing: 1px;
}

.play-btn-text strong {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  margin-top: 15px;
}

@media (max-width: 580px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.step-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 16px 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #075e54;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.step-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
}

/* Float Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Sticky Pay Button Bar for Mobile View */
@media (max-width: 768px) {
  .sticky-pay-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(37, 211, 102, 0.3);
    padding: 12px 16px;
    z-index: 9999;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
  }

  .sticky-pay-wrapper .btn-primary {
    width: 100%;
    margin: 0;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
    font-size: 1.05rem;
    padding: 14px 20px;
  }

  body {
    padding-bottom: 85px !important;
  }
}
