/* ==========================================================================
   DUMBPCS — THEME LAYER v3
   Loaded after style.css and page <style> blocks on every page.
   Matte graphite base, one crimson signal, mono only for prices / IDs / codes.
   ========================================================================== */

:root {
  /* Surfaces: graphite with a faint warm cast, stepped by luminance */
  --bg-base: #0b0b0d;
  --bg-surface: #121215;
  --bg-card: #17171b;
  --bg-card-hover: #1c1c21;
  --bg-elevated: #212127;
  --bg-sunken: #08080a;

  --border-hairline: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(255, 255, 255, 0.2);
  --border-red: #e50914;
  --border-red-subtle: rgba(229, 9, 20, 0.32);

  --accent-red: #e50914;
  --accent-red-hover: #ff2630;
  --accent-red-press: #c4070f;
  --accent-red-bright: #ff4d55;
  --accent-red-soft: rgba(229, 9, 20, 0.1);
  --accent-red-ink: #ff6b71; /* red text on dark: 5.2:1 */

  --text-primary: #f5f5f6;
  --text-secondary: #a8a8b0; /* 8.1:1 on base */
  --text-muted: #8a8a93;     /* 5.6:1 on base — readable, never decorative gray */

  --ok: #3ddc84;
  --warn: #f5c542;

  --font-main: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', ui-sans-serif, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.18s var(--ease-out);
  --transition-fast: 0.12s var(--ease-out);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 16px -4px rgba(0, 0, 0, 0.55), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 18px 40px -12px rgba(0, 0, 0, 0.7), 0 4px 10px rgba(0, 0, 0, 0.35);

  --nav-h: 64px;
}

/* --------------------------------------------------------------------------
   Base & browser surfaces
   -------------------------------------------------------------------------- */
html {
  font-size: 16px;
  color-scheme: dark;
  scrollbar-color: #2a2a31 var(--bg-base);
  scrollbar-width: thin;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-size: 0.9375rem;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  background-color: var(--bg-base);
}

::selection { background: rgba(229, 9, 20, 0.35); color: #fff; }
input, textarea, select { caret-color: var(--accent-red); }

:focus-visible {
  outline: 2px solid var(--accent-red-bright);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
  background: #26262c;
  border: 3px solid var(--bg-base);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: #3a3a43; }

h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

a:not([class]) {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.price-cny, .price-converted, .price-cur-pill, .stat-num, .nav-badge,
.card-img-counter, .qc-counter-badge, .referral-pill, .countdown-number {
  font-variant-numeric: tabular-nums;
}

.container {
  max-width: 1280px;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar {
  height: var(--nav-h);
  background: rgba(11, 11, 13, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-hairline);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}
.brand-logo:hover .brand-icon {
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.3);
}
.brand-title {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.nav-menu { gap: 2px; }

.nav-link {
  position: relative;
  padding: 0.5rem 0.8rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}
.nav-link:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.045); }
.nav-link.active { color: #fff; background: transparent; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: -12px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-red);
}

.nav-badge {
  background: rgba(229, 9, 20, 0.14);
  color: var(--accent-red-ink);
  font-size: 0.6875rem;
  padding: 0.0625rem 0.4375rem;
}

.currency-select {
  height: 36px;
  padding: 0 0.625rem;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  background-color: var(--bg-surface);
  border-radius: var(--radius-sm);
}

.btn-sponsor-nav {
  height: 36px;
  padding: 0 1rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 4px 12px -4px rgba(229, 9, 20, 0.6);
}
.btn-sponsor-nav:active { background: var(--accent-red-press); }

.mobile-toggle {
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-section {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(229, 9, 20, 0.13) 0%, transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
  background-position: center, center;
}

/* Eyebrow label above the headline: the headline carries itself */
.hero-section > .container > .hero-status-pill,
.hero-status-pill { display: none; }

.hero-title {
  font-size: clamp(2.5rem, 7.2vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

.hero-converter-box { max-width: 760px; }

.converter-input-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 6px;
  gap: 6px;
  box-shadow: var(--shadow-lg);
}
.converter-input-wrapper:focus-within {
  border-color: rgba(229, 9, 20, 0.55);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(229, 9, 20, 0.14);
}

.converter-input {
  min-width: 0;
  font-size: 0.9375rem;
  padding: 0.875rem 1rem;
  text-overflow: ellipsis;
}

.converter-btn {
  height: 48px;
  padding: 0 1.5rem;
  font-size: 0.9375rem;
  border-radius: 10px;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 16px -6px rgba(229, 9, 20, 0.7);
}
.converter-btn:active { background: var(--accent-red-press); }

.converter-hint {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.stat-strip {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.stat-txt {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.hero-converter-result {
  border-radius: var(--radius-lg);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Partner strip
   -------------------------------------------------------------------------- */
.partner-strip-section { padding-block: 2rem; }
.partner-strip {
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  background:
    linear-gradient(100deg, rgba(229, 9, 20, 0.09), transparent 45%),
    var(--bg-surface);
  border: 1px solid var(--border-hairline);
}
.partner-tag-pill { border-radius: var(--radius-xs); letter-spacing: 0.06em; }
.referral-pill { border-radius: var(--radius-sm); }
.btn-partner-cta {
  border-radius: var(--radius-sm);
  min-height: 40px;
  padding-inline: 1.125rem;
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.featured-finds-section { padding: clamp(3rem, 7vw, 5rem) 0; }
.featured-head { margin-bottom: 2rem; }

.section-title-min {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-sub-min {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 65ch;
}

/* --------------------------------------------------------------------------
   Product cards — the content is the product
   -------------------------------------------------------------------------- */
.finds-items-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr));
  gap: 1.25rem;
}

.product-card-min,
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}
.product-card-min:hover,
.product-card:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.product-img-wrap-min,
.product-image-wrap {
  background:
    radial-gradient(circle at 50% 40%, #1a1a1f 0%, var(--bg-sunken) 75%);
  border-bottom: 1px solid var(--border-hairline);
}
.product-img-min,
.product-image {
  background: transparent;
  padding: 0.75rem;
  transition: transform 0.4s var(--ease-out);
}
.product-card:hover .product-image,
.product-card-min:hover .product-img-min { transform: scale(1.04); }

.product-platform-tag,
.product-platform-badge {
  top: 0.625rem;
  left: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(11, 11, 13, 0.86);
}

.card-img-counter,
.card-zoom-btn,
.card-arrow-btn { box-shadow: var(--shadow-sm); }
.card-img-counter { border-radius: 6px; right: 0.625rem; bottom: 0.625rem; }
.card-arrow-btn, .card-zoom-btn { width: 34px; height: 34px; }

.product-body-min,
.product-content { padding: 1rem 1rem 1.125rem; gap: 0; }

.product-cat-min,
.product-cat {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.product-category-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  margin-bottom: 0.5rem;
}
.product-category-row .product-cat { margin-bottom: 0; flex-shrink: 0; }
.product-price-row > span[style] {
  flex-basis: 100%;
  margin-left: 0 !important;
  margin-top: 0.25rem;
  color: var(--ok) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.product-seller-tag {
  margin-left: auto;
  min-width: 0;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hairline);
  border-radius: 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-title-min,
.product-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  min-height: 2.6em;
  margin-bottom: 0.875rem;
}

.product-price-min,
.product-price-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  padding-bottom: 0.875rem;
}
.price-cny-min,
.price-cny {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: 0.125rem;
}
.price-cur-pill {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border-color: var(--border-hairline);
  border-radius: 6px;
  padding: 0.0625rem 0.375rem;
}

.product-actions-grid { gap: 0.5rem; }

.btn-buy-min,
.btn-buy-bbdbuy {
  min-height: 40px;
  font-size: 0.8125rem;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset;
}
.btn-buy-min:active,
.btn-buy-bbdbuy:active { background: var(--accent-red-press); }

.btn-card-raw,
.btn-card-action,
.btn-qc-min,
.btn-card-qc {
  min-height: 40px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  justify-content: center;
}
.btn-card-raw:hover,
.btn-card-action:hover,
.btn-qc-min:hover,
.btn-card-qc:hover {
  color: #fff;
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

/* --------------------------------------------------------------------------
   Spreadsheet: switcher, filters, chips, table
   -------------------------------------------------------------------------- */
.hero-switcher-grid { gap: 1rem; }
.hero-switcher-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.hero-switcher-title {
  font-size: 1.375rem;
  letter-spacing: -0.03em;
}

.filter-bar-minimal { gap: 0.625rem; }
.search-input-min,
.select-min,
.view-btn-min {
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  font-size: 0.875rem;
}
.search-input-min:focus,
.select-min:focus {
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.12);
  outline: none;
}
.view-btn-min { min-width: 44px; }

.chips-scroll-min { gap: 0.5rem; padding-bottom: 0.25rem; }
.category-chip {
  min-height: 34px;
  padding: 0 0.875rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.finds-table-wrap { border-radius: var(--radius-lg); }
.finds-data-table th {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-card);
}
.finds-data-table td { font-size: 0.875rem; }
.finds-data-table tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }

/* Sellers */
.sellers-grid { gap: 1rem; }
.seller-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.seller-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.seller-name { font-size: 1.0625rem; letter-spacing: -0.02em; }
.btn-seller-link,
.btn-seller-bbdbuy { min-height: 38px; border-radius: 10px; }

/* --------------------------------------------------------------------------
   QC Finder
   -------------------------------------------------------------------------- */
.qc-form-min {
  border-radius: var(--radius-lg);
  padding: 6px;
  gap: 6px;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.qc-form-min:focus-within {
  border-color: rgba(229, 9, 20, 0.55);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(229, 9, 20, 0.14);
}
.qc-input-min { min-width: 0; font-size: 0.9375rem; text-overflow: ellipsis; }
.btn-qc-search-min { min-height: 48px; border-radius: 10px; padding-inline: 1.5rem; }

.qc-presets-min { gap: 0.5rem; margin-top: 1.25rem; }
.qc-preset-chip-min {
  min-height: 32px;
  padding: 0 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
}
.qc-preset-chip-min:hover {
  color: #fff;
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.qc-result-box { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.qc-main-image-wrap { border-radius: var(--radius-md); background: var(--bg-sunken); }
.qc-thumb-box { border-radius: var(--radius-sm); }
.btn-order-bbdbuy-qc { min-height: 48px; border-radius: 12px; }
.btn-qc-action { min-height: 40px; border-radius: 10px; }

/* --------------------------------------------------------------------------
   TikTok
   -------------------------------------------------------------------------- */
.tiktok-grid-min,
.tiktok-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1.25rem;
}

.tiktok-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
}
.tiktok-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.tiktok-card:focus-visible { outline-offset: 3px; border-radius: var(--radius-lg); }

.tiktok-thumb-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--border-hairline);
}
.tiktok-thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(37, 244, 238, 0.07), transparent 60%),
    radial-gradient(ellipse 80% 60% at 70% 85%, rgba(229, 9, 20, 0.12), transparent 60%),
    var(--bg-sunken);
}
.tiktok-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.tiktok-card:hover .tiktok-thumb { transform: scale(1.04); }
.tiktok-thumb-wrap::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
}

.tiktok-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: transparent;
}
.play-circle {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  background: rgba(11, 11, 13, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  transition: transform 0.22s var(--ease-out), background-color 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
}
.play-circle .fi-sr-play { margin-left: 3px; }
.tiktok-card:hover .play-circle {
  transform: scale(1.08);
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.tiktok-lock-badge {
  top: 0.625rem;
  left: 0.625rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  color: var(--accent-red-ink);
}
.tiktok-duration-badge,
.tiktok-views-badge {
  position: absolute;
  bottom: 0.625rem;
  right: 0.625rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fff;
  padding: 0.125rem 0.4375rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
}

.tiktok-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.375rem;
  padding: 0.875rem 1rem 1rem;
}
.tiktok-card-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tiktok-card-caption {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tiktok-meta-row {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.tiktok-stats { display: inline-flex; gap: 0.75rem; font-variant-numeric: tabular-nums; }
.tiktok-stats span { display: inline-flex; align-items: center; gap: 0.3rem; }
.tiktok-stats .fi-sr-heart { color: var(--accent-red-ink); }
.tiktok-tag { color: var(--accent-red-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tiktok-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 4rem 1rem;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.tiktok-empty > i { font-size: 2rem; color: var(--text-secondary); }

/* Video modal: vertical player + info panel */
.video-modal-box {
  max-width: 880px;
  max-height: 92vh;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.video-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  min-height: 0;
  overflow: auto;
}
.video-player-wrap.video-player-tiktok {
  aspect-ratio: 9 / 16;
  height: min(78vh, 720px);
  width: auto;
  background: #000;
}
.video-player-tiktok iframe,
.video-player-tiktok video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
}
.video-modal-layout > .video-player-blocked {
  aspect-ratio: 9 / 16;
  height: min(78vh, 720px);
  border-bottom: 0;
  border-right: 1px solid var(--border-hairline);
}
.video-notice-title {
  margin: 0.75rem 0 0.375rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.125rem;
}
.video-notice-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.video-modal-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 1px solid var(--border-hairline);
}
.video-modal-caption { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.6; }
.video-modal-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.video-modal-open { align-self: flex-start; margin-top: auto; }

@media (max-width: 720px) {
  .video-modal-layout { grid-template-columns: 1fr; }
  .video-player-wrap.video-player-tiktok,
  .video-modal-layout > .video-player-blocked {
    height: auto;
    width: 100%;
    max-height: 70vh;
    border-right: 0;
  }
  .video-modal-info { border-left: 0; border-top: 1px solid var(--border-hairline); }
  .tiktok-grid-min,
  .tiktok-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .tiktok-card-content { padding: 0.75rem; }
  .tiktok-card-caption { display: none; }
  .tiktok-meta-row { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}

/* --------------------------------------------------------------------------
   Bio page
   -------------------------------------------------------------------------- */
.bio-page-wrapper {
  background-image:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(229, 9, 20, 0.14) 0%, transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
}
.bio-container { max-width: 560px; }
.bio-username {
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  letter-spacing: -0.04em;
}
.bio-desc { color: var(--text-secondary); }
.bio-avatar-img { box-shadow: var(--shadow-lg); }

.bio-social-btn {
  min-height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.bio-social-btn:hover { background: var(--bg-elevated); border-color: var(--border-strong); }

.bio-buttons-list { gap: 0.75rem; }
.bio-btn-row-dual { gap: 0.75rem; }

.bio-btn-card {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), background-color 0.22s var(--ease-out);
}
.bio-btn-card:hover {
  transform: translateY(-2px);
  background: var(--bg-card);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.bio-btn-card:active { transform: translateY(0) scale(0.99); }

.bio-btn-card.highlight {
  background:
    linear-gradient(160deg, rgba(229, 9, 20, 0.2) 0%, rgba(229, 9, 20, 0.04) 60%),
    var(--bg-surface);
  border-color: rgba(229, 9, 20, 0.4);
}
.bio-btn-card.highlight:hover { border-color: rgba(229, 9, 20, 0.7); }

.bio-btn-icon {
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
}
.bio-btn-title {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}
.bio-btn-subtitle { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Generic page cards used by converter / legal (inline-styled pages)
   -------------------------------------------------------------------------- */
.converter-card {
  border-radius: var(--radius-lg) !important;
  border-color: var(--border-hairline) !important;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Legal / pillars
   -------------------------------------------------------------------------- */
.legal-item-min,
.pillar-card { border-radius: var(--radius-lg); }
.legal-desc-min,
.pillar-desc { color: var(--text-muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--bg-sunken);
  border-top: 1px solid var(--border-hairline);
}
.footer-nav-min a,
.footer-bottom-min a {
  color: var(--text-muted);
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}
.footer-nav-min a:hover,
.footer-bottom-min a:hover { color: var(--text-primary); }

/* --------------------------------------------------------------------------
   Cookie banner — compact, stays out of the content's way
   -------------------------------------------------------------------------- */
.cookie-banner {
  max-width: 360px;
  padding: 1rem 1.125rem;
  border-radius: var(--radius-lg);
  background: rgba(23, 23, 27, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.cookie-banner.active { animation: cookieIn 0.45s var(--ease-out) both; }
@keyframes cookieIn {
  from { transform: translateY(12px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}
.cookie-text { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 0.875rem; }
.btn-cookie-accept,
.btn-cookie-reject {
  min-height: 36px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}
.btn-cookie-accept { background: var(--text-primary); }

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */
.modal-overlay { background: rgba(5, 5, 7, 0.78); }
.modal-box {
  border-radius: var(--radius-lg);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.32s var(--ease-out) both;
}
@keyframes modalIn {
  from { transform: translateY(10px) scale(0.985); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}
.modal-close-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.modal-close-btn:hover { background: rgba(255, 255, 255, 0.06); }

/* --------------------------------------------------------------------------
   Motion: content is visible by default; reveals only nudge position.
   (Prevents blank sections if JS / IntersectionObserver never fires.)
   -------------------------------------------------------------------------- */
.scroll-reveal,
.scroll-reveal-scale {
  opacity: 1;
  transform: none;
  transition: none;
}
.hero-title,
.hero-description,
.hero-converter-box { animation-duration: 0.6s; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-link { padding-inline: 0.6rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 58px; }

  .nav-menu {
    top: var(--nav-h);
    padding: 0.75rem;
    gap: 2px;
    background: rgba(11, 11, 13, 0.98);
    box-shadow: var(--shadow-lg);
    align-items: stretch;
  }
  .nav-link { padding: 0.875rem 1rem; font-size: 1rem; }
  .nav-link.active { background: rgba(255, 255, 255, 0.05); }
  .nav-link.active::after { left: 0; right: auto; top: 25%; bottom: 25%; width: 2px; height: auto; }
  .mobile-toggle { display: inline-flex; }

  .brand-title { font-size: 0.9375rem; }

  .hero-title { line-height: 1.02; }
  .converter-input-wrapper,
  .qc-form-min { border-radius: 14px; }
  .converter-btn,
  .btn-qc-search-min { width: 100%; }

  .stat-strip { padding: 1rem; gap: 0.75rem 1.25rem; }

  .partner-strip { gap: 0.875rem; }
  .partner-actions { width: 100%; flex-wrap: wrap; }
  .btn-partner-cta { flex: 1; justify-content: center; }

  .finds-items-grid { gap: 0.875rem; }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .finds-items-grid { grid-template-columns: 1fr; gap: 0.875rem; }
  .product-img-wrap-min,
  .product-image-wrap { aspect-ratio: 4 / 3; }
}

@media (hover: none) {
  .product-card:hover,
  .product-card-min:hover,
  .seller-card:hover,
  .tiktok-card:hover,
  .bio-btn-card:hover { transform: none; }
}

@media (max-width: 480px) {
  .navbar-container { gap: 0.5rem; }
  .brand-logo { min-width: 0; gap: 0.5rem; }
  .brand-title { font-size: 0.8125rem; line-height: 1.15; }
  .nav-actions { gap: 0.375rem; flex-shrink: 0; }
  .currency-select { height: 36px; padding: 0 0.375rem; font-size: 0.75rem; }
  .btn-sponsor-nav { padding: 0 0.75rem; }
  .mobile-toggle { width: 36px; height: 36px; }
}
