.submit-guest-post-page .sm-marketplace { margin-bottom: 2rem; }

.sm-marketplace { margin-bottom: 2rem; }
.sm-h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.sm-intro { margin-bottom: 1rem; color: hsl(var(--muted-foreground)); }
.sm-filters {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Search + sort row — parity shadcn Input + SelectTrigger (SiteSelection.tsx) */
.sm-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.sm-search-wrap {
  position: relative;
  flex: 1 1 12rem;
  min-width: 0;
}
.sm-search-icon {
  position: absolute;
  left: 0.5rem;
  top: 0.625rem;
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}
.sm-search-input {
  display: flex;
  width: 100%;
  height: 2.5rem;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.sm-search-input::placeholder {
  color: hsl(var(--muted-foreground));
}
.sm-search-input:focus-visible {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring) / 0.35);
}
.sm-sort-wrap {
  position: relative;
  flex: 0 0 11.25rem;
  width: 11.25rem;
  max-width: 100%;
}
.sm-sort-select {
  display: flex;
  align-items: center;
  width: 100%;
  height: 2.5rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.sm-sort-select:focus-visible {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring) / 0.35);
}
.sm-sort-chevron {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: hsl(var(--foreground));
  opacity: 0.5;
  pointer-events: none;
}
/* Filter by niche — parity shadcn Badge outline / default (SiteSelection.tsx) */
.sm-tag-filters {
  margin-bottom: 0;
}
.sm-tag-filters-label {
  display: block;
  margin: 0 0 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
}
.sm-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sm-tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  padding: 0.125rem 0.625rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  color: hsl(var(--foreground));
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.sm-tag-pill:hover {
  background: rgb(60 131 246 / 0.9);
  border-color: transparent;
  color: #fff;
}
.sm-tag-pill.is-active {
  border-color: transparent;
  background: var(--primary-hex);
  color: #fff;
}
.sm-tag-pill.is-active:hover {
  background: rgb(60 131 246 / 0.8);
}
/* Dual range slider — parity Radix Slider (SiteSelection.tsx) */
.sm-range {
  margin: 0;
}
.sm-range-label {
  display: block;
  margin: 0 0 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
}
.sm-dual-range {
  position: relative;
  width: 100%;
  height: 1.25rem;
  touch-action: none;
  user-select: none;
  cursor: pointer;
}
.sm-dual-range-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--secondary));
  overflow: hidden;
}
.sm-dual-range-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 9999px;
  background: var(--primary-hex);
}
.sm-dual-range-thumb {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  padding: 0;
  border: 2px solid var(--primary-hex);
  border-radius: 50%;
  background: hsl(var(--background));
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
  transition: box-shadow 0.15s ease;
}
.sm-dual-range-thumb:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring) / 0.35);
}
.sm-dual-range-thumb.is-dragging {
  cursor: grabbing;
  z-index: 3;
}
.sm-sites-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .sm-sites-grid { grid-template-columns: 1fr 1fr; }
}
.sm-sites-grid.is-loading {
  pointer-events: none;
}

/* Invisible placeholders — reserve height only (CLS), no visible UI */
.sm-site-card-skeleton {
  opacity: 0;
  pointer-events: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  animation: none;
}
.sm-site-card-skeleton.featured-card,
.sm-site-card-skeleton.best-seller-card {
  border-color: transparent;
  animation: none;
}
.sm-skeleton-spacer {
  display: block;
  height: 13.75rem;
}

/* Soft card reveal */
@keyframes smCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sm-site-card-enter {
  animation: smCardFadeIn 0.45s ease-out both;
}
@media (prefers-reduced-motion: reduce) {
  .sm-site-card-enter {
    animation: none;
  }
}
/* Site cards — parity SiteSelection.tsx + shadcn Card (submit page) */
.sm-site-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--card));
  color: hsl(var(--card-foreground, var(--foreground)));
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
html.dark .submit-guest-post-page .sm-site-card {
  --card: 0 0% 0%;
  background: #000 !important;
}
.sm-site-card:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.sm-site-card.is-selected {
  box-shadow: 0 0 0 2px var(--primary-hex);
}
.sm-site-card.featured-card {
  border: 2px solid #22c55e;
  animation: featuredPulse 2s infinite;
}
.sm-site-card.best-seller-card {
  border: 2px solid #facc15;
  animation: bestSellerPulse 2s infinite;
}
.sm-site-card.is-selected.featured-card,
.sm-site-card.is-selected.best-seller-card {
  box-shadow: 0 0 0 2px var(--primary-hex), 0 0 0 4px rgb(60 131 246 / 0.25);
}

.sm-site-card-header {
  padding: 1.5rem 1.5rem 0.5rem;
  background: transparent;
  color: hsl(var(--foreground));
}
.sm-site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.sm-site-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}
.sm-favicon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.sm-site-name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sm-badges {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}
.sm-badge-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.sm-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  white-space: nowrap;
}
.sm-badge-featured {
  background: #22c55e;
  color: #fff;
  border: 1px solid #16a34a;
}
.sm-badge-bestseller {
  background: #facc15;
  color: #581c87;
}
.sm-badge-premium {
  background: #9333ea;
  color: #fff;
}
.sm-featured-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: help;
}
.sm-featured-info svg {
  display: block;
}

.sm-site-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 1.5rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  background: transparent;
}
.sm-site-url-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.sm-site-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1rem;
  background: linear-gradient(to right, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}
.sm-site-url:hover {
  text-decoration: underline;
}
.sm-rating {
  flex-shrink: 0;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #eab308;
  white-space: nowrap;
}

.sm-site-country {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
}
.sm-site-country-global {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.sm-country-label {
  color: #4b5563;
}
html.dark .sm-country-label {
  color: #9ca3af;
}
.sm-country-code {
  font-weight: 500;
  color: hsl(var(--foreground));
}
.sm-country-pct {
  color: #6b7280;
}
.sm-globe {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  background: #6b7280;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sm-metrics {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
}
.sm-metric {
  font-size: 0.75rem;
  line-height: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: #f3f4f6;
  color: hsl(var(--foreground));
}
html.dark .sm-metric {
  background: #374151;
}
.sm-metric strong {
  margin-left: 0.25rem;
  font-weight: 700;
}

.sm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.5rem 0;
}
.sm-site-card .sm-badge-tag {
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  border: 1px solid transparent;
}

.sm-site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
}
.sm-select-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}
.sm-site-checkbox {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-content: center;
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  border: 1px solid var(--primary-hex);
  border-radius: 0.125rem;
  background-color: hsl(var(--card));
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
html.dark .submit-guest-post-page .sm-site-checkbox {
  background-color: #000;
}
.sm-site-checkbox:checked {
  background-color: var(--primary-hex);
  border-color: var(--primary-hex);
}
.sm-site-checkbox:checked::after {
  content: "";
  width: 0.2rem;
  height: 0.45rem;
  margin-top: -1px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.sm-site-checkbox:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring) / 0.35);
}
.sm-price {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
}

.sm-muted { color: hsl(var(--muted-foreground)); }
.sm-pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; }
/* Floating cart — parity ShoppingCart.tsx + shadcn Card */
.sm-floating-cart {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 40;
  width: 280px;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--card));
  color: hsl(var(--card-foreground, var(--foreground)));
  transition: width 0.3s ease, box-shadow 0.3s ease;
}
.sm-floating-cart:not(.is-minimized):not(.hidden) {
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
html.dark .sm-floating-cart.is-submit-cart {
  --card: 0 0% 0%;
  background: #000 !important;
}
.sm-floating-cart.hidden {
  display: none;
}
.sm-floating-cart.is-minimized {
  width: auto;
  height: 3rem;
  min-width: 0;
  overflow: hidden;
}
.sm-floating-cart-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.sm-floating-cart-toggle:hover {
  background: hsl(var(--muted));
}

.sm-floating-cart-header {
  display: flex;
  flex-shrink: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0.5rem;
}
.sm-floating-cart-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
}
.sm-floating-cart-minimize {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 0.25rem;
  background: transparent;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.sm-floating-cart-minimize:hover {
  background: hsl(var(--muted));
}

.sm-floating-cart-content {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 0 1.5rem 1.5rem;
}
/* Fixed h-48 scroll viewport — parity Radix ScrollArea in ShoppingCart */
.sm-floating-cart-scroll-wrap {
  position: relative;
  flex-shrink: 0;
  height: 12rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.sm-floating-cart-scroll {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 0.75rem;
  line-height: 1rem;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
}
.sm-floating-cart-scroll::-webkit-scrollbar {
  width: 0.625rem;
}
.sm-floating-cart-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.sm-floating-cart-scroll::-webkit-scrollbar-thumb {
  border: 1px solid transparent;
  border-radius: 9999px;
  background: hsl(var(--border));
  background-clip: padding-box;
}
.sm-floating-cart-scroll::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground));
  background-clip: padding-box;
}
.sm-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.sm-cart-name {
  flex: 1;
  min-width: 0;
  max-width: 11.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--foreground));
}
.sm-cart-row-end {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}
.sm-cart-price {
  margin-right: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  color: hsl(var(--foreground));
}
.sm-cart-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: none;
  border-radius: 0.25rem;
  background: transparent;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.sm-cart-remove:hover {
  background: hsl(var(--muted));
}
.sm-cart-icon {
  display: block;
  flex-shrink: 0;
}
.sm-cart-divider {
  margin: 0.75rem 0;
  border-top: 1px solid hsl(var(--border));
}
.sm-floating-cart-total {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid hsl(var(--border));
}
.sm-floating-cart-total-label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
}
.sm-floating-cart-total-value {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
}

@keyframes bestSellerPulse {
  0% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(250, 204, 21, 0); }
  100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
}
@keyframes featuredPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
