:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: rgba(2, 132, 199, 0.12);
  --primary-glow: rgba(56, 189, 248, 0.35);
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --success-glow: rgba(16, 185, 129, 0.3);
  
  --bg-main: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.94);
  --border-card: rgba(226, 232, 240, 0.85);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  
  --radius-card: 24px;
  --radius-sm: 12px;
  --radius-pill: 9999px;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
}

/* Background gradient blobs */
.background-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: floatBlobs 16s ease-in-out infinite alternate;
}

.blob-1 {
  width: 450px;
  height: 450px;
  top: -100px;
  left: -80px;
  background: radial-gradient(circle, #38bdf8 0%, #0284c7 60%, transparent 80%);
}

.blob-2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -100px;
  background: radial-gradient(circle, #7dd3fc 0%, #38bdf8 50%, transparent 75%);
  animation-delay: -6s;
}

.blob-3 {
  width: 320px;
  height: 320px;
  top: 40%;
  left: 55%;
  background: radial-gradient(circle, #bae6fd 0%, #e0f2fe 60%, transparent 80%);
  opacity: 0.4;
  animation-delay: -11s;
}

@keyframes floatBlobs {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, 30px) scale(1.06); }
  100% { transform: translate(-20px, 15px) scale(0.96); }
}

/* Page Wrapper */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header / Brand */
.brand-header {
  margin-bottom: 24px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.brand-badge:hover {
  transform: translateY(-1px);
}

.flag-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.brand-name {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #334155;
  font-weight: 600;
}

.brand-name strong {
  color: var(--primary);
  font-weight: 800;
  margin-left: 2px;
}

/* Card Container */
.card-container {
  width: 100%;
}

.success-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 44px 36px 36px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: cardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Check Animated Icon */
.icon-wrapper {
  position: relative;
  width: 86px;
  height: 86px;
  margin-bottom: 24px;
}

.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--success-glow);
  opacity: 0.6;
  animation: pulseEffect 2.4s infinite cubic-bezier(0.24, 0, 0.38, 1);
}

@keyframes pulseEffect {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

.icon-circle {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 20px -4px rgba(16, 185, 129, 0.45);
}

.check-icon {
  width: 52px;
  height: 52px;
}

.check-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2.5;
  stroke-miterlimit: 10;
  stroke: rgba(255, 255, 255, 0.3);
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.check-path {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 4;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: stroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

/* Badge Status */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--success-bg);
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* Titles */
.card-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.card-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 440px;
}

/* Checkout Summary Box */
.checkout-summary {
  width: 100%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 28px;
  text-align: left;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed #cbd5e1;
  margin-bottom: 12px;
}

.summary-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-muted);
}

.summary-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(2, 132, 199, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.summary-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.item-title {
  color: var(--text-muted);
  font-weight: 500;
}

.item-val {
  color: var(--text-main);
  font-weight: 600;
}

.val-success {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #059669;
  font-weight: 700;
}

/* Buttons */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

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

.btn-secondary {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* Info Note */
.card-footer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: left;
}

.card-footer-info svg {
  flex-shrink: 0;
  stroke: var(--text-subtle);
}

/* Page Footer */
.page-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-subtle);
}

.page-footer p {
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

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

  .success-card {
    padding: 32px 20px 24px;
    border-radius: 20px;
  }

  .card-title {
    font-size: 22px;
  }

  .card-subtitle {
    font-size: 13.5px;
  }

  .checkout-summary {
    padding: 14px 16px;
  }
}
