/* ============================
   SkinBin — Liquid Glass Theme
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-dark: #0b0f17;
  --bg-surface: #111827;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --bg-glass-border: rgba(255, 255, 255, 0.06);
  --bg-glass-border-hover: rgba(255, 255, 255, 0.12);
  --accent: #6ee7b7;
  --accent-dim: rgba(110, 231, 183, 0.15);
  --accent-glow: rgba(110, 231, 183, 0.2);
  --yellow-accent: #fbbf24;
  --orange-accent: #fb923c;
  --blue-accent: #60a5fa;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --danger: #f87171;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* CS2 Rarity Colors */
  --rarity-consumer: #b0c3d9;
  --rarity-industrial: #5e98d9;
  --rarity-milspec: #4b69ff;
  --rarity-restricted: #8847ff;
  --rarity-classified: #d32ce6;
  --rarity-covert: #eb4b4b;
  --rarity-gold: #e4ae39;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============================
   Glass Card Utility
   ============================ */
.glass {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass:hover {
  background: var(--bg-glass-hover);
  border-color: var(--bg-glass-border-hover);
}

/* ============================
   Top Nav
   ============================ */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 56px;
  background: rgba(11, 15, 23, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Custom Steam sign-in button */
.btn-steam {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #171a21;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.45rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-steam:hover {
  background: #1b2838;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-steam svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.steam-login-img {
  display: none; /* Hide old Steam image */
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: 100px;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  cursor: default;
  transition: border-color 0.2s;
}

.user-pill:hover {
  border-color: var(--bg-glass-border-hover);
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.user-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  font-family: var(--font-main);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn-logout:hover {
  color: var(--danger);
  border-color: var(--danger);
}

/* ============================
   Hero
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 3rem;
  overflow: hidden;
}

/* Subtle radial gradient backdrop */
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-scanlines {
  display: none; /* Removed for cleaner look */
}

.hero-content {
  position: relative;
  max-width: 680px;
  z-index: 1;
}

/* ---- Bin Icon ---- */
.logo-container {
  margin-bottom: 2rem;
}

.bin-icon {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s;
}

.bin-icon:hover {
  transform: scale(1.08);
}

.bin-icon:hover .bin-lid {
  transform: rotate(-30deg) translateY(-6px);
}

.bin-lid {
  width: 56px;
  height: 10px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  margin: 0 auto;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: left bottom;
}

.bin-body {
  width: 48px;
  height: 48px;
  background: rgba(110, 231, 183, 0.08);
  border: 1.5px solid var(--accent);
  border-radius: 0 0 6px 6px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Title ---- */
.title {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  position: relative;
}

.glitch {
  animation: none; /* Disabled for cleaner look */
}

.glitch::before,
.glitch::after {
  display: none; /* Disabled for cleaner look */
}

.tagline {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Stats Bar ---- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  min-width: 140px;
  transition: border-color 0.2s, background 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stat-card:hover {
  border-color: var(--bg-glass-border-hover);
  background: var(--bg-glass-hover);
}

.stat-icon {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ---- Buttons ---- */
.cta-section {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: #86efac;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--bg-glass-border);
}

.btn-secondary:hover {
  border-color: var(--bg-glass-border-hover);
  background: var(--bg-glass-hover);
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 1rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: bounce 2.5s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.crosshair {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================
   Anonymous Toggle Slider
   ============================ */
.anon-slider-wrap {
  margin-top: 1.5rem;
}

.anon-slider {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}

.anon-slider input { display: none; }

.slider-track {
  position: relative;
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s;
}

.slider-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.2s, background 0.2s;
}

.anon-slider input:checked + .slider-track {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.anon-slider input:checked + .slider-track .slider-thumb {
  transform: translateX(16px);
  background: var(--accent);
}

.slider-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.anon-slider input:checked ~ .slider-label {
  color: var(--accent);
}

.anon-slider input:disabled ~ .slider-track {
  opacity: 0.5;
}

.anon-slider:hover .slider-track {
  border-color: var(--accent);
}

/* ============================
   Sections
   ============================ */
main {
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.88rem;
}

/* ============================
   How It Works
   ============================ */
.how-it-works {
  padding: 5rem 2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin: 2rem auto 0;
}

.step {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.step:hover {
  border-color: var(--bg-glass-border-hover);
  background: var(--bg-glass-hover);
}

.step-rarity {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.rarity-consumer  { background: var(--rarity-consumer); }
.rarity-industrial { background: var(--rarity-industrial); }
.rarity-milspec   { background: var(--rarity-milspec); }
.rarity-restricted { background: var(--rarity-restricted); }
.rarity-classified { background: var(--rarity-classified); }
.rarity-covert    { background: var(--rarity-covert); }

.step-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.step p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================
   Login Callout
   ============================ */
.login-callout {
  padding: 1.5rem 2rem;
}

.callout-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.callout-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  opacity: 0.6;
}

.callout-text {
  flex: 1;
}

.callout-text h3 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.callout-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.callout-text strong {
  color: var(--accent);
  font-weight: 600;
}

.btn-callout {
  flex-shrink: 0;
  background: #171a21;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.45rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-callout:hover {
  background: #1b2838;
  border-color: rgba(255, 255, 255, 0.15);
}

/* ============================
   Leaderboard
   ============================ */
.leaderboard-section {
  padding: 5rem 2rem;
}

.leaderboard-container {
  max-width: 760px;
  margin: 0 auto;
}

/* Podium */
.leaderboard-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  min-height: 180px;
}

.podium-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.podium-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  object-fit: cover;
}

.podium-rank-1 .podium-avatar { border-color: var(--yellow-accent); }
.podium-rank-2 .podium-avatar { border-color: #94a3b8; }
.podium-rank-3 .podium-avatar { border-color: #cd7f32; }

.podium-name {
  font-size: 0.75rem;
  color: var(--text-secondary);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-count {
  font-family: var(--font-mono);
  font-weight: 700;
  margin-top: 0.2rem;
}

.podium-rank-1 .podium-count { color: var(--yellow-accent); font-size: 1.2rem; }
.podium-rank-2 .podium-count { color: #94a3b8; font-size: 1.05rem; }
.podium-rank-3 .podium-count { color: #cd7f32; font-size: 1rem; }

.podium-bar {
  width: 80px;
  border-radius: 6px 6px 0 0;
  margin-top: 0.3rem;
}

.podium-rank-1 .podium-bar {
  height: 90px;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.3) 0%, rgba(251, 191, 36, 0.05) 100%);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-bottom: none;
}

.podium-rank-2 .podium-bar {
  height: 65px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.2) 0%, rgba(148, 163, 184, 0.03) 100%);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-bottom: none;
}

.podium-rank-3 .podium-bar {
  height: 48px;
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.2) 0%, rgba(205, 127, 50, 0.03) 100%);
  border: 1px solid rgba(205, 127, 50, 0.15);
  border-bottom: none;
}

/* Table */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.leaderboard-table thead th {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.leaderboard-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.leaderboard-table tbody tr:hover {
  background: var(--bg-glass-hover);
}

.leaderboard-table td {
  padding: 0.65rem 1rem;
}

.leaderboard-table .rank-cell {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  width: 50px;
  font-size: 0.8rem;
}

.leaderboard-table .count-cell {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.82rem;
}

.leaderboard-table .date-cell {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.loading-row {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem !important;
}

/* ============================
   Recent Feed
   ============================ */
.recent-section {
  padding: 5rem 2rem;
}

.recent-feed {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recent-card {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: border-color 0.2s;
  animation: fadeIn 0.4s ease-out both;
}

.recent-card:hover {
  border-color: var(--bg-glass-border-hover);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.recent-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  opacity: 0.5;
}

.recent-info {
  flex: 1;
  min-width: 0;
}

.recent-donor {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
}

.recent-items {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.loading-text {
  text-align: center;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-size: 0.88rem;
}

/* ============================
   Friends Section
   ============================ */
.friends-section {
  padding: 5rem 2rem;
}

.friend-row-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  vertical-align: middle;
  border: 1px solid var(--border);
}

.friend-name-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.friend-name-cell a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.84rem;
}

.friend-name-cell a:hover {
  color: var(--accent);
}

/* ============================
   My Donations / Refund
   ============================ */
.my-donations-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.my-donations-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.my-donation-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s;
}

.my-donation-card:hover {
  border-color: var(--bg-glass-border-hover);
}

.my-donation-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  opacity: 0.5;
}

.my-donation-info {
  flex: 1;
  min-width: 0;
}

.my-donation-items {
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-donation-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 0.15rem;
}

.btn-refund-sm {
  font-size: 0.72rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--yellow-accent);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.btn-refund-sm:hover {
  background: rgba(251, 191, 36, 0.15);
}

.refund-status {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.refund-status.pending { color: var(--yellow-accent); border: 1px solid rgba(251, 191, 36, 0.3); }
.refund-status.processing { color: var(--orange-accent); border: 1px solid rgba(251, 147, 60, 0.3); }
.refund-status.sent { color: var(--blue-accent); border: 1px solid rgba(96, 165, 250, 0.3); }
.refund-status.completed { color: var(--accent); border: 1px solid var(--accent-dim); }
.refund-status.failed { color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.3); }

/* ============================
   Refund Modal
   ============================ */
.refund-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.refund-modal {
  background: var(--bg-surface);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 440px;
  overflow: hidden;
}

.refund-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.refund-modal-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.refund-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.15s;
}

.refund-modal-close:hover {
  color: var(--text-primary);
}

.refund-modal-body {
  padding: 1.25rem;
}

.refund-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 1rem 0 0.35rem;
  font-weight: 500;
}

.refund-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transition: border-color 0.2s;
}

.refund-input:focus {
  outline: none;
  border-color: var(--accent);
}

.refund-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.refund-error {
  color: var(--danger);
  font-size: 0.78rem;
  margin-top: 0.75rem;
}

.refund-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.btn-refund {
  background: var(--yellow-accent);
  color: var(--bg-dark);
  border: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font-main);
  transition: opacity 0.2s;
}

.btn-refund:hover {
  opacity: 0.85;
}

.btn-refund:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================
   Footer
   ============================ */
footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

footer p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-slogan {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.88rem !important;
}

.footer-refund-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 1rem;
  line-height: 1.6;
  opacity: 0.6;
}

.footer-rarity-bar {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.rarity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.2s;
  opacity: 0.7;
}

.rarity-dot:hover {
  transform: scale(1.4);
  opacity: 1;
}

.rarity-dot.rarity-consumer  { background: var(--rarity-consumer); }
.rarity-dot.rarity-industrial { background: var(--rarity-industrial); }
.rarity-dot.rarity-milspec   { background: var(--rarity-milspec); }
.rarity-dot.rarity-restricted { background: var(--rarity-restricted); }
.rarity-dot.rarity-classified { background: var(--rarity-classified); }
.rarity-dot.rarity-covert    { background: var(--rarity-covert); }

.footer-note {
  margin-top: 0.5rem;
  font-size: 0.72rem !important;
  opacity: 0.45;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 640px) {
  .top-nav {
    padding: 0 1rem;
  }

  .hero { padding: 4rem 1.25rem 2rem; }

  .subtitle {
    margin-bottom: 2rem;
  }

  .stats-bar {
    gap: 0.6rem;
  }

  .stat-card {
    padding: 1rem 1.2rem;
    min-width: 100px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .cta-section {
    flex-direction: column;
    align-items: center;
  }

  .leaderboard-podium {
    gap: 0.4rem;
  }

  .podium-bar {
    width: 60px;
  }

  .leaderboard-table {
    font-size: 0.78rem;
  }

  .leaderboard-table td,
  .leaderboard-table th {
    padding: 0.55rem 0.5rem;
  }

  .callout-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}
