/* Page styles for marketplace.html (username market: ticker, search/filters,
   handle grid, pagination, SMM strip). Shared tokens/reset/base navbar/footer
   live in base.css; this file holds the fixed translucent navbar override and
   the marketplace-specific components. */

/* Skeleton-bar widths (loading placeholders) — moved off inline style=. */
.skel-w12 {
  width: 12%;
  height: 11px;
}
.skel-w13 {
  width: 13%;
  height: 11px;
}
.skel-w14 {
  width: 14%;
  height: 11px;
}
.skel-w15 {
  width: 15%;
  height: 11px;
}
.skel-w16 {
  width: 16%;
  height: 11px;
}
.skel-w35 {
  width: 35%;
  height: 11px;
}
.skel-w36 {
  width: 36%;
  height: 11px;
}
.skel-w38 {
  width: 38%;
  height: 11px;
}
.skel-w40 {
  width: 40%;
  height: 11px;
}
.skel-w42 {
  width: 42%;
  height: 11px;
}
.skel-w44 {
  width: 44%;
  height: 11px;
}
.skel-w48 {
  width: 48%;
  height: 11px;
}
.skel-w50 {
  width: 50%;
  height: 11px;
}
.skel-w52 {
  width: 52%;
  height: 11px;
}
.skel-w55 {
  width: 55%;
  height: 11px;
}
.skel-w60 {
  width: 60%;
  height: 11px;
}
.skel-w65 {
  width: 65%;
  height: 11px;
}

/* Filter-count row (replaces an inline display:flex). */
.count-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-shell,
.ticker-strip,
.hero,
.market-block,
.pagination,
.smm-strip,
footer {
  position: relative;
  z-index: 1;
}

/* ── Navbar: full-width bar, sticky (matches services so the hero spacing
   below the navbar is identical on both pages). ── */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
  display: flex;
  justify-content: center;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-nav {
  max-width: var(--page-width);
  width: 100%;
  height: 64px;
  padding: 0 24px;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-nav .brand {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  gap: 9px;
  color: var(--text);
}
.site-nav .brand-orb {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  background-size: 200% 200%;
  box-shadow: none;
  animation: orb-shift 9s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .site-nav .brand-orb {
    animation: none;
  }
}
.site-nav .brand-orb::before {
  display: none;
}
.site-nav .brand-orb::after {
  content: 'P';
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: var(--text-on-accent);
  -webkit-text-fill-color: var(--text-on-accent);
  text-shadow: none;
  background: none;
}
.site-links {
  gap: 4px;
  align-items: center;
}
.site-links a {
  color: var(--text-sub);
  font-weight: 400;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.site-links a:hover {
  color: var(--text);
  background: var(--ov-hover);
  border-color: transparent;
}
.site-links a.active {
  color: var(--accent-bright);
  background: var(--accent-weak);
  border-color: transparent;
}
.site-links a.active:hover {
  color: var(--accent-bright);
  background: rgb(99, 102, 241, 0.18);
}
.nav-account {
  margin-left: 6px;
}
.site-links .nav-account-signin {
  color: var(--btn-dark-text);
  background: var(--btn-dark-bg);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-btn);
  border: 1px solid var(--btn-dark-border);
  box-shadow: var(--btn-shadow);
}
.site-links .nav-account-signin:hover {
  color: var(--btn-dark-text);
  background: var(--btn-dark-bg-hover);
  border-color: var(--btn-dark-border-hover);
}
.nav-account-btn {
  background: var(--btn-dark-bg);
  border: 1px solid var(--border-hover);
  box-shadow: none;
  font-family: var(--font-sans);
}
.nav-account-btn:hover {
  background: var(--btn-dark-bg-hover);
}
.nav-account-dot {
  background: var(--accent);
  box-shadow: none;
}
.nav-account-menu {
  background: var(--menu-bg);
  border: 1px solid var(--border-hover);
  box-shadow: 0 18px 44px rgb(0, 0, 0, 0.5);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ── Ticker ── */
/* Slim username ticker strip — sits just under the shared navbar. */
.ticker-strip {
  width: min(calc(var(--page-width) - 48px), calc(100% - 96px));
  margin: 96px auto 0;
  height: 36px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
  overflow: hidden;
  animation: fade-down 0.5s ease both;
}

.ticker-logo {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 16px;
  text-decoration: none;
  transition: color 0.12s;
}
a.ticker-logo:hover {
  color: var(--text);
}

.ticker-vline {
  width: 1px;
  height: 14px;
  background: var(--border-hover);
  flex-shrink: 0;
}

.ticker-scroll {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  /* very subtle fade on both edges so items don't pop in/out abruptly */
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  );
}

/* Right-side static page nav */
.ticker-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  flex-shrink: 0;
}
.ticker-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  padding: 0 8px;
  text-decoration: none;
  transition: color 0.12s;
}
.ticker-nav a:hover {
  color: var(--text);
}
.ticker-nav a.active {
  color: var(--text);
}
.ticker-nav .ticker-sep {
  padding: 0;
}
@media (max-width: 580px) {
  .ticker-strip {
    width: calc(100% - 32px);
    margin: 84px auto 0;
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0 2px;
  transition: color 0.12s;
  cursor: pointer;
  flex-shrink: 0;
}

.ticker-item:hover {
  color: var(--text);
}

.ticker-sep {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--border-hover);
  padding: 0 10px;
  flex-shrink: 0;
  user-select: none;
}

/* ── Hero masthead ── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sub);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  box-shadow: none;
  animation: fade-up 0.55s 0.12s ease both;
}
.hero-label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
}

.hero h1 {
  font-family: var(--font-hero);
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  min-height: 1.1em;
  animation: fade-up 0.55s 0.26s ease both;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}
.hero p {
  color: var(--text-sub);
  font-size: 16px;
  max-width: 480px;
  line-height: 1.6;
  animation: fade-up 0.55s 0.4s ease both;
}

/* Trust row — same inline tick+text style as the landing (no pills). */
.stat-chips {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-muted);
  animation: fade-up 0.55s 0.54s ease both;
}
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
}
.stat-chip .tick {
  width: 14px;
  height: 14px;
  color: var(--accent-bright);
  flex: none;
}
.stat-chip strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: 0;
}

/* Telegram contact — secondary ghost CTA under the stats */
.hero-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-btn);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: var(--btn-dark-bg);
  border: 1px solid var(--btn-dark-border);
  box-shadow: var(--btn-shadow);
  white-space: nowrap;
  animation: fade-up 0.55s 0.6s ease both;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.hero-contact:hover {
  background: var(--btn-dark-bg-hover);
  border-color: var(--btn-dark-border-hover);
}
.hero-contact svg {
  width: 15px;
  height: 15px;
  fill: var(--accent);
}

/* ── Unified market block: search + filters + grid read as one solid card ── */
/* Platform tabs — segmented control between the search box and the filters.
       Two tabs flush together (no gap), active one filled emerald. */
.platform-tabs {
  display: flex;
  margin: 14px 0 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--sunken);
  box-shadow: none;
}
.platform-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 14px;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  transition:
    color 0.14s,
    background 0.14s;
}
.platform-tab + .platform-tab {
  border-left: 1px solid var(--border);
}
.platform-tab:hover {
  color: var(--text);
}
.platform-ico {
  width: 18px;
  height: 18px;
  flex: none;
}
.platform-name {
  font-family: inherit;
}
.platform-count {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.8;
}
.platform-count b {
  font-weight: 700;
}
.platform-tab.active {
  color: var(--text-on-accent);
  background: var(--accent);
  box-shadow: none;
}
.platform-tab.active:hover {
  color: var(--text-on-accent);
  background: var(--accent-hover);
}
.platform-tab.active .platform-count {
  opacity: 0.85;
}

.market-block {
  width: min(calc(var(--page-width) - 48px), calc(100% - 96px));
  margin: 48px auto 0;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 1px 0 var(--ov-soft) inset,
    0 12px 40px rgb(0, 0, 0, 0.3);
  animation: fade-up 0.55s 0.55s ease both;
}

/* Search hub (the protagonist) — top section of the block, no card of its own */
.search-panel {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.search-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 4px 14px;
}
.head-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.search-panel-eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Compact segmented control (used for the currency toggle in the head) */
.seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--sunken);
  box-shadow: var(--sunken-inset);
}
.seg-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s;
}
.seg-btn:hover {
  color: var(--text);
  background: var(--ov-hover);
}
.seg-btn.active {
  color: var(--text-on-accent);
  background: var(--gloss-emerald);
  box-shadow:
    inset 0 1.5px 0 rgb(255, 255, 255, 0.55),
    0 3px 10px rgb(99, 102, 241, 0.3);
}
.search-panel-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.search-panel .search-box {
  position: relative;
}
.search-panel svg.search-ico {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.18s;
}
.search-panel:focus-within svg.search-ico {
  color: var(--emerald-bright);
}
#search {
  width: 100%;
  background: var(--sunken);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px 16px 52px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  box-shadow: none;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background 0.18s;
}
#search::placeholder {
  color: var(--text-muted);
}
#search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
  background: var(--sunken);
}
#search-clear {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    color 0.15s;
}
#search-clear.visible {
  opacity: 1;
  pointer-events: auto;
}
#search-clear:hover {
  color: var(--text);
}

/* ── Section divider ── */
.divider {
  max-width: var(--page-width);
  margin: 48px auto 24px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fade-up 0.5s 0.66s ease both;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
}

.divider::before {
  background: linear-gradient(to right, transparent 0%, var(--border) 40%, var(--border) 100%);
}

.divider::after {
  background: linear-gradient(to left, transparent 0%, var(--border) 40%, var(--border) 100%);
}

.divider span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Services promo (replaces the old Followers price grid) ── */
.services-promo {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px;
  animation: fade-up 0.55s 0.72s ease both;
}
.services-promo-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ov-line), var(--ov-soft));
  box-shadow:
    inset 0 1px 0 var(--ov-strong),
    0 12px 30px rgb(0, 0, 0, 0.3);
  transition:
    border-color 0.16s,
    transform 0.16s,
    box-shadow 0.16s;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.services-promo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ig-gradient);
  opacity: 0;
  transition: opacity 0.16s;
  pointer-events: none;
}
.services-promo-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgb(0, 0, 0, 0.45);
}
.services-promo-card:hover::after {
  opacity: 0.035;
}
.services-promo-card > * {
  position: relative;
  z-index: 1;
}

.services-promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1; /* otherwise the text box is taller than the glyph */
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  position: relative;
  top: -2px; /* nudge the badge up without resizing the card */
}
.services-promo-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  /* Solid centre dot + expanding outer ring (radar pulse). */
  animation: radar-pulse 1.8s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
@keyframes radar-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(99, 102, 241, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgb(99, 102, 241, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(99, 102, 241, 0);
  }
}
.services-promo-title {
  font-size: clamp(20px, 3.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.services-promo-title em {
  font-style: normal;
  color: var(--accent);
}
.services-promo-sub {
  font-size: 13px;
  color: var(--text-sub);
  max-width: 420px;
  margin-top: 6px;
}
.services-promo-meta {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.services-promo-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.services-promo-meta svg {
  width: 11px;
  height: 11px;
  color: var(--accent);
}

.services-promo-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}
.services-promo-icons {
  display: flex;
  gap: 6px;
}
.services-promo-icons .pi {
  width: 34px;
  height: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  transition:
    color 0.15s,
    border-color 0.15s;
}
.services-promo-card:hover .services-promo-icons .pi {
  color: var(--text);
}
.services-promo-icons .pi svg {
  width: 16px;
  height: 16px;
}
.services-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--gloss-emerald);
  color: var(--text-on-accent);
  border: 1px solid rgb(255, 255, 255, 0.3);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow:
    inset 0 1.5px 0 rgb(255, 255, 255, 0.6),
    0 8px 20px rgb(99, 102, 241, 0.35);
  transition: filter 0.15s;
}
.services-promo-card:hover .services-promo-cta {
  filter: brightness(1.06);
}
.services-promo-cta svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 580px) {
  .services-promo-card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 18px;
  }
  /* Drop the platform icons on mobile — they shove the CTA out of frame. */
  .services-promo-icons {
    display: none;
  }
  .services-promo-right {
    width: 100%;
  }
  .services-promo-cta {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
  }
}

/* ── Filters live inside the search panel — no card of their own ── */
.controls {
  margin: 0;
  padding: 0;
}

/* ── Filters: aligned label rows + connected segmented controls ── */
.controls-card {
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  margin-top: 14px;
  padding: 16px 2px 2px;
  display: grid;
  gap: 11px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Sort + Language split one row; each segmented control flexes to fill its
       half. Price gets its own full-width row. Labels sit flush at the start,
       controls stretch to the section's right edge — no empty gutter. */
.filter-pair {
  display: flex;
  align-items: center;
  gap: 18px;
}
.filter-pair .filter-row {
  flex: 1;
  min-width: 0;
}

.filter-label {
  flex: none;
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
}

/* Segmented track that groups the options of one filter — flexes to fill
       the remaining width of its row so controls reach the section edge. */
.filter-pills {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--sunken);
  box-shadow: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-pills::-webkit-scrollbar {
  display: none;
}

.pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12.5px;
  line-height: 1;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 8px 13px;
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s;
  user-select: none;
  white-space: nowrap;
  font-family: inherit;
}

.pill:hover {
  color: var(--text);
  background: var(--ov-hover);
}

.pill.active {
  color: var(--text-on-accent);
  background: var(--accent);
  box-shadow: none;
}
.pill.active:hover {
  color: var(--text-on-accent);
  background: var(--accent-hover);
}

.pill .arrow {
  font-size: 10px;
  opacity: 0.85;
}

.neg-note {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

.filter-count {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.filter-count strong {
  color: var(--text-sub);
  font-weight: 500;
  font-size: 12px;
  margin-right: 1px;
  display: inline-block;
}

.buy-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.15s;
}
.buy-note svg {
  width: 14px;
  height: 14px;
  color: var(--emerald-bright);
  flex: none;
}
.buy-note:hover {
  color: var(--emerald-bright);
}

@keyframes count-pop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.18);
    color: var(--text);
  }

  100% {
    transform: scale(1);
  }
}

#visible-count.pop {
  animation: count-pop 0.22s ease;
}

#reset-filters {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    color 0.15s,
    opacity 0.2s;
}

#reset-filters.visible {
  opacity: 1;
  pointer-events: auto;
}

#reset-filters:hover {
  color: var(--text);
}

/* ── Username grid ── */
.grid {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: none;
  transition: opacity 0.18s ease;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 580px) {
  /* One card per row on phones so the handle + price fit on a single line. */
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ── Username card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: none;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--surface-2);
  border-color: var(--accent-ring);
  transform: translateY(-3px);
  box-shadow:
    0 16px 40px rgb(0, 0, 0, 0.4),
    0 0 0 1px rgb(99, 102, 241, 0.14);
}

.username-sparks {
  flex: 1;
  min-width: 0;
  position: relative;
}

.username {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.username-at {
  -webkit-text-fill-color: var(--text-muted);
  font-weight: 400;
  position: relative;
  top: 0;
}

.card-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.price {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-weak);
  border: 1px solid var(--accent-ring);
  box-shadow: none;
  white-space: nowrap;
}

/* OFFER pill — override the green money chip with a neutral glass chip. */
.price-ask {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 9px;
  color: var(--text-sub);
  background: var(--ov-line);
  border: 1px solid var(--border);
}

.card-arrow {
  color: var(--text-muted);
  transition:
    transform 0.2s,
    color 0.2s,
    opacity 0.15s;
  margin-left: 7px;
}

.card:hover .card-arrow {
  transform: translateX(4px) scale(1.1);
  color: var(--text);
}

/* ── Controls skeleton (lives inside the search panel) ── */
.controls-skeleton {
  margin: 0;
  padding: 0;
}

.controls-skeleton-inner {
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  margin-top: 12px;
  padding: 14px 4px 2px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skel-search {
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    var(--skel-tint-1) 25%,
    var(--skel-tint-2) 50%,
    var(--skel-tint-1) 75%
  );
  background-size: 400% auto;
  animation: skeleton-sweep 1.6s ease infinite;
}

.skel-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skel-label {
  width: 52px;
  height: 9px;
  border-radius: 4px;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    var(--skel-tint-1) 25%,
    var(--skel-tint-2) 50%,
    var(--skel-tint-1) 75%
  );
  background-size: 400% auto;
  animation: skeleton-sweep 1.6s 0.1s ease infinite;
}

.skel-pill {
  height: 28px;
  border-radius: 20px;
  background: linear-gradient(
    90deg,
    var(--skel-tint-1) 25%,
    var(--skel-tint-2) 50%,
    var(--skel-tint-1) 75%
  );
  background-size: 400% auto;
  animation: skeleton-sweep 1.6s ease infinite;
}

.skel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── Skeleton loading ── */
@keyframes skeleton-sweep {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.skeleton-card {
  background: linear-gradient(
    90deg,
    var(--surface) 25%,
    var(--skel-tint-2) 50%,
    var(--surface) 75%
  );
  background-size: 400% auto;
  animation: skeleton-sweep 1.6s ease infinite;
  pointer-events: none;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 54px;
}

.skel-block {
  border-radius: 5px;
  background: var(--ov-line);
}

/* Card stagger entrance */
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card.entering {
  animation: card-in 0.32s ease both;
}

/* ── Empty ── */
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 64px 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── Pagination ── */
.pagination {
  width: min(calc(var(--page-width) - 48px), calc(100% - 96px));
  margin: 32px auto 80px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.page-btn {
  background: var(--ov-hover);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--glass-hover);
}

.page-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.page-btn.active {
  background: var(--accent);
  border-color: transparent;
  color: var(--text-on-accent);
  box-shadow: none;
}
.page-btn.active:hover:not(:disabled) {
  background: var(--accent-hover);
  color: var(--text-on-accent);
}

.page-info {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 6px;
  white-space: nowrap;
}

@media (max-width: 580px) {
  .pagination {
    width: calc(100% - 32px);
    padding: 0;
    margin-bottom: 60px;
  }
}

/* ── Mobile ── */
@media (max-width: 580px) {
  .cta-wrapper {
    position: fixed !important;
    /* Below the 40px navbar with room for the speech bubble to clear it. */
    inset: 56px 8px auto auto !important;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transform: none !important;
  }

  /* en móvil: botón encima del mascot con overlap */
  .hero-cta {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    font-size: 11px;
    padding: 6px 11px;
    border-radius: 10px 10px 4px;
    margin-bottom: -6px;
    z-index: 1;
  }

  /* tail apunta abajo */
  .hero-cta::before {
    inset: auto 12px -10px auto;
    transform: none;
    border-top: 10px solid var(--border-hover);
    border-bottom: none;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
  }
  .hero-cta::after {
    inset: auto 13px -8px auto;
    transform: none;
    border-top: 8px solid var(--surface);
    border-bottom: none;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
  }
  .hero-cta:hover {
    transform: translateY(-2px) scale(1.02) !important;
  }
  .hero-cta:hover::after {
    border-top-color: var(--surface-hover);
    border-left-color: transparent;
  }

  .mascot {
    margin-top: 17px;
    margin-right: -2px;
    width: 44px;
    height: 44px;
    z-index: 0;
    animation: mascot-bounce 3s 1.5s ease-in-out infinite;
  }

  .hero {
    padding: 64px 16px 44px;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    /* sin transform en la animación para no romper position:fixed del hijo */
    animation: none;
    opacity: 1;
  }

  .hero-stats {
    gap: 14px;
  }

  .hero-stat strong {
    font-size: 18px;
  }

  .divider {
    margin: 32px auto 18px;
    padding: 0 16px;
  }

  .controls {
    padding: 0 16px 18px;
  }

  .controls-card {
    padding: 14px;
    gap: 12px 14px;
  }

  /* Stack each filter group: label on top, segmented control below.
         The track scrolls horizontally if its options don't fit. */
  .filter-pair {
    display: contents;
  }
  .filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .filter-label {
    width: auto;
    text-align: left;
    padding-left: 4px;
  }
  /* Sort/Language fill their track; only Price keeps natural width + scrolls */
  .price-pill {
    flex: none;
  }

  .neg-note {
    display: none;
  }

  /* Centre the buy-note on one line; drop the empty reset/neg cluster
         that was reserving a blank row below it. */
  .filter-count {
    justify-content: center;
    gap: 0;
  }
  .filter-count > span {
    display: none !important;
  }
  .buy-note {
    white-space: nowrap;
    font-size: 11.5px;
  }

  .platform-tab {
    padding: 12px 10px;
    font-size: 14px;
    gap: 7px;
  }
  .market-block {
    width: calc(100% - 32px);
    margin: 16px auto;
    border-radius: var(--r-card);
  }
  .grid {
    padding: 12px;
    gap: 8px;
  }

  /* Keep name + price chip side by side; wrap long handles so the full
         username stays readable instead of being clipped. */
  .card {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }

  .card .username {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card .price {
    font-size: 13px;
  }
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Slim SMM cross-sell strip (replaces the big promo card) ── */
.smm-strip {
  max-width: var(--page-width);
  margin: 28px auto 72px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}
.smm-strip:hover {
  transform: translateY(-2px);
  border-color: var(--accent-ring);
  background: var(--surface-2);
}
.smm-strip-orb {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  background: linear-gradient(180deg, rgb(99, 102, 241, 0.22), rgb(99, 102, 241, 0.07));
  border: 1px solid var(--accent-ring);
  box-shadow: 0 0 0 5px rgb(99, 102, 241, 0.05);
}
.smm-strip-orb svg {
  width: 18px;
  height: 18px;
}
.smm-strip-text {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
}
.smm-strip-text strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.smm-strip-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-btn);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-on-accent);
  background: var(--accent);
  border: 1px solid rgb(0, 0, 0, 0.12);
  box-shadow: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.smm-strip:hover .smm-strip-cta {
  background: var(--accent-hover);
}
.smm-strip-cta svg {
  width: 14px;
  height: 14px;
}

/* ── Hero / search responsive ── */
@media (max-width: 760px) {
  /* No vertical guide lines on mobile. */
  .guides::before,
  .guides::after {
    display: none;
  }
  .hero {
    text-align: center;
  }
  .hero-copy {
    align-items: center;
  }
  .hero h1 {
    white-space: normal;
  }
  .hero p {
    margin: 0 auto;
  }
  .stat-chips {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
  }
  .search-panel {
    padding: 16px 14px 14px;
  }
  .controls {
    padding: 0;
  }
  .smm-strip {
    flex-direction: column;
    text-align: center;
    border-radius: var(--radius);
    margin: 8px 16px 48px;
  }
  .smm-strip-cta {
    width: 100%;
    justify-content: center;
  }
}
