/* BigFire 共用認領彈窗樣式
   - 適用於店家頁 (vanilla HTML) 與行銷站 (Next.js)
   - 視覺對齊 src/components/sections/pricing.tsx 內的 ClaimModal 設計
*/

.bf-cm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans TC", sans-serif;
}

.bf-cm-overlay.bf-cm-open {
  display: flex;
  opacity: 1;
}

.bf-cm-card {
  position: relative;
  width: 100%;
  max-width: 32rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.94);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.bf-cm-overlay.bf-cm-open .bf-cm-card {
  transform: translateY(0) scale(1);
}

/* Header (gradient) */
.bf-cm-head {
  position: relative;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #06b6d4 100%);
}

.bf-cm-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.bf-cm-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.bf-cm-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.bf-cm-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bf-cm-tag svg {
  width: 0.85rem;
  height: 0.85rem;
}

.bf-cm-title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
}

.bf-cm-price {
  margin-left: 0.5rem;
  font-size: 3rem;
  color: #fff;
}

.bf-cm-sub {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

@media (min-width: 640px) {
  .bf-cm-title {
    font-size: 2.25rem;
  }
  .bf-cm-sub {
    font-size: 1rem;
  }
}

/* Body */
.bf-cm-body {
  padding: 1.75rem 2rem;
}

/* Stage switcher (Stage 1 = 199/月 介紹; Stage 2 = email CTA) */
.bf-cm-stage {
  display: none;
}

.bf-cm-stage.bf-cm-active {
  display: block;
}

.bf-cm-warm {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #faf5ff 0%, #ecfeff 100%);
  border: 1px solid #ede9fe;
  color: #4c1d95;
  font-size: 0.95rem;
  line-height: 1.7;
}

.bf-cm-warm strong {
  color: #6d28d9;
}

.bf-cm-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bf-cm-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.375rem 0;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.55;
}

.bf-cm-list svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.18rem;
  color: #7c3aed;
}

/* Action buttons */
.bf-cm-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 640px) {
  .bf-cm-actions {
    flex-direction: row;
  }
}

.bf-cm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

.bf-cm-btn:active {
  transform: translateY(1px);
}

.bf-cm-btn-primary {
  flex: 1;
  color: #fff;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.35);
}

.bf-cm-btn-primary:hover {
  box-shadow: 0 15px 30px -5px rgba(124, 58, 237, 0.45);
}

.bf-cm-btn-secondary {
  background: #fff;
  color: #334155;
  border-color: #e2e8f0;
}

.bf-cm-btn-secondary:hover {
  background: #f8fafc;
}
