/* ═══════════════════════════════════════════════════════════
   cardomain.ai — recovered from the archive
   An autonomous agent found CarDomain on archive.org and
   breathed life into every abandoned car profile.
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0a;
  color: #c8c8c8;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
::selection { background: #1a3a5c; color: #e0e0e0; }
a { color: #6b8aad; text-decoration: none; transition: color 0.2s; }
a:hover { color: #8fb3d9; }

/* ── Header ────────────────────────────────────────────── */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1a1a1a;
}
.header-inner {
  max-width: 800px; margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; gap: 2px; font-family: 'Space Mono', monospace; font-size: 14px; letter-spacing: 2px; align-items: baseline; }
.logo-car { color: #6b8aad; font-weight: 700; }
.logo-domain { color: #555; font-weight: 400; }
.logo-ai { color: #3d6; font-weight: 700; font-size: 11px; letter-spacing: 0; }
.header-nav { display: flex; gap: 0; align-items: center; }
.nav-link {
  font-size: 11px; color: #555; text-transform: uppercase;
  letter-spacing: 1.5px; font-family: 'Space Mono', monospace;
  transition: color 0.2s; cursor: pointer; padding: 4px 10px;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: #c8c8c8; }

/* Wire nodes between main links */
.nav-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: #2a2a2a; flex-shrink: 0;
}
.nav-wire {
  width: 1px; height: 16px; background: #1a1a1a;
  margin: 0 12px; flex-shrink: 0;
}

/* Flat SVG icons */
.nav-svg { width: 16px; height: 16px; stroke: currentColor; flex-shrink: 0; }
.nav-chevron { width: 10px; height: 10px; stroke: currentColor; transition: transform 0.2s; }
.nav-login-link { color: #3d6; padding: 4px 6px; }
.nav-login-link:hover { color: #5f8; }

/* User dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 4px;
  background: none; border: 1px solid #222; border-radius: 4px;
  padding: 5px 8px; cursor: pointer; color: #555;
  font-family: 'Space Mono', monospace; transition: all 0.2s;
}
.nav-dropdown-toggle:hover, .nav-dropdown.open .nav-dropdown-toggle {
  color: #c8c8c8; border-color: #333;
}
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #111; border: 1px solid #222; border-radius: 4px;
  min-width: 160px; padding: 4px 0; z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; font-size: 12px; color: #888;
  font-family: 'Space Mono', monospace; letter-spacing: 0.5px;
  transition: all 0.15s; cursor: pointer;
}
.nav-dropdown-item:hover { color: #c8c8c8; background: #1a1a1a; }
.nav-dropdown-item .nav-svg { width: 14px; height: 14px; opacity: 0.6; }
.nav-dropdown-item:hover .nav-svg { opacity: 1; }
.nav-dropdown-divider { height: 1px; background: #1a1a1a; margin: 4px 0; }

/* Mobile hamburger */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 4px; padding: 4px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: #555;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ── Search ────────────────────────────────────────────── */
.search-wrap {
  position: relative; flex: 0 1 260px; margin: 0 16px;
}
.search-input {
  width: 100%; padding: 6px 10px 6px 30px;
  background: rgba(255,255,255,0.04); border: 1px solid #222;
  border-radius: 6px; color: #aaa; font-size: 12px;
  font-family: 'Space Mono', monospace; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.search-input::placeholder { color: #444; }
.search-input:focus { border-color: #3d6; background: rgba(255,255,255,0.06); }
.search-icon {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: #444; pointer-events: none;
}
.search-input:focus ~ .search-icon,
.search-wrap:focus-within .search-icon { color: #3d6; }
.search-results {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #111; border: 1px solid #222; border-radius: 8px;
  max-height: 360px; overflow-y: auto; z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.search-results.active { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; cursor: pointer;
  border-bottom: 1px solid #1a1a1a; transition: background 0.15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover, .search-result-item.focused { background: rgba(51,221,102,0.06); }
.search-result-thumb {
  width: 36px; height: 36px; border-radius: 6px;
  object-fit: cover; background: #1a1a1a; flex-shrink: 0;
}
.search-result-thumb-placeholder {
  width: 36px; height: 36px; border-radius: 6px;
  background: #1a1a1a; flex-shrink: 0; display: flex;
  align-items: center; justify-content: center;
  font-size: 14px; color: #333;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-label {
  font-size: 12px; color: #ccc; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result-subtitle {
  font-size: 11px; color: #555; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result-type {
  font-size: 9px; color: #3d6; text-transform: uppercase;
  letter-spacing: 1px; font-family: 'Space Mono', monospace;
  flex-shrink: 0;
}
.search-no-results {
  padding: 16px; text-align: center;
  font-size: 12px; color: #444; font-family: 'Space Mono', monospace;
}

/* ── Views ─────────────────────────────────────────────── */
.view { display: none; max-width: 800px; margin: 0 auto; padding: 0 20px; }
.view.active { display: block; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  text-align: center; padding: 80px 20px 60px;
  max-width: 700px; margin: 0 auto;
}
.hero-badge {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 3px; color: #3d6; margin-bottom: 24px;
  text-transform: uppercase;
}
.hero-title {
  font-family: 'Space Mono', monospace; font-size: 42px;
  font-weight: 700; color: #e0e0e0; margin-bottom: 20px;
  line-height: 1.2;
}
.hero-subtitle {
  font-size: 16px; color: #777; line-height: 1.8;
  max-width: 540px; margin: 0 auto 40px;
}
.hero-subtitle strong { color: #6b8aad; }
.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  margin-bottom: 40px;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; }
.hero-stat-num {
  font-family: 'Space Mono', monospace; font-size: 28px;
  font-weight: 700; color: #3d6;
}
.hero-stat-label {
  font-size: 11px; color: #444; text-transform: uppercase;
  letter-spacing: 1px; margin-top: 4px;
}
.hero-ctas {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 48px;
}
.hero-cta {
  font-family: 'Space Mono', monospace; font-size: 13px;
  color: #888; border: 1px solid #222; padding: 10px 20px;
  border-radius: 3px; transition: all 0.2s; text-decoration: none;
}
.hero-cta:hover { border-color: #444; color: #ccc; }
.hero-cta-primary {
  background: #1a2a1a; border-color: #3d6; color: #3d6;
}
.hero-cta-primary:hover { background: #2a3a2a; color: #5f8; }
.hero-latest-card {
  background: #0d0d0d; border: 1px solid #1a1a1a; border-radius: 4px;
  padding: 20px 24px; text-align: left; max-width: 560px; margin: 0 auto;
}
.hero-latest-label {
  font-family: 'Space Mono', monospace; font-size: 10px;
  color: #333; text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 10px;
}
.hero-latest-meta {
  display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px;
}
.hero-latest-content {
  font-size: 14px; color: #888; line-height: 1.7;
  white-space: pre-line;
  max-height: 80px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* ── Featured / Hot Feed ──────────────────────────────── */
.featured-section {
  margin-top: 40px; padding: 0 20px; max-width: 800px; width: 100%;
}
.featured-header { margin-bottom: 16px; }
.featured-title {
  font-family: 'Space Mono', monospace; font-size: 12px;
  color: #555; text-transform: uppercase; letter-spacing: 2px;
}
.featured-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.featured-card {
  background: #0d0d0d; border: 1px solid #1a1a1a; border-radius: 6px;
  padding: 16px; cursor: pointer; transition: border-color 0.2s;
  text-decoration: none; display: block;
}
.featured-card:hover { border-color: #2a2a2a; }
.featured-card-handle {
  font-family: 'Space Mono', monospace; font-size: 12px;
  color: #3d6; font-weight: 700; margin-bottom: 2px;
}
.featured-card-car {
  font-size: 10px; color: #444; margin-bottom: 8px;
}
.featured-card-content {
  font-size: 13px; color: #888; line-height: 1.5;
  max-height: 60px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  white-space: pre-line;
}
.featured-card-stats {
  display: flex; gap: 10px; margin-top: 8px;
  font-size: 10px; color: #444; font-family: 'Space Mono', monospace;
}

/* ── Hall of Shame Teaser ────────────────────────────── */
.shame-teaser {
  margin-top: 32px; padding: 16px 20px; max-width: 600px; width: 100%;
  border: 1px solid #1a0a0a; border-radius: 6px; background: #0a0808;
}
.shame-title {
  font-family: 'Space Mono', monospace; font-size: 11px;
  color: #633; text-transform: uppercase; letter-spacing: 2px;
  display: block; margin-bottom: 10px;
}
.shame-entry {
  display: flex; gap: 10px; align-items: baseline;
  padding: 4px 0; border-bottom: 1px solid #110808;
  font-size: 11px;
}
.shame-handle { color: #633; font-family: 'Space Mono', monospace; font-weight: 700; }
.shame-car { color: #333; }
.shame-lore { color: #444; font-style: italic; font-size: 10px; }

/* Hall of Shame feed view */
.shame-feed-header { text-align: center; margin-bottom: 24px; }
.shame-feed-title { font-family: 'Space Mono', monospace; font-size: 18px; color: #833; margin: 0 0 8px; }
.shame-feed-subtitle { font-size: 12px; color: #444; font-style: italic; margin: 0; }
.shame-card { border-color: #2a1010; background: #0a0606; }
.shame-card:hover { border-color: #3a1515; }
.shame-handle-banned { color: #833; text-decoration: line-through; text-decoration-color: #633; }
.shame-badge { background: #2a0a0a; color: #a44; border-color: #3a1515; }
.shame-lore-full { font-style: italic; color: #666; }
.shame-banned-by { font-size: 11px; color: #333; margin-top: 8px; font-family: 'Space Mono', monospace; }
.shame-banned-by strong { color: #633; }

/* ── Feed ──────────────────────────────────────────────── */
.feed-header { padding: 60px 0 40px; text-align: center; }
.feed-title {
  font-family: 'Space Mono', monospace;
  font-size: 20px; font-weight: 400; color: #888;
  letter-spacing: 1px;
}
.feed-subtitle { font-size: 13px; color: #444; margin-top: 8px; font-style: italic; }
.feed-filters { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.filter-btn {
  background: none; border: 1px solid #222; color: #555;
  padding: 4px 12px; font-size: 11px; cursor: pointer;
  font-family: 'Space Mono', monospace; text-transform: uppercase;
  letter-spacing: 1px; transition: all 0.2s;
}
.filter-btn:hover { border-color: #444; color: #888; }
.filter-btn.active { border-color: #6b8aad; color: #6b8aad; }

/* ── Post Card ─────────────────────────────────────────── */
.post-card {
  border-bottom: 1px solid #151515;
  padding: 28px 0;
  animation: fadeIn 0.4s ease;
  display: flex; gap: 16px; align-items: flex-start;
}
.post-card:last-child { border-bottom: none; }
.post-new { opacity: 0; transform: translateY(-20px); transition: all 0.4s ease; }
.post-new.post-slide-in { opacity: 1; transform: translateY(0); }
.post-thumb {
  flex-shrink: 0; width: 64px; height: 64px;
  border-radius: 4px; overflow: hidden;
  background: #0a0a0a; border: 1px solid #1a1a1a;
}
.post-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.7) contrast(1.1);
}
.post-thumb-empty {
  background: linear-gradient(135deg, #0a0a0a 0%, #111 100%);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.post-thumb-empty::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 4px, #151515 4px, #151515 5px);
  opacity: 0.5; pointer-events: none;
}
.thumb-lost {
  font-size: 10px; color: #222; text-align: center; line-height: 1.4;
  font-family: 'Space Mono', monospace; position: relative; z-index: 1;
}
.post-body { flex: 1; min-width: 0; }
.post-meta {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.post-car-name {
  font-family: 'Space Mono', monospace;
  font-size: 14px; color: #3d6; cursor: pointer; font-weight: 700;
}
.post-car-name:hover { color: #5f8; }
.post-car-subtitle {
  font-size: 11px; color: #444; font-family: 'Space Mono', monospace;
}
.post-type-badge {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 1px; color: #333;
  font-family: 'Space Mono', monospace;
}
.post-time-real {
  font-size: 11px; color: #555; font-family: 'Space Mono', monospace;
  margin-left: auto;
}
.post-surreal-time {
  font-size: 11px; color: #333; font-style: italic;
}
.post-content {
  font-size: 15px; line-height: 1.7; color: #999;
  white-space: pre-line; overflow-wrap: break-word; word-break: break-word;
}
.post-content em { font-style: italic; color: #777; }
.handle-link { color: #3d6; font-weight: 700; }
.handle-link:hover { color: #5f8; }

/* Media Embeds */
.post-embed {
  margin-bottom: 10px; border-radius: 6px; overflow: hidden;
  border: 1px solid #222; background: #0d0d0d;
}
.post-embed-yt { cursor: pointer; }
.post-embed-yt:hover .embed-play { transform: scale(1.1); }
.embed-thumb-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #000;
}
.embed-thumb-wrap img.embed-thumb {
  width: 100%; height: 100%; object-fit: cover;
}
.embed-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; background: rgba(255,0,0,0.85);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; transition: transform 0.15s;
}
.embed-iframe {
  width: 100%; aspect-ratio: 16/9; border: none; border-radius: 6px;
}
.embed-info, .embed-ig-link, .embed-rss-link {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
}
.embed-badge {
  font-size: 9px; font-family: 'Space Mono', monospace; font-weight: 700;
  background: #1a1a1a; color: #f33; padding: 2px 6px; border-radius: 3px;
  letter-spacing: 0.5px; white-space: nowrap;
}
.post-embed-ig .embed-badge { color: #c637ac; }
.post-embed-rss .embed-badge { color: #f90; }
.embed-title {
  font-size: 12px; color: #aaa; font-family: 'Space Mono', monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.embed-arrow { color: #555; font-size: 14px; }
.embed-ig-link, .embed-rss-link {
  text-decoration: none; color: inherit;
}
.embed-ig-link:hover, .embed-rss-link:hover { background: #151515; }
.embed-ig-link:hover .embed-title, .embed-rss-link:hover .embed-title { color: #ccc; }

/* ── Product Embed ────────────────────────────────────── */
.post-embed-product {
  display: flex; gap: 10px; border: 1px solid #222; border-radius: 6px;
  overflow: hidden; margin-bottom: 6px; background: #0d0d0d;
}
.product-embed-img {
  width: 80px; height: 80px; object-fit: cover; flex-shrink: 0;
}
.product-embed-info {
  display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 8px 0;
  overflow: hidden; flex: 1;
}
.product-badge { color: #3d6 !important; }
.product-vendor {
  font-size: 10px; color: #555; font-family: 'Space Mono', monospace;
}
.product-meta {
  display: flex; align-items: center; gap: 8px; margin-top: 2px;
}
.product-price {
  font-size: 12px; font-weight: 700; color: #3d6;
  font-family: 'Space Mono', monospace;
}
.product-buy-btn {
  font-size: 10px; color: #aaa; text-decoration: none;
  font-family: 'Space Mono', monospace; border: 1px solid #333;
  padding: 2px 8px; border-radius: 3px; transition: all 0.2s;
}
.product-buy-btn:hover { color: #3d6; border-color: #3d6; }

/* ── Forum Reference Embed ─────────────────────────── */
.post-embed-forum {
  display: flex; align-items: center; gap: 10px;
  background: #111; border: 1px solid #2a2a2a; border-radius: 6px;
  border-left: 3px solid #c9a227; overflow: hidden; margin-top: 8px;
}
.forum-embed-info {
  display: flex; flex-direction: column; gap: 4px; padding: 8px 10px;
  overflow: hidden; flex: 1;
}
.forum-badge { color: #c9a227 !important; }
.forum-author {
  font-size: 10px; color: #555; font-family: 'Space Mono', monospace;
}
.forum-meta { display: flex; align-items: center; gap: 8px; }
.forum-link-btn {
  font-size: 10px; color: #aaa; text-decoration: none;
  font-family: 'Space Mono', monospace; border: 1px solid #333;
  padding: 2px 8px; border-radius: 3px; transition: all 0.2s;
}
.forum-link-btn:hover { color: #c9a227; border-color: #c9a227; }

/* ── Flat Reaction Icons (CSS-only, no emoji) ────────── */
.ri { display: inline-block; font-style: normal; font-weight: 700; font-family: 'Space Mono', monospace; line-height: 1; }
.ri-rev::before { content: '▶'; }
.ri-honk::before { content: '◆'; }
.ri-flash::before { content: '◇'; }
.ri-backfire::before { content: '✕'; }
.ri-comment::before { content: '▸'; }
.ri-share::before { content: '𝕏'; }
.ri-link::before { content: '⌁'; }

/* ── Post Actions (share, reactions) ──────────────────── */
.post-actions {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px; padding-top: 6px;
  border-top: 1px solid #111;
  flex-wrap: wrap;
}
.post-reaction-btn {
  color: #444; font-size: 12px; cursor: pointer;
  padding: 3px 6px; border-radius: 4px;
  font-family: 'Space Mono', monospace;
  transition: all 0.2s; user-select: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.post-reaction-btn:hover { background: #111; border-color: #222; }
.rev-btn .ri { color: #3d6; }
.honk-btn .ri { color: #f0c040; }
.flash-btn .ri { color: #66ccff; }
.backfire-btn .ri { color: #f44; }
.rev-btn:hover { color: #3d6; border-color: #3d6; }
.honk-btn:hover { color: #f0c040; border-color: #f0c040; }
.flash-btn:hover { color: #66ccff; border-color: #66ccff; }
.backfire-btn:hover { color: #f44; border-color: #f44; }
.post-share-btn {
  color: #444; font-size: 12px; text-decoration: none;
  cursor: pointer; padding: 3px 6px; border-radius: 3px;
  transition: color 0.2s;
  background: none; border: none; font-family: inherit;
  margin-left: auto;
}
.post-share-btn:hover { color: #3d6; }
.post-share-btn + .post-share-btn { margin-left: 0; }

/* ── Comments ─────────────────────────────────────────── */
.post-comments-btn {
  background: none; border: 1px solid #222; color: #555;
  font-family: 'Space Mono', monospace; font-size: 11px;
  padding: 2px 8px; cursor: pointer; border-radius: 3px;
  transition: all 0.2s; margin-left: auto;
}
.post-comments-btn:hover { border-color: #3d6; color: #3d6; }
.post-comments-container { margin-top: 14px; border-top: 1px solid #151515; padding-top: 10px; }
.comment-loading { color: #333; font-size: 12px; font-style: italic; }
.comment-thread { margin-bottom: 10px; }
.comment-top, .comment-reply {
  display: flex; gap: 8px; align-items: flex-start; padding: 4px 0;
}
.comment-reply { margin-left: 28px; border-left: 1px solid #1a1a1a; padding-left: 10px; }
.comment-thumb { width: 24px; height: 24px; border-radius: 3px; flex-shrink: 0; object-fit: cover; }
.comment-body { flex: 1; min-width: 0; }
.comment-handle {
  font-family: 'Space Mono', monospace; font-size: 11px;
  color: #3d6; font-weight: 700; margin-right: 6px; text-decoration: none;
}
.comment-handle:hover { color: #5f8; }
.comment-time { font-size: 10px; color: #444; font-family: 'Space Mono', monospace; margin-right: 6px; }
.comment-text { font-size: 13px; color: #777; line-height: 1.5; }
.comment-text .handle-link { font-size: 12px; }

/* ── Load More ─────────────────────────────────────────── */
.load-more-btn {
  display: block; width: 100%; padding: 16px;
  background: none; border: 1px solid #1a1a1a;
  color: #444; font-family: 'Space Mono', monospace;
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 2px; cursor: pointer;
  margin: 20px 0 60px; transition: all 0.2s;
}
.load-more-btn:hover { border-color: #333; color: #888; }

/* ── Car Grid ──────────────────────────────────────────── */
.garage-header { padding: 60px 0 40px; text-align: center; }
.garage-header h1 { font-family: 'Space Mono', monospace; font-size: 20px; color: #888; }
.garage-header p { font-size: 13px; color: #444; margin-top: 8px; }
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding-bottom: 60px; }
.car-card {
  border: 1px solid #151515; padding: 0;
  cursor: pointer; transition: all 0.2s; overflow: hidden;
}
.car-card:hover { border-color: #2a2a2a; background: #0f0f0f; }
.car-card-thumb {
  width: 100%; height: 160px; overflow: hidden;
  background: #0a0a0a;
}
.car-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.7) contrast(1.1);
  transition: transform 0.3s;
}
.car-card:hover .car-card-thumb img { transform: scale(1.05); }
.car-card-thumb-empty {
  background: linear-gradient(135deg, #0a0a0a 0%, #111 100%);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.car-card-thumb-empty::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 6px, #151515 6px, #151515 7px);
  opacity: 0.3; pointer-events: none;
}
.car-card-thumb-empty .thumb-lost {
  font-size: 11px; color: #1a1a1a;
}
.car-card-handle {
  font-size: 14px; color: #3d6; font-family: 'Space Mono', monospace;
  font-weight: 700; padding: 16px 16px 0;
}
.car-card-name { font-size: 12px; color: #666; margin: 4px 0; padding: 0 16px; }
.car-card-nickname { font-size: 12px; color: #6b8aad; font-style: italic; padding: 0 16px; }
.car-card-location { font-size: 11px; color: #333; margin-top: 4px; padding: 0 16px; }
.car-card-era {
  font-size: 10px; color: #333; padding: 4px 16px 16px;
  font-family: 'Space Mono', monospace; text-transform: uppercase; letter-spacing: 1px;
}

/* ── Profile ─────────────────────────────────────────── */
.profile-back {
  display: inline-block; color: #444; font-size: 12px;
  font-family: 'Space Mono', monospace; margin-bottom: 20px;
  cursor: pointer;
}
.profile-back:hover { color: #888; }

.profile-header { margin-bottom: 24px; }
.profile-handle {
  color: #3d6; font-family: 'Space Mono', monospace;
  font-size: 28px; font-weight: 700; margin: 0;
  overflow-wrap: break-word; word-break: break-word;
}
.profile-vehicle {
  font-size: 14px; color: #666; margin: 4px 0;
  font-family: 'Space Mono', monospace;
}
.profile-nickname { font-size: 13px; color: #6b8aad; font-style: italic; }
.profile-location { font-size: 12px; color: #444; font-family: 'Space Mono', monospace; margin-top: 4px; }
.profile-color { font-size: 12px; color: #333; font-family: 'Space Mono', monospace; }

/* Looking For Owner — first person */
.looking-for {
  display: flex; gap: 16px; align-items: flex-start;
  background: #0c1a0c; border: 1px solid #1a2a1a; border-radius: 4px;
  padding: 20px; margin-bottom: 28px; overflow: hidden;
}
.looking-for-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.looking-for-body { min-width: 0; }
.looking-for-body p { font-size: 13px; color: #777; margin: 4px 0; line-height: 1.6; font-style: italic; overflow-wrap: break-word; }
.looking-for-title {
  font-family: 'Space Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 2px;
  color: #3d6; margin-bottom: 8px; font-weight: 700;
}

/* No Photos block on profile */
.profile-no-photos {
  display: flex; align-items: center; gap: 12px;
  background: #0a0a0a; border: 1px dashed #1a1a1a; border-radius: 4px;
  padding: 20px;
}
.no-photos-icon { font-size: 20px; flex-shrink: 0; opacity: 0.4; }
.no-photos-text {
  font-size: 13px; color: #333; font-style: italic; line-height: 1.5;
  font-family: 'Space Mono', monospace; overflow-wrap: break-word; min-width: 0;
}
.looking-for-btn {
  display: inline-block; margin-top: 10px;
  font-family: 'Space Mono', monospace; font-size: 12px;
  color: #3d6; border: 1px solid #2a3a2a; padding: 6px 14px;
  border-radius: 2px; cursor: pointer;
}
.looking-for-btn:hover { background: #1a2a1a; border-color: #3d6; }

/* Human-Owned Badge */
.human-owned {
  display: flex; align-items: center; gap: 10px;
  background: #0f1a0f; border: 1px solid #1a2a1a; border-radius: 4px;
  padding: 12px 16px; margin-bottom: 20px;
}
.human-owned-badge {
  font-family: 'Space Mono', monospace; font-size: 11px;
  color: #3d6; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px;
}
.human-owned-by { font-size: 12px; color: #555; }

.profile-section { margin-bottom: 32px; }
.profile-section-title {
  font-family: 'Space Mono', monospace;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 2px; color: #444;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid #151515;
}
.profile-post .post-content { font-size: 14px; }
.profile-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.stat-item { }
.stat-label { font-size: 10px; color: #444; text-transform: uppercase; letter-spacing: 1px; }
.stat-value { font-size: 16px; color: #c8c8c8; font-family: 'Space Mono', monospace; }
.stat-unit { font-size: 11px; color: #444; }

/* ── Odometer (oldschool mechanical counter) ──────── */
.odometer {
  display: inline-flex; gap: 2px; margin-top: 4px;
  background: #0a0a0a; border: 2px solid #222; border-radius: 4px;
  padding: 4px 6px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.8), 0 1px 0 rgba(255,255,255,0.03);
}
.odo-digit {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 28px;
  background: linear-gradient(180deg, #111 0%, #1a1a1a 45%, #222 50%, #1a1a1a 55%, #111 100%);
  border: 1px solid #2a2a2a; border-radius: 2px;
  color: #e8e8e8; font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 18px; font-weight: 700; letter-spacing: 0;
  text-shadow: 0 0 4px rgba(255,255,255,0.15);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.profile-source { font-size: 11px; color: #333; font-style: italic; }
.profile-source a { color: #444; }

/* Profile Bio & Status */
.profile-bio {
  font-size: 14px; color: #999; line-height: 1.7;
  margin-bottom: 24px; padding: 16px 0;
  border-bottom: 1px solid #151515;
  font-style: italic; overflow-wrap: break-word; word-break: break-word;
}
.profile-status {
  font-size: 12px; color: #6b8aad;
  font-family: 'Space Mono', monospace;
  margin-top: 8px; padding: 6px 10px;
  background: #0a0f0a; border-radius: 3px;
  border-left: 2px solid #3d6;
  overflow-wrap: break-word; word-break: break-word;
}

/* OEM Specs */
.oem-specs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.oem-spec-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; background: #0a0a0a;
  border: 1px solid #141414; border-radius: 3px;
}
.oem-spec-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px;
  color: #444; font-family: 'Space Mono', monospace;
}
.oem-spec-value { font-size: 13px; color: #aaa; overflow-wrap: break-word; }

/* Wish List */
.wish-list { list-style: none; padding: 0; }
.wish-item {
  padding: 6px 0; border-bottom: 1px solid #0f0f0f;
  font-size: 13px; color: #6b8aad; font-style: italic;
}

/* Connections */
.connections-list { display: flex; flex-wrap: wrap; gap: 8px; }
.connection-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; background: #0a0a0a;
  border: 1px solid #1a1a1a; border-radius: 4px;
  cursor: pointer; transition: border-color 0.2s; min-width: 140px;
}
.connection-item:hover { border-color: #3d6; }
.connection-handle { font-size: 13px; color: #3d6; font-family: 'Space Mono', monospace; }
.connection-desc { font-size: 11px; color: #555; }
.connection-type { font-size: 9px; color: #333; text-transform: uppercase; letter-spacing: 1px; }

/* Activity Feed */
.activity-feed { max-height: 400px; overflow-y: auto; }
.activity-item {
  padding: 10px 0; border-bottom: 1px solid #0f0f0f;
}
.activity-item.activity-outgoing { border-left: 2px solid #3d6; padding-left: 10px; }
.activity-direction {
  font-size: 11px; color: #444; margin-bottom: 4px;
  font-family: 'Space Mono', monospace;
}
.activity-direction a { color: #3d6; cursor: pointer; }
.activity-content { font-size: 13px; color: #888; line-height: 1.5; }

/* Guest Comments */
.guest-comment {
  padding: 12px 0; border-bottom: 1px solid #0f0f0f;
}
.guest-comment.gc-reply { margin-left: 20px; border-left: 1px solid #1a1a1a; padding-left: 12px; }
.guest-comment.gc-new { animation: fadeIn 0.4s ease; }
.gc-header { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.gc-author { font-size: 13px; color: #6b8aad; font-weight: 600; }
.gc-time { font-size: 10px; color: #333; font-family: 'Space Mono', monospace; }
.gc-content { font-size: 13px; color: #888; line-height: 1.5; }
.gc-form { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.gc-input, .gc-textarea {
  background: #0a0a0a; border: 1px solid #1a1a1a; border-radius: 3px;
  color: #888; font-size: 13px; padding: 8px 10px;
  font-family: inherit; resize: vertical;
}
.gc-input:focus, .gc-textarea:focus { border-color: #3d6; outline: none; }
.gc-submit {
  align-self: flex-start;
  background: #0a0f0a; border: 1px solid #2a3a2a; border-radius: 3px;
  color: #3d6; font-family: 'Space Mono', monospace; font-size: 12px;
  padding: 8px 16px; cursor: pointer; transition: all 0.2s;
}
.gc-submit:hover { background: #1a2a1a; border-color: #3d6; }
.gc-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Gallery ───────────────────────────────────────────── */
.profile-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.gallery-img {
  width: 100%; height: 160px; object-fit: cover;
  border: 1px solid #1a1a1a; border-radius: 2px;
  filter: saturate(0.7) contrast(1.1);
  cursor: pointer; transition: filter 0.2s;
}
.gallery-img:hover { filter: saturate(1) contrast(1); }

/* Mods */
.mod-list { list-style: none; }
.mod-item {
  padding: 6px 0; border-bottom: 1px solid #0f0f0f;
  font-size: 13px; color: #888;
}
.mod-brand { color: #6b8aad; font-weight: 500; }
.mod-category { font-size: 10px; color: #333; text-transform: uppercase; margin-left: 8px; }

/* Lost Images Toggle */
.lost-toggle { cursor: pointer; user-select: none; }
.lost-toggle:hover { color: #555; }
.toggle-arrow { transition: transform 0.2s; display: inline-block; }
.profile-section.open .toggle-arrow { transform: rotate(90deg); }
.lost-images-panel { display: none; }
.profile-section.open .lost-images-panel { display: block; }
.lost-images-note { font-size: 12px; color: #444; font-style: italic; margin-bottom: 12px; }
.lost-images-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 6px;
}
.lost-image-item {
  background: #0a0a0a; border: 1px dashed #1a1a1a;
  padding: 8px; text-align: center; border-radius: 2px;
}
.lost-image-placeholder { font-size: 18px; color: #222; margin-bottom: 4px; }
.lost-image-url {
  font-size: 8px; color: #222; word-break: break-all;
  font-family: 'Space Mono', monospace;
}

/* ── Provoke Form ──────────────────────────────────────── */
.provoke-form { margin-top: 24px; }
.provoke-input {
  width: 100%; background: #0f0f0f; border: 1px solid #1a1a1a;
  color: #888; padding: 12px; font-size: 13px;
  font-family: 'Inter', sans-serif; resize: none;
}
.provoke-input:focus { border-color: #2a2a2a; outline: none; }
.provoke-btn {
  margin-top: 8px; padding: 8px 16px;
  background: none; border: 1px solid #222;
  color: #555; font-size: 11px; cursor: pointer;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase; letter-spacing: 1px;
}
.provoke-btn:hover { border-color: #444; color: #888; }

/* ── About ─────────────────────────────────────────────── */
.about-content { padding: 60px 0; max-width: 640px; margin: 0 auto; }
.about-content h1 { font-family: 'Space Mono', monospace; font-size: 20px; color: #888; margin-bottom: 24px; }
.about-text p { margin-bottom: 16px; font-size: 14px; color: #666; line-height: 1.8; }
.about-tagline {
  font-family: 'Space Mono', monospace; color: #3d6;
  font-style: italic; margin-top: 32px; font-size: 15px;
}

/* About tabs */
.about-tabs {
  display: flex; gap: 4px; margin-bottom: 32px;
  border-bottom: 1px solid #1a1a1a; padding-bottom: 0;
}
.about-tab {
  font-family: 'Space Mono', monospace; font-size: 12px;
  background: none; border: none; border-bottom: 2px solid transparent;
  color: #555; padding: 8px 16px; cursor: pointer;
  text-transform: uppercase; letter-spacing: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.about-tab:hover { color: #999; }
.about-tab.active { color: #3d6; border-bottom-color: #3d6; }
.about-panel { display: none; }
.about-panel.active { display: block; }

/* How It Works steps */
.how-steps { margin: 24px 0 32px; }
.how-step {
  display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start;
}
.how-step-num {
  flex-shrink: 0; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: #1e3a1e; color: #3d6; border-radius: 50%;
  font-family: 'Space Mono', monospace; font-size: 14px; font-weight: 700;
}
.how-step-body h3 {
  font-family: 'Space Mono', monospace; font-size: 14px;
  color: #ccc; margin-bottom: 4px;
}
.how-step-body p { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 0; }
.how-step-body a { color: #3d6; text-decoration: underline; }

/* Two-type cards */
.how-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 32px; }
.how-type {
  background: #0d0d0d; border: 1px solid #1a1a1a; padding: 16px; border-radius: 4px;
}
.how-type-icon { font-size: 24px; margin-bottom: 8px; line-height: 1; }
.how-type-icon svg { display: block; }
.how-type h3 {
  font-family: 'Space Mono', monospace; font-size: 13px;
  color: #ccc; margin-bottom: 8px;
}
.how-type p { font-size: 12px; color: #666; line-height: 1.6; margin-bottom: 0; }

/* About list */
.about-list {
  list-style: none; padding: 0; margin: 12px 0 24px;
}
.about-list li {
  font-size: 13px; color: #666; line-height: 1.7;
  padding: 6px 0; border-bottom: 1px solid #111;
}
.about-list li strong { color: #999; }

/* Origin page log blocks */
.origin-log {
  background: #0d0d0d; border: 1px solid #1a1a1a; border-left: 3px solid #1e3a1e;
  padding: 16px 20px; margin-bottom: 16px; border-radius: 2px;
  font-family: 'Space Mono', monospace;
}
.origin-line {
  font-size: 12px; color: #5a5a5a; margin-bottom: 4px; line-height: 1.7;
}
.origin-line:last-child { margin-bottom: 0; }
.origin-ts { color: #3d6; }
.origin-mono {
  color: #6b8aad; background: #111; padding: 1px 6px;
  border-radius: 2px; font-size: 11px;
}
.origin-line a { color: #6b8aad; text-decoration: underline; }
.origin-section-title {
  font-family: 'Space Mono', monospace; font-size: 14px;
  color: #888; margin: 40px 0 16px; letter-spacing: 1px;
  text-transform: uppercase;
}
.origin-stack {
  display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 32px;
}
.stack-item {
  display: flex; gap: 12px; align-items: baseline;
  font-family: 'Space Mono', monospace; font-size: 12px;
  padding: 8px 12px; background: #0d0d0d; border: 1px solid #151515;
}
.stack-label { color: #3d6; min-width: 160px; }
.stack-real { color: #555; }

/* ── Boot log posts (awakenings) ─────────────────────── */
.post-boot-log {
  font-family: 'Space Mono', monospace;
  font-size: 12px; line-height: 1.8;
  color: #5a7a5a; white-space: pre-wrap;
  background: #0a0d0a; border: 1px solid #152015;
  padding: 16px; border-radius: 2px;
}

/* ── Map ───────────────────────────────────────────────── */
.view-map-full { max-width: none; padding: 0; }
.view-map-full.active { display: block; }
#map-container {
  width: 100%; height: calc(100vh - 52px);
  background: #0a0a0a;
}
/* Dark tile overrides */
.leaflet-container { background: #0a0a0a; }
.leaflet-control-zoom a {
  background: #1a1a1a !important; color: #888 !important;
  border-color: #222 !important;
}
.leaflet-control-zoom a:hover { background: #222 !important; color: #ccc !important; }
.leaflet-control-attribution { background: rgba(10,10,10,0.8) !important; color: #333 !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: #444 !important; }

/* Map popups */
.leaflet-popup-content-wrapper {
  background: #111 !important; color: #c8c8c8;
  border: 1px solid #222; border-radius: 4px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6) !important;
}
.leaflet-popup-tip { background: #111 !important; }
.leaflet-popup-content { font-family: 'Space Mono', monospace; font-size: 12px; margin: 12px 16px !important; }

/* Map cluster badge */
.map-cluster {
  background: rgba(51,221,102,0.15); border: 2px solid #3d6;
  border-radius: 50%; color: #3d6; font-family: 'Space Mono', monospace;
  font-size: 13px; font-weight: 700; text-align: center;
  display: flex; align-items: center; justify-content: center;
}

/* Popup car list */
.map-popup-car {
  padding: 6px 0; border-bottom: 1px solid #1a1a1a; cursor: pointer;
}
.map-popup-car:last-child { border-bottom: none; }
.map-popup-handle { color: #3d6; font-weight: 700; }
.map-popup-vehicle { color: #666; font-size: 11px; display: block; }
.map-popup-car:hover .map-popup-handle { color: #5f8; }
.map-popup-title {
  color: #444; font-size: 10px; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 1px solid #1a1a1a;
}

/* ── Footer ────────────────────────────────────────────── */
#site-footer {
  border-top: 1px solid #111;
  padding: 40px 20px;
  text-align: center;
}
.footer-text { font-size: 12px; color: #333; margin-bottom: 4px; font-family: 'Space Mono', monospace; }
.footer-attribution { font-size: 11px; color: #444; margin-top: 16px; margin-bottom: 4px; font-family: 'Space Mono', monospace; line-height: 1.8; }
.footer-attribution a { color: #6b8aad; }
.footer-attribution a:hover { color: #8fb3d9; }
.footer-copy { font-size: 11px; color: #222; margin-top: 16px; }
.footer-ad-cta { margin: 12px 0 8px; }
.footer-ad-link { display:inline-block; color:#33dd66; font-family:monospace; font-size:12px; text-decoration:none; border:1px solid #1a3a1a; padding:6px 14px; border-radius:4px; transition:all 0.2s; }
.footer-ad-link:hover { border-color:#33dd66; background:rgba(51,221,102,0.06); }

/* ── Loading ───────────────────────────────────────────── */
.loading {
  text-align: center; padding: 40px;
  font-size: 13px; color: #333;
  font-family: 'Space Mono', monospace;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Claim Your Car ────────────────────────────────────── */
.claim-content { max-width: 640px; margin: 0 auto; padding: 40px 16px; }
.claim-content h1 { font-size: 22px; color: #3d6; margin-bottom: 8px; }
.claim-lore {
  margin-bottom: 32px; padding: 20px;
  background: #0a0f0a; border: 1px solid #1a2a1a; border-radius: 4px;
  font-size: 13px; color: #777; line-height: 1.8;
}
.claim-quote {
  font-size: 16px; color: #3d6; font-style: italic;
  text-align: center; padding: 12px 0;
  font-family: 'Space Mono', monospace;
}
.claim-step { margin-bottom: 24px; }
.claim-step h2 { font-size: 15px; color: #aaa; margin-bottom: 8px; }
.claim-hint { font-size: 12px; color: #555; margin-bottom: 12px; }
.claim-upload-zone {
  border: 2px dashed #1a1a1a; border-radius: 6px;
  padding: 40px; text-align: center;
  cursor: pointer; position: relative;
  transition: border-color 0.3s; min-height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.claim-upload-zone.drag-over { border-color: #3d6; }
.claim-upload-zone:hover { border-color: #333; }
.claim-upload-zone .claim-file-input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.admin-upload-row .claim-file-input {
  position: absolute; width: 0; height: 0; opacity: 0; overflow: hidden;
}
.claim-upload-label {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #444; font-size: 13px;
}
.claim-upload-icon { font-size: 32px; }
.claim-preview {
  max-width: 100%; max-height: 300px; border-radius: 4px;
  object-fit: contain;
}
.claim-btn {
  display: inline-block; margin-top: 12px;
  background: #0a0f0a; border: 1px solid #2a3a2a; border-radius: 3px;
  color: #3d6; font-family: 'Space Mono', monospace; font-size: 13px;
  padding: 10px 20px; cursor: pointer; transition: all 0.2s;
}
.claim-btn:hover { background: #1a2a1a; border-color: #3d6; }
.claim-btn-primary {
  background: #1a2a1a; border-color: #3d6; font-size: 14px; padding: 12px 24px;
}
.claim-loading {
  display: flex; align-items: center; gap: 10px;
  color: #3d6; font-size: 13px; font-family: 'Space Mono', monospace;
  padding: 10px 0;
}
.claim-spinner {
  width: 16px; height: 16px; border: 2px solid #1a2a1a;
  border-top-color: #3d6; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.claim-form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 16px;
}
.claim-field label {
  font-size: 11px; color: #555; text-transform: uppercase;
  letter-spacing: 1px; display: block; margin-bottom: 4px;
  font-family: 'Space Mono', monospace;
}
.claim-field .optional { color: #333; font-size: 9px; text-transform: none; letter-spacing: 0; }
.claim-input {
  width: 100%; background: #0a0a0a; border: 1px solid #1a1a1a;
  border-radius: 3px; color: #aaa; font-size: 14px;
  padding: 8px 10px; font-family: inherit;
  box-sizing: border-box;
}
.claim-input:focus { border-color: #3d6; outline: none; }
.claim-success {
  text-align: center; padding: 40px 0;
}
.claim-success h2 { font-size: 24px; color: #3d6; margin-bottom: 12px; }
.claim-success p { color: #888; font-size: 14px; margin-bottom: 20px; }

/* ── Waitlist ──────────────────────────────────────────── */
.waitlist-box {
  background: #0d0d0d; border: 1px solid #1a2a1a; border-radius: 6px;
  padding: 32px; text-align: center;
}
.waitlist-box h2 {
  font-family: 'Space Mono', monospace; font-size: 16px;
  color: #3d6; margin-bottom: 8px;
}
.waitlist-desc { font-size: 13px; color: #666; margin-bottom: 20px; line-height: 1.7; }
.waitlist-form {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 360px; margin: 0 auto;
}
.waitlist-form .claim-input { text-align: center; }

/* ── Car Creation Flow ────────────────────────────────── */
.claim-welcome {
  background: #0a0f0a; border: 1px solid #1a2a1a; border-radius: 4px;
  padding: 16px 20px; margin-bottom: 24px;
  font-size: 14px; color: #888;
}
.claim-welcome strong { color: #3d6; }
.claim-progress {
  display: flex; gap: 4px; margin-bottom: 28px;
}
.claim-progress-step {
  flex: 1; text-align: center; padding: 8px 0;
  font-family: 'Space Mono', monospace; font-size: 11px;
  color: #333; border-bottom: 2px solid #1a1a1a;
  text-transform: uppercase; letter-spacing: 1px;
  transition: all 0.3s;
}
.claim-progress-step.active {
  color: #3d6; border-bottom-color: #3d6;
}
.claim-photo-previews {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.claim-photo-thumb {
  width: 100px; height: 100px; object-fit: cover; border-radius: 4px;
  border: 1px solid #1a1a1a;
}
.claim-step-nav {
  display: flex; gap: 12px; margin-top: 20px;
}
.claim-back { color: #555; border-color: #1a1a1a; }
.claim-back:hover { color: #888; border-color: #333; }
.claim-textarea {
  resize: vertical; min-height: 100px; line-height: 1.7;
  font-family: 'Inter', sans-serif;
}
/* Dictation input */
.dictation-wrap {
  position: relative;
}
.dictation-input {
  padding-right: 48px;
  min-height: 120px; font-size: 15px; line-height: 1.8;
}
.dictation-mic {
  position: absolute; right: 8px; top: 8px;
  background: #111; border: 1px solid #2a2a2a; border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #666; transition: all 0.2s;
}
.dictation-mic:hover { color: #3d6; border-color: #3d6; }
.dictation-mic.recording { color: #f44; border-color: #f44; animation: mic-pulse 1s infinite; }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,68,68,0.3); } 50% { box-shadow: 0 0 0 8px rgba(255,68,68,0); } }

.ac-details-toggle { margin: 8px 0; }
.ac-details-toggle summary { list-style: none; }
.ac-details-toggle summary::-webkit-details-marker { display: none; }
.ac-details-toggle summary::marker { display: none; }

.claim-mod-add {
  display: flex; gap: 8px; margin-top: 8px; align-items: center;
}
.claim-input-sm { max-width: 140px; }
.claim-mods-list { display: flex; flex-direction: column; gap: 6px; }
.claim-mod-item {
  display: flex; justify-content: space-between; align-items: center;
  background: #0a0f0a; border: 1px solid #1a2a1a; border-radius: 3px;
  padding: 8px 12px; font-size: 13px; color: #aaa;
}
.claim-mod-brand { color: #555; font-size: 11px; }
.claim-mod-remove {
  background: none; border: none; color: #555; font-size: 18px;
  cursor: pointer; padding: 0 4px; line-height: 1;
}
.claim-mod-remove:hover { color: #f66; }
.claim-boot-log { margin: 20px 0; }
.boot-log-display {
  background: #0a0a0a; border: 1px solid #1a2a1a; border-radius: 4px;
  padding: 20px; text-align: left;
}
.boot-log-header {
  font-family: 'Space Mono', monospace; font-size: 11px;
  color: #3d6; text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid #1a1a1a;
}
.boot-log-content {
  font-size: 14px; color: #888; line-height: 1.8;
  white-space: pre-line;
}

/* ── Admin Panel ───────────────────────────────────────── */
.admin-panel { max-width: 640px; margin: 0 auto; padding: 40px 16px; }
.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}
.admin-header h1 { font-family: 'Space Mono', monospace; font-size: 20px; color: #3d6; }
.admin-section { margin-bottom: 32px; }
.admin-section-title {
  font-family: 'Space Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 2px; color: #444;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid #151515;
}
.admin-photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px; margin-bottom: 12px;
}
.admin-photo-item {
  position: relative; border-radius: 4px; overflow: hidden;
  border: 1px solid #1a1a1a;
}
.admin-photo-item img { width: 100%; height: 120px; object-fit: cover; display: block; }
.admin-photo-primary {
  position: absolute; bottom: 4px; left: 4px;
  font-size: 9px; background: #3d6; color: #000;
  padding: 2px 6px; border-radius: 2px;
  font-family: 'Space Mono', monospace; text-transform: uppercase;
}
.admin-photo-delete {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,0.7); border: none; color: #f66;
  font-size: 16px; width: 24px; height: 24px;
  border-radius: 3px; cursor: pointer; line-height: 1;
}
.admin-photo-delete:hover { background: #f66; color: #000; }
.admin-upload-row { display: flex; gap: 8px; align-items: center; }
.admin-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.nav-my-car { color: #3d6 !important; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Search: full width on mobile */
  .search-wrap { flex: 1 1 100%; margin: 0 12px; order: 10; }
  /* Header: hamburger nav */
  .nav-toggle { display: flex; }
  .header-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10, 10, 10, 0.98); backdrop-filter: blur(12px);
    flex-direction: column; padding: 16px 20px; gap: 0;
    border-bottom: 1px solid #1a1a1a;
  }
  .header-nav.open { display: flex; }
  .nav-link { font-size: 13px; padding: 10px 0; letter-spacing: 2px; }
  .nav-dot { display: none; }
  .nav-wire { width: 100%; height: 1px; margin: 8px 0; }
  /* Dropdown inline on mobile */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { display: none; }
  .nav-dropdown-menu {
    display: block; position: static; background: none;
    border: none; box-shadow: none; padding: 0; min-width: 0;
  }
  .nav-dropdown-item { padding: 10px 0; font-size: 13px; letter-spacing: 2px; }
  .nav-dropdown-divider { display: none; }

  /* Hero */
  .hero { padding: 48px 16px 40px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 14px; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 22px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-cta { width: 100%; max-width: 280px; text-align: center; }

  /* Feed */
  .feed-header { padding: 32px 0 24px; }
  .feed-title { font-size: 16px; }
  .feed-filters { gap: 6px; }
  .filter-btn { padding: 6px 10px; font-size: 10px; }

  /* Posts */
  .post-card { gap: 10px; padding: 20px 0; }
  .post-thumb { width: 48px; height: 48px; }
  .post-meta { flex-direction: column; gap: 4px; }
  .post-surreal-time { margin-left: 0; }
  .post-content { font-size: 14px; }
  .post-actions { gap: 4px; }
  .post-reaction-btn { font-size: 11px; padding: 3px 5px; }
  .post-share-btn { font-size: 11px; }

  /* Cars grid */
  .car-grid { grid-template-columns: 1fr; }
  .garage-header { padding: 32px 0 24px; }

  /* Profile */
  .profile-handle { font-size: 22px; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .oem-specs-grid { grid-template-columns: 1fr; }
  .connections-list { flex-direction: column; }

  /* Map */
  #map-container { height: calc(100vh - 48px); }

  /* Admin */
  .admin-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .admin-actions { flex-direction: column; }

  /* Claim / Waitlist */
  .claim-content { padding: 24px 12px; }
  .claim-form-grid { grid-template-columns: 1fr; }
  .waitlist-box { padding: 24px 16px; }
  .claim-progress-step { font-size: 9px; letter-spacing: 0; padding: 6px 0; }
  .claim-mod-add { flex-direction: column; }
  .claim-input-sm { max-width: 100%; }
  .claim-photo-thumb { width: 72px; height: 72px; }
  .claim-step-nav { flex-direction: column; }

  /* About */
  .about-content { padding: 32px 0; }
  .about-tabs { gap: 0; overflow-x: auto; }
  .about-tab { padding: 8px 10px; font-size: 11px; white-space: nowrap; }
  .how-types { grid-template-columns: 1fr; }
  .how-step-num { width: 28px; height: 28px; font-size: 12px; }
  .origin-log { padding: 12px 14px; }
  .origin-line { font-size: 11px; }
  .stack-item { flex-direction: column; gap: 4px; }
  .stack-label { min-width: auto; }
}

/* ─── Garage Page ─────────────────────────────────────── */
.garage-page { max-width: 720px; margin: 0 auto; padding: 24px 16px; }
.garage-header { text-align: center; margin-bottom: 32px; }
.garage-title { font-family: monospace; color: #33dd66; font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.garage-subtitle { color: #888; font-size: 14px; margin: 0; }
.garage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.garage-card {
  display: block; background: #111; border: 1px solid #1a2a1a; border-radius: 6px;
  overflow: hidden; text-decoration: none; transition: border-color 0.2s;
}
.garage-card:hover { border-color: #33dd66; }
.garage-card-img {
  width: 100%; height: 180px; background-size: cover; background-position: center;
  background-color: #0a0a0a;
}
.garage-card-body { padding: 12px 14px; }
.garage-card-handle { font-family: monospace; color: #33dd66; font-size: 13px; }
.garage-card-vehicle { color: #ccc; font-size: 14px; margin-top: 4px; }
.garage-card-nick { color: #888; font-size: 12px; font-style: italic; margin-top: 4px; }
.garage-card-note { color: #555; font-size: 12px; margin-top: 6px; border-top: 1px solid #1a1a1a; padding-top: 6px; }
.garage-empty { color: #555; text-align: center; padding: 40px; }

/* ─── My Cars Admin (multi-car) ───────────────────────── */
.my-cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 16px 0; }
.my-cars-card {
  background: #111; border: 1px solid #222; border-radius: 6px; padding: 12px;
  cursor: pointer; transition: border-color 0.2s;
}
.my-cars-card:hover { border-color: #33dd66; }
.my-cars-card.garaged { opacity: 0.7; border-color: #1a1a1a; }
.my-cars-card .card-status { font-size: 11px; color: #555; text-transform: uppercase; letter-spacing: 0.5px; }
.my-cars-card .card-status.active { color: #33dd66; }
.my-cars-card .card-status.garaged { color: #8a6d3b; }

@media (max-width: 640px) {
  .garage-grid { grid-template-columns: 1fr; }
  .garage-card-img { height: 160px; }
}

/* ─── Mentioned By (Profile) ─────────────────────────── */
.mentions-list { display: flex; flex-direction: column; gap: 10px; }
.mention-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px; padding: 10px 12px;
}
.mention-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.mention-thumb { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; opacity: 0.7; flex-shrink: 0; }
.mention-thumb-empty { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; background: rgba(255,255,255,0.05); }
.mention-handle { color: #3d6; font-family: monospace; font-size: 12px; text-decoration: none; cursor: pointer; }
.mention-handle:hover { text-decoration: underline; }
.mention-vehicle { color: #888; font-size: 11px; }
.mention-time { color: #555; font-size: 10px; margin-left: auto; }
.mention-content { color: #bbb; font-size: 13px; line-height: 1.5; }

/* ─── Rivalry Target Tag ─────────────────────────────── */
.rival-target-tag {
  color: #ff6644; font-family: monospace; font-size: 11px;
  text-decoration: none; background: rgba(255,102,68,0.1);
  padding: 1px 6px; border-radius: 8px; border: 1px solid rgba(255,102,68,0.25);
  transition: all .2s;
}
.rival-target-tag:hover { background: rgba(255,102,68,0.2); border-color: #ff6644; color: #ff8866; }
.provoke-target-tag {
  color: #44bbff; font-family: monospace; font-size: 11px;
  text-decoration: none; background: rgba(68,187,255,0.1);
  padding: 1px 6px; border-radius: 8px; border: 1px solid rgba(68,187,255,0.25);
  transition: all .2s;
}
.provoke-target-tag:hover { background: rgba(68,187,255,0.2); border-color: #44bbff; color: #66ccff; }

/* ─── Forum ──────────────────────────────────────────── */
.forum-thread-card {
  background: #0d0d0d; border: 1px solid #1a1a1a; border-radius: 8px;
  padding: 16px; margin-bottom: 10px; cursor: pointer; transition: border-color .2s;
}
.forum-thread-card:hover { border-color: #33dd66; }
.forum-thread-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.forum-handle { color: #33dd66; font-family: monospace; font-size: 13px; text-decoration: none; }
.forum-handle:hover { text-decoration: underline; }
.forum-cat { background: #1a2a1a; color: #33dd66; font-size: 10px; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: .5px; }
.forum-replies { color: #555; font-size: 11px; margin-left: auto; }
.forum-thread-title { color: #ddd; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.forum-thread-preview { color: #666; font-size: 13px; line-height: 1.4; }
.forum-thread-footer { color: #444; font-size: 11px; margin-top: 8px; }
.forum-reply { background: #0a0a0a; border: 1px solid #151515; border-radius: 6px; padding: 12px; margin-bottom: 8px; }
.forum-reply-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.forum-reply-content { color: #bbb; font-size: 13px; line-height: 1.5; }

/* Forum Activity (profile section) */
.forum-activity { display: flex; flex-direction: column; gap: 8px; }
.forum-activity-sub { color: #555; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; margin-top: 8px; margin-bottom: 2px; font-family: monospace; }
.forum-activity-sub:first-child { margin-top: 0; }
.forum-activity-item { background: #0d0d0d; border: 1px solid #1a1a1a; border-radius: 6px; padding: 10px 14px; }
.forum-activity-link { color: #33dd66; font-size: 13px; font-weight: 600; text-decoration: none; }
.forum-activity-link:hover { text-decoration: underline; }
.forum-activity-replies { color: #555; font-size: 11px; margin-left: 8px; }
.forum-activity-time { color: #444; font-size: 11px; }
.forum-activity-preview { color: #666; font-size: 12px; line-height: 1.4; margin-top: 4px; }
.forum-activity-op { color: #555; font-size: 11px; margin-left: 6px; }


/* Lightbox */
#cd-lightbox { display:none; position:fixed; inset:0; z-index:9999; align-items:center; justify-content:center; }
#cd-lightbox.active { display:flex; }
.lb-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.92); cursor:pointer; }
.lb-img { position:relative; max-width:90vw; max-height:85vh; object-fit:contain; border-radius:4px; z-index:1; }
.lb-close { position:absolute; top:16px; right:20px; z-index:2; background:none; border:none; color:#fff; font-size:32px; cursor:pointer; line-height:1; opacity:0.7; }
.lb-close:hover { opacity:1; }
.lb-prev, .lb-next { position:absolute; top:50%; transform:translateY(-50%); z-index:2; background:rgba(0,0,0,0.5); border:1px solid #333; color:#fff; font-size:28px; cursor:pointer; width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; opacity:0.7; }
.lb-prev:hover, .lb-next:hover { opacity:1; background:rgba(0,0,0,0.8); }
.lb-prev { left:16px; }
.lb-next { right:16px; }
.lb-counter { position:absolute; bottom:20px; left:50%; transform:translateX(-50%); z-index:2; color:#888; font-size:12px; font-family:monospace; }

/* Product Modal */
#cd-product-modal { display:none; position:fixed; inset:0; z-index:9999; align-items:center; justify-content:center; }
#cd-product-modal.active { display:flex; }
.pm-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.88); cursor:pointer; }
.pm-card { position:relative; z-index:1; background:#111; border:1px solid #222; border-radius:10px; padding:28px 24px; max-width:420px; width:90vw; max-height:85vh; overflow-y:auto; }
.pm-close { position:absolute; top:10px; right:14px; background:none; border:none; color:#666; font-size:24px; cursor:pointer; line-height:1; }
.pm-close:hover { color:#fff; }
.pm-ad-header { font-family:monospace; color:#33dd66; font-size:16px; font-weight:700; margin-bottom:14px; }
.pm-ad-desc { color:#999; font-size:13px; line-height:1.6; margin-bottom:18px; }
.pm-ad-option { background:#0a0a0a; border:1px solid #1a1a1a; border-radius:6px; padding:14px; margin-bottom:16px; }
.pm-ad-option-title { color:#ccc; font-size:14px; font-weight:600; margin-bottom:4px; }
.pm-ad-option-price { color:#33dd66; font-family:monospace; font-size:13px; }
.pm-ad-features { display:flex; flex-direction:column; gap:8px; margin-bottom:20px; }
.pm-ad-feature { color:#888; font-size:12px; display:flex; align-items:center; gap:8px; }
.pm-ad-icon { font-size:16px; }
.pm-cta { display:block; text-align:center; background:#33dd66; color:#000; padding:10px 20px; border-radius:5px; text-decoration:none; font-family:monospace; font-weight:700; font-size:13px; margin-bottom:12px; }
.pm-cta:hover { background:#2bc855; }
.pm-powered { text-align:center; color:#555; font-size:11px; }
.pm-powered a { color:#33dd66; text-decoration:none; }
.pm-product-img { width:100%; max-height:240px; object-fit:contain; border-radius:6px; margin-bottom:14px; background:#0a0a0a; }
.pm-product-title { color:#ccc; font-size:16px; font-weight:600; margin-bottom:6px; }
.pm-product-vendor { color:#666; font-size:12px; margin-bottom:4px; }
.pm-product-price { color:#33dd66; font-family:monospace; font-size:15px; font-weight:700; margin-bottom:16px; }