/* ============================================================
   ENGINMART — Engineering Marketplace Design System
   Colors: Midnight Navy · Steel · Electric Blue · Signal Orange
   ============================================================ */

:root {
  /* Background */
  --bg:           #0b1421;
  --bg-soft:      #111e2d;
  --bg-card:      rgba(20, 34, 49, 0.97);
  --bg-panel:     rgba(25, 42, 59, 0.96);

  /* Brand accents */
  --orange:       #ff873d;
  --orange-light: #ffb36b;
  --orange-glow:  rgba(255, 135, 61, 0.3);

  --teal:         #46d8c2;
  --teal-deep:    #159f91;
  --teal-glow:    rgba(70, 216, 194, 0.24);

  --blue:         #62bfff;
  --blue-deep:    #267fc4;
  --blue-glow:    rgba(98, 191, 255, 0.24);

  --purple:       #a58aff;
  --purple-deep:  #7655d8;
  --purple-glow:  rgba(165, 138, 255, 0.2);

  --pink:         #ff7887;
  --pink-deep:    #d94d67;
  --pink-glow:    rgba(255, 120, 135, 0.2);

  --gold:         #f2bd4b;
  --gold-deep:    #c98e20;
  --gold-glow:    rgba(242, 189, 75, 0.22);

  /* Semantic */
  --primary:      var(--orange);
  --secondary:    var(--blue);
  --text:         #f2f5f8;
  --muted:        #aebbc8;
  --line:         rgba(164, 188, 209, 0.2);

  /* Shadows */
  --shadow:       0 20px 50px rgba(4, 8, 16, 0.55);
  --shadow-sm:    0 8px 24px rgba(4, 8, 16, 0.35);
}
.location-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .84rem;
}
.location-distance {
  margin: 8px 0 0;
  color: var(--teal);
  font-size: .82rem;
  font-weight: 700;
}

.storefront-preview-note {

  margin: 10px 0 12px;
  padding: 10px 14px;
  color: #d9e7f3;
  border: 1px solid rgba(98, 191, 255, .25);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  background: rgba(27, 65, 96, .22);
  font-size: .78rem;
  line-height: 1.55;
}

.platform-hub {
  padding: 72px 0 32px;
  background: linear-gradient(180deg, rgba(17,30,45,.35), transparent);
}
.platform-hub-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.platform-hub-heading h2 { margin: 8px 0 8px; max-width: 640px; }
.platform-hub-heading p { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.65; }
.platform-hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.platform-hub-card {
  display: flex; align-items: center; gap: 12px; min-height: 128px; padding: 18px;
  border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none;
  background: rgba(20,34,49,.72); transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.platform-hub-card:hover { transform: translateY(-3px); border-color: currentColor; background: var(--bg-panel); }
.platform-hub-card > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 6px; }
.platform-hub-card small { color: var(--muted); line-height: 1.45; }
.platform-hub-icon { display: grid; place-items: center; flex: 0 0 auto; size: 38px; width: 38px; height: 38px; border-radius: 10px; background: currentColor; color: var(--bg); font-weight: 900; }
.platform-hub-card-orange { color: var(--orange); }
.platform-hub-card-teal { color: var(--teal); }
.platform-hub-card-blue { color: var(--blue); }
.platform-hub-card-purple { color: var(--purple); }
@media (max-width: 900px) { .platform-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .platform-hub { padding-top: 48px; } .platform-hub-heading { align-items: start; flex-direction: column; } .platform-hub-grid { grid-template-columns: 1fr; } .platform-hub-card { min-height: 104px; } }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { color: #07111d; background: var(--orange-light); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(ellipse at 0% 0%,   rgba(120, 153, 174, 0.13) 0%, transparent 42%),
    radial-gradient(ellipse at 100% 100%, rgba(240, 120, 24, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, rgba(240, 120, 24, 0.06) 0%, transparent 36%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.012) 0px,
    rgba(255,255,255,0.012) 1px,
    transparent 1px,
    transparent 80px
  );
  pointer-events: none; z-index: 0;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
a { text-decoration: none; color: inherit; }

/* ── Layout ── */
.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  position: relative; z-index: 1;
}
.landing-hero {
  padding: 22px 0 8px;
}

.landing-hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(240, 120, 24, 0.22);
  background: #040d18;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.landing-hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050b14;
}

.platform-mode > .legacy-home-section { display:none; }

/* ============================================================
   TOPBAR / NAV
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(11, 20, 33, 0.92);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}
.brand-wrap,
.auth-brand {
  display: inline-flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  width: clamp(132px, 14vw, 176px);
  height: 38px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 8px 18px rgba(240, 120, 24, 0.24));
}
.brand-logo-auth {
  display: block;
  width: clamp(220px, 30vw, 340px);
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 12px 28px rgba(240, 120, 24, 0.22));
}
.brand-logo-sm {
  width: 148px;
  height: 38px;
}
.brand-logo-xs {
  width: 42px;
  height: 42px;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #17130d;
  box-shadow: 0 6px 20px var(--orange-glow);
}
.brand-name {
  font-weight: 800; font-size: 1.15rem;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--text), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex; align-items: center; gap: 24px;
}
.nav-links a {
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── Buttons ── */
.primary-btn, .ghost-btn, .teal-btn, .purple-btn, .pink-btn {
  border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; font-weight: 600; font-size: 0.9rem;
  padding: 10px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s;
  white-space: nowrap;
}
.primary-btn {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #17130d;
  box-shadow: 0 8px 22px var(--orange-glow);
}
.primary-btn:hover  { transform: translateY(-2px); box-shadow: 0 12px 28px var(--orange-glow); }
.primary-btn.full   { width: 100%; }
.primary-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.ghost-btn {
  background: rgba(255,255,255,0.035);
  border-color: var(--line); color: var(--text);
}
.ghost-btn:hover { border-color: rgba(240,120,24,0.5); transform: translateY(-2px); }

.teal-btn {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #17130d;
  box-shadow: 0 8px 22px var(--teal-glow);
}
.teal-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px var(--teal-glow); }

.purple-btn {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
  box-shadow: 0 8px 22px var(--purple-glow);
}
.purple-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px var(--purple-glow); }

.pink-btn {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  box-shadow: 0 8px 22px var(--pink-glow);
}
.pink-btn:hover { transform: translateY(-2px); }
.gold-btn { border:1px solid rgba(242,189,75,.35); background:rgba(242,189,75,.12); color:var(--gold); border-radius:10px; padding:10px 14px; font-weight:700; cursor:pointer; }

.text-btn {
  border: none; background: transparent;
  color: var(--orange-light); cursor: pointer; font-size: 0.82rem;
  padding: 0;
}
.text-btn:hover { color: var(--text); text-decoration: underline; }
.text-btn.danger { color: #ff6b6b; }
.text-btn.danger:hover { color: #ff4444; }

/* ── Eyebrow / Pill ── */
.eyebrow {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.eyebrow.orange {
  background: rgba(240,120,24,0.12); border: 1px solid rgba(240,120,24,0.35);
  color: var(--orange-light);
}
.eyebrow.teal {
  background: rgba(172,187,197,0.10); border: 1px solid rgba(172,187,197,0.35);
  color: var(--teal);
}
.eyebrow.purple {
  background: rgba(117,151,172,0.12); border: 1px solid rgba(117,151,172,0.35);
  color: var(--purple);
}
.eyebrow.blue {
  background: rgba(117,151,172,0.10); border: 1px solid rgba(117,151,172,0.35);
  color: var(--blue);
}
.eyebrow.pink {
  background: rgba(227,139,105,0.10); border: 1px solid rgba(227,139,105,0.35);
  color: var(--pink);
}
.eyebrow.gold {
  background: rgba(242,189,75,0.10); border: 1px solid rgba(242,189,75,0.35);
  color: var(--gold);
}
/* legacy alias */
.pill {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ── Badges ── */
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: capitalize;
}
.badge.vehicle, .badge-orange {
  background: rgba(240,120,24,0.12); border: 1px solid rgba(240,120,24,0.35);
  color: var(--orange-light);
}
.badge.part, .badge-teal {
  background: rgba(172,187,197,0.12); border: 1px solid rgba(172,187,197,0.35);
  color: var(--teal);
}
.badge.service, .badge-blue {
  background: rgba(117,151,172,0.12); border: 1px solid rgba(117,151,172,0.35);
  color: var(--blue);
}
.badge.verified, .badge-purple {
  background: rgba(117,151,172,0.12); border: 1px solid rgba(117,151,172,0.35);
  color: var(--purple);
}
.badge.high, .badge-pink {
  background: rgba(227,139,105,0.12); border: 1px solid rgba(227,139,105,0.35);
  color: var(--pink);
}
.badge.medium, .badge-gold {
  background: rgba(242,189,75,0.10); border: 1px solid rgba(242,189,75,0.35);
  color: var(--gold);
}
.badge.low {
  background: rgba(148,163,184,0.10); border: 1px solid rgba(148,163,184,0.25);
  color: var(--muted);
}

/* ── Cards / Panels ── */
.panel, .auth-card, .listing-page-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel { padding: 26px; overflow: visible; }
.panel.orange-border { border-color: rgba(240,120,24,0.3); }
.panel.teal-border   { border-color: rgba(172,187,197,0.3); }
.panel.purple-border { border-color: rgba(117,151,172,0.3); }
.panel.blue-border   { border-color: rgba(117,151,172,0.3); }
.panel.pink-border   { border-color: rgba(227,139,105,0.3); }
.panel.gold-border   { border-color: rgba(242,189,75,0.3); }

.panel:hover { border-color: rgba(117,151,172,0.25); }

/* ── Section ── */
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.alt-bg {
  background: rgba(255,255,255,0.012);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 18px; margin-bottom: 32px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 10px 0 0; line-height: 1.15;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 54px 0 34px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center; gap: 32px;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  line-height: 1.02; margin: 20px 0 16px;
  background: linear-gradient(135deg, var(--text) 40%, var(--blue) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-copy p { color: var(--muted); font-size: 1.05rem; max-width: 600px; line-height: 1.7; }

/* Search box */
.search-box {
  margin-top: 28px;
  display: flex; gap: 10px;
  background: rgba(10,20,36,0.80);
  border: 1px solid rgba(117,151,172,0.22);
  border-radius: 18px; padding: 10px 12px;
  max-width: 620px;
  box-shadow: 0 16px 40px rgba(4,8,16,0.32);
}
.search-box input {
  flex: 1; background: transparent; border: none;
  color: var(--text); font-size: 1rem; padding: 10px 14px; outline: none;
}
.search-box input::placeholder { color: #6a88a8; }
.search-box button {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #17130d; border: none; padding: 12px 20px;
  border-radius: 12px; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 22px var(--teal-glow);
  transition: transform 0.18s, box-shadow 0.18s;
}
.search-box button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px var(--teal-glow); }

/* Quick tags */
.quick-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.quick-tag {
  font: inherit; cursor: pointer;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 7px 14px; font-size: 0.85rem;
  transition: all 0.18s;
}
.quick-tag:hover { color: var(--text); border-color: rgba(117,151,172,0.45); transform: translateY(-1px); }

/* Access notice */
.access-notice {
  margin-top: 28px; padding: 18px 20px;
  border: 1px solid rgba(172,187,197,0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(172,187,197,0.06), rgba(117,151,172,0.04));
  max-width: 620px; display: grid; gap: 12px;
}
.access-notice strong { font-size: 1rem; }
.access-notice span { color: var(--muted); line-height: 1.6; font-size: 0.92rem; }
.access-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-only { display: none; }
body.is-authenticated .auth-only { display: block; }
body.is-authenticated #accessNotice { display: none; }

/* Hero stat cards */
.hero-card { display: grid; gap: 16px; }
.stat-box {
  background: linear-gradient(160deg, rgba(15,24,44,0.9), rgba(10,18,32,0.95));
  border: 1px solid var(--line); border-radius: 20px; padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}
.stat-box:hover { transform: translateY(-3px); }
.stat-box.orange { border-color: rgba(240,120,24,0.3); }
.stat-box.teal   { border-color: rgba(172,187,197,0.3); }
.stat-box.blue   { border-color: rgba(117,151,172,0.3); }
.stat-box.large  { min-height: 170px; display: flex; flex-direction: column; justify-content: center; }
.stat-box strong {
  display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 8px;
}
.stat-box.orange strong { color: var(--orange-light); }
.stat-box.teal strong   { color: var(--teal); }
.stat-box.blue strong   { color: var(--blue); }
.stat-box small { color: var(--muted); font-size: 0.82rem; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.muted { color: var(--muted); }

/* ── Stats strip ── */
.stats-strip { padding: 0 0 24px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
.stat-tile {
  border-radius: 18px; padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  transition: transform 0.2s, border-color 0.2s;
}
.stat-tile:hover { transform: translateY(-3px); }
.stat-tile:nth-child(1) { border-color: rgba(240,120,24,0.25); }
.stat-tile:nth-child(2) { border-color: rgba(172,187,197,0.25); }
.stat-tile:nth-child(3) { border-color: rgba(117,151,172,0.25); }
.stat-tile:nth-child(4) { border-color: rgba(117,151,172,0.25); }
.stat-tile strong {
  display: block; font-size: 1.8rem; margin-bottom: 6px;
}
.stat-tile:nth-child(1) strong { color: var(--orange-light); }
.stat-tile:nth-child(2) strong { color: var(--teal); }
.stat-tile:nth-child(3) strong { color: var(--blue); }
.stat-tile:nth-child(4) strong { color: var(--purple); }
.stat-tile span { color: var(--muted); font-size: 0.85rem; }

/* ============================================================
   MARKETPLACE SECTION
   ============================================================ */
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 16px;
  cursor: pointer; font-weight: 600; font-size: 0.85rem;
  transition: all 0.18s;
}
.filter:hover { color: var(--text); border-color: rgba(117,151,172,0.4); }
.filter.active {
  background: linear-gradient(135deg, rgba(172,187,197,0.15), rgba(117,151,172,0.12));
  border-color: rgba(172,187,197,0.5);
  color: var(--teal);
  box-shadow: 0 4px 16px var(--teal-glow);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}

/* ── Listing card ── */
.listing-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
}
.listing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(117,151,172,0.35);
  box-shadow: 0 24px 50px rgba(0,0,0,0.35);
}
.listing-card:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 4px;
}
.listing-card img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform 0.3s;
}
.listing-card:hover img { transform: scale(1.04); }
.listing-body { padding: 18px; }
.listing-top {
  display: flex; justify-content: space-between;
  align-items: center; gap: 10px;
}
.listing-body h3 { margin: 10px 0 8px; font-size: 1.1rem; }
.listing-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  color: var(--muted); font-size: 0.8rem;
}
.listing-meta span::before { content: "· "; }
.listing-meta span:first-child::before { content: ""; }
.price-row {
  margin-top: 16px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.price { font-size: 1.35rem; font-weight: 800; color: var(--orange-light); }
.rating { color: var(--gold); font-size: 0.85rem; }

/* Empty state */
.empty-state {
  display: grid; gap: 8px; grid-column: 1 / -1;
  padding: 48px 36px; border: 1px dashed rgba(117,151,172,0.28);
  border-radius: 18px; text-align: center;
}
.empty-state strong { color: var(--text); font-size: 1.1rem; }
.empty-state span { color: var(--muted); }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.feature-list { margin: 20px 0 0; padding-left: 20px; color: var(--muted); line-height: 2; }
.feature-list li { padding-left: 4px; }

.card-list { display: grid; gap: 14px; }
.mini-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}
.mini-card:hover { transform: translateY(-3px); border-color: rgba(117,151,172,0.3); }
.mini-card h4 { margin: 8px 0 6px; font-size: 1rem; }

/* ============================================================
   INFO CARDS (Buyers section)
   ============================================================ */
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.info-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 22px; padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}
.info-card:hover { transform: translateY(-4px); }
.info-card:nth-child(1) { border-top: 3px solid var(--teal); }
.info-card:nth-child(2) { border-top: 3px solid var(--purple); }
.info-card:nth-child(3) { border-top: 3px solid var(--pink); }
.info-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.info-card:nth-child(1) .icon { background: rgba(172,187,197,0.12); }
.info-card:nth-child(2) .icon { background: rgba(117,151,172,0.12); }
.info-card:nth-child(3) .icon { background: rgba(227,139,105,0.12); }
.info-card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.info-card p { color: var(--muted); line-height: 1.7; margin: 0; font-size: 0.92rem; }

/* ============================================================
   SELLER / DASHBOARD SECTION
   ============================================================ */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dashboard-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 22px; }

.summary-list { display: grid; gap: 10px; margin-top: 18px; }
.summary-item {
  display: flex; justify-content: space-between;
  align-items: center; padding: 13px 16px;
  border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.018);
  gap: 16px; transition: border-color 0.2s;
}
.summary-item:hover { border-color: rgba(117,151,172,0.2); }
.summary-item > div { min-width: 0; }
.summary-item .item-label { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }

.listing-management { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.dashboard-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ── Order Form ── */
.order-form { display: grid; gap: 12px; margin-top: 18px; }
.order-form input,
.order-form select,
.order-form textarea {
  width: 100%; border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  color: var(--text); padding: 13px 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: rgba(172,187,197,0.5);
  box-shadow: 0 0 0 3px rgba(172,187,197,0.1);
}
.order-form select option { background: #0a1728; }
.order-form textarea { resize: vertical; }
.order-message { margin-top: 14px; min-height: 20px; font-size: 0.88rem; }
.order-message.success { color: var(--teal); }
.order-message.error   { color: var(--pink); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  display: grid; place-items: center;
  min-height: calc(100vh - 80px); padding: 48px 16px;
}
.auth-card {
  width: min(520px, 100%);
  background: var(--bg-card);
  border: 1px solid rgba(117,151,172,0.18);
  border-radius: 28px; padding: 36px 32px;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--teal), var(--purple), var(--pink));
}
.auth-card h1 { margin: 16px 0 26px; font-size: 1.8rem; }

.login-form { display: grid; gap: 16px; }
.login-form label { display: grid; gap: 7px; color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.login-form input,
.login-form select {
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  color: var(--text); padding: 13px 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-form input:focus,
.login-form select:focus {
  border-color: rgba(172,187,197,0.5);
  box-shadow: 0 0 0 3px rgba(172,187,197,0.1);
}
.login-form select option { background: #0a1728; }
.auth-link-row { margin-top: 18px; color: var(--muted); font-size: 0.9rem; }
.auth-link-row a { color: var(--teal); }
.auth-link-row a:hover { text-decoration: underline; }
.status-text { margin-top: 16px; font-size: 0.9rem; min-height: 20px; }
.status-text.success { color: var(--teal); }
.status-text.error   { color: var(--pink); }

/* Demo credentials box */
.demo-box {
  margin-top: 20px; padding: 14px 16px;
  border: 1px solid rgba(242,189,75,0.3); border-radius: 14px;
  background: rgba(242,189,75,0.06);
}
.demo-box p { margin: 0 0 8px; color: var(--gold); font-weight: 700; font-size: 0.82rem; }
.demo-box ul { margin: 0; padding-left: 16px; color: var(--muted); font-size: 0.8rem; line-height: 1.9; }

/* ============================================================
   LISTING DETAIL PAGE
   ============================================================ */
.listing-page-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow);
}
.listing-page-card > img {
  width: 100%; height: 440px; object-fit: cover;
}
.listing-page-body { padding: 32px; }
.listing-page-body h1 { margin: 14px 0 12px; }
.listing-description { color: var(--muted); line-height: 1.75; margin: 16px 0; }

.spec-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px 24px; margin-top: 24px;
}
.spec-row { display: flex; flex-direction: column; gap: 2px; }
.spec-row .spec-label { color: var(--muted); font-size: 0.8rem; }
.spec-row .spec-value { font-weight: 600; font-size: 0.95rem; }

.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.feature-chip {
  padding: 6px 12px; border-radius: 999px; font-size: 0.8rem;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--muted);
}

.cta-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* ============================================================
   ADMIN PAGE
   ============================================================ */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}
.metrics-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 16px;
}
.metric-tile {
  padding: 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.02);
}
.metric-tile strong {
  display: block; font-size: 1.4rem; margin-bottom: 4px;
}
.metric-tile span { color: var(--muted); font-size: 0.8rem; }
.metric-tile:nth-child(1) strong { color: var(--blue); }
.metric-tile:nth-child(2) strong { color: var(--orange-light); }
.metric-tile:nth-child(3) strong { color: var(--teal); }
.metric-tile:nth-child(4) strong { color: var(--pink); }
.metric-tile:nth-child(5) strong { color: var(--purple); }
.metric-tile:nth-child(6) strong { color: var(--gold); }

.signal-list { display: grid; gap: 12px; margin-top: 16px; }
.signal-item {
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.02);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  transition: border-color 0.2s;
}
.signal-item:hover { border-color: rgba(117,151,172,0.25); }
.signal-id { font-weight: 700; font-size: 0.88rem; color: var(--blue); }
.signal-title { color: var(--text); font-size: 0.9rem; margin-top: 2px; }
.signal-type { color: var(--muted); font-size: 0.78rem; margin-top: 3px; }

.admin-status-select {
  display: block; width: 100%; margin-top: 8px;
  border: 1px solid var(--line); border-radius: 8px;
  background: rgba(10,18,32,0.8); color: var(--text);
  padding: 7px 8px; font-size: 0.8rem; cursor: pointer;
  transition: border-color 0.2s;
}
.admin-status-select:focus { border-color: rgba(172,187,197,0.5); outline: none; }
.admin-status-select option { background: #0a1728; }

.action-item {
  padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.018);
  color: var(--muted); font-size: 0.88rem; line-height: 1.5;
}

/* ============================================================
   CEO PAGE
   ============================================================ */
.ceo-kpi-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px; margin-top: 16px;
}
.kpi-tile {
  padding: 20px; border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  transition: transform 0.2s, border-color 0.2s;
}
.kpi-tile:hover { transform: translateY(-3px); }
.kpi-tile:nth-child(1) { border-color: rgba(240,120,24,0.3); }
.kpi-tile:nth-child(2) { border-color: rgba(172,187,197,0.3); }
.kpi-tile:nth-child(3) { border-color: rgba(227,139,105,0.3); }
.kpi-tile:nth-child(4) { border-color: rgba(117,151,172,0.3); }
.kpi-label { color: var(--muted); font-size: 0.82rem; font-weight: 500; }
.kpi-value {
  font-size: 1.9rem; font-weight: 800; margin: 6px 0 4px;
}
.kpi-tile:nth-child(1) .kpi-value { color: var(--orange-light); }
.kpi-tile:nth-child(2) .kpi-value { color: var(--teal); }
.kpi-tile:nth-child(3) .kpi-value { color: var(--pink); }
.kpi-tile:nth-child(4) .kpi-value { color: var(--blue); }
.kpi-delta { font-size: 0.8rem; font-weight: 700; }
.kpi-delta.positive { color: var(--teal); }
.kpi-delta.negative { color: var(--pink); }

.note-item {
  padding: 14px 16px; border-radius: 14px;
  border-left: 3px solid var(--purple);
  background: rgba(117,151,172,0.05);
  color: var(--muted); font-size: 0.9rem; line-height: 1.65;
}

/* Verified badge table */
.verify-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.verify-table th {
  text-align: left; color: var(--muted);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.verify-table td {
  padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.88rem;
}
.verify-table tr:hover td { background: rgba(255,255,255,0.02); }
.verify-toggle {
  border: none; background: transparent; cursor: pointer;
  padding: 5px 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 700;
  transition: all 0.2s;
}
.verify-toggle.grant {
  color: var(--teal); border: 1px solid rgba(172,187,197,0.35);
  background: rgba(172,187,197,0.08);
}
.verify-toggle.revoke {
  color: var(--pink); border: 1px solid var(--pink-glow);
  background: rgba(227,139,105,0.08);
}
.verify-toggle:hover { transform: scale(1.05); }

/* ============================================================
   ALERT BOX
   ============================================================ */
.alert {
  padding: 16px 18px; border-radius: 14px;
  background: rgba(240,120,24,0.08);
  border: 1px solid rgba(240,120,24,0.28);
  color: #ffd0a7;
}
.alert.success {
  background: rgba(172,187,197,0.08);
  border-color: rgba(172,187,197,0.28);
  color: var(--teal);
}
.alert.error {
  background: rgba(227,139,105,0.08);
  border-color: rgba(227,139,105,0.28);
  color: var(--pink);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.footer-row {
  display: flex; justify-content: space-between;
  align-items: center; color: var(--muted); font-size: 0.88rem;
  flex-wrap: wrap; gap: 12px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ============================================================
   GRADIENT TEXT UTILITIES
   ============================================================ */
.text-orange { color: var(--orange-light); }
.text-teal   { color: var(--teal); }
.text-blue   { color: var(--blue); }
.text-purple { color: var(--purple); }
.text-pink   { color: var(--pink); }
.text-gold   { color: var(--gold); }

.grad-orange-teal {
  background: linear-gradient(135deg, var(--orange-light), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.grad-blue-purple {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.grad-pink-orange {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 10px;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb {
  background: rgba(117,151,172,0.25); border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(117,151,172,0.45); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .dashboard-grid,
  .dashboard-wrap,
  .results-grid,
  .info-grid,
  .stats-grid,
  .admin-grid,
  .spec-grid { grid-template-columns: 1fr; }

  .mini-grid,
  .ceo-kpi-grid,
  .metrics-grid { grid-template-columns: 1fr 1fr; }

  .nav { flex-wrap: wrap; gap: 8px; }
  .mobile-menu-toggle { display: flex; }
  .nav-links { display: none; order: 3; width: 100%; padding: 10px; gap: 4px; flex-direction: column; align-items: stretch; justify-content: initial; border: 1px solid rgba(164,188,209,.16); border-radius: 16px; background: rgba(17,30,45,.98); box-shadow: 0 18px 40px rgba(0,0,0,.32); }
  .nav-links.mobile-open { display: flex; animation: mobile-nav-in .18s ease-out; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-links a:hover, .nav-links a:focus-visible { background: rgba(70,216,194,.1); color: var(--teal); }
  .mobile-nav-action { display: block; }
  .mobile-nav-button { width: 100%; border: 0; text-align: left; font: inherit; cursor: pointer; }
  .section-header { flex-direction: column; align-items: flex-start; }


  .listing-page-card > img { height: 280px; }
}

@media (max-width: 600px) {
  .mini-grid,
  .ceo-kpi-grid,
  .metrics-grid { grid-template-columns: 1fr; }

  .results-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 2.4rem; }
  .auth-card { padding: 28px 20px; }

  /* Compact, calm mobile navigation */
  .topbar { background: rgba(7, 17, 29, 0.94); box-shadow: 0 10px 30px rgba(0,0,0,.22); }
  .nav { min-height: 68px; padding: 10px 0; gap: 8px; }
  .brand-logo-sm { width: 126px; height: 34px; }
  .nav-actions { display: flex; align-items: center; margin-left: auto; }
  .nav-actions > :not(.currency-control) { display: none !important; }
  .currency-control { display: block; }
  .mobile-nav-action { display: block; }
  .mobile-nav-button { width: 100%; border: 0; text-align: left; font: inherit; cursor: pointer; }
  .nav-actions .ghost-btn,
  .nav-actions .primary-btn,
  .nav-actions .teal-btn { padding: 8px 10px; font-size: .76rem; border-radius: 10px; }
  .nav-actions .user-name { display: none; }
  .user-menu { display: flex; align-items: center; gap: 6px; }
  .mobile-menu-toggle {
    width: 42px; height: 42px; padding: 0; margin-left: 2px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    border: 1px solid rgba(70,216,194,.3); border-radius: 13px;
    background: rgba(70,216,194,.08); color: var(--teal); cursor: pointer;
    transition: background .2s, transform .2s, border-color .2s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle[aria-expanded="true"] {
    background: rgba(70,216,194,.16); border-color: rgba(70,216,194,.65); transform: translateY(-1px);
  }
  .mobile-menu-toggle span { width: 17px; height: 2px; border-radius: 9px; background: currentColor; transition: transform .2s, opacity .2s; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    display: none; order: 3; width: 100%; padding: 10px; gap: 4px;
    flex-direction: column; align-items: stretch; justify-content: initial;
    border: 1px solid rgba(164,188,209,.16); border-radius: 16px;
    background: rgba(17,30,45,.98); box-shadow: 0 18px 40px rgba(0,0,0,.32);
  }
  .nav-links.mobile-open { display: flex; animation: mobile-nav-in .18s ease-out; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; font-size: .92rem; color: var(--text); }
  .nav-links a:hover, .nav-links a:focus-visible { background: rgba(70,216,194,.1); color: var(--teal); }
}

@keyframes mobile-nav-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   EMAIL VERIFICATION + AUTH GATE  additions
   ============================================================ */

/* ── Verify banner (top of every page when email unverified) ── */
.verify-banner {
  position: sticky; top: 65px; z-index: 90;
  background: linear-gradient(90deg, rgba(240,120,24,0.18), rgba(242,189,75,0.14));
  border-bottom: 1px solid rgba(240,120,24,0.3);
  padding: 10px 20px;
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  font-size: 0.88rem; color: var(--text);
}
.verify-banner-link {
  color: var(--orange-light); font-weight: 700;
  border-bottom: 1px solid rgba(240,120,24,0.4);
  transition: color 0.2s;
}
.verify-banner-link:hover { color: var(--text); }
.verify-banner-close {
  background: transparent; border: none;
  color: var(--muted); cursor: pointer; font-size: 0.9rem;
  padding: 2px 6px; border-radius: 6px;
  transition: color 0.2s;
}
.verify-banner-close:hover { color: var(--text); }

/* ── Lock overlay (portfolio grid gate) ── */
.lock-overlay {
  position: relative; margin-top: -180px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-soft) 40%);
  padding: 180px 0 48px;
  display: flex; justify-content: center;
  z-index: 2;
}
.lock-box {
  text-align: center; max-width: 480px; padding: 0 16px;
}
.lock-icon {
  font-size: 3rem; margin-bottom: 18px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-8px); }
}
.lock-box h3 { font-size: 1.5rem; margin: 0 0 12px; }
.lock-box p  { color: var(--muted); line-height: 1.7; margin: 0 0 24px; font-size: 0.95rem; }

/* ── Guest hero stats row ── */
.hero-stats-row {
  display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px;
}
.hero-stat {
  display: flex; flex-direction: column; gap: 2px;
}
.hero-stat strong { font-size: 1.5rem; font-weight: 800; }
.hero-stat span   { color: var(--muted); font-size: 0.8rem; }

/* ── Guest CTA box ── */
.guest-cta-box {
  margin-top: 26px; padding: 20px 22px;
  border: 1px solid rgba(172,187,197,0.25);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(172,187,197,0.06), rgba(117,151,172,0.04));
  max-width: 600px;
}
.guest-cta-box p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; margin: 0 0 16px; }
.guest-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Unverified gate overlay (full page) ── */
.gate-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,16,28,0.92);
  backdrop-filter: blur(12px);
  display: grid; place-items: center; padding: 20px;
}
.gate-box {
  background: var(--bg-card);
  border: 1px solid rgba(172,187,197,0.25);
  border-radius: 28px; padding: 44px 36px;
  text-align: center; max-width: 480px; width: 100%;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.gate-box::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--teal), var(--purple), var(--pink));
}
.gate-box .gate-icon { font-size: 3rem; margin-bottom: 18px; }
.gate-box h2 { margin: 0 0 12px; }
.gate-box p  { color: var(--muted); line-height: 1.7; margin: 0 0 24px; }
.gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Preview grid blur for guests */
#previewGrid {
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 90%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 90%);
  pointer-events: none;
}

.currency-control select { appearance: none; border: 1px solid rgba(70,216,194,.28); border-radius: 9px; background: rgba(17,30,45,.9); color: var(--teal); padding: 8px 26px 8px 9px; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.currency-control select:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

@media (max-width: 600px) {
  .hero-stats-row { gap: 14px; }
  .hero-stat strong { font-size: 1.2rem; }
  .lock-box { padding: 0 8px; }
  .gate-box { padding: 32px 20px; }
}

/* ============================================================
   AUTH SPLIT LAYOUT  (login + register)
   ============================================================ */
.auth-split-body {
  background:
    radial-gradient(circle at 10% 10%, rgba(240, 120, 24, 0.18), transparent 32%),
    radial-gradient(circle at 90% 90%, rgba(157, 174, 185, 0.14), transparent 34%),
    #141d25;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Ambient orbs */
.auth-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.auth-orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.28;
  animation: orbDrift 20s ease-in-out infinite alternate;
}
.auth-orb-1 { width: 520px; height: 520px; top: -140px; left: -100px; background: radial-gradient(circle, rgba(117,151,172,0.7), transparent 65%); animation-duration: 22s; }
.auth-orb-2 { width: 420px; height: 420px; bottom: -100px; right: 20%; background: radial-gradient(circle, rgba(117,151,172,0.6), transparent 65%); animation-duration: 18s; animation-delay: -6s; }
.auth-orb-3 { width: 360px; height: 360px; top: 35%; right: -80px; background: radial-gradient(circle, rgba(240,120,24,0.5), transparent 65%); animation-duration: 25s; animation-delay: -12s; }
@keyframes orbDrift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(30px, 40px) scale(1.08); } }

/* Two-column split */
.auth-split {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100%;
}

/* Left panel */
.auth-split-left {
  background:
    linear-gradient(145deg, rgba(7, 19, 33, 0.98), rgba(15, 39, 54, 0.96)),
    linear-gradient(35deg, rgba(240, 120, 24, 0.18), transparent 55%);
  border-right: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 52px;
  position: relative; overflow: hidden;
}
.auth-split-left::before {
  content: ""; position: absolute; top: -120px; left: -120px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(172,187,197,0.06), transparent 60%);
  pointer-events: none;
}
.auth-split-left-inner { max-width: 420px; width: 100%; }

.auth-brand {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 48px; text-decoration: none;
}

.auth-left-headline { margin-bottom: 36px; }
.auth-left-headline h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.22; margin: 0 0 14px;
  background: linear-gradient(135deg, var(--text) 30%, var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.auth-left-headline p { color: var(--muted); line-height: 1.7; margin: 0; font-size: 0.95rem; }

/* Feature list */
.auth-feature-list {
  list-style: none; padding: 0; margin: 0 0 36px;
  display: grid; gap: 14px;
}
.auth-feature-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,0.022);
  transition: border-color 0.2s, transform 0.2s;
}
.auth-feature-list li:hover { border-color: rgba(172,187,197,0.2); transform: translateX(4px); }
.auth-feature-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
}
.auth-feature-icon.teal   { background: rgba(172,187,197,0.12);  color: var(--teal); }
.auth-feature-icon.orange { background: rgba(240,120,24,0.12);  color: var(--orange-light); }
.auth-feature-icon.purple { background: rgba(117,151,172,0.12); color: var(--purple); }
.auth-feature-icon.blue   { background: rgba(117,151,172,0.12);  color: var(--blue); }
.auth-feature-list strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.auth-feature-list span   { color: var(--muted); font-size: 0.8rem; }

/* Platform stats row */
.auth-left-stats {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.auth-stat strong { display: block; font-size: 1.35rem; font-weight: 800; color: var(--text); }
.auth-stat span   { color: var(--muted); font-size: 0.75rem; }

/* Right form panel */
.auth-split-right {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  min-height: 100vh;
  padding: 60px 52px; overflow: visible;
}
.auth-form-box {
  width: 100%; max-width: 420px;
  padding: 34px;
  border: 1px solid rgba(117, 151, 172, 0.18);
  border-radius: 24px;
  background: rgba(9, 23, 39, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
  backdrop-filter: blur(18px);
}
.auth-form-box { border-radius: 18px; padding: 28px; box-shadow: 0 18px 48px rgba(0,0,0,.28); }
.auth-form-box input, .auth-form-box select, .auth-form-box textarea {
  border-radius: 12px; border-color: rgba(117,151,172,.2); background: rgba(255,255,255,.045);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-form-box input:focus, .auth-form-box select:focus, .auth-form-box textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(172,187,197,.12); background: rgba(255,255,255,.07); outline: none;
}

.auth-back-link {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--muted); font-size: 0.85rem;
  margin-bottom: 36px; text-decoration: none;
  transition: color 0.2s;
}
.auth-back-link:hover { color: var(--text); }
.auth-mobile-brand { display: none; }
.auth-mobile-brand img {
  display: block;
  width: clamp(160px, 48vw, 220px);
  height: auto;
}

.auth-form-title { font-size: clamp(1.6rem, 2.5vw, 2rem); margin: 12px 0 6px; }
.auth-form-sub   { color: var(--muted); font-size: 0.9rem; margin: 0 0 26px; line-height: 1.6; }

/* Auth form fields */
.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 7px; }
.auth-field label {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 0.86rem; font-weight: 500;
}
.auth-field input {
  width: 100%; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.025); color: var(--text);
  padding: 13px 14px; outline: none; font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-field input:focus {
  border-color: rgba(255, 176, 103, 0.72);
  box-shadow: 0 0 0 3px rgba(240, 120, 24, 0.14);
}

/* Password wrapper */
.auth-pw-wrap { position: relative; display: flex; }
.auth-pw-wrap input { flex: 1; padding-right: 46px; }
.auth-pw-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; cursor: pointer;
  color: var(--muted); padding: 4px; border-radius: 6px;
  display: grid; place-items: center; transition: color 0.2s;
}
.auth-pw-btn:hover { color: var(--text); }

/* Status message */
.auth-status {
  font-size: 0.86rem; padding: 10px 14px;
  border-radius: 10px; min-height: 18px; display: none;
}
.auth-status.success { background: rgba(66,214,195,0.08); border: 1px solid rgba(66,214,195,0.28); color: var(--teal); display: block; }
.auth-status.error   { background: rgba(255,120,135,0.08); border: 1px solid rgba(255,120,135,0.28); color: var(--pink); display: block; }

/* Submit button */
.auth-submit-btn {
  width: 100%; margin-top: 4px;
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; font-size: 0.95rem;
}
.auth-submit-btn svg { transition: transform 0.2s; }
.auth-submit-btn:hover svg { transform: translateX(4px); }

/* Demo credentials compact box */
.auth-demo-box {
  margin-top: 20px; padding: 14px 16px;
  border: 1px solid rgba(242,189,75,0.25); border-radius: 14px;
  background: rgba(242,189,75,0.05);
}
.auth-demo-header {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); font-size: 0.78rem; font-weight: 600;
  margin-bottom: 10px;
}
.auth-demo-header code {
  background: rgba(242,189,75,0.15); color: var(--gold);
  padding: 1px 6px; border-radius: 5px; font-size: 0.78rem;
}
.auth-demo-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-fill-btn {
  border: 1px solid var(--line); background: rgba(255,255,255,0.025);
  color: var(--muted); border-radius: 8px; padding: 5px 11px;
  cursor: pointer; font-size: 0.78rem; font-weight: 600;
  transition: all 0.18s;
}
.demo-fill-btn:hover { border-color: rgba(172,187,197,0.4); color: var(--teal); }
.demo-fill-btn.ceo-pill { border-color: rgba(242,189,75,0.3); color: var(--gold); }
.demo-fill-btn.ceo-pill:hover { background: rgba(242,189,75,0.07); }

/* ============================================================
   REGISTER — role cards
   ============================================================ */
.reg-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.reg-role-card { cursor: pointer; }
.reg-role-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; padding: 14px 10px; border-radius: 14px;
  border: 2px solid var(--line);
  background: rgba(255,255,255,0.02);
  transition: all 0.18s; text-align: center;
}
.reg-role-inner:hover { border-color: rgba(172,187,197,0.3); }
.reg-role-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 4px;
}
.reg-role-icon.teal-bg   { background: rgba(172,187,197,0.12);  color: var(--teal); }
.reg-role-icon.orange-bg { background: rgba(240,120,24,0.12);  color: var(--orange-light); }
.reg-role-icon.blue-bg   { background: rgba(117,151,172,0.12);  color: var(--blue); }
.reg-role-icon.purple-bg { background: rgba(117,151,172,0.12); color: var(--purple); }
.reg-role-inner strong { font-size: 0.88rem; color: var(--text); }
.reg-role-inner small  { font-size: 0.72rem; color: var(--muted); }
input[type="radio"]:checked + .reg-role-inner {
  border-color: var(--teal);
  background: rgba(172,187,197,0.07);
  box-shadow: 0 0 0 3px rgba(172,187,197,0.14);
}
input[type="radio"]:checked + .reg-role-inner strong { color: var(--teal); }

/* Register wider card */
.auth-split-register .auth-form-box { max-width: 480px; }

/* ============================================================
   DASHBOARD — welcome card
   ============================================================ */
.dash-welcome-card {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 22px;
  padding: 76px 26px 22px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(13,28,48,.98), rgba(10,30,40,.94));
}
.dashboard-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:24px; align-items:start; }
.dashboard-content { min-width:0; }
.dash-sidebar { position:sticky; top:88px; display:grid; gap:5px; padding:16px 10px; border:1px solid var(--line); border-radius:18px; background:rgba(9,23,39,.78); box-shadow:var(--shadow-sm); }
.dash-sidebar-title { display:flex; align-items:center; gap:9px; padding:6px 8px 18px; color:var(--text); font-size:.84rem; font-weight:800; letter-spacing:.06em; }
.dash-sidebar-title .brand-mark { width:30px; height:30px; border-radius:9px; font-size:.85rem; }
.dash-side-link { padding:11px 12px; border-radius:10px; color:var(--muted); font-size:.82rem; }
.dash-side-link:hover, .dash-side-link.active { color:var(--text); background:rgba(172,187,197,.1); }
.dash-sidebar-bottom { display:grid; gap:5px; margin-top:22px; padding:14px 10px 4px; border-top:1px solid var(--line); font-size:.76rem; }
.dash-sidebar-bottom strong { color:var(--text); font-size:.84rem; }.dash-sidebar-bottom a { color:var(--teal); }
.dashboard-topline { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom:14px; }.dashboard-context { color:var(--muted); font-size:.8rem; margin-left:10px; }.dashboard-top-actions { display:flex; align-items:center; gap:8px; }.icon-action { width:32px; height:32px; border:1px solid rgba(227,139,105,.3); border-radius:10px; background:rgba(227,139,105,.08); color:var(--pink); cursor:pointer; }
.role-dashboard-extras { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-bottom:20px; }.role-panel { padding:18px; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.025); }.role-panel h3 { margin:0 0 8px; font-size:1rem; }.role-panel p { color:var(--muted); font-size:.82rem; line-height:1.55; margin:0; }.role-panel .panel-action { margin-top:14px; display:inline-flex; }
.dash-welcome-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--teal), var(--purple));
}
.dash-welcome-left { display: flex; align-items: center; gap: 16px; }
.dash-profile-cover { position: absolute; inset: 0 0 auto; height: 62px; background: linear-gradient(110deg, rgba(172,187,197,.55), rgba(117,151,172,.3) 48%, rgba(117,151,172,.42)); opacity: .8; }
.dash-profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(6,16,28,.2)); }
.dash-avatar {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #17130d; font-weight: 900; font-size: 1.1rem;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px var(--teal-glow);
  overflow: hidden;
}
.dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-tabs { display:flex; gap:6px; padding:0 8px 18px; border-bottom:1px solid var(--line); margin-bottom:20px; overflow-x:auto; }
.dash-tabs a { color:var(--muted); padding:8px 14px; border-radius:9px; font-size:.84rem; white-space:nowrap; }
.dash-tabs a:hover, .dash-tabs a.active { color:var(--text); background:rgba(172,187,197,.1); }

/* Stat tiles row */
.dash-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.dash-stat-tile {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  transition: transform 0.2s, border-color 0.2s;
}
.dash-stat-tile:hover { transform: translateY(-3px); }
.dash-stat-tile.orange-border { border-color: rgba(240,120,24,0.25); }
.dash-stat-tile.teal-border   { border-color: rgba(172,187,197,0.25); }
.dash-stat-tile.blue-border   { border-color: rgba(117,151,172,0.25); }
.dash-stat-tile.purple-border { border-color: rgba(117,151,172,0.25); }
.dstat-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
}
.dstat-icon.orange { background: rgba(240,120,24,0.12);  color: var(--orange-light); }
.dstat-icon.teal   { background: rgba(172,187,197,0.12);  color: var(--teal); }
.dstat-icon.blue   { background: rgba(117,151,172,0.12);  color: var(--blue); }
.dstat-icon.purple { background: rgba(117,151,172,0.12); color: var(--purple); }
.dash-stat-tile strong { display: block; font-size: 1.3rem; font-weight: 800; margin-bottom: 2px; }
.dash-stat-tile span   { color: var(--muted); font-size: 0.78rem; }

/* Post modal */
.dash-modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(4,8,16,0.72); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.dash-modal-box {
  background: var(--bg-card);
  border: 1px solid rgba(172,187,197,0.2);
  border-radius: 22px; padding: 28px;
  width: 100%; max-width: 500px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  animation: modalIn 0.22s ease;
}
@keyframes modalIn { from { transform: scale(0.95) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================================================
   CEO — credentials card + user management
   ============================================================ */
.ceo-creds-card {
  background: rgba(242,189,75,0.06);
  border: 1px solid rgba(242,189,75,0.22);
  border-radius: 16px; padding: 16px 20px;
  min-width: 240px;
}
.ceo-creds-title {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  margin-bottom: 10px;
}
.ceo-creds-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid rgba(242,189,75,0.1);
  font-size: 0.82rem; gap: 12px;
}
.ceo-creds-row:last-child { border-bottom: none; }
.ceo-creds-row span { color: var(--muted); }
.ceo-creds-row code {
  background: rgba(242,189,75,0.12); color: var(--gold);
  padding: 2px 8px; border-radius: 5px; font-size: 0.8rem;
}

.ceo-action-btn {
  border: none; cursor: pointer;
  padding: 4px 10px; border-radius: 7px;
  font-size: 0.74rem; font-weight: 700;
  transition: all 0.18s;
}
.ceo-action-btn:hover   { transform: scale(1.06); }
.ceo-action-btn:disabled { opacity: 0.5; cursor: wait; }
.fee-settings-list { display:grid; gap:10px; }.fee-row { display:grid; grid-template-columns:minmax(0,1fr) 130px 90px 130px; gap:12px; align-items:center; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.025); }.fee-row strong { font-size:.88rem; }.fee-row span { color:var(--muted); font-size:.78rem; }.fee-row input { width:100%; border:1px solid var(--line); background:rgba(255,255,255,.04); color:var(--text); border-radius:8px; padding:8px; }.fee-row input:focus { outline:none; border-color:var(--gold); }.fee-row label { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:.78rem; }

/* ============================================================
   RESPONSIVE — auth split
   ============================================================ */
@media (max-width: 900px) {
  .platform-entry-grid, .dashboard-layout { grid-template-columns:1fr; }
  .dash-sidebar { position:static; display:flex; overflow-x:auto; align-items:center; gap:4px; padding:8px; }
  .dash-sidebar-title, .dash-sidebar-bottom { display:none; }
  .dash-side-link { white-space:nowrap; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-split-left { display: none; }
  .auth-split-right { justify-content: flex-start; padding: 48px 28px; }
  .auth-mobile-brand { display: inline-flex; margin-bottom: 28px; }
  .auth-back-link { margin-bottom: 24px; }
}
@media (max-width: 640px) {
  .platform-entry { padding-top:22px; }.platform-entry-copy h1 { font-size:2.5rem; }.platform-search-preview { align-items:stretch; flex-direction:column; padding:12px; }.platform-search-preview .teal-btn { width:100%; }
  .dashboard-topline { align-items:flex-start; }.dashboard-context { display:block; margin:4px 0 0; }.role-dashboard-extras { grid-template-columns:1fr; }
  .fee-row { grid-template-columns:1fr 100px; }.fee-row label, .fee-row span { grid-column:span 1; }
  .auth-split-right { padding: 32px 20px; }
  .dash-stat-row { grid-template-columns: 1fr 1fr; }
  .reg-role-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .dash-stat-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FUNCTIONAL GUEST STOREFRONT
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.storefront-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(3, 8, 13, .98) 0%, rgba(3, 8, 13, .88) 40%, rgba(3, 8, 13, .48) 72%, rgba(3, 8, 13, .92) 100%),
    linear-gradient(0deg, rgba(3, 8, 13, .45), rgba(3, 8, 13, .08)),
    url("https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?auto=format&fit=crop&w=1800&q=85") center 52% / cover,
    #050b12;
}

.storefront-hero-grid {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding-top: 38px;
  padding-bottom: 38px;
}

.storefront-hero-copy { max-width: 680px; }
.storefront-kicker {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--orange), var(--orange-light));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.storefront-hero-copy h1 {
  max-width: 660px;
  margin: 16px 0 12px;
  font-size: clamp(2.25rem, 4vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.storefront-hero-copy h1 span { color: var(--orange); }
.storefront-hero-copy > p {
  max-width: 560px;
  margin: 0;
  color: #c1cad5;
  font-size: .95rem;
  line-height: 1.7;
}

.storefront-search {
  display: flex;
  max-width: 630px;
  min-height: 50px;
  margin-top: 22px;
  padding: 4px;
  border-radius: 9px;
  background: #f5f6f8;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .32);
}
.storefront-search input {
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  color: #182334;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: .82rem;
}
.storefront-search input::placeholder { color: #687588; opacity: 1; }
.storefront-search:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.storefront-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 108px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(110deg, var(--orange), var(--orange-light));
  color: #17130d;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}
.storefront-search button:hover { filter: brightness(1.1); }
.storefront-search button:focus-visible,
.storefront-popular button:focus-visible,
.storefront-category:focus-visible,
.storefront-product-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.storefront-popular {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  color: #d5dbe3;
  font-size: .7rem;
}
.storefront-popular button {
  padding: 6px 11px;
  color: #e6e9ed;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  background: rgba(8, 16, 25, .82);
  font-size: .68rem;
  cursor: pointer;
}
.storefront-popular button:hover,
.storefront-popular button.is-selected { border-color: var(--orange); color: var(--blue); }

.storefront-benefits {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 17px;
  padding: 22px 0 22px 24px;
  border-left: 1px solid rgba(255,255,255,.14);
}
.benefits-rule { width: 42px; height: 3px; background: var(--orange); }
.storefront-benefits h2 {
  margin: -8px 0 0;
  font-size: 1.2rem;
  line-height: 1.35;
}
.storefront-benefits h2::first-line { color: #fff; }
.benefit-item { display: flex; align-items: center; gap: 12px; }
.benefit-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  color: var(--orange);
  border: 1px solid rgba(92,200,255,.35);
  border-radius: 8px;
  font-weight: 800;
}
.benefit-icon svg { width: 16px; height: 16px; }
.benefit-item strong,
.benefit-item small { display: block; }
.benefit-item strong { font-size: .76rem; }
.benefit-item small { margin-top: 3px; color: #aeb8c5; font-size: .67rem; }
.benefits-link { color: var(--blue); font-size: .76rem; font-weight: 700; }
.benefits-link span { margin-left: 4px; }

.storefront-section { padding: 22px 0 8px; }
.storefront-products { padding-top: 18px; padding-bottom: 26px; }
.storefront-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.storefront-section-heading > div { display: flex; align-items: center; gap: 11px; }
.storefront-section-heading h2 { margin: 0; font-size: 1.15rem; }
.section-marker { width: 24px; height: 3px; background: var(--orange); }
.storefront-text-link { color: var(--blue); font-size: .73rem; font-weight: 600; white-space: nowrap; }
.storefront-text-link:hover { color: #b8e8ff; }

.storefront-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.storefront-category {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: minmax(75px, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
  padding: 10px 13px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(148,163,184,.15);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(16,29,42,.94), rgba(7,15,24,.96));
  cursor: pointer;
  transition: border-color .18s, transform .18s, background .18s;
}
.storefront-category:hover,
.storefront-category.is-selected {
  transform: translateY(-2px);
  border-color: rgba(92,200,255,.62);
  background: linear-gradient(145deg, rgba(19,49,82,.92), rgba(7,15,24,.96));
}
.category-art {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.3));
}
.category-art-parts { color: var(--blue); }
.category-art-car,
.category-art-bike { color: var(--teal); }
.category-art-industrial { color: var(--orange-light); }
.category-art-electrical { color: #f2bd4b; }
.category-art-service { color: var(--purple); }
.storefront-category > span:nth-child(2) { font-size: .75rem; font-weight: 600; }
.category-arrow { width: 18px; height: 18px; justify-self: end; color: #d2d8df; }
.category-icon svg { width: 32px; height: 32px; color: var(--teal); }
.section-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.section-page-card { display: block; color: inherit; text-decoration: none; }
.section-page-card h2 { margin: 0 0 10px; }
.section-page-card p,
.section-copy p { color: var(--muted); line-height: 1.7; }
.section-product-placeholder {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: rgba(255,255,255,.025);
}
.section-copy { max-width: 760px; }

.storefront-status { min-height: 18px; margin: 0 0 12px; color: var(--muted); font-size: .75rem; }
.storefront-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.storefront-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(12,23,35,.98), rgba(6,14,23,.98));
  box-shadow: 0 8px 22px rgba(0,0,0,.2);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.storefront-product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30,120,255,.45);
  box-shadow: 0 14px 28px rgba(0,0,0,.3);
}
.storefront-product-image {
  position: relative;
  display: grid;
  height: 175px;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #1b2937, #07111b 75%);
}
.storefront-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s;
}
.storefront-product-card:hover .storefront-product-image img { transform: scale(1.04); }
.storefront-product-image > span:not(.storefront-product-badge) { font-size: 3rem; color: var(--blue); }
.storefront-product-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  max-width: calc(100% - 18px);
  overflow: hidden;
  padding: 4px 8px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--orange), var(--orange-light));
  font-size: .62rem;
  font-weight: 700;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}
.storefront-product-body { padding: 12px; }
.storefront-product-seller { overflow: hidden; color: #aab6c4; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.storefront-product-card h3 { margin: 6px 0; overflow: hidden; font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.storefront-product-card h3 a:hover { color: var(--blue); }
.storefront-product-rating { color: #ffb21c; font-size: .72rem; }
.storefront-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.storefront-product-footer strong { font-size: .87rem; }
.storefront-product-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  color: #17130d;
  border-radius: 6px;
  background: linear-gradient(100deg, var(--orange-light), var(--orange));
  font-size: .66rem;
  font-weight: 800;
  white-space: nowrap;
}
.storefront-product-link:hover { filter: brightness(1.12); }
.storefront-empty {
  grid-column: 1 / -1;
  padding: 32px 18px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 10px;
  text-align: center;
}

.storefront-community {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(4,11,18,.96), rgba(5,15,24,.82)),
    url("https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?auto=format&fit=crop&w=1500&q=80") center 45% / cover,
    #141d25;
}
.storefront-community-inner {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.storefront-community-kicker { color: #dce4ed; font-size: .75rem; font-weight: 700; }
.storefront-community h2 { margin: 5px 0; color: var(--blue); font-size: 1.35rem; }
.storefront-community p { max-width: 650px; margin: 0; color: #b3bfcd; font-size: .78rem; line-height: 1.6; }
.storefront-community .primary-btn { flex: 0 0 auto; }

@media (max-width: 960px) {
  .storefront-hero-grid { grid-template-columns: minmax(0, 1fr) 230px; gap: 25px; }
  .storefront-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .storefront-hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 20px; padding-top: 32px; padding-bottom: 24px; }
  .storefront-hero { background-position: center, center, 60% center; }
  .storefront-hero-copy h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .storefront-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 16px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .storefront-benefits h2 { grid-column: 1 / -1; margin: -5px 0 0; }
  .benefits-rule, .benefits-link { grid-column: 1 / -1; }
  .storefront-search button { min-width: 50px; padding: 0 12px; }
  .storefront-search button span { display: none; }
  .storefront-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .storefront-section-heading h2 { font-size: 1rem; }
  .storefront-text-link { font-size: .67rem; }
  .storefront-product-grid { grid-template-columns: 1fr; }
  .storefront-product-image { height: 190px; }
  .storefront-community-inner { align-items: flex-start; flex-direction: column; }
}

/* ── Login demo account ── */
.demo-account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  padding: 12px;
  border: 1px solid rgba(76, 216, 190, .25);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26, 76, 82, .45), rgba(15, 35, 52, .72));
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}
.demo-account-icon { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; color: #071b20; border-radius: 10px; background: linear-gradient(135deg, #65e3c4, #85c9ff); font-weight: 900; }
.demo-account-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }
.demo-account-copy strong { color: #e8fffa; font-size: .78rem; }
.demo-account-copy span { color: #a8c9cc; font-size: .68rem; line-height: 1.35; }
.demo-account-copy code { color: #70e4c4; font: 600 .68rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.demo-fill-btn { flex: 0 0 auto; padding: 8px 10px; color: #08171d; border: 0; border-radius: 8px; background: #76e5c6; cursor: pointer; font: inherit; font-size: .68rem; font-weight: 800; transition: transform .18s, filter .18s; }
.demo-fill-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.auth-status.is-success { color: #75e2c3; }
.auth-status.is-error { color: #ff9b91; }
@media (max-width: 520px) { .demo-account-card { align-items: flex-start; flex-wrap: wrap; } .demo-fill-btn { margin-left: 44px; } }

/* ── Guest pagination ── */
.guest-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 8px;
}
