@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg-color: #0b0b0e;
  --panel-bg: rgba(25, 25, 30, 0.6);
  --primary: #5236ab;
  --primary-glow: rgba(82, 54, 171, 0.5);
  --text-color: #ffffff;
  --text-muted: #a1a1aa;
  --success: #10b981;
  --error: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(82, 54, 171, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(37, 99, 235, 0.1), transparent 25%);
}

.checkout-container {
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
  position: relative;
  z-index: 10;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.brand {
  margin-bottom: 30px;
}

.brand h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand h1 span {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

.checkout-details {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.02);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.detail-row:last-child {
  margin-bottom: 0;
  padding-top: 15px;
  border-top: 1px dashed rgba(255,255,255,0.1);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--primary);
}

.label {
  color: var(--text-muted);
}

.value {
  color: #fff;
  font-weight: 600;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px var(--primary-glow);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.status-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
}

.btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 16px 30px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px var(--primary-glow);
}

.btn:hover {
  background: #6246bb;
  transform: translateY(-2px);
  box-shadow: 0 15px 25px var(--primary-glow);
}

.error-message {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
  padding: 15px;
  border-radius: 12px;
  margin-top: 20px;
  display: none;
}

.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.secure-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
}
