/* ================================================================
   ReloadSupply — Design System
   Aesthetic: Industrial Dark · Arial
   ================================================================ */

:root {
  /* Brand */
  --ink:       #0A1628;
  --ink-2:     #102040;
  --ink-card:  rgba(255,255,255,0.05);
  --ink-border:rgba(255,255,255,0.1);
  --orange:    #F07628;
  --orange-h:  #D9651A;
  --orange-dim:rgba(240,118,40,0.14);
  --orange-dim2:rgba(240,118,40,0.08);
  --teal:      #0EC897;
  --teal-dim:  rgba(14,200,151,0.12);
  --red-dim:   rgba(220,60,60,0.12);
  --red:       #DC3C3C;

  /* Light surface */
  --bg:        #F2F5FA;
  --panel:     #FFFFFF;
  --line:      #DDE4EF;
  --text:      #0A1628;
  --muted:     #556070;

  /* Dark surface text */
  --text-on-dark:  #EFF4FF;
  --muted-on-dark: rgba(239,244,255,0.55);

  --radius:    18px;
  --radius-lg: 28px;
  --max:       1200px;
  --shadow:    0 24px 56px rgba(10,22,40,0.1);
  --shadow-sm: 0 8px 24px rgba(10,22,40,0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3 {
  margin: 0;
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font-size: 1.18rem; font-weight: 700; }
p  { margin: 0; }

.lead {
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.65;
}
.lead-dark { color: var(--muted-on-dark); }

.small { font-size: 0.88rem; color: var(--muted); }

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}
.section        { padding: 96px 0; }
.section-light  { background: var(--bg); }
.section-dark   { background: var(--ink); position: relative; overflow: hidden; }
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(240,118,40,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(14,200,151,0.05) 0%, transparent 45%);
  pointer-events: none;
}
.section-head { margin-bottom: 56px; display: grid; gap: 20px; }
.section-head h2 { color: var(--text); }
.section-head .lead { color: var(--muted); }
.section-dark .section-head h2 { color: var(--text-on-dark); }
.section-dark .section-head .lead { color: var(--muted-on-dark); }
.section-light .section-head h2 { color: var(--text); }
.section-light .section-head .lead { color: var(--muted); }

/* ── Eyebrow ─────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-dim2);
  border: 1px solid var(--orange-dim);
}
.eyebrow-dark {
  color: var(--orange);
  background: rgba(240,118,40,0.1);
  border-color: rgba(240,118,40,0.2);
}
.eyebrow-row { margin-bottom: 4px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 52px;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 12px 28px rgba(240,118,40,0.3);
}
.btn-primary:hover {
  background: var(--orange-h);
  border-color: var(--orange-h);
  box-shadow: 0 16px 36px rgba(240,118,40,0.38);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--text-on-dark);
  border-color: var(--ink-border);
}
.section-light .btn-ghost,
.section-light .btn-ghost {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.2);
}

.btn-sm { padding: 10px 18px; min-height: 42px; font-size: 0.88rem; border-radius: 12px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.btn.is-loading { pointer-events: none; opacity: 0.7; }
.btn.is-loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(240,118,40,0.4);
  outline-offset: 3px;
}
button:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Topbar ──────────────────────────────────────────────────── */
.topbar-outer {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,22,40,0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { display: block; height: 38px; width: auto; max-width: 160px; object-fit: contain; }
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}
.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.18s, background 0.18s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.lang-btn {
  min-width: 44px; min-height: 36px;
  border: 0; border-radius: 9px;
  padding: 6px 10px;
  font: inherit; font-weight: 700; font-size: 0.82rem;
  background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.lang-btn.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: var(--ink);
  padding: 80px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero-noise {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 15% 60%, rgba(240,118,40,0.1) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 20%, rgba(14,200,151,0.07) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(240,118,40,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy { display: grid; gap: 24px; }
.hero-copy h1 { color: var(--text-on-dark); max-width: 12ch; }

.hero-stats {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 8px;
  padding: 22px 24px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.hstat { flex: 1; padding: 0 20px; }
.hstat:first-child { padding-left: 0; }
.hstat strong { display: block; font-family: Arial, 'Helvetica Neue', sans-serif; font-size: 1rem; font-weight: 800; color: var(--text-on-dark); margin-bottom: 4px; }
.hstat span { display: block; font-size: 0.8rem; color: var(--muted-on-dark); line-height: 1.4; }
.hstat-sep { width: 1px; background: rgba(255,255,255,0.1); align-self: stretch; flex-shrink: 0; }

/* ── Catalog preview (hero visual) ────────────────────────────── */
.catalog-preview {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 22px;
  backdrop-filter: blur(12px);
}
.cp-pre-label {
  margin-bottom: 10px;
}
.cp-pre-title {
  display: block;
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-on-dark);
  margin-bottom: 3px;
}
.cp-pre-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.cp-pre-arrow { color: var(--orange); font-weight: 700; }
.cp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cp-title-text {
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.cp-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(14,200,151,0.12);
  border: 1px solid rgba(14,200,151,0.2);
  border-radius: 999px;
  padding: 4px 10px;
}
.cp-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.cp-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.cpf {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: default;
}
.cpf-active {
  color: var(--orange);
  background: var(--orange-dim);
  border-color: rgba(240,118,40,0.25);
}
.cp-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 8px;
  transition: border-color 0.18s, background 0.18s;
}
.cp-card:last-of-type { margin-bottom: 0; }
.cp-card:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.10); }
.cp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px 7px;
}
.cp-img { width: 100%; height: 70px; overflow: hidden; }
.cp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-img-ph { width: 100%; height: 70px; background: rgba(255,255,255,0.04); }
.cp-body { padding: 9px 12px 11px; }
.cp-cat {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-dim);
  border: 1px solid rgba(240,118,40,0.2);
  padding: 3px 9px;
  border-radius: 999px;
}
.cp-cat-teal {
  color: var(--teal);
  background: var(--teal-dim);
  border-color: rgba(14,200,151,0.2);
}
.cp-price {
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-on-dark);
}
.cp-sub {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}
.cp-discount { color: var(--teal); font-weight: 600; }
.cp-lot-title {
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-on-dark);
  margin-bottom: 8px;
}
.cp-specs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
  margin-bottom: 8px;
}
.cp-specs > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
}
.cps-l {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
}
.cp-verified {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(14,200,151,0.18);
  padding: 5px 12px;
  border-radius: 999px;
}
.cp-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  margin-top: 8px;
}
.cp-footer-left { display: flex; align-items: center; gap: 6px; }
.cp-footer-right { display: flex; align-items: center; gap: 5px; font-weight: 700; color: var(--teal); }
.cp-dot-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ── Ticker ──────────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--orange);
  overflow: hidden;
  padding: 14px 0;
}
.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
  width: max-content;
}
.ticker-track span {
  display: inline-block;
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  padding: 0 18px;
}
.ticker-sep { color: rgba(255,255,255,0.5) !important; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ── Problem cards ───────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.problem-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
}
.problem-card-accent {
  background: var(--orange);
  border-color: var(--orange);
}
.problem-card-accent h3 { color: #fff; }
.problem-card-accent p  { color: rgba(255,255,255,0.82); }
.problem-card-accent .problem-num { color: rgba(255,255,255,0.35); }
.problem-num {
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--line);
  line-height: 1;
}

/* ── How it works / steps ────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}
.step-card {
  background: var(--ink-card);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: grid;
  gap: 14px;
  height: 100%;
}
.step-card h3 { color: var(--text-on-dark); }
.step-card p  { color: var(--muted-on-dark); font-size: 0.92rem; }
.step-card-accent {
  background: var(--orange-dim);
  border-color: rgba(240,118,40,0.3);
}
.step-card-accent h3 { color: #fff; }
.step-card-accent p  { color: rgba(255,255,255,0.75); }
.step-num {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-on-dark);
}
.step-num-accent {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(240,118,40,0.4);
}
.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.2);
  padding-top: 28px;
  font-weight: 300;
}

/* ── Catalog section ─────────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.toolbar-left { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
}
.filter-chip:hover { border-color: var(--orange); color: var(--orange); }
.filter-chip.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 6px 16px rgba(240,118,40,0.25);
}
.search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  min-width: 260px;
}
.search-shell input {
  border: 0;
  padding: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font: inherit;
  color: var(--text);
  font-size: 0.9rem;
}

/* ── Inventory grid ──────────────────────────────────────────── */
.inventory-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; min-height: 600px; align-content: start; }
.listing-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}
.listing-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.listing-card-inner { display: flex; gap: 0; }
.listing-sq-img { width:100%;height:100%;display:block; }
.listing-sq-body { flex: 1; padding: 11px 13px; display: flex; flex-direction: column; min-width: 0; }
.listing-sq-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; margin-top: auto; padding-top: 10px; }
.listing-sq-meta > div { display: flex; flex-direction: column; gap: 1px; }
.listing-sq-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--muted); }
.listing-sq-meta > div > span:last-child { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.listing-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.45; padding: 8px 13px; border-top: 1px solid var(--line); }
.listing-footer { padding: 8px 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); }
.listing-location-text { font-size: 0.78rem; color: var(--muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-title { font-size: 0.92rem; font-weight: 700; line-height: 1.3; margin: 4px 0 0; }
.btn-sm { padding: 6px 12px; font-size: 0.78rem; white-space: nowrap; flex-shrink: 0; }

/* Pagination */
.catalog-pagination { display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 28px; flex-wrap: wrap; }
.page-btn { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all 0.18s; }
.page-btn:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.page-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.page-btn:disabled { opacity: 0.3; cursor: default; }
.page-prev, .page-next { font-size: 1.1rem; }
.page-total { font-size: 0.80rem; color: var(--muted); margin-left: 8px; }
.listing-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.listing-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.listing-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-dim2);
  border: 1px solid var(--orange-dim);
  padding: 5px 11px;
  border-radius: 999px;
}
.listing-badge.alt {
  color: #0a7a5a;
  background: rgba(14,200,151,0.1);
  border-color: rgba(14,200,151,0.18);
}
.listing-price { font-family: Arial, 'Helvetica Neue', sans-serif; font-weight: 800; font-size: 1.08rem; }
.listing-sub {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(14,200,151,0.08);
  color: #0a7a5a;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid rgba(14,200,151,0.15);
}
.listing-meta { display: grid; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.listing-meta div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
.listing-meta span:first-child { color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.kpi {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.kpi strong { display: block; font-family: Arial, 'Helvetica Neue', sans-serif; font-size: 0.92rem; font-weight: 800; margin-bottom: 2px; }
.kpi span { display: block; font-size: 0.74rem; color: var(--muted); }
.inventory-note {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(240,118,40,0.05);
  border: 1px solid rgba(240,118,40,0.12);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Categories ──────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}
.cat-card {
  background: var(--ink-card);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.cat-tag {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.cat-tag-green { color: var(--teal); background: var(--teal-dim); border: 1px solid rgba(14,200,151,0.2); }
.cat-tag-orange { color: var(--orange); background: var(--orange-dim); border: 1px solid rgba(240,118,40,0.2); }
.cat-tag-red { color: #ff7070; background: var(--red-dim); border: 1px solid rgba(220,60,60,0.18); }

.check-list, .dot-list, .cross-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li, .dot-list li, .cross-list li {
  display: flex;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--muted-on-dark);
  align-items: flex-start;
  line-height: 1.45;
}
.check-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 8px;
  background: var(--teal-dim);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 900;
  margin-top: 1px;
}
.dot-list li::before {
  content: '·';
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 8px;
  background: var(--orange-dim);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 900;
  margin-top: 1px;
}
.cross-list li::before {
  content: '✕';
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 8px;
  background: var(--red-dim);
  color: #ff7070;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 900;
  margin-top: 1px;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-layout { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.faq-intro {
  position: sticky;
  top: 90px;
  align-self: start;
}
.faq-list { display: grid; gap: 10px; min-height: 500px; padding-top: 44px; }
details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
details[open] { box-shadow: var(--shadow-sm); }
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text);
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.18s;
}
details[open] summary::after {
  content: '−';
  background: var(--orange-dim2);
}
details p { padding: 0 22px 20px; color: var(--muted); font-size: 0.93rem; line-height: 1.6; }

/* ── Contact section ─────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }

.form-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.form-panel-head { margin-bottom: 28px; }
.form-panel-head h3 { color: var(--text-on-dark); margin-bottom: 8px; }
.form-panel-head p  { color: var(--muted-on-dark); font-size: 0.94rem; }

.alert-panel {
  background: rgba(240,118,40,0.08);
  border: 1px solid rgba(240,118,40,0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.alert-panel h3 { color: var(--text-on-dark); margin-bottom: 10px; }
.alert-panel > p { color: var(--muted-on-dark); font-size: 0.92rem; margin-bottom: 22px; }
.alert-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.field { display: grid; gap: 7px; }
.span-2 { grid-column: span 2; }
label { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.7); }
.section-light label { color: var(--text); }

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  font-size: 0.94rem;
  color: var(--text-on-dark);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.section-light input, .section-light select, .section-light textarea {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(240,118,40,0.12);
}
select option { background: var(--ink-2); color: var(--text-on-dark); }
textarea { min-height: 100px; resize: vertical; }
::placeholder { color: rgba(255,255,255,0.28); }
.section-light ::placeholder { color: var(--muted); opacity: 0.7; }

.fineprint { margin-top: 14px; font-size: 0.8rem; color: var(--muted-on-dark); }
.fineprint-dark { color: rgba(255,255,255,0.4); }
.section-light .fineprint { color: var(--muted); }

.form-feedback { min-height: 1.2em; margin-top: 12px; font-size: 0.88rem; font-weight: 600; }
.form-feedback.is-success { color: var(--teal); }
.form-feedback.is-error   { color: #ff7070; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px 0;
  flex-wrap: wrap;
}
.footer-brand { display: grid; gap: 10px; }
.footer-logo  { display: block; height: 32px; width: auto; max-width: 140px; object-fit: contain; }
.footer-tagline { font-size: 0.84rem; color: rgba(255,255,255,0.4); max-width: 30ch; }
.footer-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}
.footer-nav a {
  padding: 7px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.18s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.9); }
.footer-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* ── Detail / lot (used by app.js) ──────────────────────────── */
.detail-shell { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: start; }
.detail-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.detail-price { font-family: Arial, 'Helvetica Neue', sans-serif; font-size: 1.3rem; font-weight: 800; white-space: nowrap; }
.detail-title { margin-top: 10px; font-size: 1.3rem; }
.detail-text  { margin-top: 6px; color: var(--muted); }
.spec-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 18px; }
.spec-item { padding: 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.spec-item small { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 5px; }
.spec-item strong { display: block; font-size: 0.94rem; }
.lot-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
/* ── Lot image gallery ───────────────────────────────────────── */
.detail-gallery { display: none; margin-bottom: 20px; }
.gallery-main { width: 100%; border-radius: 14px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 280px; object-fit: cover; display: block; transition: opacity 0.2s; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; width: 64px; height: 52px; flex-shrink: 0; transition: border-color 0.18s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--orange); }
.gallery-thumb:hover:not(.active) { border-color: rgba(255,255,255,0.2); }

/* ── Scroll margin ───────────────────────────────────────────── */
section[id] { scroll-margin-top: 15px; }
#faq { min-height: 600px; }

/* ── Admin styles ────────────────────────────────────────────── */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-shell { padding-top: 36px; padding-bottom: 64px; }
.admin-header {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px;
}
.admin-header .brand-logo { height: 38px; width: auto; max-width: 180px; filter: none; }
.admin-hero, .admin-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: 20px;
  padding: 26px;
}
.admin-hero .eyebrow { color: var(--orange); background: var(--orange-dim2); border-color: var(--orange-dim); }
.admin-hero h1 { margin-top: 10px; }
.admin-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin: 20px 0; }
.admin-stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  display: grid; gap: 6px;
}
.admin-stat-card strong { font-family: Arial, 'Helvetica Neue', sans-serif; font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--text); }
.admin-stat-card .small { color: var(--muted); }
.admin-auth { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.admin-auth .grow { flex: 1 1 300px; }
.admin-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.table-wrap { overflow: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; margin-top: 14px; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.admin-table th { position: sticky; top: 0; background: var(--bg); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.table-empty { text-align: center !important; color: var(--muted); }
.admin-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-code { width: 100%; min-height: 440px; resize: vertical; border-radius: 14px; border: 1px solid var(--line); padding: 16px; background: #0f172a; color: #e5eefb; font: 500 0.9rem/1.55 ui-monospace, Menlo, Consolas, monospace; }
.admin-code:focus { outline: 3px solid rgba(240,118,40,0.3); border-color: var(--orange); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.92em; }
.search { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font: inherit; color: var(--text); background: var(--bg); }
.search:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240,118,40,0.1); }
/* Admin label overrides */
.admin-body label { color: var(--text); }
.admin-body input, .admin-body select, .admin-body textarea {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}
.admin-body input:focus, .admin-body select:focus, .admin-body textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(240,118,40,0.1);
}
/* Admin actions */
.admin-actions { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Admin: btn overrides for light context */
.admin-body .btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.admin-body .btn-secondary { background: var(--panel); color: var(--text); border-color: var(--line); box-shadow: var(--shadow-sm); }
.admin-body .btn-secondary:hover { background: var(--bg); }
.btn-quiet { opacity: 0.85; }

/* Newsletter admin */
.newsletter-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.newsletter-block:first-child { margin-top: 0; border-top: none; }
.newsletter-sub-title { font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.newsletter-add-row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.newsletter-add-row .search { flex: 1; }
.newsletter-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sub-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.sub-list li { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--bg); border-radius: 10px; font-size: 0.85rem; }
.sub-list .sub-empty { color: var(--muted); font-style: italic; justify-content: flex-start; }
.sub-remove { background: none; border: none; cursor: pointer; color: var(--red); font-size: 0.8rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.sub-remove:hover { background: rgba(220,60,60,0.08); }
.nl-recipients-box { background: var(--bg); border-radius: 14px; padding: 16px; font-size: 0.85rem; }
.nl-recipients-box .nl-stats { display: flex; gap: 20px; margin-bottom: 12px; font-weight: 600; }
.nl-recipients-box .nl-email-list { display: flex; flex-wrap: wrap; gap: 6px; }
.nl-recipients-box .nl-chip { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; font-size: 0.78rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-grid, .contact-grid, .detail-shell { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .cat-grid, .grid-3 { grid-template-columns: 1fr 1fr; }
  .inventory-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .cat-grid, .grid-3, .inventory-grid, .kpis, .spec-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .alert-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-nav { justify-content: flex-start; }
  .footer-actions { margin-left: 0; }
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .topbar { flex-wrap: wrap; gap: 16px; }
  .nav { overflow-x: auto; }
  .hero-stats { flex-direction: column; gap: 16px; padding: 18px; }
  .hstat-sep { width: 100%; height: 1px; }
  .hstat { padding: 0; }
}
@media (max-width: 540px) {
  .container { width: calc(100% - 28px); }
  .btn { width: 100%; }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Footer legal links ─────────────────────────────────────── */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ── Cookie banner ──────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(calc(100% - 32px), 700px);
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  padding: 16px 20px;
}
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 200px;
}
.cookie-text strong { color: #fff; font-size: 0.95rem; white-space: nowrap; }
.cookie-text span { color: rgba(255,255,255,0.55); font-size: 0.85rem; line-height: 1.5; }
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-actions a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  text-decoration: underline;
  white-space: nowrap;
}
.cookie-actions a:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 540px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: space-between; }
  .footer-legal { justify-content: center; }
}

/* ── Lot detail modal ───────────────────────────────────────── */
.lot-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,22,40,0.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeInOverlay 0.2s ease;
}
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }

.lot-modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: min(100%, 620px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  animation: slideUpModal 0.25s ease;
  box-shadow: 0 32px 80px rgba(10,22,40,0.25);
}
@keyframes slideUpModal { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Gallery inside modal */
.lot-modal-gallery { margin-bottom: 20px; }
.lot-modal-gallery .gallery-main { border-radius: 12px; overflow: hidden; }
.lot-modal-gallery .gallery-main img { width: 100%; height: 260px; object-fit: cover; display: block; }
.lot-modal-gallery .gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.lot-modal-gallery .gallery-thumb { padding: 0; border: 2px solid transparent; border-radius: 8px;
  overflow: hidden; cursor: pointer; background: none; width: 60px; height: 48px; flex-shrink: 0; transition: border-color 0.18s; }
.lot-modal-gallery .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lot-modal-gallery .gallery-thumb.active { border-color: var(--orange); }
.lot-modal-gallery .gallery-thumb:hover:not(.active) { border-color: rgba(255,255,255,0.25); }

.lot-modal-close-bottom {
  display: block; width: 100%; margin-top: 10px;
  padding: 10px; border-radius: 10px;
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); font: inherit; font-size: 0.85rem;
  font-weight: 600; cursor: pointer; text-align: center;
  transition: all 0.18s;
}
.lot-modal-close-bottom:hover { background: var(--line); color: var(--text); }

.lot-modal-badge-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}

.lot-modal-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  background: var(--orange);
  padding: 6px 14px;
  border-radius: 10px;
}
.lot-modal-title { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.2; }
.lot-modal-lead { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }

.lot-modal-specs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 20px;
}
.lot-modal-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 24px;
}
.kpi-box {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.kpi-box strong { font-size: 1.1rem; color: var(--text); font-weight: 800; }
.kpi-box small { font-size: 0.78rem; color: var(--muted); }

.lot-modal-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px;
}
.lot-modal-actions .btn { flex: 1; min-width: 140px; }

.lot-modal-trust {
  padding: 18px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
}
.lot-modal-trust strong { font-size: 0.9rem; color: var(--text); }

@media (max-width: 480px) {
  .lot-modal { padding: 20px; }
  .lot-modal-specs { grid-template-columns: 1fr; }
  .lot-modal-kpis { grid-template-columns: repeat(3, 1fr); }
  .lot-modal-actions { flex-direction: column; }
}

/* ── Listing button ─────────────────────────────────────────── */
.listing-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  border: none;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  text-decoration: none;
}
.listing-btn:hover { background: var(--orange-h); transform: translateY(-1px); }
.lot-modal .btn-ghost {
  background: var(--bg);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.lot-modal .btn-ghost:hover {
  background: var(--line);
}
