
/* =======================
   Design Tokens & Globals
   ======================= */
:root {
  /* spacing scale */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px;

  /* radii */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;

  /* brand surface */
  --surface: #ffffff;
  --surface-subtle: #f7f9fc;
  --surface-hero: linear-gradient(180deg, #f5f9ff 0%, #ffffff 60%);

  /* text */
  --text-muted: rgba(16, 24, 40, 0.65);

  /* borders & elevation */
  --border: 1px solid rgba(16, 24, 40, 0.08);
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 1px rgba(16,24,40,.04);
  --shadow-md: 0 8px 24px rgba(2,8,20,.12);
  --shadow-lg: 0 16px 40px rgba(2,8,20,.18);

  /* focus ring (approx. your navy) */
  --ring: 0 0 0 3px rgba(0,82,163,.18);
}

/* Container & Section Structure */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4);
}

.discover-hero {
  margin-block: var(--space-6);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--surface-subtle);
  border: var(--border);
  box-shadow: var(--shadow-sm);
}

.discover-hero h1 {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.discover-hero p {
  margin: 0;
  max-width: 560px;
  color: var(--text-muted);
}

.discover-hero--momentum {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 16%, rgba(0, 82, 163, 0.18) 0%, rgba(0, 82, 163, 0) 44%),
    radial-gradient(circle at 6% 100%, rgba(251, 191, 36, 0.24) 0%, rgba(251, 191, 36, 0) 48%),
    linear-gradient(130deg, #f8fcff 0%, #ffffff 55%, #f3f8ff 100%);
}

.discover-hero--momentum::before {
  content: '';
  position: absolute;
  inset: auto -60px -100px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(0, 82, 163, 0.18);
  background: radial-gradient(circle, rgba(0, 82, 163, 0.15), rgba(0, 82, 163, 0));
  animation: hero-glow 8s ease-in-out infinite;
  pointer-events: none;
}

.discover-hero__eyebrow {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0b3b6d;
}

.discover-hero__eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.16);
}

.discover-hero__actions {
  margin-top: clamp(16px, 2vw, 22px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.discover-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.discover-hero__button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0b5ca8, #0f4f85);
  box-shadow: 0 10px 24px rgba(11, 92, 168, 0.3);
}

.discover-hero__button--primary:hover,
.discover-hero__button--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(11, 92, 168, 0.34);
}

.discover-hero__button--ghost {
  color: #0f355a;
  background: #ffffff;
  border: 1px solid rgba(15, 53, 90, 0.2);
}

.discover-hero__button--ghost:hover,
.discover-hero__button--ghost:focus-visible {
  transform: translateY(-1px);
  background: #f8fbff;
}

.discover-hero__highlights {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.discover-hero__stat {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(15, 53, 90, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(4px);
}

.discover-hero__stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #37516d;
}

.discover-hero__stat-value {
  margin-top: 4px;
  display: block;
  color: #10273f;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.2;
}

.discover-hero__stat-note {
  margin-top: 6px;
  display: block;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #4b637b;
}

.discover-hero__stat--count .discover-hero__stat-value {
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

.discover-hero__stat-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.discover-hero__stat-link:hover,
.discover-hero__stat-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 53, 90, 0.3);
}

@keyframes hero-glow {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.75;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

@media (max-width: 860px) {
  .discover-hero--momentum {
    grid-template-columns: 1fr;
  }

  .discover-hero__highlights {
    grid-template-columns: 1fr;
  }
}
section { margin-block: var(--space-6) var(--space-8); }
section > h2 {
  display: flex; align-items: center; gap: var(--space-3);
  letter-spacing: -0.015em;
}
section > h2::after {
  content: ""; flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, rgba(16,24,40,.14), rgba(16,24,40,0));
  border-radius: 999px;
}

/* Search Bar + Frosted Header */
.search-bar-wrapper {
  position: sticky; top: 0px; z-index: 10;
  backdrop-filter: saturate(140%) blur(8px);
  background: color-mix(in srgb, #ffffff 82%, transparent);
  border-bottom: var(--border);
}
#discover-search {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
#discover-search:focus { box-shadow: var(--shadow-sm), var(--ring); }
#discover-search::placeholder { color: var(--text-muted); }

/* Card Treatment */
.featured-card,
.trending-item {
  border-radius: var(--radius-lg);
  border: var(--border);
  background: #0b1220; /* keep your dark base */
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.featured-card:hover,
.featured-card:focus-visible,
.trending-item:hover,
.trending-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.featured-card img,
.trending-item img { image-rendering: -webkit-optimize-contrast; }
.featured-card::before,
.trending-item::before { mix-blend-mode: screen; opacity: .9; }
.featured-card .featured-title,
.trending-item .trending-title { font-weight: 600; letter-spacing: .005em; }
.trending-item .trending-price {
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

/* Section Surfaces */
.featured-section {
  background: var(--surface-hero);
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.trending-section,
.recent-section {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.tweets-section {
  background: var(--surface-subtle);
  border: var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.ebay-disclaimer { color: var(--text-muted); }

/* Discord Banner Polish */
.community-banner {
  border: var(--border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-xl);
  gap: var(--space-4);
}
.community-banner__logo { filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.community-banner__cta { box-shadow: inset 0 -1px 0 rgba(16,24,40,.08); }

/* Micro-interactions & a11y */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
:where(a, button, input, .featured-card, .trending-item):focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Skeletons */
.skeleton {
  display:block;
  background: linear-gradient(90deg, #f2f4f7 25%, #e6eaf0 37%, #f2f4f7 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: var(--radius-lg);
  border: var(--border);
  box-shadow: var(--shadow-sm);
}
@keyframes shimmer { 0%{background-position:100% 0} 100%{background-position:-100% 0} }
.skeleton.card { aspect-ratio: 3/4; }

/* Scrollbar polish for horizontal tweet row */
.tweets-row {
  padding: var(--space-4) var(--space-3);
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.tweets-row::-webkit-scrollbar { height: 10px; }
.tweets-row::-webkit-scrollbar-thumb {
  background: rgba(16,24,40,.18);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Profile setup wizard */
.profile-setup-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 48px);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9999;
}

.profile-setup-modal .profile-setup-modal-content {
  width: min(640px, 100%);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  max-height: 90vh;
  overflow-y: auto;
}

.profile-setup-modal .modal-step {
  width: 100%;
}

.profile-setup-modal .modal-step-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
}

.profile-setup-modal .modal-step-header--centered {
  align-items: center;
  text-align: center;
}

.profile-setup-modal .modal-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.35);
}

.profile-setup-modal .modal-step-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #475467;
}

.profile-setup-modal .modal-step-description {
  color: #475467;
  line-height: 1.6;
  font-size: 0.98rem;
}

.profile-setup-modal .modal-step-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 640px) {
  .profile-setup-modal .modal-step-content {
    flex-direction: row;
    align-items: flex-start;
  }
}

.profile-setup-modal .profile-pic-section,
.profile-setup-modal .profile-guidance {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-setup-modal .profile-pic-stage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.profile-setup-modal .profile-pic-preview-wrapper {
  width: 100%;
  min-height: 160px;
  border-radius: 20px;
  border: 1px dashed rgba(99, 102, 241, 0.5);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(99, 102, 241, 0.12));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 32px 24px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-setup-modal .profile-pic-preview-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.12);
}

.profile-setup-modal #profile-setup-preview {
  display: none;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.22);
}

.profile-setup-modal #profile-setup-placeholder-icon {
  font-size: 3.75rem;
  color: rgba(79, 70, 229, 0.7);
}

.profile-setup-modal .upload-instructions {
  font-size: 0.95rem;
  color: #475467;
  text-align: center;
}

.profile-setup-modal .profile-guidance {
  background: rgba(248, 250, 255, 0.95);
  border: 1px solid rgba(208, 213, 221, 0.7);
  border-radius: 18px;
  padding: 20px 24px;
  gap: 0.75rem;
}

.profile-setup-modal .guidance-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1d2939;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-setup-modal .guidance-title i {
  color: #4f46e5;
}

.profile-setup-modal .profile-tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-setup-modal .profile-step-list {
  margin-bottom: 1.5rem;
}

.profile-setup-modal .profile-tip-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1d2939;
}

.profile-setup-modal .profile-tip-list li i {
  color: #4f46e5;
  font-size: 1rem;
  margin-top: 0.15rem;
}

.profile-setup-modal .profile-step-list li {
  background: rgba(244, 246, 255, 0.9);
  border-radius: 16px;
  padding: 14px 16px;
}

.profile-setup-modal .profile-step-list li div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-setup-modal .profile-step-list strong {
  font-weight: 600;
  color: #1d2939;
}

.profile-setup-modal .profile-setup-cropper {
  width: 100%;
  background: rgba(248, 250, 255, 0.92);
  border: 1px solid rgba(208, 213, 221, 0.6);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.profile-setup-modal img {
  max-width: 100%;
}

.profile-setup-modal #profile-setup-cropper-image {
  max-height: 420px;
  border-radius: 12px;
}

.profile-setup-modal .cropper-container {
  width: 100%;
  max-width: 100%;
  margin: 16px 0;
}

.profile-setup-modal .cropper-container .cropper-view-box,
.profile-setup-modal .cropper-container .cropper-face {
  border-radius: 50%;
}

.profile-setup-modal .wizard-footer {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
}

@media (min-width: 640px) {
  .profile-setup-modal .wizard-footer {
    justify-content: flex-end;
  }
}

.profile-setup-modal .modal-primary-button,
.profile-setup-modal .modal-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease,
    color 0.2s ease;
}

.profile-setup-modal .modal-primary-button {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(79, 70, 229, 0.28);
}

.profile-setup-modal .modal-primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(79, 70, 229, 0.32);
}

.profile-setup-modal .modal-primary-button:disabled {
  background: #d0d5dd;
  color: #98a2b3;
  box-shadow: none;
  cursor: not-allowed;
}

.profile-setup-modal .modal-secondary-button {
  background: #ffffff;
  color: #344054;
  border: 1px solid #d0d5dd;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.profile-setup-modal .modal-secondary-button:hover {
  background: #f8f9ff;
  border-color: #c7d0e3;
  color: #1d2939;
}

.profile-setup-modal .modal-secondary-button:disabled {
  background: #f2f4f7;
  color: #98a2b3;
  border-color: #e4e7ec;
  box-shadow: none;
  cursor: not-allowed;
}

.profile-setup-modal #step1-skip-btn {
  margin-right: auto;
  background: transparent;
  border: none;
  color: #475467;
  box-shadow: none;
  font-weight: 600;
  padding-left: 0;
  padding-right: 0;
}

.profile-setup-modal #step1-skip-btn:hover {
  color: #1d2939;
  background: transparent;
}

.profile-setup-modal .username-section label {
  font-weight: 600;
  color: #1d2939;
}

.profile-setup-modal .username-section input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #d0d5dd;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
}

.profile-setup-modal .username-section input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  outline: none;
}

.profile-setup-modal .input-hint {
  font-size: 0.9rem;
  color: #475467;
  margin-top: 0.5rem;
}

.profile-setup-modal .error-message {
  text-align: left;
  margin-top: 0.5rem;
}


/* ===== Existing rules below ===== */
/* Discover page – elevated, visual-forward look */

.search-bar-wrapper {
  padding: 16px 20px;
}

#discover-search {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 1px rgba(16, 24, 40, 0.04);
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

#discover-search:focus {
  outline: none;
  border-color: var(--colorsnavynavy-500);
  box-shadow: 0 4px 16px rgba(0, 82, 163, 0.12), 0 1px 1px rgba(16, 24, 40, 0.06);
}

.featured-section {
  padding: 8px 12px 28px;
}

.featured-section h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--colorsnavynavy-900);
  margin: 6px 8px 14px;
  letter-spacing: -0.02em;
}

.featured-grid,
.trending-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: 1fr;
  grid-auto-columns: minmax(220px, 24%);
  gap: 16px;
  padding: 6px 12px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 36px,
    #000 calc(100% - 36px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 36px,
    #000 calc(100% - 36px),
    transparent 100%
  );
}

.featured-grid::-webkit-scrollbar,
.trending-grid::-webkit-scrollbar {
  height: 8px;
}

.featured-grid::-webkit-scrollbar-thumb,
.trending-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}

.featured-card,
.trending-item {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 6px 20px rgba(2, 8, 20, 0.08);
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  transform: translateZ(0);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
  border-radius: 0;
}

.featured-card::before,
.trending-item::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 60% at 0% 0%, rgba(0, 82, 163, 0.35) 0%, rgba(0, 82, 163, 0) 60%),
              radial-gradient(120% 60% at 100% 100%, rgba(225, 237, 251, 0.35) 0%, rgba(225, 237, 251, 0) 60%);
  mix-blend-mode: screen;
}

.featured-card:hover,
.featured-card:focus-visible,
.trending-item:hover,
.trending-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(2, 8, 20, 0.18);
}

.featured-card img,
.trending-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 200ms ease;
}

.featured-card .featured-title {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.featured-card > img + .featured-title::before {
  content: '';
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: -30px;
  height: 120px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 90%);
}

.featured-card-container {
  display: flex;
  flex-direction: column;
}

.featured-card-container .view-collection-button {
  margin-top: 8px;
  text-align: center;
  display: block;
}

@media (max-width: 920px) {
  .featured-grid,
  .trending-grid {
    grid-auto-columns: minmax(200px, 50%);
  }
}

@media (max-width: 640px) {
  .featured-grid,
  .trending-grid {
    grid-auto-columns: 78%;
  }
  .trending-item::after {
    transform: scale(0.95);
    transform-origin: top left;
  }
}

.trending-section,
.recent-section {
  padding: 8px 12px 28px;
  background: linear-gradient(180deg, rgba(230, 249, 255, 0.5) 0%, rgba(255, 255, 255, 0) 60%);
}

.trending-section h2,
.recent-section h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--colorsnavynavy-900);
  margin: 6px 8px 14px;
  letter-spacing: -0.02em;
}

.tweets-section {
  padding: 8px 12px 28px;
}

.tweets-section h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--colorsnavynavy-900);
  margin: 6px 8px 14px;
  letter-spacing: -0.02em;
}

.tweets-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 12px 14px;
}

.tweets-row .twitter-tweet {
  flex: 0 0 auto;
}


/* Replace top-corner badge with a subtle chip next to price */
.trending-item::after { content: none; }

/* dark bottom gradient for legibility */
.trending-item .trending-title,
.trending-item .trending-price {
  position: absolute;
  left: 10px;
  right: 10px;
  z-index: 2;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  font-family: 'Inter', sans-serif;
}

.trending-item .trending-title {
  bottom: 40px;
  font-size: 14px;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.trending-item .trending-price {
  bottom: 10px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: saturate(140%) blur(6px);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trending-item .trending-price::before {
  content: 'Now · ';
  font-weight: 500;
  opacity: 0.8;
}

.trending-item .trending-price::after {
  content: 'on eBay';
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

/* subtle overlay gradient */
.trending-item > img + .trending-title::before {
  content: '';
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: -30px;
  height: 120px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 90%);
}

.ebay-disclaimer {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
  margin: 6px 12px 0;
}

/* responsive grid adjustments included above */

.community-section {
  padding: 8px 12px 28px;
}

.community-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, #5865f2 0%, #4b59d1 100%);
  color: #fff;
  text-decoration: none;
}

.community-banner__logo {
  width: 72px;
  height: auto;
  margin-right: 16px;
}

.community-banner__content {
  text-align: center;
}

.community-banner__content h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  margin: 0;
  letter-spacing: -0.02em;
  color: #fff;
}

.community-banner__cta {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: #5865f2;
  font-weight: 600;
}

@media (max-width: 600px) {
  .community-section {
    padding: 0 0 28px;
  }
  .community-banner {
    flex-direction: column;
    max-width: none;
    border-radius: 0;
    margin: 0;
  }
  .community-banner__logo {
    margin: 0 0 12px;
  }
}

/* =========================
   Section framework & polish
   ========================= */

/* Optional: apply this class to your search wrapper in HTML */
.sticky-glass {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, #ffffff 75%, transparent);
  border-bottom: var(--border);
}

/* Generic section scaffolding (pair with modifiers below) */
.section {
  position: relative;
  padding: 28px 20px 36px;
  overflow: clip;
}
.section + .section { margin-top: 12px; }

/* Subtle angled separator between stacked sections */
.section + .section::before {
  content: "";
  position: absolute; inset: -24px 0 auto 0; height: 48px;
  background: radial-gradient(120% 70% at 50% 0%, rgba(0,0,0,.06), transparent 60%);
  transform: skewY(-2deg);
  pointer-events: none;
}

/* Titles */
.section__title {
  font-size: clamp(18px, 1.6vw + 12px, 26px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  display: inline-flex; align-items: center; gap: 10px;
  padding-inline: 8px;
  border-radius: 12px;
}

/* =========================
   Card + reveal animations
   ========================= */

/* Works if your items already use .featured-card / .trending-item.
   The .card class is optional for future components. */
.card,
.featured-card,
.trending-item {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
  transform: translateY(8px);
  opacity: 0;
}

.card.is-visible,
.featured-card.is-visible,
.trending-item.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.card__badge {
  position: absolute; top: 10px; left: 10px;
  padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: #111; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

.reveal-on-scroll { opacity: 0; transform: translateY(10px); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); transition: .5s; }

@media (hover: hover) {
  .card:hover,
  .featured-card:hover,
  .trending-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}

/* ==================================
   Distinct “vibes” via section mods
   ================================== */

/* HOT ITEMS: dark, high-contrast */
.section--trending {
  background: radial-gradient(120% 100% at 10% -10%, #0b1222, #0f1a35 60%, #0b1222);
  color: #e7ecff;
  border-radius: var(--radius-xl);
}
.section--trending .section__title {
  background: linear-gradient(90deg, rgba(255,255,255,.12), transparent);
  color: #fff;
}
.section--trending .trending-grid .featured-card,
.section--trending .trending-grid .trending-item {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(231,236,255,.12);
  color: #e7ecff;
}
.section--trending .card__badge {
  background: linear-gradient(90deg, #ff7a18, #ffb800);
  color: #111;
}
.section--trending .ebay-disclaimer {
  color: rgba(231,236,255,.75);
  font-size: 12px;
  margin-top: 10px;
}

/* RECENT: light, airy */
.section--recent {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  border-radius: var(--radius-xl);
}
.section--recent .section__title {
  background: linear-gradient(90deg, #dbeafe, #e9d5ff 60%, transparent);
}
.section--recent #recent-grid .featured-card,
.section--recent #recent-grid .trending-item {
  background: #fff;
  border: 1px solid rgba(16,24,40,.08);
}

/* FEATURED: editorial w/ gradient border on cards */
.section--featured {
  background: conic-gradient(from 160deg at 20% 0%, #ffffff 0 25%, #f4f6ff 25% 50%, #ffffff 50% 100%);
  border-radius: var(--radius-xl);
}
.section--featured .section__title {
  background: linear-gradient(90deg, #ffe7cc, transparent);
}
.section--featured #featured-grid .featured-card {
  background: #fff;
  border: 1px solid transparent;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(90deg, #ff8a00, #ff3d77, #845ec2);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 10px 40px rgba(132,94,194,.12);
}

/* TWEETS: social card row w/ snap scrolling */
.section--tweets {
  background: linear-gradient(180deg, #f5faff, #ffffff 40%);
  border-radius: var(--radius-xl);
}
.section--tweets .section__title {
  background: linear-gradient(90deg, #e0f2fe, transparent);
}
/* Override base tweets row to a snap grid */
.section--tweets .tweets-row {
  display: grid;
  grid-auto-flow: column;
  overflow-x: auto;
  gap: 12px;
  grid-auto-columns: min(320px, 80vw);
  scroll-snap-type: x mandatory;
  padding: var(--space-4) var(--space-3) 6px;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.section--tweets .tweets-row > * { scroll-snap-align: start; }

/* COMMUNITY: full-bleed banner */
.section--community {
  padding: 0;
  background: linear-gradient(120deg, #111827, #0b1222);
}
.section--community .community-banner {
  display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 16px;
  padding: 22px 20px;
  color: #fff; text-decoration: none;
  background: radial-gradient(120% 120% at 10% -10%, rgba(255,255,255,.08), transparent 50%);
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.section--community .community-banner__logo {
  width: 56px; height: 56px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.4));
}
.section--community .community-banner__cta {
  display: inline-block; margin-top: 6px;
  padding: 8px 12px; border-radius: 999px; font-weight: 600;
  background: linear-gradient(90deg, #5865f2, #8a9dff);
  color: #0b1222;
}


/* App Tab Bar and Topnav styles moved to new_header_footer.css and gated by body.app-nav */

