/* ============================================================
   DESIGN TOKENS — Modrinth-inspired structure on a blue/gold brand.
   Dark-only for now, but every surface/border/accent is a variable so a
   light theme can be added later by overriding :root under a [data-theme].
   ============================================================ */
:root {
  /* Layered surfaces (page is deepest; each step is more raised) */
  --bg-page:        #0e1522;   /* body background */
  --bg-page-2:      #111827;   /* secondary bands (stats, footer, hiw) */
  --surface:        #1a2335;   /* default raised surface */
  --surface-2:      #1f2937;   /* cards / panels */
  --surface-3:      #243044;   /* hover / nested surface */
  --surface-inset:  #111827;   /* inputs, wells, image tiles */

  /* Borders — soft hairlines, Modrinth-style */
  --border:         #2a3346;   /* default low-contrast border */
  --border-strong:  #374151;   /* emphasized border */
  --border-faint:   #1d2738;   /* subtle internal dividers */

  /* Text */
  --text:           #e8edf5;
  --text-muted:     #9ca3af;
  --text-dim:       #6b7280;
  --text-faint:     #4b5563;
  --heading:        #f9fafb;

  /* Accent (brand blue) */
  --accent:         #3b82f6;
  --accent-hover:   #2563eb;
  --accent-text:    #60a5fa;
  --accent-soft:    rgba(59,130,246,0.12);
  --accent-soft-2:  rgba(59,130,246,0.20);
  --ring:           0 0 0 3px rgba(59,130,246,0.30);

  /* Currency / reward semantics (unchanged brand colours) */
  --dl:             #93c5fd;   /* Diamond Lock — light blue */
  --wl:             #fbbf24;   /* World Lock — gold */
  --reward:         #fbbf24;
  --reward-2:       #f59e0b;
  --success:        #10b981;
  --danger:         #f87171;

  /* Radii — generous & consistent */
  --r-sm:   0.5rem;
  --r:      0.75rem;
  --r-lg:   1rem;
  --r-xl:   1.25rem;
  --r-pill: 999px;

  /* Shadows — soft and layered, not neon */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.30);
  --shadow:    0 4px 16px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.40);
  --shadow-lg: 0 18px 48px rgba(0,0,0,0.45);

  /* Motion */
  --t-fast: 0.13s ease;
  --t:      0.2s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Consistent focus ring for keyboard users across interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}

::selection {
  background: var(--accent-soft-2);
  color: var(--heading);
}

/* Slim, themed scrollbars (Modrinth uses subtle thin scrollbars) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #45526a; background-clip: padding-box; }

/* ----------------------------
   Hero Button Overrides
---------------------------- */
.hero-btn-submit {
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
  color: #111827 !important;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(251,191,36,0.35);
  border: none !important;
}

.hero-btn-submit:hover {
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(251,191,36,0.45);
}

.hero-btn-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: heroPulse 2.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0.45); }
  50%       { box-shadow: 0 0 0 8px rgba(251,191,36,0); }
}

/* ----------------------------
   How It Works — numbered journey cards (redesigned 2026-07-11)
---------------------------- */
#howItWorks {
  background:
    radial-gradient(700px 300px at 50% -20%, rgba(59,130,246,0.08), transparent 65%),
    var(--bg-page-2);
  border-bottom: 1px solid var(--border);
  padding: 3.25rem 1rem 3rem;
  text-align: center;
}

.hiw-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.hiw-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: #3B82F6;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.hiw-heading {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  color: #F9FAFB;
  margin: 0 0 0.4rem;
  text-align: center;
}

.hiw-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 auto 2.1rem;
  max-width: 420px;
  line-height: 1.55;
}

.hiw-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 0.85rem;
}

/* Connector line running behind the cards (desktop only) */
.hiw-steps::before {
  content: '';
  position: absolute;
  top: 2.35rem;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(59,130,246,0.35), rgba(16,185,129,0.30),
    rgba(139,92,246,0.30), rgba(251,191,36,0.40));
  opacity: 0.55;
}

@media (max-width: 860px) {
  .hiw-steps { grid-template-columns: repeat(2, 1fr); }
  .hiw-steps::before { display: none; }
}
@media (max-width: 460px) {
  .hiw-steps { grid-template-columns: 1fr; }
}

.hiw-step {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.15rem 1.4rem;
  min-width: 0;
  text-align: center;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}

.hiw-step:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hiw-step-reward {
  border-color: rgba(251,191,36,0.35);
  background: linear-gradient(170deg, rgba(251,191,36,0.07), var(--surface-2) 55%);
}
.hiw-step-reward:hover { border-color: var(--wl); }

.hiw-step-num {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  box-shadow: var(--shadow-sm);
}
.hiw-step-reward .hiw-step-num {
  background: var(--wl);
  border-color: var(--wl);
  color: #111827;
}

/* Icon tiles — tinted per step */
.hiw-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  font-size: 1.25rem;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.hiw-icon--blue   { background: rgba(59,130,246,0.12);  border-color: rgba(59,130,246,0.30);  color: #60A5FA; }
.hiw-icon--green  { background: rgba(16,185,129,0.12);  border-color: rgba(16,185,129,0.30);  color: #34D399; }
.hiw-icon--violet { background: rgba(139,92,246,0.12);  border-color: rgba(139,92,246,0.30);  color: #A78BFA; }
.hiw-icon--gold   { background: rgba(251,191,36,0.12);  border-color: rgba(251,191,36,0.35);  color: #FBBF24; }

.hiw-step h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #F9FAFB;
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.hiw-step p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Legacy: old markup had arrow spacers between steps */
.hiw-arrow { display: none; }

/* ----------------------------
   Back to Top Button
---------------------------- */
#backToTop {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1F2937;
  color: #60A5FA;
  border: 1.5px solid #374151;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s, border-color 0.2s;
  z-index: 1000;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop:hover {
  background: #273244;
  border-color: #3B82F6;
  color: #93C5FD;
}


body {
  font-family: 'Inter', 'Space Grotesk', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ----------------------------
   Header
---------------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem;
  background-color: rgba(17, 24, 39, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

header img.logo {
  height: 60px;
  width: auto;
  flex-shrink: 0;
}

header nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

header nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--r-sm);
  background-color: var(--surface-2);
  border: 1px solid var(--border-strong);
  transition: background-color var(--t), border-color var(--t), color var(--t);
  white-space: nowrap;
  font-size: 0.9rem;
}

header nav a:hover {
  background-color: var(--surface-3);
  border-color: var(--accent);
  color: #fff;
}

/* Remove the old margin-right on currency toggle inside header */
header .currency-toggle {
  margin-right: 0;
}

@media (max-width: 700px) {
  header {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.6rem 0.75rem;
    gap: 0.4rem;
  }

  header img.logo {
    height: 48px;
    width: 100%;
    flex-basis: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
  }

  header nav {
    width: 100%;
    justify-content: center;
    gap: 0.4rem;
    padding-bottom: 0.2rem;
    flex-wrap: wrap;
  }

  header nav a {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
  }
}

/* ----------------------------
   Hero
---------------------------- */
#hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59,130,246,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(251,191,36,0.07) 0%, transparent 60%),
    linear-gradient(170deg, #0f1e30 0%, #111827 55%, #0d1520 100%);
  border-bottom: 1px solid #1a2535;
  padding: 4rem 1rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(1.5rem, 4.5vw, 2.3rem);
  font-weight: 800;
  color: #F9FAFB;
  margin: 0 0 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-title .hero-title-accent {
  background: linear-gradient(90deg, #60A5FA 0%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1rem;
  color: #6B7280;
  line-height: 1.65;
  margin: 0 0 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn-primary {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--r);
  font-size: 0.97rem;
  transition: background var(--t), transform var(--t-fast), box-shadow var(--t);
  box-shadow: var(--shadow-sm);
}

.hero-btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow); }

.hero-btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--r);
  font-size: 0.97rem;
  border: 1px solid var(--border-strong);
  transition: background var(--t), border-color var(--t), transform var(--t-fast);
}

.hero-btn-secondary:hover {
  background: var(--surface-3);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ----------------------------
   Stats Bar
---------------------------- */
#statsBar {
  background: var(--bg-page-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #F9FAFB;
}

.stat-label {
  font-size: 0.72rem;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: #374151;
  flex-shrink: 0;
}

/* ----------------------------
   Footer — brand + links (redesigned 2026-07-11; markup with .foot-*
   lives on index/item, other pages' plain <p> footers still render fine)
---------------------------- */
footer {
  text-align: center;
  padding: 2.4rem 1rem 2rem;
  background:
    radial-gradient(600px 200px at 50% 120%, rgba(59,130,246,0.07), transparent 70%),
    var(--bg-page-2);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  margin-top: 3rem;
}

.foot-inner { max-width: 640px; margin: 0 auto; }

.foot-logo {
  height: 52px;
  width: auto;
  margin-bottom: 0.6rem;
}

.foot-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.foot-copy {
  margin: 0.9rem 0 0;
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ----------------------------
   Search Section
---------------------------- */
#search {
  text-align: center;
  margin: 2.5rem 0 0.5rem;
  padding: 0 1rem;
}

.search-pill {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  overflow: hidden;
  width: clamp(260px, 55vw, 520px);
  transition: border-color var(--t), box-shadow var(--t);
  box-shadow: var(--shadow-sm);
}

.search-pill:focus-within {
  border-color: var(--accent);
  box-shadow: var(--ring), var(--shadow-sm);
}

#search input {
  flex: 1;
  padding: 0.72rem 1.1rem;
  border: none;
  background: transparent;
  color: #F9FAFB;
  font-size: 0.95rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  outline: none;
  min-width: 0;
}

#search input::placeholder {
  color: #4B5563;
}

#search button {
  padding: 0.6rem 1.1rem;
  margin: 4px;
  border: none;
  border-radius: 999px;
  background: #3B82F6;
  color: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

#search button::before {
  content: '';
  width: 0.85em;
  height: 0.85em;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url(../images/icons/search.svg) no-repeat center / contain;
  mask: url(../images/icons/search.svg) no-repeat center / contain;
}

#search button:hover {
  background: #2563EB;
  transform: scale(1.03);
}

#search button:active {
  transform: scale(0.98);
}

.search-result-count {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: #4B5563;
  letter-spacing: 0.03em;
  min-height: 1.2em;
  transition: color 0.2s;
}

@media (max-width: 400px) {
  .search-pill {
    width: calc(100% - 2rem);
  }
}

/* ----------------------------
   Submit Form — Redesigned
---------------------------- */
#submitForm {
  padding: 3.5rem 1rem 2rem;
  text-align: center;
}

.sp-section-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: #3B82F6;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.sp-heading {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  color: #F9FAFB;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  text-align: center;
}

.sp-sub {
  color: #6B7280;
  font-size: 0.92rem;
  margin: 0 auto 2.5rem;
  max-width: 440px;
  line-height: 1.55;
}

.sp-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  text-align: left;
}

.sp-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.sp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
}

.sp-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #374151;
  border: 1.5px solid #4B5563;
  color: #9CA3AF;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 1;
}

.sp-step.active .sp-step-num {
  background: #3B82F6;
  border-color: #3B82F6;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.18);
}

.sp-step.done .sp-step-num {
  background: #10B981;
  border-color: #10B981;
  color: #fff;
}

.sp-step-label {
  font-size: 0.68rem;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sp-step.active .sp-step-label { color: #93C5FD; }
.sp-step.done .sp-step-label { color: #6EE7B7; }

.sp-step-line {
  flex: 1;
  height: 1px;
  background: #374151;
  margin-bottom: 18px;
  align-self: center;
}

.sp-field {
  margin-bottom: 1.1rem;
}

.sp-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.45rem;
}

.sp-select-wrap {
  position: relative;
}

.sp-item-preview {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 5px;
  image-rendering: pixelated;
  background: #0F172A;
  padding: 2px;
  border: 1px solid #334155;
  flex-shrink: 0;
}

.sp-select-arrow {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6B7280;
  font-size: 0.75rem;
}

.sp-select, .sp-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface-inset);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  color: var(--heading);
  font-size: 0.97rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  padding: 0.72rem 1rem;
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.sp-select { padding-left: 3.2rem; padding-right: 2rem; }

.sp-select:focus, .sp-input:focus {
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.sp-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.sp-input-wrap {
  position: relative;
}

.sp-input-suffix {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  color: #6B7280;
  font-weight: 600;
  pointer-events: none;
}

.sp-divider {
  height: 1px;
  background: #2D3B4E;
  margin: 1.5rem 0;
}

.sp-captcha {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.sp-confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  background: #111827;
  border: 1px solid #1E3A5F;
  border-radius: 0.65rem;
  padding: 0.85rem 0.95rem;
  cursor: pointer;
}

.sp-confirm-check {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: #3B82F6;
}

.sp-confirm-text {
  font-size: 0.83rem;
  color: #9CA3AF;
  line-height: 1.45;
}

.sp-confirm-text strong {
  color: #D1D5DB;
  font-weight: 600;
}

.sp-submit-btn {
  width: 100%;
  background: #3B82F6;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  padding: 0.9rem;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.18s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.sp-submit-btn:hover { background: #2563EB; transform: translateY(-1px); }
.sp-submit-btn:active { transform: translateY(0); }
.sp-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.sp-submit-arrow {
  font-size: 1.1rem;
  transition: transform 0.18s;
  display: inline-block;
}

.sp-submit-btn:hover .sp-submit-arrow { transform: translateX(3px); }

#submitMessage {
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2rem;
}

.sp-submit-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.sp-submit-currency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
}

.sp-submit-currency strong {
  color: #93c5fd;
}

.sp-rule-note {
  text-align: center;
  font-size: 0.77rem;
  color: #4B5563;
  margin-top: 1rem;
  line-height: 1.5;
}

.sp-rule-note a { color: #6B7280; text-decoration: underline; }
.sp-rule-note a:hover { color: #9CA3AF; }

.sp-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.sp-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #4B5563;
}

.sp-trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .sp-card { padding: 1.25rem; }
  .sp-price-row { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .sp-card { padding: 1rem 0.85rem; border-radius: 1rem; }
  .sp-heading { font-size: 1.35rem; }
  .sp-sub { font-size: 0.85rem; margin-bottom: 1.75rem; }
  .sp-steps { margin-bottom: 1.5rem; }
  .sp-step-label { font-size: 0.62rem; }
  .sp-submit-btn { font-size: 0.93rem; padding: 0.82rem; }
  .sp-trust-bar { gap: 1rem; }
  .sp-trust-item { font-size: 0.72rem; }
}

/* ----------------------------
   Sort Bar — grouped pill rail (redesigned 2026-07-11)
---------------------------- */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: fit-content;
  max-width: calc(100% - 2rem);
  margin: 0 auto;
  padding: 0.45rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 480px) {
  .sort-bar {
    width: auto;
    max-width: none;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem;
    margin: 0;
    padding: 0.5rem 0.75rem 0.75rem;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #1F2937;
    background: #111827;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .sort-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    white-space: nowrap;
  }
  .sort-label {
    display: none;
  }
}

.sort-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin: 0 0.25rem 0 0.35rem;
}

.sort-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.sort-btn:hover {
  background: var(--surface-3);
  color: var(--text);
  border-color: var(--border-strong);
}

.sort-btn.active {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: var(--accent);
  font-weight: 600;
}

/* ----------------------------
   Item Cards — sprite tile + trust chip + animated CTA
   (redesigned 2026-07-11; markup built by buildItemCard() in js/main.js,
   shared by the main grid and the Summerfest showcase)
---------------------------- */
#itemList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  padding: 1rem 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 400px) {
  #itemList {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 0.75rem 0.75rem 2rem;
  }
}

.item-card {
  background-color: var(--surface-2);
  border-radius: var(--r-lg);
  width: 100%;
  padding: 0.85rem 0.85rem 0.8rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Accent bar (top) + soft glow that both fade in on hover */
.item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-text));
  opacity: 0;
  transition: opacity var(--t);
  z-index: 3;
}

.item-card::after {
  content: '';
  position: absolute;
  top: -45%;
  left: -25%;
  right: -25%;
  height: 100%;
  background: radial-gradient(circle at 50% 100%, rgba(59,130,246,0.12), transparent 65%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.item-card:hover::before,
.item-card:hover::after {
  opacity: 1;
}

/* Sprite tile — inset well with a glow that wakes on hover */
.ic-tile {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-inset);
  border: 1px solid var(--border-faint);
  border-radius: var(--r);
  padding: 0.7rem;
  margin-bottom: 0.65rem;
  overflow: hidden;
  transition: border-color var(--t);
}

.ic-tile::before {
  content: '';
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle, rgba(59,130,246,0.22) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}

.item-card:hover .ic-tile { border-color: var(--border-strong); }
.item-card:hover .ic-tile::before { opacity: 1; }

.item-card .item-img {
  position: relative;
  width: 84px;
  height: 84px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.45));
  transition: transform var(--t);
}

.item-card:hover .item-img {
  transform: scale(1.09) translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .item-card:hover { transform: none; }
  .item-card:hover .item-img { transform: none; }
}

@media (max-width: 480px) {
  .item-card .item-img { width: 62px; height: 62px; }
  .ic-tile { padding: 0.5rem; }
  .item-card strong { font-size: 0.85rem; }
}

/* Trust chip — mirrors the item-page market badge */
.ic-status {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 1px solid;
  backdrop-filter: blur(3px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.ic-status--ok   { background: rgba(6,78,59,0.75);   border-color: rgba(16,185,129,0.45);  color: #34D399; }
.ic-status--warn { background: rgba(69,26,3,0.75);   border-color: rgba(245,158,11,0.5);   color: #FBBF24; }
.ic-status--seed { background: rgba(23,37,84,0.75);  border-color: rgba(59,130,246,0.45);  color: #93C5FD; }

.item-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  color: #F9FAFB;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.item-price {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  color: #FBBF24; /* default; overridden by mode classes below */
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  margin-bottom: 0.3rem;
  line-height: 1.25;
}

/* Currency-mode colour variants */
.item-price.price--dl { color: #93C5FD; } /* Diamond Lock — light blue */
.item-price.price--wl { color: #FBBF24; } /* World Lock — yellow       */

.item-price img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.item-submissions {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.7rem;
  letter-spacing: 0.02em;
}
.ic-dot { color: var(--text-faint); padding: 0 1px; }

/* CTA — quiet pill that charges up on card hover */
.item-card .ic-cta {
  margin-top: auto;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  color: #93C5FD;
  font-weight: 600;
  font-size: 0.8rem;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  letter-spacing: 0.02em;
}

.item-card:hover .ic-cta,
.item-card .ic-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
}

.ic-cta-arrow {
  display: inline-block;
  transition: transform var(--t-fast);
}
.item-card:hover .ic-cta-arrow { transform: translateX(3px); }

/* ----------------------------
   Section Headings
---------------------------- */
h2 {
  text-align: center;
  color: #3B82F6;
  margin-bottom: 1rem;
}

/* ----------------------------
   Legal Section — styled accordion (redesigned 2026-07-11)
---------------------------- */
#legal {
  max-width: 760px;
  margin: 2.5rem auto 2rem;
  padding: 0 1rem;
}

.legal-head { text-align: center; margin-bottom: 1.3rem; }

.legal-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
  margin: 0 0 0.45rem;
}

.legal-heading {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.legal-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 480px;
}

.legal-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 0.85rem;
  box-shadow: var(--shadow);
}

.legal-card details {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-top: 0.55rem;
  overflow: hidden;
  transition: border-color var(--t);
}
.legal-card details:first-child { margin-top: 0; }
.legal-card details:hover { border-color: var(--border-strong); }
.legal-card details[open] { border-color: rgba(59,130,246,0.4); }

.legal-card summary {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  list-style: none;
  user-select: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.legal-card summary::-webkit-details-marker { display: none; }
.legal-card summary:hover { background: rgba(59,130,246,0.05); color: #BFDBFE; }

.legal-sum-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  background: var(--accent-soft);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--accent-text);
  font-size: 0.88rem;
}

.legal-sum-text { flex: 1; }

/* +/× toggle indicator */
.legal-card summary::after {
  content: '+';
  flex: none;
  width: 1.1em;
  color: var(--text-dim);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  transition: transform var(--t), color var(--t);
}
.legal-card details[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent-text);
}

.legal-body {
  padding: 0.1rem 1rem 0.9rem 3.2rem;
}
.legal-body p {
  color: #D1D5DB;
  font-size: 0.85rem;
  line-height: 1.65;
  margin: 0 0 0.6rem;
}
.legal-body p:last-child { margin-bottom: 0; }
.legal-body a { color: var(--accent-text); }

@media (max-width: 480px) {
  .legal-body { padding-left: 1rem; }
}

.legal-contact {
  margin: 0.9rem 0.35rem 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.legal-contact a { color: var(--accent-text); text-decoration: none; font-weight: 600; }
.legal-contact a:hover { text-decoration: underline; }

.footer-legal-links {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
}

.footer-legal-links a {
  color: #93C5FD;
  text-decoration: none;
}

.footer-legal-links a:hover { text-decoration: underline; }

.footer-consent-wrap {
  margin: 0.35rem 0 0;
  text-align: center;
}

.footer-consent-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #93c5fd;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.85rem;
}

.footer-consent-link:hover {
  color: #bfdbfe;
}

.footer-consent-link:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----------------------------
   AdSense placements (responsive display units)
---------------------------- */
.ad-slot-wrap {
  margin: 1.25rem auto;
  padding: 0 1rem;
  max-width: 1200px;
  text-align: center;
}

.ad-slot-wrap[hidden] {
  display: none !important;
}

.ad-slot-inner {
  margin: 0 auto;
  max-width: 970px;
  min-height: 90px;
  border-radius: 0.65rem;
  border: 1px solid #273244;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  padding: 0.6rem 0.5rem 0.75rem;
  box-sizing: border-box;
}

.ad-slot-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.ad-slot-wrap ins.adsense-unit {
  min-height: 50px;
}

@media (max-width: 480px) {
  .ad-slot-inner {
    min-height: 100px;
    padding: 0.5rem 0.35rem 0.65rem;
  }
}

/* ----------------------------
   Ad blocker notice (highlighted, dismissible toast)
---------------------------- */
.gp-adblock-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  max-width: 560px;
  width: calc(100% - 32px);
  background: linear-gradient(180deg, #1d2230 0%, #1F2937 100%);
  border: 2px solid var(--reward-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(245,158,11,0.18);
  padding: 0.95rem 2.5rem 0.95rem 1.1rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
  transform: translateX(-50%) translateY(140%);
  transition: transform 0.35s ease;
}

.gp-adblock-banner--visible {
  transform: translateX(-50%) translateY(0);
}

.gp-adblock-banner-icon {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1.4;
}

.gp-adblock-banner-text strong {
  color: var(--wl);
}

.gp-adblock-banner-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color var(--t-fast), background var(--t-fast);
}
.gp-adblock-banner-close:hover { color: var(--heading); background: rgba(255,255,255,0.08); }

@media (max-width: 480px) {
  .gp-adblock-banner {
    bottom: 10px;
    padding: 0.85rem 2.3rem 0.85rem 0.9rem;
    font-size: 0.86rem;
  }
}

/* ----------------------------
   Currency Toggle Button
---------------------------- */
.currency-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #111827;
  border: 1.5px solid #374151;
  border-radius: 2rem;
  padding: 0.38rem 0.75rem 0.38rem 0.5rem;
  cursor: pointer;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #FBBF24;
  margin-right: 0.5rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  position: relative;
  user-select: none;
  letter-spacing: 0.04em;
}

.currency-toggle:hover {
  border-color: #FBBF24;
  background: #1a1f2e;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}

.currency-toggle--wl {
  color: #34D399;
  border-color: #374151;
}

.currency-toggle--wl:hover {
  border-color: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}

.currency-toggle-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 4px;
  flex-shrink: 0;
}

.currency-toggle-switch {
  display: inline-flex;
  align-items: center;
  width: 28px;
  height: 16px;
  background: #374151;
  border-radius: 999px;
  position: relative;
  transition: background 0.25s;
  flex-shrink: 0;
  margin-left: 0.1rem;
}

.currency-toggle--wl .currency-toggle-switch {
  background: #065F46;
}

.currency-toggle-knob {
  position: absolute;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FBBF24;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.currency-toggle--wl .currency-toggle-knob {
  transform: translateX(12px);
  background: #34D399;
}

@keyframes currencyPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.93); }
  70%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.currency-toggle--pop {
  animation: currencyPop 0.3s ease-out;
}

.currency-toggle-item {
  margin-right: 0;
}

@keyframes currencyToast {
  0%   { opacity: 0; transform: translateY(6px) scale(0.9); }
  15%  { opacity: 1; transform: translateY(0) scale(1); }
  75%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-4px); }
}

.currency-toast {
  position: fixed;
  top: 80px;
  right: 1.5rem;
  background: #1F2937;
  border: 1px solid #374151;
  border-radius: 0.65rem;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #F9FAFB;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 9999;
  pointer-events: none;
  animation: currencyToast 2s ease forwards;
}

.currency-toast img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  image-rendering: pixelated;
}

/* ----------------------------
   Load More Button
---------------------------- */
.load-more-btn {
  background: #1F2937;
  color: #60A5FA;
  border: 1.5px solid #3B82F6;
  border-radius: 2rem;
  padding: 0.65rem 2rem;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  letter-spacing: 0.03em;
}

.load-more-btn:hover {
  background: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  transform: translateY(-1px);
}

.load-more-btn:active {
  transform: translateY(0);
}

/* ----------------------------
   Searchable Item Picker
---------------------------- */
.sp-item-search-wrap {
  position: relative;
}

.sp-item-search-field {
  display: flex;
  align-items: center;
  background: #111827;
  border: 1.5px solid #374151;
  border-radius: 0.65rem;
  padding: 0 0.85rem;
  gap: 0.5rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.sp-item-search-field:focus-within {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.sp-search-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
  opacity: 0.5;
}

.sp-item-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #F9FAFB;
  font-size: 0.97rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  padding: 0.72rem 0;
  min-width: 0;
}

.sp-item-search-input::placeholder {
  color: #4B5563;
}

/* Selected item chip */
.sp-selected-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #111827;
  border: 1.5px solid #10B981;
  border-radius: 0.65rem;
  padding: 0.55rem 0.85rem;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}

.sp-item-preview-inline {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 5px;
  image-rendering: pixelated;
  background: #0F172A;
  padding: 2px;
  border: 1px solid #334155;
  flex-shrink: 0;
}

.sp-selected-item span {
  flex: 1;
  font-size: 0.97rem;
  font-weight: 600;
  color: #F9FAFB;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-clear-item {
  background: transparent;
  border: none;
  color: #4B5563;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.25rem 0.3rem;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.sp-clear-item:hover {
  color: #F87171;
  background: rgba(248,113,113,0.1);
}

/* Dropdown */
.sp-item-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #1a2537;
  border: 1.5px solid #2D3B4E;
  border-radius: 0.75rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  z-index: 200;
  overflow: hidden;
}

.sp-item-dropdown-inner {
  max-height: 280px;
  overflow-y: auto;
  padding: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: #374151 transparent;
}

.sp-item-dropdown-inner::-webkit-scrollbar {
  width: 5px;
}
.sp-item-dropdown-inner::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 99px;
}

.sp-item-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.1s;
}

.sp-item-option:hover,
.sp-item-option--active {
  background: #273244;
}

.sp-item-option-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  image-rendering: pixelated;
  background: #0F172A;
  padding: 2px;
  border: 1px solid #334155;
  flex-shrink: 0;
}

.sp-item-option-name {
  font-size: 0.92rem;
  color: #D1D5DB;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-item-option-name mark {
  background: transparent;
  color: #60A5FA;
  font-weight: 700;
}

.sp-item-no-results {
  padding: 0.85rem;
  text-align: center;
  font-size: 0.85rem;
  color: #4B5563;
}

/* ----------------------------
   Price Currency Badge
---------------------------- */
.sp-input-suffix { display: none; } /* hide old plain-text suffix if present */

.sp-currency-badge {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #1F2937;
  border: 1px solid #374151;
  border-radius: 0.4rem;
  padding: 0.18rem 0.45rem;
  pointer-events: none;
  transition: border-color 0.2s;
  z-index: 1;
}

.sp-currency-badge-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.sp-currency-badge span {
  font-size: 0.73rem;
  font-weight: 700;
  color: #FBBF24; /* default; overridden by mode classes below */
  letter-spacing: 0.04em;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

/* Currency-mode colour for the badge label */
.sp-currency-badge.price--dl span { color: #93C5FD; }
.sp-currency-badge.price--wl span { color: #FBBF24; }

/* Price currency hint line */
.sp-price-currency-hint {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.sp-price-currency-hint strong {
  color: #FBBF24; /* default; overridden by mode classes below */
  font-weight: 600;
}

/* Currency-mode colour for the hint strong text */
.sp-price-currency-hint.price--dl strong { color: #93C5FD; }
.sp-price-currency-hint.price--wl strong { color: #FBBF24; }

.sp-hint-toggle {
  background: transparent;
  border: none;
  color: #60A5FA;
  font-size: 0.78rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sp-hint-toggle:hover {
  color: #93C5FD;
}

/* Ensure price input has enough right padding for badge */
.sp-input-wrap .sp-input {
  padding-right: 4.5rem;
}

/* ----------------------------
   Global Mobile Fixes
---------------------------- */
@media (max-width: 480px) {
  /* Prevent any horizontal scroll */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Hero tighter on small screens */
  #hero {
    padding: 2.5rem 1rem 2rem;
  }
  .hero-title {
    font-size: 1.45rem;
  }
  .hero-sub {
    font-size: 0.88rem;
  }
  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    text-align: center;
    padding: 0.7rem 1rem;
    box-sizing: border-box;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0 0.25rem;
  }

  /* Stats bar - prevent text overflow */
  .stat-value {
    font-size: 1rem;
  }
  .stat-label {
    font-size: 0.65rem;
  }

  /* Search pill full width */
  .search-pill {
    width: calc(100% - 2rem);
  }

  /* Item cards - ensure 2 columns minimum */
  #itemList {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 0.75rem 0.75rem 2rem;
  }
  .item-card {
    padding: 0.75rem 0.6rem 0.7rem;
  }
  .item-card strong {
    font-size: 0.78rem;
  }
  .item-price {
    font-size: 0.82rem;
  }
  .item-submissions {
    font-size: 0.68rem;
  }
  .item-card a {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
  }

  /* Submit form full width with side padding */
  #submitForm {
    padding: 2.5rem 0.75rem 1.5rem;
  }
  .sp-card {
    border-radius: 1rem;
  }

  /* Captcha - scale down if overflows */
  .sp-captcha {
    transform-origin: left center;
  }
  .cf-turnstile {
    max-width: 100%;
    overflow: hidden;
  }

  /* Legal section */
  #legal {
    padding: 0 0.75rem;
  }

  /* Currency toast - keep on screen */
  .currency-toast {
    right: 0.75rem;
    left: 0.75rem;
    font-size: 0.78rem;
    justify-content: center;
  }

  /* Back to top button - move slightly inward */
  #backToTop {
    bottom: 1.25rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* ============================================================
   REWARD SYSTEM — hero badge, How It Works step, claim panel
   ============================================================ */

/* Hero reward callout */
.hero-reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 520px;
  margin: 0 auto 1.6rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(251,191,36,0.12) 0%, rgba(59,130,246,0.1) 100%);
  border: 1px solid rgba(251,191,36,0.35);
  color: #FCD9A1;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hero-reward-badge:hover {
  border-color: rgba(251,191,36,0.7);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(251,191,36,0.18);
}

.hero-reward-badge-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-reward-badge-text strong { color: #FBBF24; }

/* Streaks callout — same pill family as the reward badge, sits directly under it */
.hero-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 520px;
  margin: 0 auto 1.6rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hero-streak-badge:hover {
  border-color: rgba(251,191,36,0.6);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(251,191,36,0.12);
}
.hero-streak-badge-icon { font-size: 1.1rem; flex-shrink: 0; }
.hero-streak-badge-text strong { color: var(--wl); }

/* How It Works — reward step accent */
.hiw-step-reward {
  border-color: rgba(251,191,36,0.4);
  background: linear-gradient(180deg, #221d12 0%, #1F2937 100%);
}
.hiw-step-reward:hover { border-color: #FBBF24; }

/* Reward claim panel (shown after a successful listing) */
.rw-card {
  position: relative;
  max-width: 520px;
  margin: 1.25rem auto 0;
  background: linear-gradient(180deg, #1d2230 0%, #1F2937 100%);
  border: 1px solid rgba(251,191,36,0.35);
  border-radius: 1.25rem;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 0 0 1px rgba(251,191,36,0.06), 0 24px 48px rgba(0,0,0,0.45);
  text-align: left;
  animation: rwReveal 0.35s ease;
}

@keyframes rwReveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rw-dismiss {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.rw-dismiss:hover { color: #F9FAFB; background: rgba(255,255,255,0.06); }

.rw-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FBBF24;
  margin-bottom: 0.6rem;
}
.rw-badge-icon { width: 16px; height: 16px; object-fit: contain; }

.rw-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #F9FAFB;
  margin: 0 0 0.5rem;
}

.rw-intro {
  font-size: 0.86rem;
  color: #9CA3AF;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}
.rw-intro strong { color: #E5E7EB; }

.rw-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #6B7280;
}

.rw-captcha {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0 1rem;
}

.rw-confirm-row { border-color: rgba(251,191,36,0.3); }

.rw-submit-btn {
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
  color: #111827;
}
.rw-submit-btn:hover { background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%); }

#rewardMessage {
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2rem;
}

/* ============================================================
   ADMIN — reward claims dashboard
   ============================================================ */
.adm-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

.adm-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #F9FAFB;
  margin: 0 0 0.5rem;
}

.adm-sub {
  color: #6B7280;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 1.75rem;
  max-width: 640px;
}
.adm-sub strong { color: #FBBF24; }

.adm-totals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.adm-total-card {
  background: #1F2937;
  border: 1px solid #2D3B4E;
  border-radius: 1rem;
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.adm-total-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: #FBBF24;
  line-height: 1.1;
}

.adm-total-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B7280;
  margin-top: 0.35rem;
}

.adm-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.adm-refresh-btn {
  background: #1F2937;
  border: 1px solid #374151;
  color: #E5E7EB;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  cursor: pointer;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  transition: border-color 0.15s, background 0.15s;
}
.adm-refresh-btn:hover { border-color: #3B82F6; background: #243044; }

.adm-status { font-size: 0.8rem; color: #6B7280; }

.adm-world {
  background: #1F2937;
  border: 1px solid #2D3B4E;
  border-radius: 1rem;
  margin-bottom: 1.1rem;
  overflow: hidden;
}

.adm-world-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: #111827;
  border-bottom: 1px solid #2D3B4E;
}

.adm-world-name {
  font-size: 1rem;
  font-weight: 700;
  color: #F9FAFB;
  letter-spacing: 0.01em;
}

.adm-world-meta { font-size: 0.82rem; color: #9CA3AF; }
.adm-world-meta strong { color: #FBBF24; }

.adm-claim {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #232f3f;
}
.adm-claim:last-child { border-bottom: none; }

.adm-claim-item { font-weight: 600; color: #E5E7EB; font-size: 0.92rem; }
.adm-claim-meta { font-size: 0.76rem; color: #6B7280; margin-top: 0.2rem; }
.adm-claim-meta strong { color: #93C5FD; }

.adm-claim-amount {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.adm-amount-input {
  width: 90px;
  background: #111827;
  border: 1.5px solid #374151;
  border-radius: 0.5rem;
  color: #F9FAFB;
  font-size: 0.9rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  padding: 0.45rem 0.6rem;
  outline: none;
  transition: border-color 0.15s;
}
.adm-amount-input:focus { border-color: #FBBF24; }
.adm-amount-unit { font-size: 0.78rem; color: #9CA3AF; font-weight: 600; }

.adm-claim-actions { display: flex; gap: 0.5rem; }

.adm-btn {
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  transition: opacity 0.15s, transform 0.1s;
}
.adm-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.adm-btn-pay { background: #10B981; color: #06281d; }
.adm-btn-pay:hover { background: #34D399; }
.adm-btn-reject { background: #374151; color: #E5E7EB; }
.adm-btn-reject:hover { background: #4B5563; }

.adm-claim-msg {
  grid-column: 1 / -1;
  font-size: 0.76rem;
  font-weight: 600;
  min-height: 0;
}
.adm-claim-msg:empty { display: none; }

/* Bulk-claim item dropdown (admin.html) */
.adm-bulk-toggle {
  background: none;
  border: none;
  color: #93C5FD;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0 0;
  margin-top: 0.25rem;
}
.adm-bulk-toggle:hover { color: #BFDBFE; text-decoration: underline; }

.adm-bulk-items {
  grid-column: 1 / -1;
  background: #111827;
  border: 1px solid #232f3f;
  border-radius: 0.6rem;
  padding: 0.15rem 0.7rem;
  margin-top: 0.2rem;
}
.adm-bulk-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #1c2735;
  font-size: 0.85rem;
}
.adm-bulk-item:last-child { border-bottom: none; }
.adm-bulk-item-name { color: #E5E7EB; }
.adm-bulk-item-price { color: #FBBF24; font-weight: 600; white-space: nowrap; }
.adm-bulk-held {
  font-size: 0.66rem;
  color: #FCA5A5;
  background: #7f1d1d;
  padding: 0.05rem 0.35rem;
  border-radius: 0.35rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.adm-bulk-loading { font-size: 0.8rem; color: #9CA3AF; padding: 0.4rem 0; }

.adm-empty {
  text-align: center;
  color: #6B7280;
  font-size: 0.95rem;
  padding: 2.5rem 1rem;
  background: #1F2937;
  border: 1px dashed #374151;
  border-radius: 1rem;
}
.adm-denied { color: #F87171; border-color: rgba(248,113,113,0.4); }

@media (max-width: 640px) {
  .adm-totals { grid-template-columns: repeat(2, 1fr); }
  .adm-claim {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "main amount"
      "actions actions"
      "msg msg";
  }
  .adm-claim-main { grid-area: main; }
  .adm-claim-amount { grid-area: amount; }
  .adm-claim-actions { grid-area: actions; }
  .adm-claim-msg { grid-area: msg; }
}

/* ============================================================
   ACCOUNTS / AUTH / SUBSCRIPTION (Pro)
   ============================================================ */

/* Header auth links + PRO badge */
.auth-nav { display: inline-flex; align-items: center; gap: 0.4rem; }

.nav-account {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--r-sm);
  background-color: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.nav-account:hover { background-color: var(--surface-3); border-color: var(--accent); color: #fff; }

.nav-account--cta {
  background: linear-gradient(135deg, var(--reward-2) 0%, var(--reward) 100%);
  color: #111827;
  border-color: transparent;
}
.nav-account--cta:hover { color: #111827; filter: brightness(1.05); }

.pro-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #111827;
  background: linear-gradient(135deg, var(--reward-2) 0%, var(--reward) 100%);
  border-radius: var(--r-pill);
  padding: 0.2rem 0.5rem;
  line-height: 1;
}

/* Auth pages (login / signup) */
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 2.5rem 1rem 4rem; }

.auth-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.auth-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--heading);
  text-align: center;
  margin: 0 0 0.4rem;
}

.auth-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}
.auth-sub strong { color: var(--reward); }

.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #fff;
  color: #1f2937;
  border: none;
  border-radius: var(--r);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 0.75rem;
  cursor: pointer;
  transition: filter var(--t), transform var(--t-fast);
}
.auth-google-btn:hover { filter: brightness(0.97); transform: translateY(-1px); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.25rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-captcha { display: flex; justify-content: center; margin: 0.25rem 0 1.1rem; }

.auth-message {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 1.2rem;
  line-height: 1.4;
}
.auth-message--error { color: var(--danger); }
.auth-message--success { color: var(--success); }
.auth-message--info { color: var(--text-muted); }

.auth-switch { text-align: center; margin: 1.25rem 0 0; font-size: 0.9rem; color: var(--text-muted); }
.auth-switch a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

.auth-legal { text-align: center; font-size: 0.75rem; color: var(--text-faint); margin: 1rem 0 0; line-height: 1.5; }
.auth-legal a { color: var(--text-dim); text-decoration: underline; }

.auth-forgot { color: var(--text-dim); font-size: 0.82rem; text-decoration: none; }
.auth-forgot:hover { color: var(--accent-text); text-decoration: underline; }

/* Account page */
.acct-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.acct-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.acct-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin: 0 0 0.2rem; }
.acct-email { font-size: 1.05rem; font-weight: 600; color: var(--heading); margin: 0; word-break: break-all; }

.acct-signout {
  background: var(--surface-inset);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: border-color var(--t), color var(--t);
  white-space: nowrap;
}
.acct-signout:hover { border-color: var(--danger); color: var(--danger); }

.acct-plan { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.acct-plan-pill {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--surface-inset);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}
.acct-plan-pill.pro {
  background: linear-gradient(135deg, var(--reward-2) 0%, var(--reward) 100%);
  color: #111827;
  border-color: transparent;
}
.acct-plan-detail { color: var(--text-muted); font-size: 0.9rem; }

/* Pricing / Pro */
.pricing-heading { font-size: 1.4rem; font-weight: 800; color: var(--heading); margin: 0 0 0.35rem; }
.pricing-sub { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; margin: 0 0 1.25rem; }

.pro-benefits { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.55rem; }
.pro-benefits li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
}
.pro-benefits li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}
.pro-benefits strong { color: var(--reward); }

.pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.pricing-card {
  position: relative;
  background: var(--surface-inset);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 1.35rem 1.2rem;
  text-align: center;
}
.pricing-card--featured { border-color: var(--reward); box-shadow: 0 0 0 1px rgba(251,191,36,0.18); }

.pricing-card-tag {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--reward-2) 0%, var(--reward) 100%);
  color: #111827;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.pricing-card-name { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin: 0 0 0.4rem; }
.pricing-card-price { font-size: 1.5rem; font-weight: 800; color: var(--heading); margin: 0 0 0.2rem; }
.pricing-card-note { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 1rem; }
.pricing-foot { text-align: center; font-size: 0.78rem; color: var(--text-dim); margin: 1.25rem 0 0; }
.pricing-foot strong { color: var(--text-muted); }

@media (max-width: 520px) { .pricing-cards { grid-template-columns: 1fr; } }

/* Pro upsell section on index */
#proCta { padding: 1rem 1rem 3rem; }
.pro-cta-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(251,191,36,0.10) 0%, transparent 70%),
    var(--surface-2);
  border: 1px solid rgba(251,191,36,0.30);
  border-radius: var(--r-xl);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-md);
}
.pro-cta-heading { font-size: clamp(1.3rem, 3.5vw, 1.8rem); font-weight: 800; color: var(--heading); margin: 0.75rem 0 0.5rem; }
.pro-cta-sub { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin: 0 auto 1.5rem; max-width: 480px; }
.pro-cta-sub strong { color: var(--reward); }
.pro-cta-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.pro-cta-foot { font-size: 0.78rem; color: var(--text-dim); margin: 1.1rem 0 0; }

/* Admin — verify listers */
.adm-subhead {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.6rem;
}
.adm-card-lite {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.2rem;
}
.adm-trust-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Submit form: price mode toggle (per item vs items-per-lock) */
.sp-pricemode {
  display: inline-flex;
  gap: 3px;
  margin-bottom: 0.5rem;
  background: var(--surface-inset);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  padding: 3px;
}
.sp-pricemode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s, color 0.15s;
}
.sp-pricemode-btn.active { background: var(--accent); color: #fff; }

/* ============================================================
   MY LISTINGS (self-service delete)
   ============================================================ */
.ml-wrap { max-width: 720px; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.ml-title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; color: var(--heading); margin: 0 0 0.4rem; }
.ml-sub { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; margin: 0 0 1.25rem; }
.ml-sub strong { color: var(--text); }

.ml-warn {
  background: linear-gradient(180deg, rgba(251,191,36,0.10) 0%, var(--surface-2) 100%);
  border: 1px solid rgba(251,191,36,0.4);
  border-radius: var(--r-lg);
  padding: 1rem 1.15rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.ml-warn strong { color: var(--reward); }
.ml-warn u { text-decoration-color: var(--danger); }

.ml-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ml-remaining { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }

.ml-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
}
.ml-item-img {
  width: 44px; height: 44px; object-fit: contain;
  image-rendering: pixelated;
  background: var(--surface-inset);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-sm);
  padding: 4px;
}
.ml-item-main { min-width: 0; }
.ml-item-name { font-weight: 600; color: var(--heading); font-size: 0.95rem; }
.ml-item-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }
.ml-item-msg { grid-column: 1 / -1; font-size: 0.78rem; font-weight: 600; }
.ml-item-msg:empty { display: none; }
.nav-mylistings { /* inherits header nav a styling */ }

/* ============================================================
   SUBMIT: single / bulk mode + bulk item list
   ============================================================ */
.sp-mode {
  display: flex; gap: 4px;
  background: var(--surface-inset);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  padding: 3px; margin-bottom: 1.5rem;
}
.sp-mode-btn {
  flex: 1; background: transparent; border: none;
  color: var(--text-muted); font-size: 0.82rem; font-weight: 600;
  padding: 0.5rem 0.6rem; border-radius: var(--r-pill); cursor: pointer;
  font-family: 'Inter', sans-serif; transition: background 0.15s, color 0.15s;
}
.sp-mode-btn.active { background: var(--accent); color: #fff; }

.sp-bulk-add {
  width: 100%;
  background: var(--accent-soft); border: 1px solid var(--accent);
  color: var(--accent-text); font-weight: 700; font-size: 0.9rem;
  padding: 0.7rem; border-radius: var(--r); cursor: pointer;
  font-family: 'Inter', sans-serif; transition: background 0.15s;
}
.sp-bulk-add:hover { background: var(--accent-soft-2); }

.bulk-pending { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.75rem; }
.bulk-chip {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface-inset); border: 1px solid var(--border);
  border-radius: var(--r); padding: 0.45rem 0.6rem;
}
.bulk-chip-img { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; flex-shrink: 0; }
.bulk-chip-name { flex: 1; min-width: 0; font-weight: 600; color: var(--text); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulk-chip-price { font-size: 0.85rem; color: var(--wl); font-weight: 700; white-space: nowrap; }
.bulk-chip-x { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 0.9rem; padding: 2px 6px; border-radius: 6px; line-height: 1; }
.bulk-chip-x:hover { color: var(--danger); background: rgba(248,113,113,0.1); }

/* ============================================================
   STREAKS — streaks.html (daily streak + distinct-item milestones)
   ============================================================ */
.st-wrap { max-width: 720px; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.st-totals { margin-top: 1.5rem; margin-bottom: 1.75rem; }

.st-countdown {
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.6rem 1.1rem;
  margin-bottom: 2rem;
}
.st-countdown strong { color: var(--text); }
.st-countdown--active {
  color: #FCD9A1;
  border-color: rgba(251,191,36,0.4);
  background: linear-gradient(135deg, rgba(251,191,36,0.10) 0%, rgba(59,130,246,0.06) 100%);
}
.st-countdown--active strong { color: var(--wl); }

.st-section { margin-bottom: 2.25rem; }
.st-section-heading { font-size: 1.1rem; font-weight: 700; color: var(--heading); margin: 0 0 0.3rem; }
.st-section-sub { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin: 0 0 1rem; }

/* --- Activity heatmap --- */
.st-heatmap-wrap { position: relative; overflow-x: auto; padding-bottom: 4px; }
.st-heatmap {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 14px);
  gap: 3px;
  width: max-content;
}
.st-cell {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: var(--surface-inset);
  border: 1px solid var(--border-faint);
  transition: transform 0.1s;
}
.st-cell:not(.st-cell-spacer):hover, .st-cell:not(.st-cell-spacer):focus {
  transform: scale(1.25);
  outline: none;
  border-color: var(--wl);
}
.st-cell-spacer { visibility: hidden; }
.st-cell-0 { background: var(--surface-inset); }
.st-cell-1 { background: rgba(251,191,36,0.25); border-color: rgba(251,191,36,0.3); }
.st-cell-2 { background: rgba(251,191,36,0.48); border-color: rgba(251,191,36,0.5); }
.st-cell-3 { background: rgba(251,191,36,0.72); border-color: rgba(251,191,36,0.75); }
.st-cell-4 { background: var(--wl); border-color: var(--wl); }
.st-cell--today { box-shadow: 0 0 0 2px var(--accent); }

.st-tooltip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 8px));
  background: var(--surface-3);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-fast);
  z-index: 5;
}
.st-tooltip--visible { opacity: 1; }

.st-heatmap-legend {
  display: flex; align-items: center; gap: 0.3rem;
  margin-top: 0.6rem; font-size: 0.72rem; color: var(--text-dim);
}
.st-heatmap-legend .st-cell { width: 12px; height: 12px; }

/* --- Daily streak tier roadmap --- */
.st-tier-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
}
.st-tier {
  flex: 1 1 130px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 0.85rem;
  text-align: center;
  transition: border-color var(--t), transform var(--t);
}
.st-tier--claimable {
  border-color: rgba(251,191,36,0.55);
  box-shadow: 0 0 0 1px rgba(251,191,36,0.12);
  animation: stPulse 1.8s ease-in-out infinite;
}
.st-tier--claimed { opacity: 0.7; }
.st-tier-flame { font-size: 1.4rem; margin-bottom: 0.3rem; }
.st-tier-days { font-weight: 700; color: var(--heading); font-size: 0.95rem; }
.st-tier-reward { color: var(--wl); font-weight: 600; font-size: 0.82rem; margin: 0.15rem 0 0.6rem; }
.st-reward-icon { width: 14px; height: 14px; object-fit: contain; vertical-align: -2px; margin-left: 3px; }

.st-tier-progress, .st-milestone-progress {
  height: 6px;
  background: var(--surface-inset);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: 0.7rem;
}
.st-tier-progress-fill, .st-milestone-progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
  border-radius: var(--r-pill);
  transition: width 0.4s ease;
}

.st-tier-btn {
  width: 100%;
  background: var(--surface-inset);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.55rem 0.5rem;
  border-radius: var(--r);
  cursor: not-allowed;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s, transform 0.1s;
}
.st-tier-btn--claimable {
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
  color: #111827;
  cursor: pointer;
}
.st-tier-btn--claimable:hover { transform: translateY(-1px); }
.st-tier-btn--claimed { background: transparent; border-color: var(--border-faint); color: var(--success); cursor: default; }

@keyframes stPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(251,191,36,0.12); }
  50% { box-shadow: 0 0 0 4px rgba(251,191,36,0.18); }
}

/* --- Distinct-item milestones --- */
.st-milestone-list { display: flex; flex-direction: column; gap: 0.6rem; }
.st-milestone {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.9rem 1.1rem;
  transition: border-color var(--t);
}
.st-milestone--claimable { border-color: rgba(251,191,36,0.5); }
.st-milestone--claimed { opacity: 0.7; }
.st-milestone-main { min-width: 0; }
.st-milestone-title { font-weight: 600; color: var(--heading); font-size: 0.92rem; margin-bottom: 0.4rem; }
.st-milestone-sub { font-size: 0.76rem; color: var(--text-dim); }
.st-milestone .st-tier-btn { width: auto; min-width: 120px; padding: 0.6rem 1rem; }

/* --- Claim form (reuses .rw-card) --- */
.st-claim-form { margin-bottom: 2rem; }

@media (max-width: 640px) {
  .st-tier { flex-basis: 42%; }
  .st-milestone { grid-template-columns: 1fr; text-align: left; }
  .st-milestone .st-tier-btn { width: 100%; }
}

/* ============================================================
   Crypto payment menu (account.html "Get Unlimited")
   ============================================================ */
.coin-menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.coin-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.05s;
}
.coin-btn:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); }
.coin-btn:active { transform: translateY(1px); }
.coin-btn.active {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  box-shadow: 0 0 0 1px #34d399 inset;
}
.coin-ic {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.coin-ic > img:first-child { width: 100%; height: 100%; border-radius: 50%; display: block; }
.coin-ic .coin-net {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 45%;
  height: 45%;
  border-radius: 50%;
  background: #0b1220;
  box-shadow: 0 0 0 1.5px #0b1220;
}
.coin-lbl { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.coin-lbl strong { font-size: 0.92rem; }
.coin-lbl small { font-size: 0.72rem; opacity: 0.7; }

.pay-coin-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.7rem;
}
.pay-coin-txt { display: flex; flex-direction: column; line-height: 1.2; }
.pay-coin-txt strong { font-size: 1.05rem; }
.pay-coin-txt small { font-size: 0.78rem; opacity: 0.7; }

#payQr { display: flex; justify-content: center; }
#payQr img, .pay-qr-img {
  width: 172px;
  height: 172px;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
}

/* ---- Payment-method chooser (bank / Revolut / crypto) ---- */
.method-menu { display: grid; grid-template-columns: 1fr; gap: 8px; }
.method-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.05s;
}
.method-btn:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); }
.method-btn:active { transform: translateY(1px); }
.method-btn.active {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  box-shadow: 0 0 0 1px #34d399 inset;
}
.method-ic {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
}
.method-lbl { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.method-lbl strong { font-size: 0.95rem; }
.method-lbl small { font-size: 0.74rem; opacity: 0.7; }

.pay-method-head { display: flex; align-items: center; gap: 10px; margin-bottom: 0.7rem; }
.pay-method-head .pay-method-ic { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; flex: 0 0 auto; }
.pay-method-head span { display: flex; flex-direction: column; line-height: 1.2; }
.pay-method-head strong { font-size: 1.02rem; }
.pay-method-head small { font-size: 0.78rem; opacity: 0.7; }

.pay-kv { display: flex; align-items: center; gap: 8px; margin: 0.3rem 0; flex-wrap: wrap; }
.pay-kv-lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); min-width: 58px; }
.pay-kv code {
  word-break: break-all;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  flex: 1;
  min-width: 0;
}
.pay-copy { width: auto !important; padding: 0.4rem 0.75rem !important; }
.pay-important {
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0.7rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fcd34d;
}

/* ============================================================
   Lock / unlock badges — mark Unlimited-gated features across the site
   ============================================================ */
.gp-lock-ic {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  vertical-align: -3px;
  margin-right: 2px;
}
/* On the benefits list, the lock icon replaces the default check bullet. */
.pro-benefits.gp-lockable li { display: flex; align-items: center; gap: 8px; }
.pro-benefits.gp-lockable li::before { display: none; }

/* Inline "locked / unlocked" pill used on feature pages (e.g. streaks). */
.gp-lock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  text-decoration: none;
}
.gp-lock-chip img { width: 15px; height: 15px; }
.gp-lock-chip.gp-locked { color: #cbd5e1; }
.gp-lock-chip.gp-locked:hover { border-color: rgba(251, 191, 36, 0.5); color: #fcd34d; }
.gp-lock-chip.gp-unlocked { color: #34d399; border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.1); }

/* Unlimited "+50% streak rewards" banner on streaks.html */
.st-unlimited-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 1.4rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.st-unlimited-banner.gp-unlocked { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.09); }
.st-unlimited-banner .st-ub-text { font-size: 0.9rem; line-height: 1.4; }
.st-unlimited-banner .st-ub-text strong { color: var(--reward); }
.st-unlimited-banner img.st-ub-lock { width: 26px; height: 26px; flex: 0 0 auto; }
.st-ub-cta {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: #0b1220;
  background: var(--reward, #fbbf24);
  white-space: nowrap;
}
.st-tier-boost, .st-milestone-boost {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #34d399;
}

/* ============================================================
   ICON SYSTEM — monochrome SVG icons (lucide, images/icons/*.svg)
   rendered via CSS mask so they inherit the surrounding text color.
   Usage: <span class="gp-ic gp-ic--flame" aria-hidden="true"></span>
   Size follows font-size (1em); tint with the color helpers below
   or any `color:` on the span/parent. Replaces the old emoji UI.
   ============================================================ */
.gp-ic {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.14em;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: contain;     mask-size: contain;
}
.gp-ic--flame { -webkit-mask-image: url(../images/icons/flame.svg); mask-image: url(../images/icons/flame.svg); }
.gp-ic--party-popper { -webkit-mask-image: url(../images/icons/party-popper.svg); mask-image: url(../images/icons/party-popper.svg); }
.gp-ic--shopping-cart { -webkit-mask-image: url(../images/icons/shopping-cart.svg); mask-image: url(../images/icons/shopping-cart.svg); }
.gp-ic--globe { -webkit-mask-image: url(../images/icons/globe.svg); mask-image: url(../images/icons/globe.svg); }
.gp-ic--gift { -webkit-mask-image: url(../images/icons/gift.svg); mask-image: url(../images/icons/gift.svg); }
.gp-ic--clock { -webkit-mask-image: url(../images/icons/clock.svg); mask-image: url(../images/icons/clock.svg); }
.gp-ic--coins { -webkit-mask-image: url(../images/icons/coins.svg); mask-image: url(../images/icons/coins.svg); }
.gp-ic--handshake { -webkit-mask-image: url(../images/icons/handshake.svg); mask-image: url(../images/icons/handshake.svg); }
.gp-ic--message-circle { -webkit-mask-image: url(../images/icons/message-circle.svg); mask-image: url(../images/icons/message-circle.svg); }
.gp-ic--circle-check { -webkit-mask-image: url(../images/icons/circle-check.svg); mask-image: url(../images/icons/circle-check.svg); }
.gp-ic--circle-x { -webkit-mask-image: url(../images/icons/circle-x.svg); mask-image: url(../images/icons/circle-x.svg); }
.gp-ic--hourglass { -webkit-mask-image: url(../images/icons/hourglass.svg); mask-image: url(../images/icons/hourglass.svg); }
.gp-ic--zap { -webkit-mask-image: url(../images/icons/zap.svg); mask-image: url(../images/icons/zap.svg); }
.gp-ic--triangle-alert { -webkit-mask-image: url(../images/icons/triangle-alert.svg); mask-image: url(../images/icons/triangle-alert.svg); }
.gp-ic--lightbulb { -webkit-mask-image: url(../images/icons/lightbulb.svg); mask-image: url(../images/icons/lightbulb.svg); }
.gp-ic--medal { -webkit-mask-image: url(../images/icons/medal.svg); mask-image: url(../images/icons/medal.svg); }
.gp-ic--clipboard-list { -webkit-mask-image: url(../images/icons/clipboard-list.svg); mask-image: url(../images/icons/clipboard-list.svg); }
.gp-ic--puzzle { -webkit-mask-image: url(../images/icons/puzzle.svg); mask-image: url(../images/icons/puzzle.svg); }
.gp-ic--lock { -webkit-mask-image: url(../images/icons/lock.svg); mask-image: url(../images/icons/lock.svg); }
.gp-ic--credit-card { -webkit-mask-image: url(../images/icons/credit-card.svg); mask-image: url(../images/icons/credit-card.svg); }
.gp-ic--bug { -webkit-mask-image: url(../images/icons/bug.svg); mask-image: url(../images/icons/bug.svg); }
.gp-ic--ban { -webkit-mask-image: url(../images/icons/ban.svg); mask-image: url(../images/icons/ban.svg); }
.gp-ic--sprout { -webkit-mask-image: url(../images/icons/sprout.svg); mask-image: url(../images/icons/sprout.svg); }
.gp-ic--flag { -webkit-mask-image: url(../images/icons/flag.svg); mask-image: url(../images/icons/flag.svg); }
.gp-ic--plus { -webkit-mask-image: url(../images/icons/plus.svg); mask-image: url(../images/icons/plus.svg); }
.gp-ic--search { -webkit-mask-image: url(../images/icons/search.svg); mask-image: url(../images/icons/search.svg); }
.gp-ic--trophy { -webkit-mask-image: url(../images/icons/trophy.svg); mask-image: url(../images/icons/trophy.svg); }
.gp-ic--crown { -webkit-mask-image: url(../images/icons/crown.svg); mask-image: url(../images/icons/crown.svg); }
.gp-ic--life-buoy { -webkit-mask-image: url(../images/icons/life-buoy.svg); mask-image: url(../images/icons/life-buoy.svg); }
.gp-ic--check { -webkit-mask-image: url(../images/icons/check.svg); mask-image: url(../images/icons/check.svg); }
.gp-ic--refresh-cw { -webkit-mask-image: url(../images/icons/refresh-cw.svg); mask-image: url(../images/icons/refresh-cw.svg); }
.gp-ic--arrow-right { -webkit-mask-image: url(../images/icons/arrow-right.svg); mask-image: url(../images/icons/arrow-right.svg); }
.gp-ic--x { -webkit-mask-image: url(../images/icons/x.svg); mask-image: url(../images/icons/x.svg); }
.gp-ic--megaphone { -webkit-mask-image: url(../images/icons/megaphone.svg); mask-image: url(../images/icons/megaphone.svg); }
.gp-ic--video { -webkit-mask-image: url(../images/icons/video.svg); mask-image: url(../images/icons/video.svg); }
.gp-ic--store { -webkit-mask-image: url(../images/icons/store.svg); mask-image: url(../images/icons/store.svg); }
.gp-ic--users { -webkit-mask-image: url(../images/icons/users.svg); mask-image: url(../images/icons/users.svg); }
.gp-ic--share-2 { -webkit-mask-image: url(../images/icons/share-2.svg); mask-image: url(../images/icons/share-2.svg); }
.gp-ic--sparkles { -webkit-mask-image: url(../images/icons/sparkles.svg); mask-image: url(../images/icons/sparkles.svg); }
.gp-ic--rocket { -webkit-mask-image: url(../images/icons/rocket.svg); mask-image: url(../images/icons/rocket.svg); }
.gp-ic--palette { -webkit-mask-image: url(../images/icons/palette.svg); mask-image: url(../images/icons/palette.svg); }
.gp-ic--link { -webkit-mask-image: url(../images/icons/link.svg); mask-image: url(../images/icons/link.svg); }
.gp-ic--sun { -webkit-mask-image: url(../images/icons/sun.svg); mask-image: url(../images/icons/sun.svg); }
.gp-ic--timer { -webkit-mask-image: url(../images/icons/timer.svg); mask-image: url(../images/icons/timer.svg); }
.gp-ic--trending-up { -webkit-mask-image: url(../images/icons/trending-up.svg); mask-image: url(../images/icons/trending-up.svg); }
.gp-ic--file-text { -webkit-mask-image: url(../images/icons/file-text.svg); mask-image: url(../images/icons/file-text.svg); }
.gp-ic--shield { -webkit-mask-image: url(../images/icons/shield.svg); mask-image: url(../images/icons/shield.svg); }
.gp-ic--scale { -webkit-mask-image: url(../images/icons/scale.svg); mask-image: url(../images/icons/scale.svg); }
.gp-ic--gamepad-2 { -webkit-mask-image: url(../images/icons/gamepad-2.svg); mask-image: url(../images/icons/gamepad-2.svg); }
.gp-ic--mail { -webkit-mask-image: url(../images/icons/mail.svg); mask-image: url(../images/icons/mail.svg); }
.gp-ic--list-checks { -webkit-mask-image: url(../images/icons/list-checks.svg); mask-image: url(../images/icons/list-checks.svg); }

/* Semantic tints (match the colors the old emojis carried) */
.gp-ic--ok    { color: var(--success); }
.gp-ic--bad   { color: var(--danger); }
.gp-ic--warn  { color: var(--wl); }
.gp-ic--gold  { color: var(--wl); }
.gp-ic--hot   { color: #fb923c; }
.gp-ic--blue  { color: var(--accent-text); }
.gp-ic--muted { color: var(--text-muted); }

/* ============================================================
   WEEKLY LEADERBOARD (#leaderboard, below List Your Price since
   2026-07-11) — top 10 by different items listed this week,
   25 DL → 1 DL prizes.
   Rendered by js/leaderboard.js from the leaderboard_public view.
   ============================================================ */
#leaderboard {
  background: var(--bg-page-2);
  border-bottom: 1px solid var(--border-faint);
  padding: 2rem 1.25rem 2.2rem;
}
.lb-inner { max-width: 880px; margin: 0 auto; }
.lb-head { text-align: center; margin-bottom: 1.2rem; }
.lb-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 0.35rem;
}
.lb-heading {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.45rem;
  color: var(--heading);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.lb-sub { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; margin: 0; }
.lb-sub strong { color: var(--wl); }
#lbCountdown { color: var(--accent-text); font-weight: 600; }

.lb-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: 6px 14px;
}
.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 7px 12px;
  font-size: 0.84rem;
  min-width: 0;
}
.lb-row--first {
  border-color: rgba(251,191,36,0.45);
  background: linear-gradient(90deg, rgba(251,191,36,0.10), var(--surface) 55%);
}
.lb-row--open { opacity: 0.55; border-style: dashed; }
.lb-rank {
  flex: none;
  width: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 700;
  color: var(--text-dim);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}
.lb-rank--gold { color: var(--wl); font-size: 1.05rem; }
.lb-rank--medal { color: #cbd5e1; }
.lb-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
}
.lb-name--unknown { color: var(--text-dim); font-style: italic; font-weight: 500; }
.lb-name--open { color: var(--text-faint); font-style: italic; font-weight: 500; }
.lb-items { flex: none; font-size: 0.74rem; color: var(--text-muted); white-space: nowrap; }
.lb-prize {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--dl);
  white-space: nowrap;
  font-size: 0.82rem;
}
.lb-dl-ico { width: 16px; height: 16px; }
.lb-loading { grid-column: 1 / -1; text-align: center; color: var(--text-dim); font-size: 0.82rem; padding: 1rem 0; }
.lb-foot {
  margin: 1rem auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.lb-foot a { color: var(--accent-text); }

@media (max-width: 640px) {
  .lb-rows { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .lb-row { font-size: 0.8rem; padding: 6px 10px; }
}

/* Support — deliberately highlighted in every header (owner request 2026-07-07) */
.nav-support {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--accent-soft) !important;
  border-color: var(--accent) !important;
  color: var(--accent-text) !important;
}
.nav-support:hover {
  background-color: var(--accent-soft-2) !important;
  color: #fff !important;
}
.nav-support--active {
  background-color: var(--accent) !important;
  color: #fff !important;
}
/* "Earn DLs" pill (earn.html — get paid to advertise) — green-tinted,
   same construction as .nav-support. */
.nav-earn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(74, 222, 128, 0.08) !important;
  border-color: rgba(74, 222, 128, 0.45) !important;
  color: #4ADE80 !important;
}
.nav-earn:hover {
  background-color: rgba(74, 222, 128, 0.18) !important;
  color: #86EFAC !important;
}

/* ============================================================
   Discord promo popup (js/discord-promo.js) — shown after a
   successful listing. Only the X (or the Join CTA) closes it.
   ============================================================ */
.dcp-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050; /* above promo/site banners and the reward panel */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 8, 16, 0.68);
  backdrop-filter: blur(3px);
  animation: dcpFade 0.25s ease;
}
@keyframes dcpFade { from { opacity: 0; } to { opacity: 1; } }
.dcp-card {
  position: relative;
  width: min(94vw, 500px);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 1.1rem;
  padding: 2.1rem 2.2rem 1.9rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(88, 101, 242, 0.25);
  text-align: center;
  animation: dcpPop 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes dcpPop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dcp-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--surface-inset);
  color: var(--heading);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.dcp-close:hover { background: var(--surface-3); border-color: var(--border-strong); }
.dcp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.14);
  border: 1px solid rgba(88, 101, 242, 0.4);
  color: #a5b4fc;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.dcp-title {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--heading);
  margin: 0 0 0.8rem;
}
.dcp-title .dcp-dl { color: var(--dl); }
.dcp-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted, #9ca3af);
  margin: 0 0 1.4rem;
}
.dcp-join {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 0.75rem;
  background: #5865f2; /* Discord blurple */
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.dcp-join:hover { background: #4752c4; transform: translateY(-1px); }
.dcp-how {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--accent-text);
  text-decoration: none;
}
.dcp-how:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .dcp-card { padding: 1.7rem 1.2rem 1.5rem; }
  .dcp-title { font-size: 1.25rem; }
}

/* ============================================================
   EARN PAGE (earn.html) — "Get paid to advertise" video rewards.
   Steps list, assigned-message card with in-game color preview,
   and the copy button. Claim form reuses rw-/sp- classes.
   ============================================================ */
.earn-steps {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
}
.earn-step {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 10px 14px;
  background: var(--card, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-soft, #cbd5e1);
  text-align: left;
}
.earn-step-num {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.78rem;
}
.earn-msg-card {
  margin: 0 0 1.4rem;
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--card, rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 0.8rem;
  text-align: left;
}
.earn-msg-preview {
  margin: 0.7rem 0 0.55rem;
  padding: 12px 14px;
  background: #10151d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.55rem;
  font-family: 'Space Grotesk', monospace;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
}
.earn-msg-raw {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  overflow-x: auto;
}
.earn-msg-raw code {
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
  white-space: pre;
}
.earn-copy-btn {
  margin-top: 0.75rem;
  padding: 9px 18px;
  border: none;
  border-radius: 0.55rem;
  background: #fbbf24;
  color: #1a1206;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.12s, filter 0.12s;
}
.earn-copy-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.earn-msg-note {
  margin: 0.7rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted, #94a3b8);
}
.earn-reward-line {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4ade80;
  min-height: 1em;
}
.earn-fineprint {
  margin: 1.2rem 0 0;
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--text-muted, #94a3b8);
  text-align: left;
}

/* ---- Today's reward pool widget (js/reward-pool.js, 2026-07-08) ---- */
.gp-pool {
  margin: 0.4rem 0 0.8rem;
  padding: 10px 14px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 0.6rem;
  text-align: left;
}
.gp-pool--low { border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.06); }
.gp-pool--empty { border-color: rgba(148, 163, 184, 0.35); background: rgba(148, 163, 184, 0.06); }
.gp-pool-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.gp-pool-label { color: #fde68a; font-weight: 600; }
.gp-pool--low .gp-pool-label { color: #fca5a5; }
.gp-pool--empty .gp-pool-label { color: #94a3b8; }
.gp-pool-num { color: var(--text-muted, #94a3b8); font-size: 0.76rem; }
.gp-pool-bar {
  margin-top: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}
.gp-pool-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  transition: width 0.4s ease;
}
.gp-pool--low .gp-pool-fill { background: linear-gradient(90deg, #f87171, #ef4444); }
.gp-pool-note {
  margin-top: 6px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted, #94a3b8);
}

/* ---- Daily payout countdown (js/payout-time.js, 2026-07-09) ---- */
.gp-payout {
  margin: 0.4rem 0 0.8rem;
  padding: 8px 14px;
  background: rgba(96, 165, 250, 0.07);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 0.6rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  text-align: left;
}
.gp-payout-label { color: #bfdbfe; font-weight: 600; }
.gp-payout-val { color: #fde68a; font-weight: 700; }
.gp-payout-sub { color: var(--text-muted, #94a3b8); font-size: 0.72rem; flex-basis: 100%; }

/* ---- Referral stats row (js/referral.js, 2026-07-09) ---- */
.ref-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
}
.ref-stats strong { color: #fde68a; }
/* Brief highlight when arriving from a "Get your link" callout. */
.ref-flash { animation: refFlash 1.6s ease-out; }
@keyframes refFlash {
  0%, 30% { box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.7); }
  100% { box-shadow: 0 0 0 2px rgba(167, 139, 250, 0); }
}

/* ---- Featured listings v1 (js/featured.js, 2026-07-08) ---- */
.ft-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.12), rgba(251, 191, 36, 0.04));
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 0.6rem;
}
.ft-badge { color: #fbbf24; font-weight: 700; font-size: 0.8rem; white-space: nowrap; }
.ft-world { color: #e8edf5; font-weight: 600; letter-spacing: 0.04em; }
.ft-hint { color: var(--text-muted, #94a3b8); font-size: 0.74rem; }
.ft-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  padding: 6px 12px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 0.5rem;
  color: #fbbf24;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}
.ft-cta:hover { background: rgba(251, 191, 36, 0.18); }

#ftHomeStrip { max-width: 1080px; margin: 0 auto 1.4rem; padding: 0 16px; }
.ft-strip-head { color: #fbbf24; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.ft-strip-sub { color: var(--text-muted, #94a3b8); font-weight: 400; font-size: 0.72rem; margin-left: 8px; }
.ft-strip-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.ft-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 170px;
  padding: 10px 14px;
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 0.6rem;
  text-decoration: none;
}
.ft-card:hover { background: rgba(251, 191, 36, 0.14); }
.ft-card-item { color: #e8edf5; font-weight: 600; font-size: 0.82rem; }
.ft-card-world { color: #fbbf24; font-size: 0.74rem; letter-spacing: 0.04em; }

.ft-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(2, 6, 23, 0.75);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.ft-modal {
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  background: #0f172a;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 0.8rem;
  padding: 20px;
  position: relative;
}
.ft-modal h3 { margin: 0 0 6px; color: #fbbf24; font-size: 1.05rem; }
.ft-sub { color: var(--text-muted, #94a3b8); font-size: 0.78rem; line-height: 1.55; margin: 0 0 14px; }
.ft-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; color: #94a3b8; font-size: 1rem; cursor: pointer;
}
.ft-field { margin-bottom: 10px; }
.ft-field > label { display: block; color: #cbd5e1; font-size: 0.74rem; font-weight: 600; margin-bottom: 4px; }
.ft-field input[type="text"] {
  width: 100%; padding: 8px 10px;
  background: #1e293b; border: 1px solid #334155; border-radius: 0.4rem;
  color: #e8edf5; font-size: 0.82rem;
}
.ft-radio { display: block; color: #e8edf5; font-size: 0.8rem; margin: 3px 0; cursor: pointer; }
.ft-opt { color: var(--text-muted, #94a3b8); font-weight: 400; }
.ft-pay-info {
  margin: 8px 0 12px; padding: 9px 12px;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 0.5rem;
  color: #cbd5e1; font-size: 0.75rem; line-height: 1.6;
}
.ft-pay-link { color: #93c5fd; font-weight: 600; }
.ft-captcha { margin: 10px 0; }
.ft-error {
  margin: 8px 0; padding: 8px 12px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 0.5rem;
  color: #fca5a5; font-size: 0.76rem;
}
.ft-submit {
  width: 100%; padding: 10px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border: none; border-radius: 0.5rem;
  color: #0f172a; font-weight: 700; font-size: 0.86rem; cursor: pointer;
}
.ft-submit:disabled { opacity: 0.6; cursor: default; }
/* row-icon sizing is item.html-local — size featured icons explicitly */
.ft-banner img.row-icon, .ft-card img.row-icon {
  width: 16px; height: 16px; object-fit: contain; vertical-align: -3px;
}
.ft-card { height: auto; }

/* ============================================================
   REFERRAL PROGRAM push (2026-07-10) — nav pill, referral.html
   page, first-visit splash (.rsp-*). Owner wants this front
   and center everywhere.
   ============================================================ */
/* "Invite & Earn" pill — violet, same construction as .nav-earn */
.nav-invite {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(167, 139, 250, 0.1) !important;
  border-color: rgba(167, 139, 250, 0.5) !important;
  color: #c4b5fd !important;
}
.nav-invite:hover {
  background-color: rgba(167, 139, 250, 0.22) !important;
  color: #ddd6fe !important;
}
.nav-invite--active { background-color: rgba(124, 58, 237, 0.45) !important; color: #fff !important; }

/* "Shop Ads" pill — gold */
.nav-shopad {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(251, 191, 36, 0.08) !important;
  border-color: rgba(251, 191, 36, 0.45) !important;
  color: #fcd34d !important;
}
.nav-shopad:hover {
  background-color: rgba(251, 191, 36, 0.18) !important;
  color: #fde68a !important;
}
.nav-shopad--active { background-color: rgba(180, 83, 9, 0.5) !important; color: #fff !important; }

/* ---- referral.html ---- */
.rf-hero {
  text-align: center;
  padding: 2.4rem 1.2rem 2.2rem;
  margin: 0 0 1.4rem;
  border-radius: 1.2rem;
  background:
    radial-gradient(ellipse 70% 90% at 50% -10%, rgba(124, 58, 237, 0.35), transparent 70%),
    linear-gradient(180deg, rgba(88, 28, 135, 0.25), rgba(15, 23, 42, 0.0));
  border: 1px solid rgba(167, 139, 250, 0.35);
}
.rf-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: #c4b5fd;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.rf-hero-title {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  color: var(--heading, #f1f5f9);
  margin: 0 0 0.8rem;
}
.rf-hero-dl {
  background: linear-gradient(90deg, #a78bfa, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rf-hero-sub {
  max-width: 560px;
  margin: 0 auto 1.3rem;
  color: var(--muted, #9ca3af);
  font-size: 0.95rem;
  line-height: 1.65;
}
.rf-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0.9rem 1.8rem;
  border-radius: 0.8rem;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.rf-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(124, 58, 237, 0.55); }

.rf-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 1.4rem;
}
.rf-card {
  text-align: center;
  padding: 1.3rem 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(124, 58, 237, 0.08);
}
.rf-card--friend { border-color: rgba(52, 211, 153, 0.35); background: rgba(16, 185, 129, 0.07); }
.rf-card-ic .gp-ic { font-size: 1.5rem; color: #c4b5fd; }
.rf-card--friend .rf-card-ic .gp-ic { color: #6ee7b7; }
.rf-card-amt {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ddd6fe;
  line-height: 1.1;
  margin-top: 4px;
}
.rf-card--friend .rf-card-amt { color: #6ee7b7; }
.rf-card-who { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--muted, #9ca3af); margin: 2px 0 6px; }
.rf-card-note { font-size: 0.76rem; line-height: 1.5; color: var(--muted, #9ca3af); margin: 0; }

.rf-h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.25rem;
  color: var(--heading, #f1f5f9);
  margin: 0 0 0.9rem;
}
.rf-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 1.6rem;
}
.rf-step {
  position: relative;
  padding: 1.1rem 1rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.2));
  background: var(--surface-2, rgba(30, 41, 59, 0.5));
}
.rf-step-ic {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.6rem;
  background: rgba(167, 139, 250, 0.14);
  margin-bottom: 8px;
}
.rf-step-ic .gp-ic { font-size: 1.15rem; color: #c4b5fd; }
.rf-step-num {
  position: absolute;
  top: 0.8rem; right: 0.9rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.5rem; font-weight: 700;
  color: rgba(167, 139, 250, 0.25);
}
.rf-step h3 { margin: 0 0 4px; font-size: 0.92rem; color: var(--heading, #f1f5f9); }
.rf-step p { margin: 0; font-size: 0.78rem; line-height: 1.55; color: var(--muted, #9ca3af); }

.rf-faq p { font-size: 0.85rem; line-height: 1.65; color: var(--muted, #9ca3af); margin: 0 0 0.8rem; }
.rf-faq strong { color: var(--heading, #e2e8f0); }

.rf-more { display: grid; gap: 10px; margin-top: 1.6rem; }
.rf-more-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 0.7rem;
  border: 1px solid rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.06);
  color: #86efac;
  font-size: 0.82rem;
  line-height: 1.5;
  text-decoration: none;
}
.rf-more-card > span:nth-child(2) { flex: 1; }
.rf-more-card--shop { border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.06); color: #fcd34d; }
.rf-more-arrow { font-weight: 700; }

@media (max-width: 560px) {
  .rf-cards { grid-template-columns: 1fr; }
}

/* ---- first-visit referral splash (js/referral-splash.js) ---- */
.rsp-card {
  border-color: rgba(167, 139, 250, 0.5) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(167, 139, 250, 0.35),
    0 0 60px rgba(124, 58, 237, 0.25) !important;
}
.rsp-badge {
  background: rgba(167, 139, 250, 0.14) !important;
  border-color: rgba(167, 139, 250, 0.45) !important;
  color: #c4b5fd !important;
}
.rsp-dl {
  background: linear-gradient(90deg, #a78bfa, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rsp-chips {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  margin: 0 0 1.1rem;
}
.rsp-chip {
  flex: 1;
  max-width: 150px;
  padding: 10px 8px;
  border-radius: 0.7rem;
  border: 1px solid rgba(167, 139, 250, 0.4);
  background: rgba(124, 58, 237, 0.12);
}
.rsp-chip:last-child { border-color: rgba(52, 211, 153, 0.4); background: rgba(16, 185, 129, 0.1); }
.rsp-chip-amt {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #ddd6fe;
}
.rsp-chip:last-child .rsp-chip-amt { color: #6ee7b7; }
.rsp-chip-who { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted, #9ca3af); }
.rsp-chip-plus { align-self: center; font-size: 1.3rem; font-weight: 700; color: var(--muted, #9ca3af); }
.rsp-cta { background: linear-gradient(90deg, #7c3aed, #a855f7) !important; }
.rsp-cta:hover { background: linear-gradient(90deg, #6d28d9, #9333ea) !important; }

/* ============================================================
   VENDING SHOP ADS (2026-07-10) — €0.49/week homepage boxes.
   .sa-box--<id> designs are mirrored in featured-api SHOP_DESIGNS
   + the js/advertise.js picker. Keep all three in sync.
   ============================================================ */
/* Strip section — sits between How It Works and the items table, styled like
   a real page section (GT sky-to-grass tint) so it reads as part of the page. */
#shopAdStrip { padding: 0 1rem; }
.sa-inner {
  max-width: 1100px;
  margin: 0 auto 1.6rem;
  padding: 1.6rem 1.2rem 1.4rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(74, 222, 128, 0.28);
  background:
    radial-gradient(ellipse 80% 100% at 50% -20%, rgba(56, 189, 248, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(30, 58, 138, 0.12), rgba(22, 101, 52, 0.14));
}
.sa-head { text-align: center; margin-bottom: 1.1rem; }
.sa-strip-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4ade80;
  margin: 0 0 4px;
}
.sa-heading {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.45rem;
  color: var(--heading, #f1f5f9);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.sa-heading-sprite { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; }
.sa-sub { font-size: 0.8rem; color: var(--muted, #9ca3af); margin: 0; line-height: 1.55; }
.sa-sub a { color: #fcd34d; font-weight: 600; }

/* boxes start from the CENTER (owner request) and wrap outward */
.sa-strip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* The ad box — chunky Growtopia-block bevel, sprite in the corner */
.sa-box {
  position: relative;
  flex: 0 0 auto;
  width: 205px;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 13px 15px;
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.35);
  /* GT-block bevel: light top edge, dark bottom edge */
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.22),
    inset 3px 0 0 rgba(255, 255, 255, 0.08),
    inset 0 -4px 0 rgba(0, 0, 0, 0.28),
    inset -3px 0 0 rgba(0, 0, 0, 0.12),
    0 4px 14px rgba(0, 0, 0, 0.35);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.sa-box:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.22),
    inset 0 -4px 0 rgba(0, 0, 0, 0.28),
    0 10px 26px rgba(0, 0, 0, 0.45);
}
.sa-box-sprite {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}
.sa-box-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.sa-box-world {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  word-break: break-all;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.sa-box-worldic { width: 17px; height: 17px; object-fit: contain; flex: 0 0 auto; }
.sa-box-tag {
  font-size: 0.7rem;
  line-height: 1.4;
  opacity: 0.92;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
.sa-box-visit {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.63rem;
  font-weight: 600;
  margin-top: 5px;
  opacity: 0.85;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.sa-box-wl { width: 13px; height: 13px; object-fit: contain; image-rendering: pixelated; }

/* the 6 designs */
.sa-box--gold    { background-color: #b45309; background-image: linear-gradient(135deg, #78350f, #b45309 60%, #f59e0b); color: #fef3c7; }
.sa-box--emerald { background-color: #047857; background-image: linear-gradient(135deg, #064e3b, #047857 60%, #10b981); color: #d1fae5; }
.sa-box--violet  { background-color: #6d28d9; background-image: linear-gradient(135deg, #4c1d95, #6d28d9 60%, #a855f7); color: #ede9fe; }
.sa-box--fire    { background-color: #b91c1c; background-image: linear-gradient(135deg, #7f1d1d, #b91c1c 55%, #f97316); color: #ffedd5; }
.sa-box--ocean   { background-color: #0369a1; background-image: linear-gradient(135deg, #0c4a6e, #0369a1 60%, #06b6d4); color: #cffafe; }
.sa-box--night   { background-color: #1e293b; background-image: linear-gradient(135deg, #0f172a, #1e293b 60%, #334155); color: #e2e8f0; }

/* custom world-screenshot background: darken it so text stays readable
   (inline background-image wins over the design gradient; the ::before
   overlay carries the tint) */
.sa-box--img { color: #f8fafc; }
.sa-box--img::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.62));
  pointer-events: none;
}
.sa-box--img > * { position: relative; z-index: 1; }

/* trailing "your shop here" CTA card */
.sa-box--cta {
  background: rgba(251, 191, 36, 0.06);
  border: 2px dashed rgba(251, 191, 36, 0.55);
  box-shadow: none;
  color: #fcd34d;
}
.sa-box--cta:hover { background: rgba(251, 191, 36, 0.12); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); }
.sa-box--cta .sa-box-tag strong { color: #fde68a; }
.sa-box--cta .sa-box-sprite { opacity: 0.85; }

@media (max-width: 560px) {
  .sa-box { width: 100%; }
}

/* ---- advertise.html builder ---- */
.adv-hero {
  text-align: center;
  padding: 2.4rem 1.2rem 2.2rem;
  margin: 0 0 1.4rem;
  border-radius: 1.2rem;
  background:
    radial-gradient(ellipse 70% 90% at 50% -10%, rgba(245, 158, 11, 0.3), transparent 70%),
    linear-gradient(180deg, rgba(120, 53, 15, 0.25), rgba(15, 23, 42, 0.0));
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.adv-hero .rf-hero-title { margin-bottom: 0.8rem; }
.adv-hero-gold {
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.adv-hero-cta {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35);
}
.adv-hero-cta:hover { box-shadow: 0 12px 36px rgba(245, 158, 11, 0.5); }
.adv-why { margin-bottom: 1.6rem; }
.adv-step-ic { background: rgba(251, 191, 36, 0.14); }
.adv-step-ic .gp-ic { color: #fcd34d; }

.adv-builder {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 18px;
  align-items: start;
}
.adv-preview-wrap .sp-label { margin-bottom: 8px; }
.adv-preview { position: sticky; top: 80px; }
.sa-box--preview { width: 100%; cursor: default; }
.adv-designs { display: flex; flex-wrap: wrap; gap: 8px; }
.adv-swatch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border-width: 1px;
  border-style: solid;
  opacity: 0.75;
  transition: opacity 0.15s, transform 0.15s, outline 0.15s;
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.adv-swatch:hover { opacity: 1; transform: translateY(-1px); }
.adv-swatch--on { opacity: 1; outline-color: #fff; }
.adv-swatch .gp-ic { font-size: 0.95rem; }

/* payment panel on advertise.html (the method buttons reuse the account
   page's .method-menu/.method-btn/.coin-menu styles — global classes) */
#advPayPanel {
  border: 1px solid var(--border, rgba(148, 163, 184, 0.25));
  border-radius: 0.7rem;
  padding: 0.9rem 1rem;
  background: var(--surface-inset, rgba(15, 23, 42, 0.4));
}

@media (max-width: 640px) {
  .adv-builder { grid-template-columns: 1fr; }
  .adv-preview { position: static; }
}

/* ============================================================
   SUMMERFEST EVENT SECTION (limited-time, below the sort bar)
   Config: js/summerfest-config.js; rendered by renderSummerfest()
   in js/main.js. The whole section hides after ENDS_AT.
============================================================ */
#summerfest {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.25rem 1rem 1.75rem;
}

.sf-panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.1rem;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background:
    radial-gradient(1200px 420px at 85% -10%, rgba(251, 191, 36, 0.16), transparent 60%),
    radial-gradient(900px 380px at -10% 110%, rgba(56, 189, 248, 0.12), transparent 60%),
    linear-gradient(165deg, #10243f 0%, #0f2c4a 45%, #27303a 78%, #3a2e14 100%);
  box-shadow: 0 10px 40px rgba(251, 191, 36, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 1.6rem 1.5rem 1.4rem;
}

/* Soft sun disc, top-right */
.sf-sun {
  position: absolute;
  top: -70px;
  right: -50px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.5) 0%, rgba(251, 191, 36, 0.22) 40%, transparent 70%);
  pointer-events: none;
}

/* Floating item sprites (decorative) */
.sf-deco { position: absolute; inset: 0; pointer-events: none; }
.sf-deco-img {
  position: absolute;
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.5;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  animation: sfFloat 7s ease-in-out infinite;
}
.sf-deco-1 { top: 14px; right: 190px; transform: rotate(-8deg); }
.sf-deco-2 { top: 82px; right: 96px; width: 40px; height: 40px; animation-delay: -2.2s; }
.sf-deco-3 { top: 20px; right: 34px; width: 46px; height: 46px; transform: rotate(6deg); animation-delay: -4.1s; }
.sf-deco-4 { top: 110px; right: 210px; width: 34px; height: 34px; animation-delay: -5.5s; }
@keyframes sfFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-deco-img { animation: none; }
}

.sf-head { position: relative; max-width: 620px; }

.sf-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #FCD34D;
  margin: 0 0 0.45rem;
}

.sf-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: #F8FAFC;
}
.sf-heading-year {
  background: linear-gradient(90deg, #FDE047, #FB923C);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sf-sub {
  color: #CBD5E1;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 0.9rem;
}
.sf-sub strong { color: #FDE68A; }

.sf-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.sf-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.12);
  color: #FDE68A;
}
.sf-pill-icon { width: 15px; height: 15px; object-fit: contain; }
.sf-pill-timer {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.5);
  color: #CBD5E1;
}
.sf-pill-timer strong { color: #F8FAFC; }

.sf-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1F2937;
  text-decoration: none;
  background: linear-gradient(90deg, #FDE047, #F59E0B);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.sf-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

/* Event item grid — same cards as the main list, warm-tinted */
.sf-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-top: 1.15rem;
}
.sf-grid .item-card {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(251, 191, 36, 0.22);
}
.sf-grid .item-card:hover {
  border-color: rgba(251, 191, 36, 0.55);
}
.sf-grid .item-card::before {
  background: linear-gradient(90deg, #FDE047, #FB923C);
}

/* "+5 WL" chip on every event card */
.sf-chip {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1F2937;
  background: linear-gradient(90deg, #FDE047, #FBBF24);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  z-index: 2;
}
.sf-chip img { width: 11px; height: 11px; object-fit: contain; }

.sf-more-wrap { display: flex; justify-content: center; margin-top: 1rem; }
.sf-more-btn {
  background: rgba(15, 23, 42, 0.55);
  color: #FDE68A;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s, border-color 0.15s;
}
.sf-more-btn:hover {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.65);
}

@media (max-width: 640px) {
  .sf-panel { padding: 1.25rem 1rem 1.1rem; }
  .sf-heading { font-size: 1.4rem; }
  .sf-deco-img { opacity: 0.22; }
  .sf-deco-1, .sf-deco-4 { display: none; }
  .sf-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}

/* ============================================================
   HOMEPAGE REDESIGN (2026-07-11) — shared components:
   market section header (.mk-*), slim notice boxes (.gp-note),
   ways-to-earn callouts (.gp-callout), leaderboard polish.
============================================================ */

/* ---- "Live market" header above the search pill ---- */
.mk-head {
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.mk-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: #3B82F6;
  font-weight: 600;
  margin: 0 0 0.45rem;
}

.mk-heading {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.3rem, 3.2vw, 1.75rem);
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.mk-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 520px;
}

#search { margin-top: 3rem; }

/* ---- Slim notice boxes (seller account notice, Unlimited promo fill) ---- */
.gp-note {
  display: block;
  max-width: 640px;
  margin: 0 auto 0.8rem;
  padding: 10px 14px;
  border-radius: var(--r);
  border: 1px solid;
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: left;
}
.gp-note--blue { background: rgba(59,130,246,0.07);  border-color: rgba(59,130,246,0.25);  color: #93C5FD; }
.gp-note--gold { background: rgba(251,191,36,0.08);  border-color: rgba(251,191,36,0.35);  color: #FDE68A; }
.gp-note a { color: inherit; font-weight: 600; }

/* ---- Ways-to-earn callouts (submit section) ---- */
.sp-callouts {
  max-width: 640px;
  margin: 0.2rem auto 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.gp-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 14px;
  border-radius: var(--r);
  border: 1px solid;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  transition: transform var(--t-fast), box-shadow var(--t), border-color var(--t);
}
.gp-callout:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.gp-callout-icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  font-size: 1.05rem;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.gp-callout-text { flex: 1; min-width: 200px; }

/* The earn boost rewrite (js/earn-promo.js) injects its own inline icon
   into .earn-ad-text — the tile already shows one, so hide the duplicate. */
.gp-callout .earn-ad-text .gp-ic { display: none; }

.gp-callout-cta {
  flex: none;
  border: none;
  border-radius: 0.6rem;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: filter var(--t-fast), transform var(--t-fast);
}
.gp-callout:hover .gp-callout-cta { filter: brightness(1.12); }

.gp-callout--green  { background: rgba(74,222,128,0.06);  border-color: rgba(74,222,128,0.28);  color: #86EFAC; }
.gp-callout--green .gp-callout-icon { background: rgba(74,222,128,0.12);  border-color: rgba(74,222,128,0.30);  color: #4ADE80; }
.gp-callout--green .gp-callout-cta  { background: #16A34A; }

.gp-callout--violet { background: rgba(167,139,250,0.08); border-color: rgba(167,139,250,0.32); color: #C4B5FD; }
.gp-callout--violet .gp-callout-icon { background: rgba(167,139,250,0.14); border-color: rgba(167,139,250,0.32); color: #A78BFA; }
.gp-callout--violet .gp-callout-cta  { background: #7C3AED; }

.gp-callout--amber  { background: rgba(251,191,36,0.06);  border-color: rgba(251,191,36,0.28);  color: #FCD34D; }
.gp-callout--amber .gp-callout-icon { background: rgba(251,191,36,0.12);  border-color: rgba(251,191,36,0.32);  color: #FBBF24; }
.gp-callout--amber .gp-callout-cta  { background: #B45309; }

.gp-callout--blue   { background: rgba(59,130,246,0.06);  border-color: rgba(59,130,246,0.28);  color: #93C5FD; }
.gp-callout--blue .gp-callout-icon { background: rgba(59,130,246,0.12);  border-color: rgba(59,130,246,0.32);  color: #60A5FA; }
.gp-callout--blue .gp-callout-cta  { background: #1D4ED8; }

/* ---- Leaderboard polish (now sits below List Your Price) ---- */
#leaderboard { border-top: 1px solid var(--border-faint); }

.lb-row {
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.lb-row:not(.lb-row--open):hover {
  border-color: var(--border-strong);
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}

/* Silver / bronze hints for ranks 2–3 (rows render in rank order) */
.lb-rows .lb-row:nth-child(2):not(.lb-row--open) {
  border-color: rgba(203,213,225,0.30);
  background: linear-gradient(90deg, rgba(203,213,225,0.06), var(--surface) 55%);
}
.lb-rows .lb-row:nth-child(3):not(.lb-row--open) {
  border-color: rgba(217,119,6,0.32);
  background: linear-gradient(90deg, rgba(217,119,6,0.07), var(--surface) 55%);
}
