/* ==========================================================================
   PlaceBid — Design System & Stylesheet
   ========================================================================== */

:root {
  --bg: #fdfbf8;
  --surface: #fffdfa;
  --ink: #262525;
  --muted: #837f7a;
  --line: #e8e1da;
  --accent: #31965c;
  --accent-hover: #207c47;
  --accent-soft: #e6f3e9;
  --accent-border: #8fcba3;
  --shadow: 0 16px 42px rgba(46, 43, 38, 0.055);

  /* Top 3 Ranks Graded Greenish Glowup Variables */
  --glow-1: 0 8px 32px rgba(49, 150, 92, 0.22), 0 0 0 1.5px rgba(49, 150, 92, 0.45);
  --glow-2: 0 6px 24px rgba(49, 150, 92, 0.14), 0 0 0 1.5px rgba(49, 150, 92, 0.30);
  --glow-3: 0 4px 16px rgba(49, 150, 92, 0.08), 0 0 0 1.5px rgba(49, 150, 92, 0.18);
  --bg-glow-1: linear-gradient(105deg, rgba(49, 150, 92, 0.22) 0%, rgba(230, 243, 233, 0.78) 100%);
  --bg-glow-2: linear-gradient(105deg, rgba(49, 150, 92, 0.14) 0%, rgba(230, 243, 233, 0.58) 100%);
  --bg-glow-3: linear-gradient(105deg, rgba(49, 150, 92, 0.08) 0%, rgba(230, 243, 233, 0.40) 100%);
}

/* --------------------------------------------------------------------------
   Reset & Global Typography
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  transition: background-color 0.25s ease, color 0.25s ease;
}

button,
select,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 36px;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
header {
  height: 60px;
  position: relative;
}

header.search-open {
  height: 106px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.search-field {
  height: 42px;
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(49, 150, 92, 0.15);
}

.search-field span {
  color: var(--muted);
  font-size: 18px;
}

.search-field input {
  min-width: 0;
  flex: 1;
  padding-left: 6px;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-clear {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
}

.search-clear:disabled {
  opacity: .45;
  cursor: default;
}

.search-close {
  flex: 0 0 42px;
  height: 42px;
}

.nav {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1.5px;
  text-decoration: none;
  white-space: nowrap;
}

.brand > span > span,
.brand em {
  color: var(--accent);
  font-style: normal;
}

.brand em {
  font-size: 20px;
}

.brand-mark {
  width: 28px;
  height: 26px;
  margin-right: 9px;
  position: relative;
  display: block;
}

.brand-mark b {
  height: 5px;
  background: var(--ink);
  border-radius: 99px;
  display: block;
  position: absolute;
  right: 0;
}

.brand-mark b:nth-child(1) {
  width: 11px;
  top: 1px;
  background: var(--accent);
}

.brand-mark b:nth-child(2) {
  width: 21px;
  top: 10px;
}

.brand-mark b:nth-child(3) {
  width: 28px;
  top: 19px;
}

.mode-switch {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px;
  display: flex;
  background: rgba(250, 248, 244, 0.85);
}

.mode-switch button {
  padding: 7px 14px;
  border-radius: 99px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.mode-switch button.selected {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.mode-switch i {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.nav nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav a,
footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.nav a:hover,
footer a:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: transparent;
  transition: background-color 0.2s;
}

.icon-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  font-size: 20px;
}

.mobile-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideDown 0.2s ease;
}

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

.mobile-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f4f0ea;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.mobile-mode-switch button {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.mobile-mode-switch button.selected {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.mobile-mode-switch i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-link {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Live Stats Pill
   -------------------------------------------------------------------------- */
.stats {
  margin: 18px auto 14px;
  width: max-content;
  max-width: 100%;
  padding: 10px 18px;
  background: #f4f1ed;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.stats span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #2ebc5b;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 0 4px #e1f4e5;
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 188, 91, 0.4);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(46, 188, 91, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 188, 91, 0);
  }
}

.stats strong {
  color: #158a3f;
  margin-right: 4px;
}

.stats a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
}

.stats a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Hero Claim Form
   -------------------------------------------------------------------------- */
.claim {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  min-height: 150px;
}

.claim h1 {
  font-size: 48px;
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 54px;
}

.claim h1 b {
  font-weight: 800;
  color: var(--accent);
}

.claim h1 em {
  font-style: normal;
  color: var(--ink);
  font-weight: 700;
}

.amount {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 700;
}

.amount-stepper-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  vertical-align: middle;
}

.amount-step-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.15s, background 0.15s;
  vertical-align: middle;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.amount-step-btn:hover {
  background: var(--accent-border);
  transform: scale(1.08);
}

.amount-input-wrap {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 800;
  font-size: inherit;
  letter-spacing: inherit;
  margin: 0;
}

.hero-amount-input {
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
  font-size: inherit;
  letter-spacing: inherit;
  width: 2.2ch;
  min-width: 1ch;
  max-width: 5ch;
  text-align: center;
  outline: none;
  font-family: inherit;
  padding: 0;
  margin: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.hero-amount-input::-webkit-inner-spin-button,
.hero-amount-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.hero-amount-input:focus {
  border-bottom: 2px solid var(--accent);
}

.hero-amount {
  color: var(--accent);
  font-weight: 800;
}

.claim form,
.claim-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(180px, 1.2fr) 150px;
  gap: 12px;
  align-items: center;
  text-align: left;
}

.claim form.has-existing,
.claim-form-row.has-existing {
  grid-template-columns: minmax(0, 1fr) 160px;
}

.claim form.has-existing > button[type='submit'],
.claim-form-row.has-existing > button[type='submit'] {
  grid-column: 2;
}

.claim-form-row .amount {
  height: 52px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.url-input,
select {
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  display: flex;
  align-items: center;
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.url-input:focus-within,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(49, 150, 92, 0.15);
}

.url-input-icon {
  font-size: 20px;
  color: var(--muted);
  margin-right: 12px;
}

.brand-logo-img {
  height: 28px;
  width: auto;
  margin-right: 9px;
  vertical-align: middle;
}

.url-logo-preview {
  width: 26px;
  height: 26px;
  margin-left: 10px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  font-size: 14px;
}

.url-logo-preview[hidden] {
  display: none;
}

.url-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.url-input input {
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
  flex: 1;
  font-size: 15px;
}

.url-input input::placeholder {
  color: #98948f;
}

select {
  outline: 0;
  appearance: auto;
  color: #5f5c5a;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

select:disabled {
  cursor: not-allowed;
  opacity: 0.8;
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.claim-status {
  min-height: 24px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.primary,
.claim form button {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 20px;
  padding: 0 22px;
  height: 52px;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.15s;
}

.primary:hover,
.claim form button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.primary:disabled,
.claim form button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 36px;
}

.claim-error {
  margin: 4px 0 0;
  color: #b64036;
  font-size: 13px;
  line-height: 1.3;
  min-height: 17px;
}

/* --------------------------------------------------------------------------
   Today's Top Ranking Section
   -------------------------------------------------------------------------- */
.today-top-section {
  max-width: 1060px;
  width: 100%;
  margin: 12px auto 6px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-sizing: border-box;
}

.today-top-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}

.today-top-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.today-top-title .live-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.today-top-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.today-top-link:hover {
  text-decoration: underline;
}

.today-top-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.today-top-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  padding: 1px 0;
}

.today-top-row:hover .today-top-name {
  color: var(--accent);
  text-decoration: underline;
}

.today-top-rank {
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  font-size: 12px;
}

.today-top-sep {
  color: var(--muted);
  font-size: 11px;
  flex-shrink: 0;
}

.today-top-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--ink);
}

.today-top-amount {
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Category Tabs
   -------------------------------------------------------------------------- */
.tabs-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 4px 0 12px;
}

.tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  flex: 1;
  height: 48px;
  align-items: center;
  padding-right: 118px;
}

.tabs-scroll::-webkit-scrollbar {
  display: none;
}

.tabs-scroll button,
.tabs-scroll a.tab-item {
  flex: 0 0 auto;
  font-weight: 500;
  color: #55524e;
  background: #f4f0ea;
  padding: 7px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.tabs-scroll button i,
.tabs-scroll a.tab-item i {
  font-style: normal;
  color: #777;
}

.tabs-scroll button:hover,
.tabs-scroll a.tab-item:hover {
  color: var(--ink);
  background: #eae5de;
}

.tabs-scroll button.active,
.tabs-scroll a.tab-item.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.tabs-scroll button.active i,
.tabs-scroll a.tab-item.active i {
  color: #fff;
}

.tabs-explore {
  position: absolute;
  right: 0;
  z-index: 5;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 16px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  height: 40px;
  display: flex;
  align-items: center;
  box-shadow: -10px 0 15px var(--bg);
}

.tabs-explore:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Leaders List & Row Styling (Top 3 Green Glowups)
   -------------------------------------------------------------------------- */
.leaders {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 1060px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

.listing {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 52px 70px minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: center;
  min-height: 96px;
  height: auto;
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.listing:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.listing:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d7d0c9;
}

/* Rank Badge */
.rank {
  font-size: 18px;
  background: #f0ebe4;
  color: var(--ink);
  width: 52px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Listing Logo */
.listing-logo {
  width: 70px;
  height: 70px;
  background: #fff;
  color: var(--accent);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1.5px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  overflow: hidden;
}

.listing-logo .logo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  z-index: 0;
}

.listing-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  padding: 8px;
  background: #fff;
  z-index: 1;
}

.listing-logo.large {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  font-size: 28px;
}

.listing-logo.large img {
  padding: 12px;
}

/* Main Details */
.listing-main {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.listing-title-row {
  display: block;
  width: 100%;
  min-width: 0;
}

.mobile-rank,
.mobile-amount {
  display: none;
}

.listing-main h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 2px;
  letter-spacing: -0.4px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.listing-main small {
  display: none;
  color: var(--muted);
}

.listing-main p {
  margin: 2px 0 4px;
  color: #726d67;
  font-size: 14.5px;
  line-height: 1.45;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.meta {
  display: flex;
  gap: 4px 8px;
  align-items: center;
  color: #948f89;
  font-size: 13px;
  flex-wrap: wrap;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  min-width: 0;
}

.meta b {
  color: #4c4946;
  font-weight: 600;
}

.meta a {
  color: #7a756f;
  text-decoration: none;
  font-weight: 500;
}

.meta a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Side Actions */
.listing-side {
  align-self: stretch;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.listing-side strong {
  font-size: 21px;
  color: var(--accent);
  letter-spacing: -0.7px;
  font-weight: 700;
  text-align: right;
  width: 100%;
}

.listing-side button {
  font-weight: 600;
  color: var(--accent);
  font-size: 13px;
  padding: 4px 0;
  transition: color 0.15s;
}

.listing-side button:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   GRADED GREENISH GLOWUP FOR TOP 3 RANKS (#1 > #2 > #3)
   -------------------------------------------------------------------------- */

/* Rank #1: Deep Greenish Glowup */
.listing.rank-1,
.listing.top-rank-1 {
  background: var(--bg-glow-1);
  border: 1.5px solid var(--accent-border);
  box-shadow: var(--glow-1);
}

.listing.rank-1 .rank,
.listing.top-rank-1 .rank {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(49, 150, 92, 0.35);
}

.listing.rank-1:hover,
.listing.top-rank-1:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 38px rgba(49, 150, 92, 0.28), 0 0 0 1.5px var(--accent);
}

/* Rank #2: Medium Greenish Glowup (less greenish than #1) */
.listing.rank-2,
.listing.top-rank-2 {
  background: var(--bg-glow-2);
  border: 1.5px solid rgba(49, 150, 92, 0.35);
  box-shadow: var(--glow-2);
}

.listing.rank-2 .rank,
.listing.top-rank-2 .rank {
  background: rgba(49, 150, 92, 0.85);
  color: #fff;
  box-shadow: 0 3px 10px rgba(49, 150, 92, 0.22);
}

.listing.rank-2:hover,
.listing.top-rank-2:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(49, 150, 92, 0.20), 0 0 0 1.5px rgba(49, 150, 92, 0.45);
}

/* Rank #3: Subtle Greenish Glowup (less greenish than #2) */
.listing.rank-3,
.listing.top-rank-3 {
  background: var(--bg-glow-3);
  border: 1.5px solid rgba(49, 150, 92, 0.22);
  box-shadow: var(--glow-3);
}

.listing.rank-3 .rank,
.listing.top-rank-3 .rank {
  background: rgba(49, 150, 92, 0.70);
  color: #fff;
  box-shadow: 0 2px 8px rgba(49, 150, 92, 0.15);
}

.listing.rank-3:hover,
.listing.top-rank-3:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(49, 150, 92, 0.14), 0 0 0 1.5px rgba(49, 150, 92, 0.30);
}

/* --------------------------------------------------------------------------
   Latest Activity Section
   -------------------------------------------------------------------------- */
.activity-only {
  width: 100%;
  max-width: 1060px;
  min-width: 0;
  margin: 12px auto 18px;
  box-sizing: border-box;
}

.activity-only section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px 14px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.activity-only .section-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.activity-only .section-head h2 {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.activity-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.activity-card {
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.activity-card:hover {
  background: #f7f3ed;
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.activity-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-avatar .avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 0;
}

.activity-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  background: #fff;
  border-radius: inherit;
  z-index: 1;
}

.activity-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.activity-info strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.activity-info small {
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px auto 56px;
}

.pagination button {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
}

.pagination button.active,
.pagination button:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.4px;
}

.section-head span {
  font-size: 13px;
  color: var(--muted);
}

.mini {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  padding: 8px 0;
  transition: background 0.15s;
}

.mini:hover {
  background: rgba(0, 0, 0, 0.015);
}

.mini > b {
  color: var(--accent);
  font-size: 14px;
  width: 26px;
  font-weight: 700;
}

.mini div {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.mini strong {
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini small {
  color: var(--muted);
  font-size: 12px;
}

.mini em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Categories Page
   -------------------------------------------------------------------------- */
.categories-page .page-title {
  margin-top: 40px;
  margin-bottom: 36px;
}

.page-title h1 {
  font-size: 48px;
  letter-spacing: -2px;
  margin: 0 0 14px;
  font-weight: 700;
}

.page-title p {
  font-size: 20px;
  color: #625e59;
  margin: 0;
  line-height: 1.45;
}

.most-active-section {
  background: #f4f0ea;
  border-radius: 28px;
  padding: 24px 28px;
  margin-bottom: 36px;
}

.most-active-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.most-active-header .live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.most-active-sub {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.active-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.active-category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.active-category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent-border);
}

.active-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.active-card-icon {
  font-size: 18px;
  color: var(--accent);
}

.active-card-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.active-card-badge.hottest {
  color: #df4a32;
}

.active-card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-card-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
}

.active-card-leader {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  margin-top: auto;
}

.active-card-leader .leader-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.active-card-leader .leader-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  color: var(--muted);
}

.active-card-leader .leader-text b {
  color: var(--ink);
}

.active-card-leader .leader-bid {
  font-weight: 700;
  color: var(--accent);
  margin-left: auto;
}

.empty-leader {
  color: var(--muted);
  font-size: 12px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.category-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

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

.cat-icon {
  color: var(--accent);
  font-size: 26px;
  background: var(--accent-soft);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
}

.category-card h2 {
  font-size: 19px;
  margin: 16px 0 6px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.category-card p {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0 0 14px;
}

.cat-list {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: auto;
}

.cat-list div {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 6px 0;
  font-size: 13px;
}

.cat-list span {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.cat-list b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  font-weight: 500;
}

.cat-list em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}

.cat-rank.rank-1 span {
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 1px 6px;
}

.cat-rank.rank-2 {
  opacity: 0.85;
}

.cat-rank.rank-3 {
  opacity: 0.70;
}

/* --------------------------------------------------------------------------
   Daily Page
   -------------------------------------------------------------------------- */
.daily-page .page-title {
  margin: 40px 0 36px;
  max-width: 720px;
}

.daily-stack {
  display: grid;
  gap: 20px;
}

.day-board {
  border: 2px solid var(--accent-border);
  border-radius: 32px;
  padding: 28px 30px;
  background: linear-gradient(135deg, #f1f9f3, #fffdfa 75%);
}

.day-board.past-day-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px 26px;
  background: var(--surface);
}

.day-board.past-day-card .day-board-head {
  margin-bottom: 0;
}

.day-board-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.day-board-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.badge-live {
  font-size: 13px;
  vertical-align: middle;
  background: var(--accent);
  color: #fff;
  border-radius: 99px;
  padding: 3px 10px;
  margin-left: 8px;
  font-weight: 600;
}

.day-board-head p {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 15px;
}

.day-board-head > b {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

.day-ranks {
  display: grid;
  gap: 12px;
}

.day-ranks .listing {
  background: rgba(255, 255, 255, 0.85);
}

.day-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.day-btn {
  height: 46px;
  border-radius: 23px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.15s;
}

.day-btn.primary {
  background: var(--accent);
  color: #fff;
}

.day-btn.primary:hover {
  background: var(--accent-hover);
}

.day-btn.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.day-btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.past-day {
  margin: 28px 0 64px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px 28px;
  background: var(--surface);
}

.past-day h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.past-day p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   Detail Page
   -------------------------------------------------------------------------- */
.crumb {
  color: #746e69;
  text-decoration: none;
  display: inline-block;
  margin: 18px 0 20px;
  font-weight: 500;
  font-size: 14.5px;
}

.crumb a {
  color: #746e69;
  text-decoration: none;
  transition: color 0.15s;
}

.crumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.detail {
  max-width: 900px;
}

.detail-card {
  border: 1.5px solid rgba(49, 150, 92, 0.45);
  border-radius: 28px;
  padding: 32px;
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(46, 43, 38, 0.03);
}

.detail-card-top {
  display: flex;
  gap: 24px;
  align-items: center;
}

.detail-card-header {
  flex: 1;
  min-width: 0;
}

.detail-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1.2px;
  margin: 0 0 6px;
  color: var(--ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.detail-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #8b8680;
  font-size: 13.5px;
  flex-wrap: wrap;
  white-space: normal;
}

.meta-cat-link {
  color: var(--ink);
  text-decoration: none;
}

.meta-cat-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.meta-domain-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.meta-domain-link:hover {
  text-decoration: underline;
}

.detail-desc {
  font-size: 16px;
  line-height: 1.55;
  color: #5f5a54;
  margin: 22px 0 26px;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.detail-visit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 26px;
  height: 46px;
  font-size: 14.5px;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.15s;
}

.detail-visit-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.detail-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  border-radius: 999px;
  padding: 0 22px;
  height: 46px;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.15s;
}

.detail-copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.detail-ranks-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 32px;
}

.detail-stat-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.detail-stat-card small {
  color: #8b8680;
  letter-spacing: 0.8px;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
}

.detail-stat-card strong {
  display: block;
  font-size: 38px;
  letter-spacing: -1.5px;
  margin-top: 10px;
  font-weight: 800;
  color: var(--ink);
}

.detail-stat-card p {
  color: #726d67;
  line-height: 1.4;
  margin: 4px 0 16px;
  font-size: 14px;
}

.stat-card-link {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

.stat-card-link:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.about-ranking {
  margin: 36px 0 24px;
}

.about-ranking h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.about-ranking .about-narrative {
  margin: 0 0 20px;
  color: #6a655f;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.claim-rank-cta {
  border-radius: 999px;
  padding: 0 28px;
  height: 48px;
  font-size: 15px;
  font-weight: 700;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(38, 37, 37, 0.48);
}

.confirm-card {
  position: relative;
  width: min(100%, 500px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.confirm-close {
  position: absolute;
  top: 18px;
  right: 20px;
  color: var(--muted);
  font-size: 26px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.confirm-card h2 {
  margin: 0;
  font-size: 30px;
}

.confirm-lead {
  margin: 8px 0 24px;
  color: var(--muted);
}

.confirm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.confirm-grid > div {
  padding: 16px;
  border-radius: 16px;
  background: var(--accent-soft);
}

.confirm-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.confirm-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 25px;
}

.confirm-detail {
  color: var(--muted);
}

.confirm-detail b {
  color: var(--ink);
}

.terms-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 22px 0;
  color: var(--muted);
  font-size: 13px;
}

.terms-check a {
  color: var(--accent);
}

.confirm-error {
  margin: 0 0 14px;
  color: #b64036;
  font-size: 13px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-actions > button:first-child {
  padding: 0 18px;
  color: var(--muted);
  font-weight: 600;
}

.confirm-actions .primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.detail-actions .primary {
  border: 0;
  color: #fff;
}

.detail-actions .primary:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Legal & Prose Pages
   -------------------------------------------------------------------------- */
.prose {
  max-width: 850px;
}

.prose h1 {
  font-size: 52px;
  letter-spacing: -2.5px;
  max-width: 650px;
  margin: 48px 0 16px;
  font-weight: 700;
}

.prose .lead {
  font-size: 21px;
  line-height: 1.45;
  color: #615c57;
  max-width: 650px;
}

.rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 48px 0 80px;
}

.rules > div {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
}

.rules b {
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}

.rules h2 {
  font-size: 19px;
  margin: 12px 0 8px;
  font-weight: 700;
}

.rules p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  font-size: 14px;
}

.legal-date {
  font-size: 13px;
  color: var(--muted);
  margin: 20px 0 -12px;
}

.legal-contact {
  margin: 0 0 80px;
  color: var(--muted);
  font-size: 15px;
}

.legal-contact a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

/* Editorial legal pages */
.legal-page{display:flow-root;max-width:980px;padding-bottom:88px}.legal-page .stats{position:relative;z-index:0;margin-top:64px}.legal-hero{position:relative;z-index:0;display:block;clear:both;height:auto;max-width:760px;margin:0;padding:52px 0 42px;border-bottom:1px solid var(--line)}.legal-eyebrow,.legal-meta,.legal-contact-panel>span,.about-live-metrics small,.rank-ladder span{color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.11em}.legal-eyebrow{color:var(--accent)}.legal-hero h1{position:relative;z-index:1;display:block;max-width:720px;margin:15px 0 17px;font-size:clamp(42px,6vw,66px);line-height:.98;letter-spacing:-3.5px}.legal-hero p,.legal-meta{position:relative;z-index:1}.legal-hero p{max-width:670px;margin:0;color:var(--muted);font-size:20px;line-height:1.55}.legal-meta{display:flex;gap:14px;margin-top:28px;letter-spacing:.04em}.legal-meta span+span:before{content:'·';margin-right:14px;color:var(--accent)}.about-live-metrics{position:relative;z-index:0;clear:both;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;margin:32px 0 48px;background:var(--line);border:1px solid var(--line);border-radius:22px;overflow:hidden}.about-live-metrics>div{position:relative;display:block;min-width:0;min-height:116px;padding:24px;background:var(--surface)}.about-live-metrics small{display:block}.about-live-metrics strong{display:block;margin-top:12px;color:var(--accent);font-size:25px;letter-spacing:-1px}.rank-ladder{display:flex;align-items:stretch;gap:16px;margin:32px 0 48px}.rank-ladder>div{flex:1;padding:18px 20px;border:1px solid var(--line);border-radius:18px}.rank-ladder strong{display:block;margin-top:7px;font-size:27px;letter-spacing:-1px}.rank-ladder i{align-self:center;color:var(--muted);font-style:normal}.rank-ladder-top{border-color:var(--accent-border)!important;background:var(--accent-soft)}.rank-ladder-top strong{color:var(--accent)}.legal-sections{margin:0 0 32px}.legal-section{display:grid;grid-template-columns:74px minmax(0,1fr);gap:20px;padding:29px 0;border-bottom:1px solid var(--line)}.legal-section-index{color:var(--accent);font-size:13px;font-weight:700;letter-spacing:.08em}.legal-section h2{margin:0 0 9px;font-size:22px;letter-spacing:-.7px}.legal-section p{max-width:700px;margin:0;color:var(--muted);font-size:16px;line-height:1.62}.legal-contact-panel{display:flex;align-items:center;gap:16px;padding:21px 24px;border:1px solid var(--accent-border);border-radius:20px;background:var(--accent-soft)}.legal-contact-panel p{margin:0;font-weight:600}.legal-contact-panel a{margin-left:auto;color:var(--accent);font-weight:700;text-decoration:none}
@media(max-width:650px){.legal-page .stats{margin-top:34px}.legal-hero{padding:34px 0 30px}.legal-hero h1{letter-spacing:-2.2px}.legal-hero p{font-size:17px}.legal-meta{display:grid;gap:5px}.legal-meta span+span:before{display:none}.about-live-metrics{grid-template-columns:1fr;margin:24px 0 34px}.about-live-metrics>div{min-height:0;padding:20px}.rank-ladder{display:grid;grid-template-columns:1fr;gap:8px}.rank-ladder i{display:none}.legal-section{grid-template-columns:38px minmax(0,1fr);gap:10px}.legal-section h2{font-size:19px}.legal-section p{font-size:15px}.legal-contact-panel{display:grid;gap:8px}.legal-contact-panel a{margin-left:0}}

/* --------------------------------------------------------------------------
   Empty State
   -------------------------------------------------------------------------- */
.empty {
  border: 1.5px dashed var(--accent-border);
  border-radius: 28px;
  padding: 48px 24px;
  text-align: center;
  background: var(--accent-soft);
  margin: 20px 0;
}

.empty h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.empty p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  margin-top: 80px;
  width: 100%;
  box-sizing: border-box;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.footer-metrics {
  display: flex;
  align-items: center;
  gap: 6px 10px;
  font-size: 13.5px;
  color: var(--muted);
  flex-wrap: wrap;
  line-height: 1.4;
}

.footer-metrics strong {
  color: var(--ink);
}

.footer-sep {
  color: var(--line);
}

footer .brand {
  font-size: 20px;
}

footer .brand em {
  font-size: 16px;
}

footer .brand-mark {
  transform: scale(0.8);
  transform-origin: left;
}

footer span {
  color: var(--muted);
  font-size: 14px;
}

footer nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  color: var(--muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Dark Mode Theme
   -------------------------------------------------------------------------- */
body.dark {
  --bg: #141615;
  --surface: #1a1d1b;
  --ink: #f5f2ed;
  --muted: #aaa6a0;
  --line: #2d322e;
  --accent: #58bd7c;
  --accent-hover: #6fcf90;
  --accent-soft: #1b3322;
  --accent-border: #3b744e;
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.35);

  --glow-1: 0 8px 34px rgba(88, 189, 124, 0.28), 0 0 16px rgba(88, 189, 124, 0.20), 0 0 0 1.5px rgba(88, 189, 124, 0.60);
  --glow-2: 0 6px 26px rgba(88, 189, 124, 0.18), 0 0 10px rgba(88, 189, 124, 0.12), 0 0 0 1.5px rgba(88, 189, 124, 0.40);
  --glow-3: 0 4px 18px rgba(88, 189, 124, 0.10), 0 0 6px rgba(88, 189, 124, 0.08), 0 0 0 1.5px rgba(88, 189, 124, 0.25);
  --bg-glow-1: linear-gradient(105deg, rgba(88, 189, 124, 0.20) 0%, rgba(26, 29, 27, 0.98) 100%);
  --bg-glow-2: linear-gradient(105deg, rgba(88, 189, 124, 0.12) 0%, rgba(26, 29, 27, 0.98) 100%);
  --bg-glow-3: linear-gradient(105deg, rgba(88, 189, 124, 0.06) 0%, rgba(26, 29, 27, 0.98) 100%);
}

body.dark .stats,
body.dark .mode-switch,
body.dark .active-cats a,
body.dark .today-top-section,
body.dark .most-active-section,
body.dark .past-day {
  background: #202421;
}

body.dark .tabs-scroll button,
body.dark .tabs-scroll a.tab-item {
  background: #252a26;
  color: #aaa6a0;
}

body.dark .tabs-scroll button:hover,
body.dark .tabs-scroll a.tab-item:hover {
  background: #2f3630;
  color: #fff;
}

body.dark .tabs-scroll button.active,
body.dark .tabs-scroll a.tab-item.active {
  background: var(--accent);
  color: #fff;
}

body.dark .active-category-card,
body.dark .day-board.past-day-card {
  background: #1a1d1b;
  border-color: var(--line);
}

body.dark .amount-step-btn {
  background: #1b3322;
  color: var(--accent);
}

body.dark .listing {
  background: #1a1d1b;
}

body.dark .rank {
  background: #252a26;
  color: #fff;
}

body.dark .url-input,
body.dark select {
  background: #1a1d1b;
}

body.dark .existing-notice {
  background: #1b3322;
}

body.dark .day-board {
  background: linear-gradient(135deg, #18271e, #1a1d1b 75%);
}

body.dark .day-board.past-day-card {
  background: #1a1d1b;
}

body.dark .day-btn.secondary {
  background: #252a26;
  color: #fff;
}

body.dark .day-ranks a {
  background: rgba(32, 36, 33, 0.7);
}

body.dark .day-ranks a:hover {
  background: #252a26;
}

body.dark .stat-grid > div,
body.dark .category-card {
  background: #1a1d1b;
}

body.dark .page-title p,
body.dark .prose .lead,
body.dark .detail-head p {
  color: #aaa6a0;
}

body.dark .listing-main p {
  color: #b0aca6;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */

/* Tablet Breakpoint (< 850px) */
@media (max-width: 850px) {
  .wrap {
    padding: 0 20px;
  }

  .nav {
    gap: 12px;
  }

  .mode-switch {
    display: none;
  }

  .nav nav,
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: grid;
    place-items: center;
  }

  .stats {
    margin-top: 16px;
  }

  .claim h1 {
    font-size: 36px;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
    gap: 6px;
  }

  .claim form,
  .claim-form-row,
  .claim form.has-existing,
  .claim-form-row.has-existing {
    grid-template-columns: 1fr;
  }

  .claim form.has-existing .amount,
  .claim-form-row.has-existing .amount,
  .claim form.has-existing > button[type='submit'],
  .claim-form-row.has-existing > button[type='submit'] {
    grid-column: auto;
  }

  .existing-notice {
    display: grid;
  }

  .preview-notice {
    display: grid;
  }

  .claim form button {
    height: 52px;
  }

  .listing {
    height: auto;
    min-height: auto;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 14px;
    border-radius: 18px;
    position: relative;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin: 0 auto;
    box-sizing: border-box;
    align-items: center;
  }

  .rank {
    display: none;
  }

  .listing-side {
    display: none;
  }

  .listing-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 18px;
    flex-shrink: 0;
  }

  .listing-main {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
  }

  .listing-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
  }

  .mobile-rank {
    display: inline-block;
    font-weight: 700;
    color: var(--accent);
    font-size: 15px;
    flex-shrink: 0;
    line-height: 1.2;
  }

  .listing-title-row h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.3px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    line-height: 1.2;
  }

  .mobile-amount {
    display: inline-block;
    font-weight: 700;
    color: var(--accent);
    font-size: 14.5px;
    flex-shrink: 0;
    margin-left: auto;
    line-height: 1.2;
  }

  .listing-main p {
    margin: 1px 0 2px;
    color: #726d67;
    font-size: 12.5px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-width: 100%;
  }

  .meta {
    display: flex;
    align-items: center;
    gap: 4px 6px;
    font-size: 11px;
    color: #948f89;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
    line-height: 1.2;
  }

  .meta span,
  .meta b,
  .meta a {
    white-space: nowrap;
    flex-shrink: 1;
  }

  .activity-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .activity-row::-webkit-scrollbar {
    display: none;
  }

  .activity-card {
    flex: 0 0 185px;
    min-width: 185px;
    scroll-snap-align: start;
  }

  .active-cats,
  .active-cards-grid {
    grid-template-columns: 1fr;
  }

  .active-cats > b {
    grid-column: 1 / -1;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-head {
    grid-template-columns: 75px 1fr;
  }

  .detail-hero {
    grid-template-columns: 75px 1fr;
    padding: 24px;
  }

  .detail-hero .detail-head {
    grid-template-columns: 1fr;
  }

  .detail-current {
    grid-template-columns: 1fr 1fr;
  }

  .detail-current .primary {
    grid-column: 1 / -1;
  }

  .listing-logo.large {
    width: 75px;
    height: 75px;
    border-radius: 20px;
    font-size: 22px;
  }

  .detail-head h1 {
    font-size: 30px;
  }

  .detail-head p {
    font-size: 16px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 28px 0;
  }

  .stat-grid > div {
    min-height: auto;
    padding: 20px;
  }

  .detail-actions {
    grid-template-columns: 1fr;
  }

  .rules {
    grid-template-columns: 1fr;
  }

  .prose h1 {
    font-size: 40px;
  }

  footer {
    padding: 28px 0;
    margin-top: 48px;
  }

  footer .wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .footer-metrics {
    justify-content: center;
    text-align: center;
    gap: 6px 8px;
    font-size: 13px;
  }

  footer nav {
    margin-left: 0;
    justify-content: center;
    gap: 12px 18px;
    font-size: 13.5px;
  }
}

/* Mobile Breakpoint (< 580px) */
@media (max-width: 580px) {
  .wrap {
    padding: 0 16px;
  }

  header {
    height: 56px;
  }

  header.search-open {
    height: 102px;
  }

  .nav {
    height: 56px;
  }

  .brand {
    font-size: 22px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .stats {
    font-size: 12px;
    margin: 12px auto 12px;
    padding: 8px 14px;
  }

  .claim h1 {
    font-size: 30px;
    letter-spacing: -1.5px;
    gap: 4px;
    margin-bottom: 10px;
  }

  .amount-step-btn {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }

  .confirm-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .confirm-actions {
    flex-direction: column-reverse;
  }

  .confirm-actions button {
    width: 100%;
    height: 48px;
  }

  .preview-notice,
  .existing-notice {
    gap: 4px;
    padding: 12px 14px;
  }

  .tabs-wrapper {
    margin: 6px 0 16px;
  }

  .tabs-scroll {
    padding-right: 80px;
    height: 42px;
    gap: 6px;
  }

  .tabs-scroll button,
  .tabs-scroll a.tab-item {
    padding: 5px 11px;
    font-size: 12.5px;
  }

  .tabs-explore {
    height: 34px;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 999px;
  }

  .today-top-section {
    width: calc(100% - 24px);
    margin: 10px auto 6px;
    padding: 8px 12px;
  }

  .today-top-list {
    gap: 6px;
  }

  .today-top-row {
    gap: 3px;
    font-size: 11.5px;
  }

  .today-top-rank,
  .today-top-amount {
    font-size: 11px;
  }

  .listing {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 14px;
    border-radius: 18px;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin: 0 auto;
    box-sizing: border-box;
  }

  .activity-only {
    width: calc(100% - 24px);
    margin: 12px auto 18px;
  }

  .listing-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 17px;
  }

  .mobile-rank {
    font-size: 14.5px;
  }

  .listing-title-row h3 {
    font-size: 14.5px;
  }

  .mobile-amount {
    font-size: 14px;
  }

  .listing-main p {
    font-size: 12.5px;
    margin: 1px 0 2px;
  }

  .meta {
    font-size: 11px;
    gap: 4px 6px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    margin: 28px 0;
  }

  .page-title h1 {
    font-size: 34px;
  }

  .page-title p {
    font-size: 16px;
  }

  .most-active-section {
    padding: 16px;
    border-radius: 20px;
  }

  .active-cats,
  .active-cards-grid {
    grid-template-columns: 1fr;
  }

  .day-board {
    border-radius: 24px;
    padding: 20px 16px;
  }

  .day-board-head {
    display: block;
  }

  .day-board-head > b {
    display: block;
    margin-top: 10px;
  }

  .day-ranks a {
    grid-template-columns: 24px 38px 1fr auto;
    gap: 10px;
    padding: 8px 10px;
  }

  .day-ranks .listing-logo {
    width: 38px;
    height: 38px;
    font-size: 12px;
    border-radius: 10px;
  }

  .day-ranks a b {
    font-size: 14px;
  }

  .day-ranks a small {
    font-size: 11px;
  }

  .day-ranks em {
    font-size: 14px;
  }

  .day-actions {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 24px 0;
    margin-top: 40px;
  }

  footer .wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-metrics {
    justify-content: center;
    text-align: center;
    font-size: 12px;
    gap: 4px 8px;
  }

  footer nav {
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 13px;
  }
}

/* Small Mobile Breakpoint (< 420px: 375px, 404px, 414px) */
@media (max-width: 420px) {
  .wrap {
    padding: 0 16px;
  }

  .stats {
    font-size: 11.5px;
    padding: 6px 10px;
    margin: 8px auto 12px;
    line-height: 1.3;
    text-align: center;
    justify-content: center;
  }

  .stats span {
    margin-right: 4px;
  }

  .claim h1 {
    font-size: 25px;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 10px;
    gap: 4px;
  }

  .amount-step-btn {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .claim-form-row {
    gap: 8px;
  }

  .url-input,
  select,
  .claim-form-row button {
    height: 46px;
    font-size: 14px;
    border-radius: 14px;
  }

  .today-top-section {
    width: calc(100% - 24px);
    margin: 8px auto 6px;
    padding: 8px 12px;
  }

  .today-top-list {
    gap: 4px;
  }

  .today-top-row {
    gap: 2px;
    font-size: 10.5px;
  }

  .today-top-rank,
  .today-top-amount {
    font-size: 10px;
  }

  .today-top-sep {
    font-size: 9px;
  }

  .listing {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 12px;
    border-radius: 16px;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin: 0 auto;
    box-sizing: border-box;
  }

  .activity-only {
    width: calc(100% - 24px);
    margin: 10px auto 14px;
  }

  .listing-logo {
    width: 52px;
    height: 52px;
    font-size: 16px;
    border-radius: 13px;
  }

  .mobile-rank {
    font-size: 14px;
  }

  .listing-title-row h3 {
    font-size: 14px;
  }

  .mobile-amount {
    font-size: 13.5px;
  }

  .listing-main p {
    font-size: 12px;
    margin: 1px 0 2px;
  }

  .meta {
    font-size: 10.5px;
    gap: 3px 5px;
  }

  .tabs-scroll {
    padding-right: 76px;
    height: 40px;
    gap: 5px;
  }

  .tabs-scroll button,
  .tabs-scroll a.tab-item {
    padding: 4px 9px;
    font-size: 12px;
  }

  .tabs-explore {
    height: 32px;
    padding: 4px 8px;
    font-size: 11.5px;
  }

  footer {
    padding: 20px 0;
    margin-top: 32px;
  }

  footer .wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  footer .brand {
    font-size: 18px;
  }

  .footer-metrics {
    justify-content: center;
    text-align: center;
    font-size: 11px;
    gap: 4px 6px;
  }

  footer nav {
    margin-left: 0;
    justify-content: center;
    gap: 8px 12px;
    font-size: 12px;
  }
}
