/* ===== CHECKOUT PAGE ===== */
.checkout-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: linear-gradient(135deg, #f0f4ff 0%, #fafafa 50%, #fff5f0 100%);
}
.checkout-container {
  width: 100%;
  max-width: 600px;
}

/* Progress Steps */
.co-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  gap: 0;
}
.co-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.co-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 2.5px solid var(--border);
  background: var(--card);
  color: var(--muted);
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}
.co-step.done .co-step-num {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
  box-shadow: 0 4px 12px rgba(22,163,106,0.3);
}
.co-step.active .co-step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 4px 16px rgba(51,102,204,0.35);
  transform: scale(1.15);
}
.co-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.co-step.active .co-step-label { color: var(--primary); }
.co-step.done .co-step-label { color: var(--success); }

.co-step-line {
  width: 40px;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  margin: 0 4px;
  margin-bottom: 22px;
  transition: background 0.4s;
}
.co-step-line.done { background: var(--success); }

/* Card */
.co-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  text-align: center;
}

/* Icon */
.co-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.co-icon-wrap.pulse .co-icon-circle {
  animation: iconPulse 2s ease-in-out infinite;
}
.co-icon-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: linear-gradient(135deg, rgba(51,102,204,0.1), rgba(51,102,204,0.05));
  border: 2px solid rgba(51,102,204,0.15);
}
.co-icon-circle.success {
  background: linear-gradient(135deg, rgba(22,163,106,0.15), rgba(22,163,106,0.05));
  border-color: rgba(22,163,106,0.2);
}

/* Title */
.co-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.co-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Product Card */
.co-product-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}
.co-product-card img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}
.co-prod-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  margin-bottom: 4px;
}
.co-prod-price {
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
}

/* Success */
.co-success-info {
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(22,163,106,0.08), rgba(22,163,106,0.02));
  border: 1px solid rgba(22,163,106,0.15);
  border-radius: 14px;
}
.co-success-total {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 4px;
}
.co-order-id {
  font-size: 14px;
  color: var(--muted);
}

/* Total Bar */
.co-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--secondary);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.co-total-bar span:first-child {
  color: var(--muted);
  font-weight: 500;
}
.co-total-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

/* Timer */
.co-timer {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.co-timer span {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.co-timer .ready-text {
  color: var(--success);
  font-size: 14px;
}
.co-timer-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.co-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 6px;
  width: 100%;
}

/* Button */
.co-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}
.co-btn.waiting {
  background: var(--secondary);
  color: var(--muted);
  cursor: not-allowed;
}
.co-btn.ready {
  background: linear-gradient(135deg, var(--primary), #5577dd);
  color: #fff;
  box-shadow: 0 6px 20px rgba(51,102,204,0.3);
}
.co-btn.ready:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(51,102,204,0.4);
}
.co-btn.success {
  background: linear-gradient(135deg, var(--success), #22b05a);
  color: #fff;
  box-shadow: 0 6px 20px rgba(22,163,106,0.3);
}
.co-btn.success:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(22,163,106,0.4);
}

/* Animations */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Responsive */
@media (max-width: 640px) {
  .co-card { padding: 28px 20px; }
  .co-title { font-size: 22px; }
  .co-step-label { display: none; }
  .co-step-line { width: 24px; margin-bottom: 0; }
  .co-step-num { width: 34px; height: 34px; font-size: 12px; }
}

/* ===== Buy Now Button (product page) ===== */
.product-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-buy-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e8622a, #dc2626);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  box-shadow: 0 4px 16px rgba(232,98,42,0.25);
}
.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,98,42,0.4);
}
