/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #e8f2fc 0%, #e1effe 50%, #f0f7ff 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  color: #1e293b;
}

/* Canvas hiệu ứng cánh hoa rơi nền */
#petalCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* Khung căn giữa trang */
.page-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 490px;
  padding: 20px 16px;
  display: flex;
  justify-content: center;
}

/* Thẻ thông tin Card UI */
.promo-card {
  width: 100%;
  background: #ffffff;
  border-radius: 28px;
  padding: 34px 28px;
  box-shadow: 
    0 20px 50px -10px rgba(37, 99, 235, 0.12),
    0 10px 25px -5px rgba(0, 0, 0, 0.04),
    0 0 1px 1px rgba(255, 255, 255, 0.8) inset;
  border: 1px solid rgba(226, 232, 240, 0.8);
  animation: cardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header tiến độ */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.status-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: 0.6px;
}

.status-percent {
  font-size: 1.15rem;
  font-weight: 800;
  color: #2563eb;
}

/* Tiêu đề & phụ đề */
.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 20px;
}

/* Thanh tiến trình phân cách */
.progress-line-container {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
}

.progress-line {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 999px;
  animation: progressPulse 2.5s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(37, 99, 235, 0.6));
  }
}

/* Danh sách các bước kiểm tra */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: #ffffff;
  border: 1.5px solid #edf2f7;
  border-radius: 16px;
  transition: all 0.25s ease;
}

.check-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Đèn tín hiệu trạng thái xanh lá */
.status-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-indicator .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

.item-info {
  display: flex;
  flex-direction: column;
}

.item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.item-sub {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

.item-badge {
  font-size: 0.92rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  margin-left: 10px;
}

.badge-complete {
  font-size: 0.88rem;
}

/* Hộp thông báo sẵn sàng */
.alert-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 13px 16px;
  text-align: center;
  margin-bottom: 20px;
}

.alert-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #15803d;
}

/* Nút CTA chính */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 22px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 
    0 10px 24px -4px rgba(37, 99, 235, 0.45),
    0 4px 8px -2px rgba(37, 99, 235, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  animation: pulseGlow 2.5s infinite;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  animation: shineSweep 4s infinite 1s;
}

@keyframes shineSweep {
  0% { left: -100%; }
  25% { left: 150%; }
  100% { left: 150%; }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 12px 28px -2px rgba(37, 99, 235, 0.6);
    transform: scale(1.015);
  }
}

.cta-button:hover {
  background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px -4px rgba(37, 99, 235, 0.55);
}

.cta-button:active {
  transform: translateY(1px) scale(0.99);
}

.cta-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

.cta-button:hover .cta-icon {
  transform: translateX(4px);
}

/* Tối ưu hiển thị cho điện thoại (Mobile Responsive) */
@media (max-width: 480px) {
  .page-container {
    padding: 16px 12px;
  }

  .promo-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .card-title {
    font-size: 1.18rem;
  }

  .card-desc {
    font-size: 0.82rem;
    margin-bottom: 16px;
  }

  .check-item {
    padding: 11px 14px;
    gap: 8px;
  }

  .item-left {
    gap: 10px;
  }

  .item-title {
    font-size: 0.88rem;
  }

  .item-sub {
    font-size: 0.75rem;
  }

  .item-badge {
    font-size: 0.82rem;
  }

  .cta-button {
    font-size: 0.95rem;
    padding: 14px 18px;
  }
}
