html { scroll-behavior: smooth; }

/* Extra UI for clone: mobile menu, filters, modal, FAQ, timers */
.nav-link.is-active { color: var(--foreground); }

.mobile-drawer {
  display: none;
}
.mobile-drawer.open {
  display: block;
}

.filter-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(21, 23, 38, 0.45);
  backdrop-filter: blur(6px);
}
.filter-sheet.open { display: flex; align-items: flex-end; }
.filter-sheet-panel {
  width: 100%;
  max-height: 82vh;
  overflow: auto;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 16px 16px 28px;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
}

.coupon-card.is-hidden { display: none !important; }

.vote-btn.is-up { color: #16a34a; }
.vote-btn.is-down { color: #ea580c; }

.fdm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(21, 12, 48, 0.55);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.fdm-overlay.open { display: flex; }
.fdm-card {
  position: relative;
  width: min(920px, 94vw);
  max-height: 94vh;
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 60px -16px rgba(124, 77, 255, 0.55), 0 0 0 1px rgba(168, 85, 247, 0.18);
}
.fdm-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  display: grid;
  place-items: center;
  color: #4b5563;
  box-shadow: 0 4px 12px rgba(15,23,42,0.12);
}
.fdm-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}
@media (max-width: 767px) {
  .fdm-grid { grid-template-columns: 1fr; }
  .fdm-visual { min-height: 180px; }
}

.faq-item + .faq-item { border-top: 1px solid #E4E1F1; }
.faq-item button[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-item .faq-body { display: none; }
.faq-item.open .faq-body { display: block; }

.footer-acc-body { display: none; }
.footer-acc.open .footer-acc-body { display: block; }
.footer-acc.open svg { transform: rotate(180deg); }

.back-to-top.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: #151726;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.type-btn.is-active {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 20%, transparent);
}
.type-btn.is-active .type-count {
  background: var(--primary);
  color: var(--primary-foreground);
}

.kind-btn.is-active {
  background: var(--accent);
  color: var(--primary);
}
.kind-btn.is-active .kind-bar { display: block; }
.kind-btn.is-active .kind-count {
  background: var(--primary);
  color: var(--primary-foreground);
}

.legal-prose h2 { font-size: 1.25rem; font-weight: 800; margin: 1.75rem 0 .75rem; color: #151726; }
.legal-prose p, .legal-prose li { color: #6B7280; line-height: 1.7; font-size: 14px; }
.legal-prose ul { margin: .5rem 0 1rem 1.25rem; list-style: disc; }
.legal-prose a { color: var(--primary); font-weight: 600; }
