:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --text-primary: #f0f0f5;
  --text-secondary: #9494a8;
  --text-muted: #6b6b80;
  --accent: #00e676;
  --accent-dim: rgba(0, 230, 118, 0.12);
  --accent-glow: rgba(0, 230, 118, 0.25);
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 230, 118, 0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 100px;
  overflow: hidden;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 36px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content;
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 230, 118, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 118, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  z-index: 1;
}

/* === PROBLEM === */
.problem {
  padding: 120px 40px;
  background: var(--bg-secondary);
}

.problem-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.problem h2, .features h2, .market h2, .closing h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.problem h2 { margin-bottom: 56px; max-width: 700px; }

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

.problem-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s ease;
}

.problem-card:hover { border-color: var(--border-accent); }

.problem-icon {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === FEATURES === */
.features {
  padding: 120px 40px;
  background: var(--bg-primary);
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features h2 { margin-bottom: 56px; }

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

.feature-card {
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.feature-large {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 230, 118, 0.04) 100%);
  border-color: var(--border-accent);
}

.feature-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === MARKET === */
.market {
  padding: 120px 40px;
  background: var(--bg-secondary);
}

.market-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.market-text h2 { margin-bottom: 32px; }

.market-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.market-highlights {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.highlight {
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.highlight-number {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.highlight-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === CLOSING === */
.closing {
  padding: 140px 40px;
  background: var(--bg-primary);
  text-align: center;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

.closing-inner {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.closing h2 {
  margin-bottom: 24px;
  line-height: 1.2;
}

.closing-sub {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === FOOTER === */
.site-footer {
  padding: 48px 40px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-links {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 100px 24px 80px; min-height: auto; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 17px; }
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    width: 100%;
    align-items: flex-start;
  }
  .stat-divider { width: 100%; height: 1px; }

  .problem, .features, .market, .closing { padding: 80px 24px; }

  .problem-cards { grid-template-columns: 1fr; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-large { grid-column: 1; }

  .market-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .closing h2 { font-size: 28px; }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .stat-number { font-size: 26px; }
  .problem h2, .features h2, .market h2, .closing h2 { font-size: 26px; }
  .feature-card h3 { font-size: 20px; }
  .highlight-number { font-size: 28px; }
}

/* ============================================================
   APP NAVIGATION (shared across all app pages)
   ============================================================ */
.app-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-brand:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-link:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-link--active { color: var(--accent) !important; }

/* ============================================================
   HERO CTAs (landing page)
   ============================================================ */
.hero { padding-top: 160px; }

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #000;
  background: var(--accent);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}

.btn-hero-primary:hover {
  background: #1aff8a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 14px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-hero-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: var(--bg-card);
}

.closing-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   APP FOOTER (marketplace pages)
   ============================================================ */
.app-footer {
  padding: 40px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

/* ============================================================
   BROWSE PAGE
   ============================================================ */
.browse-page { padding-top: 64px; min-height: 100vh; }

.browse-header {
  background: var(--bg-secondary);
  padding: 60px 40px 48px;
  border-bottom: 1px solid var(--border);
}

.browse-header-inner { max-width: 1200px; margin: 0 auto; }

.browse-header h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.browse-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.browse-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Filters sidebar ── */
.filters-sidebar {
  position: sticky;
  top: 80px;
}

.filters-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.filters-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filters-clear {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}

.filters-clear:hover { text-decoration: underline; }

.filter-group { margin-bottom: 24px; }

.filter-label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.filter-options { display: flex; flex-direction: column; gap: 8px; }

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.filter-option:hover { color: var(--text-primary); background: var(--bg-card-hover); }

.filter-option input[type="radio"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.option-icon { font-size: 15px; }

.price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-input {
  width: 0;
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.2s;
}

.price-input:focus { border-color: var(--border-accent); }
.price-sep { color: var(--text-muted); font-size: 13px; }

.filter-select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
}

.filter-select:focus { border-color: var(--border-accent); }

.btn-filter {
  width: 100%;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}

.btn-filter:hover { background: #1aff8a; }

/* ── Listings main area ── */
.listings-main {}

.search-bar-form { margin-bottom: 20px; }

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 6px 6px 16px;
  gap: 12px;
  transition: border-color 0.2s;
}

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

.search-icon { color: var(--text-muted); flex-shrink: 0; }

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
}

.search-input::placeholder { color: var(--text-muted); }

.search-btn {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.search-btn:hover { color: var(--text-primary); border-color: var(--border-accent); }

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.results-count {
  font-size: 13px;
  color: var(--text-muted);
}

.btn-list-equipment {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  transition: all 0.2s;
}

.btn-list-equipment:hover { background: rgba(0, 230, 118, 0.2); }

/* ── Listing cards ── */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.listing-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
}

.listing-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.listing-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.listing-category {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.listing-category--atm {
  color: #60b8ff;
  background: rgba(96, 184, 255, 0.12);
  border: 1px solid rgba(96, 184, 255, 0.25);
}

.listing-category--vending {
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
}

.listing-condition {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: capitalize;
  letter-spacing: 0.04em;
}

.listing-condition--new { color: #7dff7d; background: rgba(125, 255, 125, 0.1); border: 1px solid rgba(125, 255, 125, 0.2); }
.listing-condition--used { color: var(--text-muted); background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.listing-condition--refurbished { color: #ffb347; background: rgba(255, 179, 71, 0.1); border: 1px solid rgba(255, 179, 71, 0.2); }

.listing-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 10px;
}

.listing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.listing-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
}

.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.listing-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.listing-cta {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.listing-card:hover .listing-cta { color: var(--accent); }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.empty-icon { font-size: 48px; margin-bottom: 20px; }

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.empty-state p { font-size: 15px; color: var(--text-secondary); }
.empty-state a { color: var(--accent); text-decoration: none; }
.empty-state a:hover { text-decoration: underline; }

/* ============================================================
   DETAIL PAGE
   ============================================================ */
.detail-page { padding-top: 64px; min-height: 100vh; }

.detail-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.breadcrumb { margin-bottom: 28px; }

.breadcrumb-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

.detail-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.detail-price-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.detail-price {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.detail-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--text-muted);
}

.detail-section { margin-bottom: 36px; }

.detail-section-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.detail-description p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.specs-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-row {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.spec-row:last-child { border-bottom: none; }

.spec-key {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  width: 200px;
  flex-shrink: 0;
}

.spec-value {
  font-size: 14px;
  color: var(--text-primary);
}

.detail-meta-row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.detail-meta-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: 80px;
  flex-shrink: 0;
  padding-top: 2px;
}

.detail-meta-value {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── Detail sidebar ── */
.detail-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.success-banner {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--accent);
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-card-header { margin-bottom: 24px; }

.contact-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-subtitle { font-size: 13px; color: var(--text-muted); }

.seller-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

.seller-avatar {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 2px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.seller-details { display: flex; flex-direction: column; gap: 2px; }

.seller-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.seller-label { font-size: 12px; color: var(--text-muted); }

.contact-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-contact--primary {
  background: var(--accent);
  color: #000;
}

.btn-contact--primary:hover { background: #1aff8a; transform: translateY(-1px); }

.btn-contact--secondary {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-contact--secondary:hover { color: var(--text-primary); border-color: var(--border-accent); }

.contact-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.listing-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.summary-row:last-child { border-bottom: none; }

.summary-label { font-size: 13px; color: var(--text-muted); }

.summary-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.summary-value.accent { color: var(--accent); font-size: 18px; font-weight: 700; }
.capitalize { text-transform: capitalize; }

/* ============================================================
   SELL / SUBMIT FORM PAGE
   ============================================================ */
.sell-page { padding-top: 64px; min-height: 100vh; }

.sell-inner { max-width: 1100px; margin: 0 auto; padding: 60px 40px; }

.sell-header { margin-bottom: 48px; }

.sell-header h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.sell-sub { font-size: 16px; color: var(--text-secondary); margin-top: 8px; }

.sell-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ── Form ── */
.form-errors {
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #ff8080;
}

.form-errors ul { margin-top: 8px; padding-left: 16px; }
.form-errors li { margin-top: 4px; }

.sell-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.form-section {
  padding: 32px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-child { border-bottom: none; }

.form-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-section-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

.form-row { display: flex; gap: 16px; }
.form-row--2col > .form-group { flex: 1; min-width: 0; }

.form-group { margin-bottom: 20px; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.required { color: var(--accent); }

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.08);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); font-size: 14px; }

.form-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; display: block; }

.price-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.price-prefix {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 15px;
  z-index: 1;
  pointer-events: none;
}

.price-field { padding-left: 26px; }

.form-submit-row {
  padding: 32px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.btn-submit {
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}

.btn-submit:hover {
  background: #1aff8a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.submit-note { font-size: 13px; color: var(--text-muted); margin-top: 12px; }

/* ── Tips sidebar ── */
.sell-tips { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }

.tips-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.tips-card--accent {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 230, 118, 0.04) 100%);
}

.tips-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.tips-card--accent .tips-title { color: var(--accent); }

.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tips-list li {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tip-icon {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.tips-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
}

.error-inner { text-align: center; max-width: 480px; }

.error-code {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: var(--border);
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

.error-message {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE — MARKETPLACE PAGES
   ============================================================ */
@media (max-width: 900px) {
  .browse-layout { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .filters-sidebar { position: static; }
  .filters-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .filters-header { grid-column: 1 / -1; }
  .btn-filter { grid-column: 1 / -1; }

  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .detail-inner { padding: 24px; }

  .sell-layout { grid-template-columns: 1fr; }
  .sell-tips { position: static; }
  .sell-inner { padding: 32px 24px; }
}

@media (max-width: 600px) {
  .nav-inner { padding: 0 20px; }
  .browse-header { padding: 40px 24px 32px; }
  .listings-grid { grid-template-columns: 1fr; }
  .form-row--2col { flex-direction: column; gap: 0; }
  .filters-form { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .closing-ctas { flex-direction: column; align-items: center; }
}