/* ─── Theme tokens (Black & White) ─────────────────────────── */
:root {
  --bg:           #0a0a0a;
  --bg-card:      #141414;
  --bg-elevated:  #1c1c1c;
  --border:       #262626;
  --border-hover: #3a3a3a;
  --text:         #ffffff;
  --text-muted:   #9ca3af;
  --text-dim:     #6b7280;
  --accent:       #ffffff;
  --accent-hover: #e5e5e5;
  --accent-dim:   rgba(255, 255, 255, 0.08);
  --accent-glow:  rgba(255, 255, 255, 0.18);
  --discord:      #5865F2;
  --discord-hov:  #4752C4;

  /* shared layout */
  --container:    1280px;
  --gutter:       32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

/* Always reserve space for the scrollbar so the layout doesn't jump
   when switching to categories with fewer items (no scrollbar) */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Shared container — guarantees the SAME left edge for nav, hero text, tabs */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

/* ─── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 10, 10, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  margin-left: 16px;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── Profile chip ─────────────────────────────────────────── */
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.profile:hover { border-color: var(--border-hover); }
.profile img { width: 30px; height: 30px; border-radius: 50%; display: block; }
.profile-text { line-height: 1.15; }
.profile-name { font-size: 13px; font-weight: 600; }
.profile-role {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1px;
}
.profile-logout {
  margin-left: 4px;
  padding: 6px;
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.profile-logout svg {
  width: 16px;
  height: 16px;
  display: block;
}
.profile-logout:hover {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
}

/* Animated gradient text for special roles (e.g. Founder) */
.profile-role.role-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientShimmer 4s linear infinite;
  font-weight: 700;
}
@keyframes gradientShimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ─── Profile Modal ──────────────────────────────────────── */
.pmodal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
  animation: pmFade 0.18s ease;
}
@keyframes pmFade { from { opacity: 0; } to { opacity: 1; } }

.pmodal {
  background: #0f0f10;
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  position: relative;
  animation: pmPop 0.22s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
@keyframes pmPop {
  from { transform: scale(0.95) translateY(10px); opacity: 0; }
  to   { transform: scale(1) translateY(0);     opacity: 1; }
}
.pmodal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.pmodal-close:hover { background: rgba(239, 68, 68, 0.7); }

.pmodal-loading,
.pmodal-error {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}
.pmodal-error { color: #ef4444; }

.pmodal-loginreq {
  padding: 44px 28px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pmodal-loginreq-icon {
  font-size: 38px;
  margin-bottom: 4px;
}
.pmodal-loginreq h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
}
.pmodal-loginreq p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.pmodal-banner {
  height: 130px;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
}

.pmodal-body {
  padding: 0 24px 24px;
  position: relative;
}
.pmodal-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 5px solid #0f0f10;
  background: #15151a;
  margin-top: -50px;
  display: block;
}

.pmodal-info { margin-top: 12px; }

.pmodal-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.2;
}

.pmodal-meta-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.pmodal-role {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pmodal-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.pmodal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.pmodal-status.online .pmodal-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulseDot 2s infinite;
}
.pmodal-status.offline .pmodal-dot {
  background: #6b7280;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.05); }
}

.pmodal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  background: #1a1a1f;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.pmodal-stat-label {
  font-size: 10.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 3px;
}
.pmodal-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.pmodal-name.role-gradient,
.pmodal-role.role-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientShimmer 4s linear infinite;
}

/* ─── Toast notifications (top-right) ───────────────────── */
#toast-host {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
}
.toast {
  pointer-events: auto;
  background: #15151a;
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast.toast-in  { opacity: 1; transform: translateX(0); }
.toast.toast-out { opacity: 0; transform: translateX(20px); }
.toast-success { border-left-color: #22c55e; }
.toast-error   { border-left-color: #ef4444; }
.toast-info    { border-left-color: #3b82f6; }

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.toast-success .toast-icon { background: rgba(34, 197, 94, 0.18); color: #22c55e; }
.toast-error   .toast-icon { background: rgba(239, 68, 68, 0.18); color: #ef4444; }
.toast-info    .toast-icon { background: rgba(59, 130, 246, 0.18); color: #3b82f6; }

.toast-body { flex: 1; min-width: 0; }
.toast-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 2px;
}
.toast-text { color: var(--text-muted); font-size: 12.5px; line-height: 1.45; }
.toast-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
}
.toast-close:hover { color: var(--text); }

/* ─── Dashboard nav button (Staff only) ────────────────── */
.dash-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dash-btn svg { width: 18px; height: 18px; }
.dash-btn:hover {
  border-color: #fbbf24;
  color: #fbbf24;
  background: var(--bg-elevated);
}

.nav-links a.active {
  color: var(--text);
  font-weight: 600;
}

/* ─── Inbox ────────────────────────────────────────────────── */
.inbox-btn {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.inbox-btn svg { width: 18px; height: 18px; }
.inbox-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--bg-elevated);
}
.inbox-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px #ef4444;
}
.inbox-badge[hidden] { display: none; }

.inbox-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 32px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #0f0f0f;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  z-index: 200;
  overflow: hidden;
  animation: inboxOpen 0.18s ease;
}
.inbox-panel[hidden] { display: none; }
@keyframes inboxOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.inbox-head {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
}
.inbox-clear {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.inbox-clear:hover { color: #ef4444; background: rgba(239, 68, 68, 0.08); }

.inbox-list {
  max-height: 380px;
  overflow-y: auto;
}
.inbox-empty {
  padding: 32px 18px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13.5px;
}
.inbox-item {
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid rgba(38, 38, 38, 0.6);
  transition: background 0.12s;
}
.inbox-item:last-child { border-bottom: none; }
.inbox-item.unread {
  background: rgba(255, 255, 255, 0.02);
}
.inbox-item.unread::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}
.inbox-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.inbox-item-icon svg { width: 18px; height: 18px; }
.inbox-item-icon.offer_accepted { color: #22c55e; border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.08); }
.inbox-item-icon.offer_declined { color: #ef4444; border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.08); }
.inbox-item-icon.bin            { color: #fbbf24; border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.08); }
.inbox-item-icon.welcome        { color: #a855f7; border-color: rgba(168, 85, 247, 0.3); background: rgba(168, 85, 247, 0.08); }

.inbox-item-body { flex: 1; min-width: 0; }
.inbox-item-title { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.inbox-item-text  { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.inbox-item-time  { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.18s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 6px 30px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--accent-glow);
}
.btn-primary .arrow { transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-discord {
  background: var(--discord);
  color: #fff;
  font-size: 13.5px;
  padding: 9px 16px 9px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-discord:hover { background: var(--discord-hov); }
.btn-discord svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* Image layers on the right side */
.hero-images {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-img-layer.active { opacity: 1; }
.hero-img-layer img {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 75%;
  object-fit: cover;
  object-position: right center;
}

/* Soft horizontal fade */
.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      var(--bg) 0%,
      var(--bg) 18%,
      rgba(10, 10, 10, 0.92) 32%,
      rgba(10, 10, 10, 0.55) 48%,
      rgba(10, 10, 10, 0.15) 70%,
      transparent 100%
    ),
    linear-gradient(180deg,
      transparent 65%,
      rgba(10, 10, 10, 0.85) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 70px;
}
.hero-text {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.hero-text > * {
  max-width: 620px;
}

.hero h1 {
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  /* Reserve space so longer/shorter category titles don't shift the CTA below */
  min-height: calc(2 * 1.05em);
}
.accent { color: var(--accent); }

/* Title reveal — each word fades + slides in with stagger */
.hero h1 .hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  animation: heroWordIn 0.7s cubic-bezier(0.2, 0.7, 0.25, 1) forwards;
  will-change: opacity, transform, filter;
  /* Keep line-height stable across blurred → sharp so block height doesn't shift */
  line-height: 1.05;
  vertical-align: top;
}
@keyframes heroWordIn {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Subtitle fade + slide, slightly delayed */
.hero-desc.hero-sub-in {
  animation: heroSubIn 0.7s cubic-bezier(0.2, 0.7, 0.25, 1) 0.35s both;
  will-change: opacity, transform;
}
@keyframes heroSubIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-desc {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 520px;
  /* Reserve 2 lines so subtitle changes don't shift layout */
  min-height: calc(2 * 1.6em);
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Category Tabs ───────────────────────────────────────── */
.hero-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  padding-bottom: 22px;
}
.hero-tab {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  padding: 18px 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
  border-radius: 12px;
}
.hero-tab:hover {
  color: var(--text);
  background: rgba(28, 28, 28, 0.9);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.hero-tab.active {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 24px var(--accent-glow);
}
.hero-tab.active:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--accent-glow);
}

/* ─── Features ─────────────────────────────────────────────── */
.features {
  padding: 80px var(--gutter) 100px;
}
.features-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.2s ease;
}
.feature:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
/* Custom icon — white SVG inside dark rounded square */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--text);
  transition: all 0.2s ease;
}
.feature:hover .feature-icon {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 14px; line-height: 1.55; }

/* ─── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px var(--gutter);
  margin-top: auto;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.footer-brand { font-weight: 700; }
.footer-meta  { color: var(--text-dim); }

/* Page header for sub-pages */
.page-head {
  padding: 80px var(--gutter) 40px;
  text-align: center;
}

/* ─── Mobile ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-img-layer img {
    width: 100%;
    opacity: 0.7;
    object-position: center center;
  }
  .hero-fade {
    background:
      linear-gradient(180deg,
        rgba(10, 10, 10, 0.55) 0%,
        rgba(10, 10, 10, 0.20) 35%,
        rgba(10, 10, 10, 0.40) 70%,
        rgba(10, 10, 10, 0.95) 100%
      );
  }
  .hero-tabs { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
}

@media (max-width: 760px) {
  :root { --gutter: 14px; }

  /* ── Nav: brand left, actions right, links wrap below ────── */
  .nav-inner {
    padding: 10px 14px;
    gap: 0;
    flex-wrap: wrap;
    align-items: center;
  }
  .brand {
    font-size: 16px;
    flex-shrink: 0;
  }
  .nav-links {
    flex: none;
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 4px;
    margin: 10px -14px 0;
    padding: 8px 14px 0;
    border-top: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  .nav-links a {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.15s;
  }
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--text);
    background: var(--bg-elevated);
  }
  .nav-actions {
    margin-left: auto;
    gap: 6px;
    flex-shrink: 0;
  }
  .profile-text { display: none; }
  .profile { padding: 3px 8px 3px 3px; gap: 6px; }
  .profile img { width: 30px; height: 30px; }
  /* Keep logout visible on mobile — user explicitly needs to tap it */
  .profile-logout { display: inline-flex; padding: 5px; }
  .profile-logout svg { width: 14px; height: 14px; }
  .inbox-btn, .dash-btn { width: 36px; height: 36px; }
  .inbox-btn svg, .dash-btn svg { width: 16px; height: 16px; }
  .btn-discord { padding: 8px 12px; font-size: 12.5px; }
  .btn-discord svg { width: 16px; height: 16px; }
  .btn-discord span { display: none; } /* show only icon to save space */
  .inbox-panel { right: 14px; width: calc(100vw - 28px); max-width: 360px; }

  /* ── Hero: compact text + softer image ─────────────────── */
  .hero { min-height: 440px; }
  .hero-content { padding: 36px 0 24px; }
  .hero h1 { font-size: clamp(30px, 8vw, 42px) !important; margin-bottom: 14px; }
  .hero-desc { font-size: 14px; margin-bottom: 22px; }
  .cta-row { justify-content: stretch; }
  .cta-row .btn { flex: 1; justify-content: center; padding: 13px 18px; font-size: 14px; }
  .hero-tabs {
    grid-template-columns: 1fr 1fr;
    padding: 0 12px 14px;
    gap: 6px;
  }
  .hero-tab { font-size: 12px; padding: 12px 10px; }

  /* ── Features ─────────────────────────────────────────── */
  .features { padding: 32px var(--gutter) 50px; }
  .feature { padding: 22px 20px; }

  /* ── Footer ───────────────────────────────────────────── */
  .footer { padding: 18px 14px; }
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; font-size: 12px; }

  /* ── Toast: bottom sheet style ────────────────────────── */
  #toast-host {
    top: auto;
    bottom: 14px;
    left: 14px;
    right: 14px;
    max-width: none;
  }

  /* ── Profile modal: full viewport ─────────────────────── */
  .pmodal-backdrop { padding: 12px; }
  .pmodal { max-width: 100%; max-height: calc(100vh - 24px); overflow-y: auto; }
  .pmodal-stats { grid-template-columns: 1fr; gap: 8px; }
  .pmodal-banner { height: 100px; }
  .pmodal-avatar { width: 80px; height: 80px; margin-top: -45px; }
  .pmodal-name { font-size: 20px; }
}

@media (max-width: 420px) {
  .nav-actions { gap: 4px; }
  .inbox-btn, .dash-btn { width: 34px; height: 34px; }
  .profile img { width: 28px; height: 28px; }
  .hero h1 { font-size: 28px !important; }
  .hero-tabs { grid-template-columns: 1fr; }
  .nav-links a { font-size: 12px; padding: 4px 8px; }
}

/* Helper: ensure sticky sidebars sit BELOW the wrapped mobile nav */
@media (max-width: 760px) {
  .auc-sidebar,
  .dash-sidebar { top: 110px !important; }
}

/* ─── Page transition: fade + slight slide on every page load ───────── */
main {
  animation: pageEnter 0.45s cubic-bezier(0.2, 0.7, 0.25, 1) both;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
}

/* Disable the blue tap highlight on touch devices everywhere */
* { -webkit-tap-highlight-color: transparent; }
