/* ---------- Shared basics ---------- */
.fb-cta-wrap { text-align:center; margin: 20px 0; }

/* Premium buttons: black base, red hover */
.btn-primary, .fb-next, .fb-back, .fb-finish, .fb-cta-btn {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transition: background 0.25s ease, transform 0.05s ease, color 0.25s ease;
  cursor: pointer;
}
.btn-primary:hover, .fb-next:hover, .fb-back:hover, .fb-finish:hover, .fb-cta-btn:hover {
  background: #d6336c;
  color: #fff;
}
.fb-cta-btn:hover .fb-heart {
  color: #000 !important; /* force black on hover */
}

/* CTA heart pulse */
.fb-heart { display:inline-block; animation:pulse 1.2s infinite; color: #d6336c; }
@keyframes pulse { 0%,100%{ transform:scale(1);} 50%{ transform:scale(1.15);} }

/* ---------- Modal ---------- */
.fb-modal { position:fixed; inset:0; background:rgba(0,0,0,0.5); display:none; align-items:center; justify-content:center; z-index:9999; padding:10px; }
.fb-modal.open { display:flex; }
.fb-modal-content {
  background:#fff;
  width:100%;
  max-width:640px;
  border-radius:16px;
  padding:24px;
  position:relative;
  box-shadow:0 10px 40px rgba(0,0,0,0.2);
  overflow:hidden;
}
.fb-modal-content.fb-modal-lg {
  max-width:800px;
  min-height:500px;
  padding-top:60px;
}
@media (max-width: 768px) {
  .fb-modal-content { width: 94%; padding: 16px; }
}

/* Close button */
.fb-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #000;
  color: #fff;
  font-size: 22px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background 0.25s ease;
}
.fb-modal-close:hover { background: #d6336c; }

/* Logo */
.fb-logo-wrap { text-align:center; margin-bottom:16px; }
#fb-brand-logo { max-height:60px; }

/* ---------- Timeline hearts ---------- */
.fb-timeline { position:relative; display:flex; align-items:center; justify-content:space-between; margin: 10px 0 20px; }
.fb-tl-line { position:absolute; left:8%; right:8%; height:2px; background:#f1d3dc; top:50%; transform:translateY(-50%); }
.fb-tl-step { position:relative; z-index:1; width:28px; height:28px; display:flex; align-items:center; justify-content:center; }
.fb-tl-step .fb-tl-heart { font-size:22px; color:#000 !important; display:block; }
.fb-tl-step.active .fb-tl-heart { color:#d6336c !important; text-shadow:0 0 6px rgba(214,51,108,0.35); }

/* ---------- Steps and fields ---------- */
.fb-step { display:none; }
.fb-step[data-step="1"] { display:block; text-align:center; }
.fb-field { display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }
.fb-field input { padding:12px; border:1px solid #e6e6e6; border-radius:10px; }
.fb-nav { display:flex; justify-content:space-between; gap:10px; margin-top:14px; }

/* ---------- Final step names styling ---------- */
.fb-summary {
  font-size: 1.4em;
  font-weight: bold;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.fb-summary-heart { color: #d6336c; font-size: 1.4em; }

/* ---------- Celebration hearts ---------- */
.fb-floating-hearts-wrap { position: relative; height: 110px; overflow: hidden; margin-top: 8px; }
.fb-floating-heart {
  position: absolute;
  bottom: -10px;
  font-size: 22px;
  color: #d6336c;
  animation: floatUp 4.2s ease-in forwards;
}
@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0.9; }
  100% { transform: translateY(-120px) scale(1.4); opacity: 0; }
}

/* ---------- Toast notification (fixed above modal) ---------- */
.fb-toast {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #000;
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999999;
}
.fb-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.fb-toast::before {
  content: "❤";
  margin-right: 8px;
  color: #d6336c;
}

/* ---------- Admin Styles ---------- */
.fb-actions { display:flex; justify-content:space-between; align-items:center; margin:16px 0; gap:16px; }
#fb-search-id { width:240px; }
#fb-profiles-body .button.fb-edit { background:#0073aa; border-color:#0073aa; color:#fff; }
#fb-profiles-body .button.fb-edit:hover { background:#006296; border-color:#006296; }
#fb-profiles-body .button.fb-delete { background:#d63638; border-color:#d63638; color:#fff; }
#fb-profiles-body .button.fb-delete:hover { background:#b42d2e; border-color:#b42d2e; }
#fb-search-btn.button.fb-search-btn { background:#000; color:#fff; border-color:#000; }
#fb-search-btn.button.fb-search-btn:hover { background:#d6336c; border-color:#d6336c; }
#fb-reset-btn.button.fb-reset-btn { background:#fff; color:#000; border:1px solid #000; }
#fb-reset-btn.button.fb-reset-btn:hover { background:#000; color:#fff; }
.fb-modal .fb-one-col { max-width:560px; }
.fb-one-col .fb-field input { width:100%; }
.fb-modal .fb-modal-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:12px; }
