/* ── Reset & Variables ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #fffbf5;
  --surface:      #fff9f0;
  --surface-warm: #fff3e0;
  --ink:          #1a1208;
  --ink-mid:      #5c4a2a;
  --ink-dim:      #9c8668;
  --accent:       #d4531e;
  --accent-light: #f4693b;
  --accent-bg:    #fef0eb;
  --olive:        #5a7a3a;
  --olive-bg:     #eef4e8;
  --sand:         #e8d5b0;
  --sand-light:   #f5edd8;
  --border:       #e8d5b0;
  --border-soft:  #f0e4c8;
  --gold:         #c47d0e;
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max-w:        1280px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Nav / Header ───────────────────────────────────────────────────────────── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-logo strong {
  color: var(--accent);
  font-weight: 400;
}

.logo-tld { color: var(--ink-dim); font-size: 0.9em; }

.header-search {
  flex: 1;
  max-width: 400px;
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.header-search:focus-within { border-color: var(--accent); }

.header-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  background: transparent;
  color: var(--ink);
}

.header-search input::placeholder { color: var(--ink-dim); }

.header-search button {
  border: none;
  background: none;
  padding: 0.4rem 0.85rem;
  font-size: 1rem;
  color: var(--ink-dim);
  transition: color 0.15s;
}

.header-search button:hover { color: var(--accent); }

.admin-link {
  font-size: 0.82rem;
  color: var(--ink-mid);
  white-space: nowrap;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all 0.15s;
  flex-shrink: 0;
}

.admin-link:hover { border-color: var(--accent); color: var(--accent); }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 48px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: center;
}

.hero-left { animation: fadeUp 0.55s ease both; }
.hero-right { animation: fadeUp 0.55s 0.12s ease both; }

.hero-tag {
  display: inline-block;
  background: var(--olive-bg);
  color: var(--olive);
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  font-weight: 500;
}

.hero h1,
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-mid);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
  max-width: 480px;
  padding: 4px 4px 4px 20px;
  transition: border-color 0.15s;
}

.hero-search:focus-within { border-color: var(--accent); }

.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  padding: 8px 0;
}

.hero-search input::placeholder { color: var(--ink-dim); }

.hero-search button {
  background: var(--accent);
  border: none;
  padding: 10px 22px;
  border-radius: 100px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.hero-search button:hover { background: var(--accent-light); }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-dim);
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
  flex-shrink: 0;
}

/* hero right — category bubbles */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.bubble-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 380px;
}

.bubble {
  width: 108px;
  height: 108px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s;
}

.bubble:hover { transform: scale(1.05); }

.bubble-icon { font-size: 28px; line-height: 1; }

.bubble-label {
  font-size: 11px;
  color: var(--ink-mid);
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

/* bubble color variants */
.b-amber { background: #fef3c7; }
.b-terra { background: var(--accent-bg); }
.b-olive { background: var(--olive-bg); }
.b-blue  { background: #e0f2fe; }
.b-pink  { background: #fce7f3; }
.b-sand  { background: var(--sand-light); }
.b-mint  { background: #d1fae5; }
.b-rose  { background: #ffe4e6; }
.b-sky   { background: #e0f7fa; }

.hero-count {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-dim);
}

.hero-count strong {
  color: var(--accent);
  font-size: 22px;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 2px;
}

/* bubble pop animations */
.bubble:nth-child(1) { animation: bubblePop 0.4s 0.1s  ease both; }
.bubble:nth-child(2) { animation: bubblePop 0.4s 0.15s ease both; }
.bubble:nth-child(3) { animation: bubblePop 0.4s 0.2s  ease both; }
.bubble:nth-child(4) { animation: bubblePop 0.4s 0.25s ease both; }
.bubble:nth-child(5) { animation: bubblePop 0.4s 0.3s  ease both; }
.bubble:nth-child(6) { animation: bubblePop 0.4s 0.35s ease both; }
.bubble:nth-child(7) { animation: bubblePop 0.4s 0.4s  ease both; }
.bubble:nth-child(8) { animation: bubblePop 0.4s 0.45s ease both; }
.bubble:nth-child(9) { animation: bubblePop 0.4s 0.5s  ease both; }

/* ── Stats bar ──────────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--sand-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.04em;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--ink-dim);
}

/* ── Category pills scroll bar ──────────────────────────────────────────────── */
.cat-pills-wrap {
  padding: 0 48px 60px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.cats-label {
  font-size: 13px;
  color: var(--ink-dim);
  margin-bottom: 16px;
  font-weight: 500;
}

.cat-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

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

.cat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--ink-mid);
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  text-decoration: none;
  flex-shrink: 0;
}

.cat-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

.cat-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cat-pill-icon { font-size: 16px; }

/* ── Main / Container ───────────────────────────────────────────────────────── */
.site-main { flex: 1; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 48px;
}

.listings {
  padding: 72px 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.listings-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.listings-header h2,
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.listings-header a {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.recent-section {
  padding: 0 48px 72px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.recent-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.recent-header h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ── Eshop cards (horizontal row layout) ────────────────────────────────────── */
.eshop-list,
.shop-list { display: flex; flex-direction: column; gap: 12px; }

.eshop-card,
.shop-row {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.eshop-card:hover,
.shop-row:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(212, 83, 30, 0.08);
}

.eshop-card.featured-row,
.shop-row.featured-row {
  background: var(--accent-bg);
  border-color: rgba(212, 83, 30, 0.3);
}

/* logo cell */
.eshop-logo,
.row-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

/* body cell */
.eshop-body,
.row-body {}

.eshop-name-row,
.row-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.eshop-name,
.row-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.eshop-url,
.row-url {
  font-size: 12px;
  color: var(--ink-dim);
}

.eshop-url { color: var(--accent); }

.row-stars,
.eshop-stars {
  font-size: 12px;
  color: var(--gold);
}

.stars { color: var(--gold); letter-spacing: 0.05em; }
.stars-lg { font-size: 1.1em; }

.row-rating-num,
.rating-num { font-size: 12px; color: var(--ink-dim); font-weight: 600; color: var(--ink); }

.review-count { color: var(--ink-dim); }

.eshop-rating,
.row-rating {
  font-size: 0.82rem;
  color: var(--ink-dim);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.no-rating { font-style: italic; color: var(--ink-dim); }

.row-verified,
.badge-verified {
  font-size: 11px;
  color: var(--olive);
  background: var(--olive-bg);
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 500;
}

.row-featured-badge,
.badge-featured {
  font-size: 11px;
  color: var(--accent);
  background: #fff;
  border: 1px solid rgba(212, 83, 30, 0.3);
  padding: 2px 8px;
  border-radius: 100px;
}

.eshop-desc,
.row-desc {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eshop-tags,
.row-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* tag pill */
.tag,
.row-tag {
  font-size: 12px;
  color: var(--ink-dim);
  background: var(--sand-light);
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
}

/* action cell */
.eshop-action,
.row-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.eshop-city {
  font-size: 0.8rem;
  color: var(--ink-dim);
}

.row-saves {
  font-size: 12px;
  color: var(--ink-dim);
}

/* visit buttons */
.btn-visit,
.visit-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.btn-visit:hover,
.visit-btn:hover { background: var(--accent-light); }

.visit-btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(212, 83, 30, 0.3);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.visit-btn-outline:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
}

.btn-visit-lg {
  padding: 12px 28px;
  font-size: 15px;
  border-radius: 100px;
}

.btn-primary {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
}

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

/* ── Category badge (detail page) ──────────────────────────────────────────── */
.cat-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--sand-light);
  color: var(--ink-mid);
  border: 1.5px solid var(--border);
  transition: all 0.15s;
}

.cat-badge:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Page headers (category / search pages) ─────────────────────────────────── */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-soft);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.page-sub {
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* ── Individual eshop detail page ───────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-dim);
  margin-bottom: 1.5rem;
}

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

.eshop-detail-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.eshop-detail-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.eshop-logo-lg {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  flex-shrink: 0;
}

.eshop-detail-info { flex: 1; min-width: 0; }

.eshop-detail-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.eshop-detail-url {
  display: block;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.eshop-detail-url:hover { text-decoration: underline; }
.eshop-detail-city { font-size: 0.88rem; color: var(--ink-dim); margin-bottom: 0.35rem; }
.eshop-detail-rating { font-size: 0.95rem; color: var(--ink-mid); }
.eshop-detail-action { align-self: center; flex-shrink: 0; }

.eshop-detail-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-mid);
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  margin-bottom: 1rem;
}

.eshop-detail-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.eshop-detail-cats { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.back-link { font-size: 0.9rem; }
.back-link a { color: var(--accent); }
.back-link a:hover { text-decoration: underline; }

/* ── Search no-results ──────────────────────────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ink-dim);
}

.no-results-icon { font-size: 3rem; margin-bottom: 1rem; }
.no-results h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 0.5rem; }
.no-results p { margin-bottom: 1.5rem; }

/* ── Empty / error messages ─────────────────────────────────────────────────── */
.empty-msg { color: var(--ink-dim); font-style: italic; padding: 1rem 0; }

/* ── 404 ────────────────────────────────────────────────────────────────────── */
.not-found {
  text-align: center;
  padding: 5rem 1rem;
}

.not-found-code {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  opacity: 0.3;
  margin-bottom: 0.5rem;
}

.not-found h1 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.not-found p { color: var(--ink-dim); margin-bottom: 2rem; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--sand);
  padding: 64px 48px 40px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand .f-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--bg);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.footer-brand .f-name .fdot { color: var(--accent-light); }

.footer-brand p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  font-size: 14px;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--sand); }

.footer-bottom-row {
  border-top: 1px solid rgba(232, 213, 176, 0.15);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-row p {
  font-size: 13px;
  color: var(--ink-dim);
}

.footer-bottom-row strong { color: var(--accent-light); }
.footer-sub { font-size: 0.82rem; color: var(--ink-dim); margin-top: 0.4rem; }
.footer-flag { font-size: 16px; }

/* ── Animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bubblePop {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-left, .hero-right, .bubble { animation: none; }
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .header-inner { padding: 0 20px; gap: 16px; }

  .hero {
    grid-template-columns: 1fr;
    padding: 48px 20px 40px;
    gap: 40px;
  }

  .hero-right { order: -1; }
  .bubble-grid { grid-template-columns: repeat(3, 72px); gap: 10px; }
  .bubble { width: 72px; height: 72px; }
  .bubble-icon { font-size: 20px; }

  .stats-bar { gap: 32px; padding: 32px 20px; }

  .cat-pills-wrap { padding: 0 20px 48px; }

  .listings { padding: 48px 20px; }
  .recent-section { padding: 0 20px 48px; }
  .container { padding: 2rem 20px; }

  .eshop-card,
  .shop-row {
    grid-template-columns: 52px 1fr;
    gap: 14px;
  }

  .eshop-action,
  .row-action { display: none; }

  .footer-wrap { padding: 48px 20px 32px; }
  .site-footer { padding: 48px 20px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .header-inner { gap: 0.6rem; }
  .admin-link { display: none; }
  .header-search { max-width: none; }

  .hero h1, .hero-title { font-size: clamp(30px, 7vw, 38px); }
  .hero-sub { font-size: 15px; }
  .hero-search { max-width: 100%; }

  .stats-bar { gap: 20px; }
  .stat-num { font-size: 30px; }

  .eshop-detail-header { flex-direction: column; }
  .eshop-detail-action { width: 100%; }
  .btn-visit-lg { width: 100%; text-align: center; display: block; }

  .footer-top { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Featured grid: 2-col × 5-row ──────────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .featured-grid { grid-template-columns: 1fr; }
}

/* ── Submit CTA in header ───────────────────────────────────────────────── */
.submit-link {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.submit-link:hover { background: #b8421a; }

/* ── Submission page ────────────────────────────────────────────────────── */
.submit-page { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.submit-hero { text-align: center; margin-bottom: 40px; }
.submit-hero h1 { font-size: 2rem; color: var(--text); margin-bottom: 12px; }
.submit-hero p  { color: var(--muted); font-size: 1.05rem; }

.submit-alert { padding: 14px 20px; border-radius: 10px; margin-bottom: 24px; font-weight: 500; }
.submit-ok  { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.submit-err { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

.submit-form { background: #fff; border: 1.5px solid var(--border); border-radius: 20px; padding: 36px; }
.submit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sf-group { display: flex; flex-direction: column; gap: 6px; }
.sf-full  { grid-column: 1 / -1; }
.sf-group label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.sf-group .req  { color: var(--accent); }
.sf-group input,
.sf-group select,
.sf-group textarea {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
  resize: vertical;
}
.sf-group input:focus,
.sf-group select:focus,
.sf-group textarea:focus { outline: none; border-color: var(--accent); }

.submit-footer { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: #b8421a; }
.submit-note { font-size: 0.82rem; color: var(--muted); }

@media (max-width: 600px) {
  .submit-fields { grid-template-columns: 1fr; }
  .submit-form  { padding: 24px 16px; }
}

/* ── Admin submissions queue ────────────────────────────────────────────── */
.pending-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  margin-left: 4px;
  vertical-align: middle;
}
.sub-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.sub-tab  { padding: 8px 20px; border-radius: 8px; border: 1.5px solid var(--border); text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.sub-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.sub-list { display: flex; flex-direction: column; gap: 12px; }
.sub-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: start;
}
.sub-name { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.sub-url  { font-size: 0.85rem; color: var(--accent); text-decoration: none; word-break: break-all; }
.sub-meta { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.sub-desc { font-size: 0.85rem; color: var(--text-light); margin-top: 8px; }
.sub-date { font-size: 0.8rem; color: var(--muted); white-space: nowrap; padding-top: 4px; }
.sub-actions { display: flex; flex-direction: column; gap: 6px; }
.btn-approve { background: #059669; color: #fff; border: none; padding: 8px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 0.85rem; }
.btn-reject  { background: #dc2626; color: #fff; border: none; padding: 8px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 0.85rem; }
.btn-approve:hover { background: #047857; }
.btn-reject:hover  { background: #b91c1c; }

@media (max-width: 600px) {
  .sub-card { grid-template-columns: 1fr; }
}

/* ── Autocomplete ────────────────────────────────────────────────────────── */
.autocomplete-wrap { position: relative; flex: 1; }
.ac-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 1000;
  overflow: hidden;
}
.ac-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text);
  gap: 12px;
  transition: background 0.1s;
}
.ac-item:hover, .ac-item:focus { background: var(--bg-muted); outline: none; }
.ac-name { font-weight: 600; font-size: 0.92rem; }
.ac-url  { font-size: 0.8rem; color: var(--muted); }

/* ── Search City Filter ──────────────────────────────────────────────────── */
.search-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--bg-muted);
  border-radius: 10px;
  border: 1.5px solid var(--border);
}
.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.filter-label select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

/* ── Clickable tag pills ─────────────────────────────────────────────────── */
a.row-tag {
  text-decoration: none;
  display: inline-block;
}
a.row-tag:hover {
  background: var(--accent);
  color: #fff;
}

/* ── City pill buttons ───────────────────────────────────────────────────── */
.city-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.city-pill {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.city-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.city-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
@media (max-width: 600px) {
  .city-pills { gap: 6px; }
  .city-pill  { padding: 6px 12px; font-size: 0.8rem; }
}

/* ── Trust Check Page ────────────────────────────────────────────────────── */
.check-link {
  padding: 8px 16px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.15s;
}
.check-link:hover { background: var(--accent); color: #fff; }

.check-hero {
  text-align: center;
  padding: 48px 0 32px;
}
.check-hero h1 { font-size: 2rem; font-family: var(--font-display); color: var(--ink); margin-bottom: 10px; }
.check-hero p  { color: var(--ink-mid); font-size: 1.05rem; }

.check-form { max-width: 640px; margin: 0 auto 40px; }
.check-input-wrap {
  display: flex;
  gap: 10px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 8px 8px 8px 16px;
  transition: border-color 0.15s;
}
.check-input-wrap:focus-within { border-color: var(--accent); }
.check-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: var(--ink);
}
.check-input-wrap button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.check-input-wrap button:hover { background: var(--accent-light); }
.check-hint { text-align: center; color: var(--ink-dim); font-size: 0.82rem; margin-top: 10px; }
.check-error {
  background: #fef2f2; border: 1.5px solid #fecaca; color: #b91c1c;
  border-radius: 10px; padding: 16px 20px; text-align: center;
  max-width: 640px; margin: 0 auto;
}

.trust-result {
  display: flex;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto 60px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  align-items: flex-start;
}
.trust-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}
.trust-verdict {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  text-align: center;
}
.verdict-trusted { background: #dcfce7; color: #15803d; }
.verdict-caution { background: #fef3c7; color: #b45309; }
.verdict-risky   { background: #fee2e2; color: #b91c1c; }
.trust-domain { color: var(--ink-dim); font-size: 0.82rem; text-align: center; }

.trust-checks { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.trust-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid transparent;
}
.check-ok   { background: #f0fdf4; border-color: #bbf7d0; }
.check-fail { background: #fafafa; border-color: var(--border-soft); }
.check-icon {
  font-size: 1rem;
  font-weight: 700;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  padding-top: 1px;
}
.check-ok   .check-icon { color: #16a34a; }
.check-fail .check-icon { color: #9ca3af; }
.check-body { flex: 1; }
.check-label  { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.check-detail { display: block; font-size: 0.8rem; color: var(--ink-dim); margin-top: 2px; }
.check-pts {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-dim);
  white-space: nowrap;
  padding-top: 2px;
}
.check-ok .check-pts { color: #16a34a; }

@media (max-width: 680px) {
  .trust-result { flex-direction: column; padding: 24px 20px; gap: 28px; }
  .trust-score-wrap { flex-direction: row; flex-wrap: wrap; justify-content: center; min-width: unset; width: 100%; }
  .check-hero h1 { font-size: 1.5rem; }
}

/* ── Trust Check Banner (homepage) ──────────────────────────────────────── */
.trust-banner-wrap {
  background: var(--bg);
  padding: 0 48px 32px;
}
.trust-banner {
  max-width: var(--max-w);
  margin: 0 auto;
  background: linear-gradient(135deg, #1a1208 0%, #2d1f0a 100%);
  border-radius: 16px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #fff;
}
.trust-banner-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  line-height: 1;
}
.trust-banner-body { flex: 1; }
.trust-banner-body h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 6px;
}
.trust-banner-body p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  margin: 0;
}
.trust-banner-btn {
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s;
}
.trust-banner-btn:hover { background: var(--accent-light); }
@media (max-width: 700px) {
  .trust-banner-wrap { padding: 0 16px 24px; }
  .trust-banner { flex-direction: column; text-align: center; padding: 24px 20px; gap: 16px; }
  .trust-banner-btn { width: 100%; text-align: center; }
}
