/* Small custom styles that sit on top of Tailwind. */

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 50% -10%, rgba(24, 119, 242, 0.28), transparent 60%),
    radial-gradient(40rem 25rem at 90% 30%, rgba(34, 211, 238, 0.08), transparent 60%);
}

/* Reusable card */
.card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(69, 153, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.step-num {
  display: grid;
  place-items: center;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 0.75rem;
  background: #1877f2;
  color: #fff;
  font-weight: 700;
}

/* FAQ accordion */
.faq {
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 0 1.25rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.25rem;
  color: #4599ff;
  transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 1rem; font-size: 0.875rem; color: #94a3b8; line-height: 1.6; }

/* Loading spinner */
.spinner {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Result animation */
.fade-in { animation: fadeIn 0.35s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  border-radius: 0.75rem;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
  color: #fff;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Ad slots: invisible (no gap) until an ad is placed inside */
.ad-slot:empty { display: none !important; }
.ad-slot.ad-filled, .ad-slot:not(:empty) { text-align: center; }
.ad-slot:not(:empty)::before {
  content: 'Advertisement';
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}
.ad-side { position: fixed; top: 7rem; z-index: 5; }
