/* ===== FIVEM MARKET — Light theme, green accent ===== */

:root {
  --green: #008f39;
  --green-dark: #006b2b;
  --green-light: #b8e6c6;
  --green-soft: #e8f6ed;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --amber: #f59e0b;
  --rose: #e11d48;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --shadow: 0 4px 6px -1px rgba(15,23,42,.06), 0 2px 4px -2px rgba(15,23,42,.04);
  --shadow-lg: 0 20px 25px -5px rgba(15,23,42,.08), 0 8px 10px -6px rgba(15,23,42,.05);
  --t: .2s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
a:hover { color: var(--green-dark); }

/* Inline content links — stand out inside paragraphs, FAQ answers, and long-form copy */
.gig-section p a,
.gig-section li a,
.info-wrap p a,
.info-wrap li a,
.faq-item p a,
.view-all-sub a,
.page-hero .lead a,
.callout a {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 500;
}
.gig-section p a:hover,
.gig-section li a:hover,
.info-wrap p a:hover,
.info-wrap li a:hover,
.faq-item p a:hover,
.view-all-sub a:hover,
.page-hero .lead a:hover,
.callout a:hover {
  color: var(--green);
  text-decoration-thickness: 2px;
}
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { margin: 0; color: var(--ink); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.925rem;
  border: 1px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,143,57,.25);
}
.btn-primary:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,143,57,.35);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--bg-2);
  border-color: var(--ink);
  color: var(--ink);
}
.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 24px;
}
/* Push the main nav (and the right-side header actions) to the right */
.main-nav { margin-left: auto; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.logo-text .accent { color: var(--green); margin-left: 0.22em; }

.main-nav > ul {
  display: flex;
  gap: 6px;
  align-items: center;
}
.main-nav > ul > li > a,
.main-nav > ul > li > button {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  transition: all var(--t);
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > button:hover { color: var(--ink); background: var(--bg-2); }
.main-nav > ul > li > a.active,
.main-nav > ul > li > button.is-open {
  color: var(--green-dark);
  background: var(--green-soft);
}

/* Market nav button — distinguished style to stand out as the primary nav */
.main-nav .market-btn {
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 600;
  padding: 8px 16px;
}
.main-nav .market-btn:hover {
  background: var(--green);
  color: #fff;
}
.main-nav .market-btn.is-open {
  background: var(--green);
  color: #fff;
}
.main-nav .market-btn.is-open .mega-caret,
.main-nav .market-btn .mega-caret { transition: transform var(--t); }

.nav-cta-mobile { display: none; }

/* ===== Mega Menu ===== */
.has-mega { position: relative; }
.mega-caret {
  width: 14px; height: 14px;
  transition: transform var(--t);
}
.has-mega > button.is-open .mega-caret { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(860px, 92vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  z-index: 60;
}
.mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.mega-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  transition: background var(--t);
}
.mega-link:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}
.mega-link .ic {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  transition: all var(--t);
}
.mega-link:hover .ic {
  background: var(--green);
  color: #fff;
}
.mega-link .mt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mega-link .mt strong {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.mega-link:hover .mt strong { color: var(--green-dark); }
.mega-link .mt span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 2px;
}
.mega-foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.mega-foot p {
  font-size: 0.85rem;
  color: var(--muted);
}

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

/* ===== Burger ===== */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--t);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ===== Page Hero ===== */
.page-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,143,57,.08), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-hero h1 { margin-bottom: 16px; }
.lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-lg);
  transition: border-color var(--t);
}
.search-bar:focus-within { border-color: var(--green); }
.search-bar .search-icon {
  width: 20px; height: 20px;
  color: var(--muted);
  flex-shrink: 0;
}
.search-bar input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
  color: var(--ink);
  padding: 10px 8px;
  min-width: 0;
}
.search-bar input::placeholder { color: var(--muted-2); }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-clear {
  width: 32px;
  height: 32px;
  border: 0;
  background: var(--bg-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: all var(--t);
}
.search-clear svg { width: 14px; height: 14px; }
.search-clear:hover { background: var(--line); color: var(--ink); }
.search-clear[hidden] { display: none; }

/* ===== No Results ===== */
.no-results {
  text-align: center;
  padding: 64px 24px;
  max-width: 420px;
  margin: 0 auto;
}
.no-results-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
}
.no-results-icon svg { width: 28px; height: 28px; }
.no-results h3 { margin-bottom: 8px; }
.no-results p { color: var(--muted); margin-bottom: 20px; }
.no-results[hidden] { display: none; }

/* Card enter/leave */
.card[hidden] { display: none; }

.hero-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 48px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.trust-item strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}
.trust-item span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== Filter Bar (inside .scripts-section) ===== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.filter-toggle { display: none; }
.filter-toggle {
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all var(--t);
}
.filter-toggle svg { width: 16px; height: 16px; }
.filter-toggle:hover { border-color: var(--ink); }
.filter-toggle.is-open { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}
.filter-count[hidden] { display: none; }
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  padding-bottom: 2px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: all var(--t);
}
.chip:hover {
  border-color: var(--ink-2);
}
.chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.sort {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sort label {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}
.sort select {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  outline: none;
  transition: border-color var(--t);
}
.sort select:hover { border-color: var(--ink-2); }
.sort select:focus { border-color: var(--green); }

/* ===== Scripts Section ===== */
.scripts-section {
  padding: 56px 0 80px;
  background: var(--bg-2);
}
.section-head {
  margin-bottom: 32px;
}
.section-head h2 { margin-bottom: 6px; }
.section-sub {
  color: var(--muted);
  font-size: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Card link wrapper — makes the whole card clickable without changing look */
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card-link:hover,
.card-link:focus { color: inherit; text-decoration: none; }
.card-link[hidden] { display: none; }

/* ===== Card ===== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
}
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1e293b;
}
.card-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Allow grid cells to shrink below their min-content so long titles /
   wide images don't push the grid past the viewport on narrow screens. */
.grid > .card-link,
.grid > .card,
.related-grid > .card-link,
.related-grid > .card { min-width: 0; }
.card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.94) 0%,
    rgba(0,0,0,.45) 45%,
    rgba(0,0,0,0) 75%,
    rgba(0,0,0,0) 100%
  );
  pointer-events: none;
  transition: opacity var(--t);
  z-index: 1;
}
.card-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.card:hover .card-media { }
.card-media > * { position: relative; z-index: 2; }
.card-media > img { z-index: 0; }
.card-media::before { z-index: 1; }

/* Off-screen skip-rendering — big perf win for long grids & below-fold related cards */
.card-link,
.related-grid > .card {
  content-visibility: auto;
  contain-intrinsic-size: 0 380px;
}
.card-media-content {
  position: relative;
  z-index: 1;
  color: #fff;
}
.card-media-title {
  font-size: 1.125rem;
  color: #fff;
  font-weight: 700;
  margin-top: 6px;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.card-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-hot { background: #fef3c7; color: #92400e; }
.badge-new { background: var(--green); color: #fff; }
.badge-sale { background: var(--rose); color: #fff; }

.fav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  border: 0;
  display: grid;
  place-items: center;
  transition: all var(--t);
}
.fav svg { width: 18px; height: 18px; color: var(--ink); }
.fav:hover { background: #fff; transform: scale(1.1); }
.fav:hover svg { color: var(--rose); fill: var(--rose); }

.card-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.seller {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink-2), var(--ink));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
}
.seller-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.seller-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}
.card-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.66em;
}
.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}
/* When there's no price foot (e.g. related cards), drop the extra bottom spacing */
.card-rating:last-child { margin-bottom: 0; }
.stars { color: var(--amber); font-size: 0.9rem; letter-spacing: 1px; }
.rating-num {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  margin-left: 2px;
}
.rating-count {
  font-size: 0.8rem;
  color: var(--muted);
}
.card-foot {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}
.price-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.price-old {
  font-size: 0.9rem;
  color: var(--muted-2);
  text-decoration: line-through;
}
.price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ===== View All ===== */
.view-all {
  text-align: center;
  margin-top: 56px;
}
.view-all-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Why Choose Us ===== */
.why-section {
  padding: 72px 0 56px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.why-section .section-head {
  text-align: center;
  margin-bottom: 44px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--t);
}
.why-item:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.why-ic {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.why-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.why-item p {
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* ===== Info Sections (long-form SEO content) ===== */
.info-section {
  padding: 72px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.info-section--alt {
  background: var(--bg-2);
}
.info-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.info-wrap h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 24px;
  margin-top: 34px;
  letter-spacing: -0.02em;
}
.info-wrap h3 {
  font-size: 1.2rem;
  margin: 32px 0 14px;
  color: var(--ink);
}
.info-wrap p {
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 18px;
  margin-top: 18px;
  font-size: 1rem;
}
.info-wrap p:last-child { margin-bottom: 0; }
.info-wrap strong { color: var(--ink); font-weight: 600; }
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.info-list li {
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.info-section--alt .info-list li {
  background: #fff;
}

/* FAQ list reused inside info-wrap */
.info-wrap .faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== CTA Band ===== */
.cta-band {
  padding: 64px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,143,57,.10), transparent 70%);
  pointer-events: none;
}
.cta-copy { position: relative; }
.cta-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.cta-inner h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.cta-inner p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
  margin-bottom: 18px;
  max-width: 620px;
}
.cta-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.cta-bullets li {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.cta-bullets strong { color: var(--ink); font-weight: 600; }
.cta-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
}
.cta-action .btn { white-space: nowrap; }
.cta-meta {
  font-size: 0.82rem !important;
  color: var(--muted) !important;
  margin: 0 !important;
  text-align: right;
}
.cta-meta strong { color: var(--ink); }

/* ===== Footer ===== */
.site-footer {
  padding: 64px 0 32px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.logo-footer { margin-bottom: 16px; }
.footer-about {
  color: var(--muted);
  font-size: 0.925rem;
  max-width: 360px;
  line-height: 1.6;
}
.site-footer h4 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--ink);
}
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a {
  color: var(--muted);
  font-size: 0.925rem;
}
.site-footer ul a:hover { color: var(--green-dark); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.875rem;
}
.footer-bottom .tiny { font-size: 0.8rem; color: var(--muted-2); }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  /* Disable backdrop-filter on mobile — it creates a containing block
     that breaks position:fixed for the mobile nav panel inside. */
  .site-header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 24px;
    border-top: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 40;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > ul {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }
  .main-nav > ul > li > a,
  .main-nav > ul > li > button {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 1.05rem;
    border-radius: 10px;
  }
  /* Market button on mobile — match the other nav items so it doesn't overflow */
  .main-nav .market-btn {
    padding: 14px 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .has-mega { position: static; }
  .mega {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    padding: 8px 0 0;
    display: none;
  }
  .mega.is-open { display: block; transform: none; }
  .mega::before { display: none; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
  .mega-link { padding: 10px 8px; gap: 10px; }
  .mega-link .ic { width: 32px; height: 32px; font-size: 0.95rem; }
  .mega-link .mt strong { font-size: 0.85rem; }
  .mega-link .mt span { display: none; }
  .mega-foot { display: none; }
  .nav-cta-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .nav-cta-mobile .btn { width: 100%; padding: 14px; }
  .hide-mobile { display: none; }
  .burger { display: inline-grid; place-items: center; }
  /* Main nav is position:fixed on mobile (out of flex flow), so push the burger
     to the right via margin-auto on its wrapper. */
  .header-actions { margin-left: auto; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .filter-bar {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "toggle sort"
      "chips  chips";
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
  }
  .filter-toggle {
    display: inline-flex;
    grid-area: toggle;
    justify-self: start;
  }
  .sort { grid-area: sort; justify-self: end; }
  .chips {
    grid-area: chips;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    flex: unset;
    transition: max-height .3s ease, padding .3s ease, margin .3s ease;
  }
  .chips.is-open {
    max-height: 60px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 6px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 24px;
    padding: 28px;
  }
  .cta-action {
    align-items: stretch;
    width: 100%;
  }
  .cta-action .btn { width: 100%; }
  .cta-meta { text-align: center; }
  .cta-bullets { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .page-hero { padding: 48px 0 40px; }
  .hero-trust { gap: 24px; margin-top: 36px; }
  .trust-item strong { font-size: 1.2rem; }

  .search-bar { padding: 6px 6px 6px 16px; }
  .search-bar input { font-size: 0.9rem; }
  .search-bar .btn { padding: 10px 14px; font-size: 0.85rem; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-media { aspect-ratio: 4 / 3; }
  .card-body { padding: 12px 12px 14px; }
  .card-media-title { font-size: 0.9rem; }
  .card-title { font-size: 0.85rem; margin-bottom: 8px; }
  .card-rating { margin-bottom: 10px; }
  .rating-num, .rating-count { font-size: 0.75rem; }
  .seller-name { font-size: 0.78rem; }
  .seller-badge { font-size: 0.62rem; padding: 2px 5px; }
  .price { font-size: 1.05rem; }
  .price-label { font-size: 0.68rem; }
  .avatar { width: 22px; height: 22px; font-size: 0.6rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }

  .scripts-section { padding: 40px 0 56px; }
  .cta-band { padding: 48px 0; }
  .why-section { padding: 56px 0 40px; }
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-item { padding: 22px 20px; }
  .info-section { padding: 48px 0; }
  .info-wrap { padding: 0 4px; }
  .info-wrap h2 { margin-bottom: 18px; }
  .info-wrap p { font-size: 0.95rem; }
  .cta-inner { padding: 24px; }
  .btn-lg { padding: 12px 24px; font-size: 0.95rem; }
}

/* ============================================
   ===== GIG DETAIL PAGE =====
   ============================================ */

/* Breadcrumb */
.breadcrumb {
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 12px 0;
  line-height: 1;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
}
.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin: 0 6px;
  color: var(--muted-2);
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--green-dark); }
.breadcrumb li[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

/* Hero layout */
.gig-hero {
  padding: 32px 0 48px;
  background: var(--bg-2);
}
.gig-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  align-items: start;
}

/* Hero top row — image + title side by side */
.gig-top {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

/* Title block */
.gig-title-block { min-width: 0; }
.gig-title-block h1 { margin-bottom: 18px; }
.gig-title-block .gig-badges { margin-bottom: 12px; }
.gig-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
}
.pill-hot {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}
.gig-title-block h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 18px;
}
.gig-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.gig-seller {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.gig-seller strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.seller-level {
  font-size: 0.78rem;
  color: var(--green-dark);
  font-weight: 500;
}
.avatar.lg { width: 44px; height: 44px; font-size: 0.85rem; }
.avatar.xl { width: 72px; height: 72px; font-size: 1.15rem; flex-shrink: 0; }
.gig-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
}
.gig-rating strong { color: var(--ink); font-weight: 700; }
.gig-rating .rating-count { color: var(--muted); }

/* Gallery */
.gig-gallery { width: 100%; }
.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}
/* Gig sections */
.gig-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.gig-section h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.gig-section p {
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 14px;
}
.gig-section p:last-child { margin-bottom: 0; }
.gig-lead {
  font-size: 1.05rem;
  color: var(--ink) !important;
  font-weight: 500;
}
.gig-section code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--green-dark);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feat-ic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}
.feature h3 {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Compatibility */
.compat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.compat-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 12px;
}
.tick-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.tick-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--t);
  background-color: var(--bg);
}
.faq-item[open] { border-color: var(--green); }
.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--muted);
  transition: transform var(--t);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; color: var(--green-dark); }
.faq-item p {
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
  margin: 0;
}

/* Seller card */
.seller-card .seller-card-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.seller-info { flex: 1; min-width: 0; }
.seller-info h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.seller-verified {
  font-size: 0.75rem;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
}
.seller-tag {
  font-size: 0.9rem;
  color: var(--muted) !important;
  margin-bottom: 14px !important;
}
.seller-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.seller-stats > div {
  display: flex;
  flex-direction: column;
}
.seller-stats strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
}
.seller-stats span {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.seller-bio {
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  color: var(--ink-2) !important;
  margin: 0 !important;
}

/* Purchase panel */
.purchase-panel {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel-inner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.panel-tab {
  padding: 14px 10px;
  border: 0;
  background: var(--bg-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--t);
}
.panel-tab:hover { color: var(--ink); }
.panel-tab.is-active {
  background: #fff;
  color: var(--ink);
  border-bottom-color: var(--green);
}
.panel-pkg { padding: 22px 24px; }
.pkg-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}
.pkg-head h3 { font-size: 1.05rem; font-weight: 700; }
.pkg-price { text-align: right; flex-shrink: 0; }
.pkg-price .price-old {
  display: block;
  font-size: 0.85rem;
  color: var(--muted-2);
  text-decoration: line-through;
  line-height: 1;
  margin-bottom: 2px;
}
.pkg-price .price-now {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.pkg-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.55;
}
.pkg-incl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.pkg-incl li {
  font-size: 0.88rem;
  color: var(--ink-2);
}
.pkg-incl li:has(:first-letter:empty) {}
.pkg-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}
.btn-full { width: 100%; }
.panel-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
}

/* Trust card */
.trust-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trust-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.trust-row > span:first-child {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.trust-row strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.trust-row p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

/* Related */
.related-section { padding: 56px 0 80px; background: #fff; }
.related-grid { grid-template-columns: repeat(4, 1fr); }

/* Sticky mobile buy bar */
.mobile-buy-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  z-index: 45;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-buy-bar > div { display: flex; flex-direction: column; }
.mbb-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}
.mbb-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.mobile-buy-bar .btn { flex-shrink: 0; }

/* Detail page responsive */
@media (max-width: 1080px) {
  .gig-hero-grid { grid-template-columns: 1fr; }
  .purchase-panel { position: static; }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .gig-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gig-gallery { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 900px) {
  .gig-section { padding: 22px 20px; }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .compat-grid { grid-template-columns: 1fr; gap: 18px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .seller-stats { grid-template-columns: repeat(2, 1fr); }
  .seller-card .seller-card-inner { flex-direction: column; gap: 14px; }
  .mobile-buy-bar { display: flex; }
  .gig-hero { padding-bottom: 90px; }
  body.has-mobile-bar { padding-bottom: 70px; }
}
@media (max-width: 560px) {
  .gig-hero { padding: 24px 0 90px; }
  .gig-section { padding: 20px 16px; border-radius: 12px; }
  .gig-meta { gap: 14px; }
  .related-grid { grid-template-columns: 1fr; }
}


/* ========== GUIDE / ARTICLE CONTENT ========== */
.info-wrap code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: #f1f3f6;
  padding: 2px 6px;
  border-radius: 4px;
  color: #2a3142;
}
.info-wrap pre {
  background: #0f1420;
  color: #e6e9ef;
  padding: 16px 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 16px 0;
}
.info-wrap pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.callout {
  border-left: 4px solid #5b7cff;
  background: #eef2ff;
  padding: 14px 18px;
  border-radius: 6px;
  margin: 18px 0;
}
.callout strong { display: block; margin-bottom: 4px; color: #2a3142; }
.callout--warn { border-left-color: #f59e0b; background: #fffbeb; }
.callout--tip  { border-left-color: #10b981; background: #ecfdf5; }
.step-num {
  display: inline-block;
  background: var(--brand, #5b7cff);
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-weight: 700;
  margin-right: 10px;
  font-size: 0.95rem;
}
