/* ============================================================
   CYKELBØRSEN – style.css (ren version)
   ============================================================ */

:root {
  --sand:         #F5F0E8;
  --rust:         #C8502A;
  --rust-light:   #E8694A;
  --forest:       #2A3D2E;
  --forest-light: #3D5942;
  --cream:        #FEFAF3;
  --charcoal:     #1A1A18;
  --muted:        #8A8578;
  --border:       #DDD8CE;
}

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

/* Skjult tekst kun for skærmlæsere */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: var(--forest);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.18);
}
.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--sand);
  letter-spacing: -0.5px;
}
.logo span { color: var(--rust-light); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--sand);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s;
  cursor: pointer;
}
.nav-links a:hover { opacity: 1; }
.btn-sell {
  background: var(--rust);
  color: #fff !important;
  opacity: 1 !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.btn-sell:hover { background: var(--rust-light) !important; }

/* Nav profil */
.nav-profile { margin-left: 4px; display: flex; align-items: center; gap: 6px; }
.profile-avatar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--rust);
  border: none; cursor: pointer;
  font-size: 0.8rem; font-weight: 700;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.profile-avatar-btn:hover { background: var(--rust-light); }

/* Nav indbakke */
.nav-inbox-btn {
  position: relative;
  background: transparent; border: none;
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: opacity 0.2s;
  opacity: 0.75;
}
.nav-inbox-btn:hover { opacity: 1; }
.nav-inbox-badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--rust); color: #fff;
  border-radius: 100px;
  font-size: 0.6rem; font-weight: 700;
  min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--forest);
  line-height: 1;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: calc(100vh - 64px);
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest);
}
.hero-img-side {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-img-side::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(42,61,46,0.97) 0%,
    rgba(42,61,46,0.88) 35%,
    rgba(42,61,46,0.45) 62%,
    rgba(42,61,46,0.05) 100%
  );
}
.hero-text {
  position: relative;
  z-index: 1;
  max-width: 580px;
  padding: 80px 56px;
}
.hero-eyebrow {
  font-size: 0.75rem;
  color: var(--sand);
  opacity: 0.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 20px;
}
.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4.2rem; font-weight: 900;
  color: var(--sand); line-height: 1.05;
  margin-bottom: 20px;
}
.hero-text h1 em { font-style: italic; color: var(--rust-light); font-weight: 700; }
.hero-sub { color: var(--sand); opacity: 0.75; font-size: 1.05rem; line-height: 1.6; max-width: 360px; margin-bottom: 34px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-trust span {
  font-size: 0.78rem;
  color: var(--sand);
  opacity: 0.5;
  font-weight: 500;
}

/* Stats bar */
.hero-stats-bar {
  background: var(--forest-light);
  padding: 18px 56px;
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid rgba(245,240,232,0.08);
}
.stat-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 40px 0 0;
}
.stat-bar-item:first-child { padding-left: 0; }
.stat-bar-icon { font-size: 1.4rem; }
.stat-bar-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--sand);
  line-height: 1;
  margin-bottom: 2px;
}
.stat-bar-label { font-size: 0.75rem; color: var(--sand); opacity: 0.55; }
.stat-bar-divider {
  width: 1px;
  height: 32px;
  background: rgba(245,240,232,0.15);
  margin: 0 40px 0 0;
  flex-shrink: 0;
}
.btn-primary {
  background: var(--rust); color: #fff;
  padding: 14px 28px; border-radius: 4px;
  font-weight: 500; border: none; cursor: pointer;
  font-size: 0.95rem; transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--rust-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--sand);
  padding: 14px 28px; border-radius: 4px;
  font-weight: 500; border: 1.5px solid rgba(245,240,232,0.35);
  cursor: pointer; font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--sand); background: rgba(245,240,232,0.07); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CTA SEKTION ── */
.cta-hero {
  background: var(--sand);
  padding: 64px 48px;
  text-align: center;
}
.cta-container {
  max-width: 600px;
  margin: 0 auto;
}
.cta-headline {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin: 0 0 20px 0;
  text-wrap: balance;
}
.cta-subheading {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin: 0 0 32px 0;
}
.cta-button {
  background: var(--rust);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 16px 40px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.cta-button:hover {
  background: var(--rust-light);
  transform: translateY(-2px);
}

/* ── SØGEBAR ── */
.search-section { background: var(--sand); padding: 20px 48px; border-bottom: 1px solid var(--border); }
.search-bar { display: flex; gap: 12px; max-width: 900px; margin: 0 auto; align-items: center; }
.search-bar input, .search-bar select {
  padding: 13px 18px;
  border: 1.5px solid var(--border); border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-size: 0.92rem;
  background: var(--cream); color: var(--charcoal);
  outline: none; transition: border-color 0.2s;
}
.search-bar input:focus, .search-bar select:focus { border-color: var(--forest); }
.search-bar input { flex: 1; }
.search-bar select { min-width: 150px; cursor: pointer; }
.search-bar button {
  background: var(--forest); color: var(--sand);
  border: none; padding: 13px 26px; border-radius: 6px;
  cursor: pointer; font-size: 0.92rem; font-weight: 500;
  white-space: nowrap; transition: background 0.2s;
}
.search-bar button:hover { background: var(--forest-light); }

/* ── HURTIGFILTER ── */
.filters-row {
  padding: 14px 48px; background: var(--cream);
  border-bottom: 1px solid var(--border);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.filters-label { font-size: 0.82rem; color: var(--muted); font-weight: 500; margin-right: 4px; }
.pill {
  padding: 6px 16px; border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 0.82rem; cursor: pointer;
  background: var(--cream); color: var(--charcoal);
  font-weight: 500; transition: all 0.15s; user-select: none;
}
.pill:hover, .pill.active { background: var(--forest); color: var(--sand); border-color: var(--forest); }

/* ── MAIN LAYOUT ── */
.main {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 36px; max-width: 1300px;
  margin: 0 auto; padding: 36px 48px;
}

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-box {
  background: var(--sand); border-radius: 12px;
  padding: 22px; border: 1px solid var(--border);
}
.sidebar-box h3 {
  font-family: 'Fraunces', serif; font-size: 1rem;
  font-weight: 600; margin-bottom: 14px; color: var(--forest);
}
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-option {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 0.88rem; color: var(--charcoal); padding: 4px 0;
}
.filter-option input[type="checkbox"] { accent-color: var(--rust); width: 15px; height: 15px; cursor: pointer; }
.filter-count { color: var(--muted); font-size: 0.78rem; margin-left: auto; }

/* Pris filter */
.price-range { display: flex; flex-direction: column; gap: 12px; }
.price-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  transition: border-color 0.2s;
}
.price-inputs:focus-within { border-color: var(--forest); }
.price-inputs input {
  border: none; background: transparent;
  padding: 8px 4px; font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  outline: none; color: var(--charcoal); width: 100%;
}
.price-inputs input::placeholder { color: var(--muted); }
.price-inputs span { color: var(--muted); font-size: 0.9rem; text-align: center; padding: 0 4px; }
.btn-apply {
  background: var(--forest); color: var(--sand);
  border: none; padding: 10px; border-radius: 8px;
  cursor: pointer; font-size: 0.85rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s; width: 100%;
}
.btn-apply:hover { background: var(--forest-light); }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.3px;
}
.badge-dealer  { background: #E8F0E8; color: var(--forest); }
.badge-private { background: #FBF0E8; color: #8A4A20; }

/* ── LISTINGS HEADER ── */
.listings-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.listings-header h2 { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 600; }
.listings-header span { color: var(--muted); font-size: 0.88rem; }
.sort-select {
  padding: 8px 14px; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: 0.85rem;
  background: var(--cream); font-family: 'DM Sans', sans-serif;
  cursor: pointer; color: var(--charcoal); outline: none;
}

/* ── ANNONCEKORT ── */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.bike-card {
  background: var(--cream); border-radius: 14px;
  border: 1px solid var(--border); overflow: hidden;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.5s ease both;
}
.bike-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.10); }
.bike-card-img {
  height: 180px; background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem; position: relative; overflow: hidden;
}
.bike-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.07));
}
.condition-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--cream); border-radius: 4px;
  padding: 3px 9px; font-size: 0.72rem; font-weight: 500;
  color: var(--charcoal); z-index: 1;
}
.warranty-card-badge {
  position: absolute; bottom: 10px; left: 12px;
  background: #e8f5e9; color: #2e7d32;
  border-radius: 4px; padding: 3px 8px;
  font-size: 0.7rem; font-weight: 600; z-index: 1;
}
.save-btn {
  position: absolute; top: 10px; right: 12px;
  background: rgba(255,255,255,0.85); border: none;
  border-radius: 50%; width: 32px; height: 32px;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 1; transition: background 0.15s;
}
.save-btn:hover { background: #fff; }
.bike-card-body { padding: 16px 18px 18px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.bike-title { font-family: 'Fraunces', serif; font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.bike-price { font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 900; color: var(--rust); white-space: nowrap; margin-left: 10px; }
.bike-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; }
.bike-meta span::after { content: ' · '; }
.bike-meta span:last-child::after { content: ''; }
.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 12px; }
.seller-info { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.seller-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--sand); font-weight: 600;
}
.seller-name { color: var(--charcoal); font-weight: 500; }
.card-location { font-size: 0.78rem; color: var(--muted); }

/* ── FORHANDLER SEKTION ── */
.dealer-strip { background: var(--forest); padding: 48px; }
.dealer-strip-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 28px;
  gap: 20px; flex-wrap: wrap;
}
.dealer-strip h2 { font-family: 'Fraunces', serif; font-size: 2rem; color: var(--sand); font-weight: 700; margin-bottom: 8px; }
.dealer-strip p { color: var(--sand); opacity: 0.65; max-width: 540px; font-size: 0.95rem; line-height: 1.6; margin-bottom: 0; }
.btn-become-dealer {
  background: var(--rust); color: #fff;
  border: none; padding: 13px 24px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; white-space: nowrap;
  transition: background 0.2s; flex-shrink: 0;
}
.btn-become-dealer:hover { background: var(--rust-light); }
.dealer-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.dealer-card {
  background: rgba(245,240,232,0.08);
  border: 1px solid rgba(245,240,232,0.14);
  border-radius: 12px; padding: 20px;
  transition: background 0.2s;
}
.dealer-card:hover { background: rgba(245,240,232,0.13); }
.dealer-logo { font-size: 2rem; margin-bottom: 10px; }
.dealer-logo-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--rust); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 700;
  margin-bottom: 12px;
}
.dealer-name { font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--sand); font-weight: 600; margin-bottom: 4px; }
.dealer-verified-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: #4caf50; color: #fff;
  font-size: 0.6rem; font-weight: 700; font-style: normal;
  vertical-align: middle; margin-left: 4px;
}
.dealer-city { font-size: 0.8rem; color: var(--sand); opacity: 0.55; }
.dealer-count { font-size: 0.78rem; color: var(--rust-light); margin-top: 8px; font-weight: 500; }

/* ── Bruger profil modal ── */
.user-profile-modal-inner {
  max-width: 860px; width: 100%;
  max-height: 92vh; overflow-y: auto;
  position: relative; padding: 40px 36px 36px;
}
.up-header { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.up-avatar {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  background: var(--rust); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700; overflow: hidden;
}
.up-name { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--charcoal); margin: 0 0 4px; }
.up-city { color: var(--muted); font-size: 0.88rem; margin-bottom: 4px; }
.up-last-seen { color: var(--muted); font-size: 0.82rem; margin-bottom: 8px; opacity: 0.85; }
.up-bio { color: var(--charcoal); font-size: 0.88rem; line-height: 1.55; margin: 10px 0 0; padding: 10px 14px; background: var(--sand); border-radius: 8px; border: 1px solid var(--border); white-space: pre-wrap; }
.up-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.up-member-since { color: var(--muted); font-size: 0.78rem; }

/* Achievements */
.up-achievements { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.achievement-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
  background: var(--sand); border: 1px solid var(--border);
  color: var(--charcoal); cursor: default;
}

/* Favorit-tæller badge */
.fav-count-badge {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(0,0,0,0.65); color: #fff;
  font-size: 0.72rem; font-weight: 600;
  padding: 2px 8px; border-radius: 12px;
  pointer-events: none;
}

/* Prisforslag */
.price-suggestion {
  margin-top: 6px; padding: 8px 12px;
  background: #e8f5e9; border-radius: 8px;
  font-size: 0.82rem; color: #2e7d32; line-height: 1.5;
}

/* Handelshistorik */
.trade-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 10px;
  border: 1px solid var(--border); margin-bottom: 10px;
  background: var(--sand);
}
.trade-img {
  width: 52px; height: 52px; border-radius: 8px;
  overflow: hidden; background: #eee; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.trade-img img { width: 100%; height: 100%; object-fit: cover; }
.trade-info { flex: 1; min-width: 0; }
.trade-title { font-weight: 600; font-size: 0.9rem; color: var(--charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trade-meta { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.trade-date { font-size: 0.75rem; color: var(--muted); }
.trade-price { font-weight: 700; font-size: 0.9rem; color: var(--charcoal); white-space: nowrap; }
.trade-status { font-size: 0.75rem; color: #2e7d32; font-weight: 600; white-space: nowrap; }

.up-stats {
  display: flex; gap: 0; border: 1px solid rgba(245,240,232,0.12);
  border-radius: 10px; overflow: hidden; margin-bottom: 28px;
}
.up-stat {
  flex: 1; padding: 16px; text-align: center;
  border-right: 1px solid rgba(245,240,232,0.12);
}
.up-stat:last-child { border-right: none; }
.up-stat-val { font-size: 1.4rem; font-weight: 700; color: var(--charcoal); font-family: 'Fraunces', serif; }
.up-stat-label { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

.up-divider { border: none; border-top: 1px solid rgba(245,240,232,0.12); margin: 24px 0; }
.up-section-title { font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--charcoal); margin: 0 0 16px; }
.up-empty { color: var(--muted); font-size: 0.88rem; padding: 8px 0; }

/* Aktive cykler grid */
.up-bikes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
  margin-bottom: 4px;
}
.up-bike-card {
  background: rgba(245,240,232,0.05); border: 1px solid rgba(245,240,232,0.1);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.up-bike-card:hover { transform: translateY(-2px); border-color: rgba(245,240,232,0.25); }
.up-bike-img {
  height: 130px; background: rgba(245,240,232,0.08);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.up-bike-info { padding: 10px 12px 12px; }
.up-bike-title { font-weight: 600; font-size: 0.88rem; color: var(--charcoal); margin-bottom: 2px; }
.up-bike-price { color: var(--rust); font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.up-bike-meta { font-size: 0.75rem; color: var(--muted); }

/* Solgte cykler liste */
.up-sold-list { display: flex; flex-direction: column; gap: 8px; }
.up-sold-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 8px;
  background: rgba(245,240,232,0.04); border: 1px solid rgba(245,240,232,0.08);
  gap: 12px;
}
.up-sold-info { display: flex; flex-direction: column; gap: 2px; }
.up-sold-title { font-size: 0.88rem; font-weight: 600; color: var(--charcoal); }
.up-sold-meta  { font-size: 0.75rem; color: var(--muted); }
.up-sold-price { font-size: 0.85rem; color: var(--muted); text-align: right; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.sold-chip {
  background: rgba(200,200,200,0.15); color: var(--muted);
  font-size: 0.7rem; padding: 2px 8px; border-radius: 20px; font-weight: 600;
}

/* Anmeldelser */
.up-reviews-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.up-review-card {
  padding: 14px 16px; border-radius: 10px;
  background: rgba(245,240,232,0.05); border: 1px solid rgba(245,240,232,0.1);
}
.up-review-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.up-review-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--forest); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
}
.up-review-name { font-size: 0.88rem; font-weight: 600; color: var(--charcoal); }
.up-review-date { font-size: 0.75rem; color: var(--muted); margin-left: auto; white-space: nowrap; }
.up-review-comment { font-size: 0.85rem; color: var(--charcoal); opacity: 0.85; line-height: 1.55; margin: 0; }

/* Stjerner */
.star, .up-review-stars .star { color: rgba(245,240,232,0.2); font-size: 1rem; }
.star.filled { color: #f5a623; }
.up-review-stars { display: flex; gap: 2px; margin-top: 2px; }

/* Stjerne-vælger */
.up-write-review { margin-top: 8px; }
.up-star-picker { display: flex; gap: 6px; margin-bottom: 12px; }
.star-pick { font-size: 1.8rem; color: rgba(245,240,232,0.2); cursor: pointer; transition: color 0.1s; }
.star-pick.active { color: #f5a623; }
.up-review-textarea {
  width: 100%; min-height: 80px; resize: vertical;
  background: rgba(245,240,232,0.07); border: 1px solid rgba(245,240,232,0.2);
  border-radius: 8px; padding: 10px 14px; color: var(--charcoal);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  margin-bottom: 12px; box-sizing: border-box;
}
.up-review-textarea:focus { outline: none; border-color: var(--rust); }
.btn-submit-review {
  background: var(--rust); color: #fff; border: none;
  padding: 11px 28px; border-radius: 8px; font-size: 0.88rem;
  font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: opacity 0.15s;
}
.btn-submit-review:hover { opacity: 0.88; }

/* ── Profil tabs ── */
.up-tabs {
  display: flex; gap: 0; border-bottom: 2px solid rgba(245,240,232,0.12);
  margin-bottom: 20px;
}
.up-tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  margin-bottom: -2px; padding: 10px 18px; font-size: 0.88rem; font-weight: 600;
  color: var(--muted); cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: color 0.15s, border-color 0.15s;
}
.up-tab:hover { color: var(--charcoal); }
.up-tab.active { color: var(--rust); border-bottom-color: var(--rust); }
.up-tab-panel { padding-bottom: 8px; }

/* Klikbare stat-blokke */
.up-stat-clickable { cursor: pointer; transition: background 0.15s; }
.up-stat-clickable:hover { background: rgba(245,240,232,0.06); }

/* ── Kontakt formular på profil ── */
.up-contact-section { margin-top: 14px; }
.up-contact-btn {
  background: var(--rust); border: none;
  color: #fff; padding: 8px 18px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: opacity 0.15s;
}
.up-contact-btn:hover { opacity: 0.88; }
.up-contact-form { margin-top: 12px; }
.up-contact-bike-select {
  width: 100%; padding: 8px 12px; border-radius: 8px; margin-bottom: 10px;
  background: rgba(245,240,232,0.07); border: 1px solid rgba(245,240,232,0.2);
  color: var(--charcoal); font-family: 'DM Sans', sans-serif; font-size: 0.85rem;
}
.up-contact-send-btn {
  background: var(--rust); color: #fff; border: none;
  border-radius: 8px; padding: 9px 20px; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: opacity 0.15s;
}
.up-contact-send-btn:hover { opacity: 0.88; }
.up-contact-send-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Klikbar sælger-boks i cykelmodal */
.bike-detail-seller:hover { background: rgba(245,240,232,0.07); }

@media (max-width: 600px) {
  .user-profile-modal-inner { padding: 24px 16px 20px; }
  .up-header { gap: 14px; }
  .up-avatar { width: 58px; height: 58px; font-size: 1.3rem; }
  .up-bikes-grid { grid-template-columns: 1fr 1fr; }
  .up-sold-row { flex-direction: column; align-items: flex-start; }
}

/* ── Forhandler profil modal ── */
.dealer-profile-modal-inner {
  max-width: 900px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative; padding: 36px 32px 32px;
}
.dealer-profile-hero {
  display: flex; align-items: center; gap: 24px;
  padding-bottom: 4px;
}
.dealer-profile-logo {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--rust); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.dealer-profile-name {
  font-family: 'Fraunces', serif; font-size: 1.5rem;
  color: var(--charcoal); margin: 0 0 4px;
}
.dealer-profile-city { color: var(--muted); font-size: 0.9rem; margin-bottom: 4px; }
.dealer-profile-count { color: var(--rust); font-size: 0.88rem; font-weight: 600; }
.dealer-profile-divider {
  border: none; border-top: 1px solid rgba(245,240,232,0.12);
  margin: 20px 0 16px;
}
.dealer-profile-section-title {
  font-family: 'Fraunces', serif; font-size: 1.1rem;
  color: var(--charcoal); margin: 0 0 20px;
}
.dealer-profile-bikes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
@media (max-width: 600px) {
  .dealer-profile-modal-inner { padding: 24px 16px 20px; }
  .dealer-profile-hero { gap: 16px; }
  .dealer-profile-logo { width: 54px; height: 54px; font-size: 1.2rem; }
  .dealer-profile-bikes-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* Fremhævede forhandler-kort (top 3) */
.dealer-card--featured {
  background: rgba(200,130,42,0.13);
  border: 1.5px solid rgba(200,130,42,0.45);
  position: relative;
}
.dealer-card--featured:hover { background: rgba(200,130,42,0.2); }
/* "Se resten" knap under top-forhandlere */
.dealer-see-all-wrap {
  display: flex; justify-content: center;
  margin-top: 20px;
}
.dealer-rest-grid { flex-wrap: wrap; }

.btn-see-all-dealers {
  background: transparent; color: var(--sand);
  border: 1.5px solid rgba(245,240,232,0.3);
  padding: 11px 28px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.btn-see-all-dealers:hover {
  background: rgba(245,240,232,0.08);
  border-color: rgba(245,240,232,0.6);
}

/* Tom forhandler state */
.dealer-empty-state { grid-template-columns: 1fr !important; }
.dealer-empty-card {
  background: rgba(245,240,232,0.06);
  border: 2px dashed rgba(245,240,232,0.2);
  border-radius: 14px; padding: 48px 32px;
  text-align: center; color: var(--sand);
}
.dealer-empty-card h3 { font-family: 'Fraunces', serif; font-size: 1.3rem; margin-bottom: 10px; }
.dealer-empty-card p { opacity: 0.6; font-size: 0.9rem; max-width: 360px; margin: 0 auto 20px; }
.btn-become-dealer-small {
  background: transparent; color: var(--rust-light);
  border: 1.5px solid var(--rust-light);
  padding: 10px 20px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all 0.2s;
}
.btn-become-dealer-small:hover { background: var(--rust); border-color: var(--rust); color: #fff; }

/* Forhandler perks */
.dealer-perks { display: flex; flex-direction: column; gap: 10px; background: var(--sand); border-radius: 10px; padding: 18px 20px; border: 1px solid var(--border); }
.dealer-perk { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 500; }

/* ── GRATIS PRØVEPERIODE BANNER ── */
.dealer-trial-banner {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 1.5px solid #a5d6a7;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.86rem;
  color: #2e7d32;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ── PRISPLAN VÆLGER ── */
.dealer-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.dealer-plan-btn {
  position: relative;
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.dealer-plan-btn:hover { border-color: var(--rust); }
.dealer-plan-btn.selected {
  border-color: var(--rust);
  background: #fff8f5;
  box-shadow: 0 0 0 3px rgba(200,80,42,0.12);
}
.plan-name { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.plan-price { font-size: 1.4rem; font-weight: 700; color: var(--charcoal); font-family: 'Fraunces', serif; line-height: 1.1; }
.plan-unit { font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.plan-note { font-size: 0.75rem; color: var(--muted); margin-top: 5px; }
.plan-badge {
  position: absolute;
  top: -1px; right: -1px;
  background: var(--forest);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 0 10px 0 8px;
  letter-spacing: 0.03em;
}

/* ── ABONNEMENTSBOKS I PROFIL ── */
.subscription-box {
  background: var(--sand);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.subscription-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
}
.subscription-title { font-weight: 600; font-size: 0.92rem; margin-bottom: 3px; }
.subscription-sub   { font-size: 0.78rem; color: var(--muted); }
.sub-status-active   { background: #e8f5e9; color: #2e7d32; font-size: 0.76rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.sub-status-trial    { background: #e3f2fd; color: #1565c0; font-size: 0.76rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.sub-status-past-due { background: #fff3e0; color: #e65100; font-size: 0.76rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.sub-status-canceled { background: #fce4ec; color: #c62828; font-size: 0.76rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.btn-manage-subscription {
  width: 100%;
  padding: 10px 16px;
  background: var(--charcoal);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.btn-manage-subscription:hover { background: var(--forest); }

/* ── FOOTER ── */
footer { background: var(--charcoal); padding: 40px 48px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .logo { font-size: 1.3rem; }
footer p { color: var(--muted); font-size: 0.82rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; cursor: pointer; }
.footer-links a:hover { color: var(--sand); }

/* ── MODALER ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(26,26,24,0.55); z-index: 1500;
  align-items: center; justify-content: center;
  padding: 24px; backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; }

/* Profil-modaler ligger over standard-modaler */
#user-profile-modal,
#dealer-profile-modal { z-index: 2000; }

/* Cykel-modal ligger over profil-modaler (kan åbnes inde fra en profil) */
#bike-modal,
#map-bike-modal { z-index: 2500; }

/* Login-modal skal ligge over cykel-modalen */
#login-modal { z-index: 3000; }

/* Del/share-modal skal ligge over cykel-modalen */
#share-modal { z-index: 3000; }

/* Rapport-modal skal ligge over cykel-modalen */
#report-modal { z-index: 3000; }
.modal {
  background: var(--cream); border-radius: 16px;
  max-width: 600px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  padding: 26px 32px 20px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; background: var(--cream); z-index: 1;
}
.modal-header h2 { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; }
.modal-close {
  background: var(--sand); border: none; width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal); transition: background 0.15s;
}
.modal-close:hover { background: var(--border); }
.modal-body { padding: 28px 32px 32px; }
.modal-wide { max-width: 780px; }
.modal-seller-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; font-weight: 500; }

/* Rating modal */
.rate-modal { max-width: 480px; }
.rate-modal-section {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--sand);
  border-radius: 12px;
}
.rate-modal-person {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--charcoal);
}
.rate-modal-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}
.rate-stars {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.rate-stars .star-pick {
  font-size: 2rem;
}
.rate-comment {
  width: 100%;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  resize: vertical;
  background: #fff;
}
.rate-comment:focus { outline: none; border-color: var(--rust); }

/* Seller toggle */
.seller-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.seller-type-btn {
  padding: 16px; border-radius: 10px;
  border: 2px solid var(--border); background: var(--sand);
  cursor: pointer; text-align: center; transition: all 0.2s;
}
.seller-type-btn.selected { border-color: var(--forest); background: var(--forest); color: var(--sand); }
.seller-type-btn .type-icon { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.seller-type-btn .type-label { font-weight: 600; font-size: 0.9rem; display: block; }
.seller-type-btn .type-sub { font-size: 0.78rem; opacity: 0.7; }
.dealer-fields-hidden { display: none; margin-bottom: 16px; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--charcoal); letter-spacing: 0.2px; }
.form-group input, .form-group select, .form-group textarea {
  padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; background: var(--cream);
  color: var(--charcoal); outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--forest); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-submit {
  background: var(--rust); color: #fff; border: none;
  padding: 15px; border-radius: 8px; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; width: 100%; margin-top: 20px;
  font-family: 'DM Sans', sans-serif; transition: background 0.2s, transform 0.15s;
}
.form-submit:hover { background: var(--rust-light); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
.btn-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
  vertical-align: middle; margin-right: 7px;
}

/* Billede upload */
.img-upload {
  border: 2px dashed var(--border); border-radius: 10px;
  padding: 28px; text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s; background: var(--sand);
}
.img-upload:hover { border-color: var(--forest); background: #f0ece3; }
.upload-icon { font-size: 2rem; margin-bottom: 8px; }
.img-upload p { font-size: 0.85rem; color: var(--muted); margin: 0; }
.img-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.img-preview-item { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 2px solid var(--border); }
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.img-preview-item.primary { border-color: var(--forest); }
.img-preview-item .primary-badge { position: absolute; bottom: 4px; left: 4px; background: var(--forest); color: var(--sand); font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.img-preview-item .remove-img { position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; font-size: 0.75rem; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; pointer-events: auto; }
.img-preview-item .set-primary { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 4px; font-size: 0.65rem; padding: 2px 5px; cursor: pointer; z-index: 2; pointer-events: auto; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--forest); color: var(--sand);
  padding: 14px 22px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 500; z-index: 10000;
  transform: translateY(80px); opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── AI SUPPORT CHAT WIDGET ── */
#chat-widget { position: fixed; bottom: 28px; right: 28px; z-index: 9999; pointer-events: none; }
#chat-toggle { pointer-events: auto; }

#chat-toggle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--rust); color: #fff; border: 3px solid #fff; cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
#chat-toggle:hover { background: var(--rust-light); transform: scale(1.08); }
#chat-toggle svg { width: 24px; height: 24px; }

#chat-window {
  position: absolute; bottom: 68px; right: 0;
  width: 340px; max-height: 480px;
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(0.85) translateY(20px); opacity: 0; pointer-events: none;
  transform-origin: bottom right;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s;
}
#chat-window.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }

#chat-header {
  background: var(--forest); color: var(--sand);
  padding: 14px 18px; display: flex; flex-direction: column; gap: 2px;
  font-weight: 600; font-size: 0.95rem; flex-shrink: 0;
}
#chat-subtitle { font-size: 0.72rem; font-weight: 400; opacity: 0.75; }

#chat-messages {
  flex: 1; overflow-y: auto; padding: 14px 14px 6px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
  background: var(--cream);
}
.chat-msg { display: flex; }
.chat-msg--bot { justify-content: flex-start; }
.chat-msg--user { justify-content: flex-end; }
.chat-bubble {
  max-width: 82%; padding: 9px 13px; border-radius: 14px;
  font-size: 0.85rem; line-height: 1.5; white-space: pre-wrap;
}
.chat-msg--bot  .chat-bubble { background: #fff; border: 1px solid var(--border); color: var(--charcoal); border-bottom-left-radius: 4px; }
.chat-msg--user .chat-bubble { background: var(--rust); color: #fff; border-bottom-right-radius: 4px; }
.chat-typing .chat-bubble { color: var(--muted); font-style: italic; }

#chat-input-area {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--border); flex-shrink: 0; align-items: flex-end;
  background: var(--cream);
}
#chat-input {
  flex: 1; resize: none; border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 11px; font-size: 0.85rem; font-family: 'DM Sans', sans-serif;
  background: #fff; color: var(--charcoal); line-height: 1.4; max-height: 100px;
  overflow-y: auto;
}
#chat-input:focus { outline: none; border-color: var(--forest); }
#chat-send-btn {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
  background: var(--rust); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#chat-send-btn:hover { background: var(--rust-light); }
#chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
#chat-send-btn svg { width: 16px; height: 16px; }

@media (max-width: 480px) {
  #chat-widget { bottom: 16px; right: 16px; }
  #chat-window { width: calc(100vw - 32px); }
}

/* ── PROFIL ── */
.profile-header { display: flex; align-items: center; gap: 18px; padding: 0 0 22px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.profile-avatar-wrap { position: relative; width: 64px; height: 64px; flex-shrink: 0; cursor: pointer; }
.profile-avatar-wrap:hover .avatar-upload-overlay { opacity: 1; }
.avatar-upload-overlay { position: absolute; inset: 0; border-radius: 50%; background: rgba(0,0,0,0.45); color: #fff; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.profile-big-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--forest); color: var(--sand); font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.profile-name { font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 3px; }
.profile-email { font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; }
.profile-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.profile-tab { background: none; border: none; padding: 10px 14px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.2s, border-color 0.2s; flex-shrink: 0; }
.profile-tab:hover { color: var(--charcoal); }
.profile-tab.active { color: var(--forest); border-bottom-color: var(--forest); }
.btn-logout { background: transparent; color: var(--rust); border: 1.5px solid var(--rust); padding: 12px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; width: 100%; margin-top: 10px; font-family: 'DM Sans', sans-serif; transition: background 0.2s, color 0.2s; }
.btn-logout:hover { background: var(--rust); color: #fff; }
.danger-zone { margin-top: 28px; padding-top: 20px; border-top: 1.5px dashed #ddd; }
.danger-zone-label { font-size: 0.72rem; font-weight: 700; color: #bbb; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.btn-delete-account { background: transparent; color: #bbb; border: 1.5px solid #e8e8e8; padding: 10px; border-radius: 8px; font-size: 0.82rem; font-weight: 500; cursor: pointer; width: 100%; font-family: 'DM Sans', sans-serif; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-delete-account:hover { background: #fee; color: #c0392b; border-color: #c0392b; }
.btn-delete-account:disabled { opacity: 0.6; cursor: not-allowed; }

/* Mine annoncer */
.my-listings-grid { display: flex; flex-direction: column; gap: 12px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.my-listing-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--sand); border-radius: 10px; border: 1px solid var(--border); gap: 12px; }
.my-listing-info { flex: 1; }
.my-listing-title { font-family: 'Fraunces', serif; font-size: 0.95rem; font-weight: 600; margin-bottom: 3px; }
.my-listing-meta { font-size: 0.78rem; color: var(--muted); }
.my-listing-views { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }
.my-listing-price { font-family: 'Fraunces', serif; font-weight: 900; color: var(--rust); font-size: 1rem; white-space: nowrap; }
.btn-delete { background: none; border: 1.5px solid var(--border); border-radius: 6px; padding: 6px 12px; font-size: 0.78rem; color: var(--muted); cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.btn-delete:hover { border-color: var(--rust); color: var(--rust); }
.btn-edit { background: var(--forest); color: var(--sand); border: none; border-radius: 6px; padding: 6px 12px; font-size: 0.78rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.15s; white-space: nowrap; }
.btn-edit:hover { background: var(--forest-light); }
.toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.88rem; font-weight: 500; }
.toggle-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--forest); cursor: pointer; }
#edit-seller-type { cursor: pointer; }

/* ── ANNONCE DETALJE ── */
.bike-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.bike-detail-img { background: var(--sand); border-radius: 12px; height: 280px; display: flex; align-items: center; justify-content: center; font-size: 6rem; overflow: hidden; }
.bike-detail-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.bike-detail-info { display: flex; flex-direction: column; gap: 14px; }
.bike-detail-price { font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 900; color: var(--rust); }
.bike-detail-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-tag { background: var(--sand); border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px; font-size: 0.8rem; font-weight: 500; color: var(--charcoal); }
.bike-detail-seller { display: flex; align-items: center; gap: 12px; background: var(--sand); border-radius: 10px; padding: 14px; border: 1px solid var(--border); }
.seller-avatar-large { width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: var(--sand); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 700; flex-shrink: 0; }
.seller-detail-name { font-weight: 600; font-size: 0.95rem; }
.seller-detail-city { font-size: 0.8rem; color: var(--muted); }
.bike-detail-description { background: var(--sand); border-radius: 10px; padding: 16px; font-size: 0.88rem; line-height: 1.6; color: var(--charcoal); border: 1px solid var(--border); }

/* ── Sælgerens andre / Lignende annoncer ── */
.related-section-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: var(--charcoal);
  margin: 0 0 14px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
@media (max-width: 700px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.related-card {
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--sand);
  transition: transform 0.15s, box-shadow 0.15s;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.related-card-img {
  width: 100%;
  aspect-ratio: 1;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-card-info {
  padding: 8px 10px 10px;
}
.related-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.related-card-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rust);
  margin-top: 2px;
}
.related-card-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Billedgalleri ── */
.bike-gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-main { position: relative; background: var(--sand); border-radius: 12px; height: 260px; overflow: hidden; }
.gallery-main-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(18px) brightness(0.85); transform: scale(1.1); z-index: 0; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; transition: opacity 0.15s ease; position: relative; z-index: 1; }
.gallery-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.85); border: none; border-radius: 50%; width: 36px; height: 36px; font-size: 1.3rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: background 0.15s; z-index: 2; }
.gallery-nav-btn:hover { background: white; }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-counter { position: absolute; bottom: 10px; right: 12px; background: rgba(0,0,0,0.5); color: white; font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border-radius: 20px; z-index: 2; font-family: 'DM Sans', sans-serif; }
.gallery-thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scroll-snap-type: x mandatory; }
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.gallery-thumb { flex-shrink: 0; width: 48px; height: 48px; border-radius: 7px; overflow: hidden; border: 2.5px solid transparent; cursor: pointer; padding: 0; background: none; transition: border-color 0.15s; scroll-snap-align: start; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--rust); }
.gallery-thumb:hover:not(.active) { border-color: var(--muted); }
.action-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.btn-contact { background: var(--forest); color: var(--sand); border: none; padding: 13px; border-radius: 8px; font-size: 0.92rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; text-align: center; }
.btn-contact:hover { background: var(--forest-light); }
.btn-bid { background: var(--rust); color: #fff; border: none; padding: 13px; border-radius: 8px; font-size: 0.92rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; text-align: center; }
.btn-bid:hover { background: var(--rust-light); }
.btn-save-listing { background: transparent; color: var(--charcoal); border: 1.5px solid var(--border); padding: 11px; border-radius: 8px; font-size: 0.88rem; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s; text-align: center; }
.btn-save-listing:hover { border-color: var(--rust); color: var(--rust); }
.btn-report-listing { background: transparent; color: var(--muted); border: 1.5px solid var(--border); padding: 11px; border-radius: 8px; font-size: 0.85rem; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.2s; text-align: center; }
.btn-report-listing:hover { border-color: #c0392b; color: #c0392b; }
.message-box { display: none; margin-top: 12px; }
.message-box textarea { width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; resize: vertical; min-height: 90px; outline: none; background: var(--cream); transition: border-color 0.2s; }
.message-box textarea:focus { border-color: var(--forest); }
.message-box button { margin-top: 8px; background: var(--forest); color: var(--sand); border: none; padding: 11px 20px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; width: 100%; }
.message-box button:hover { background: var(--forest-light); }
.bid-box { display: none; margin-top: 12px; }
.bid-box-inner { display: flex; gap: 8px; align-items: center; }
.bid-box input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; outline: none; background: var(--cream); transition: border-color 0.2s; }
.bid-box input:focus { border-color: var(--rust); }
.bid-box button { background: var(--rust); color: #fff; border: none; padding: 11px 18px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; transition: background 0.2s; }
.bid-box button:hover { background: var(--rust-light); }

/* ── INDBAKKE SIDE ── */
.inbox-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.inbox-page-top {
  padding: 32px 0 28px;
}
.inbox-page-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 12px 0 4px;
}
.inbox-page-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}
.inbox-page-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 520px;
}
.inbox-page-threads {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  max-height: 600px;
}
.inbox-page-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: relative;
}
.inbox-page-row:hover { background: var(--sand); }
.inbox-page-row.active { background: var(--sand); border-left: 3px solid var(--forest); }
.inbox-page-row.unread { background: rgba(200,80,42,0.03); }
.inbox-page-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.inbox-page-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inbox-page-row-body { flex: 1; min-width: 0; }
.inbox-page-row-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.inbox-page-name { font-weight: 600; font-size: 0.9rem; color: var(--charcoal); }
.inbox-page-time { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.inbox-page-bike {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.inbox-page-bike-thumb {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
}
.inbox-page-preview {
  font-size: 0.82rem;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.7;
}
.inbox-page-row.unread .inbox-page-name { font-weight: 700; }
.inbox-page-row.unread .inbox-page-preview { opacity: 1; font-weight: 500; }
.inbox-page-unread-dot {
  background: var(--rust);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}
.inbox-bid-tag {
  background: #FBF0E8;
  color: #8A4A20;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Inbox chat panel */
.inbox-page-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 600px;
}
.inbox-chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--sand);
}
.inbox-chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.inbox-chat-back {
  display: none;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  margin-right: 4px;
  align-items: center;
}
.inbox-chat-header-info strong { font-size: 0.95rem; }
.inbox-chat-bike-link {
  font-size: 0.8rem;
  color: var(--forest);
  cursor: pointer;
  padding: 3px 10px;
  background: rgba(42,61,46,0.08);
  border-radius: 100px;
  transition: background 0.15s;
}
.inbox-chat-bike-link:hover { background: rgba(42,61,46,0.15); }
.inbox-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inbox-chat-reply {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: #fff;
  align-items: flex-end;
}
.inbox-chat-reply textarea {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  resize: none;
  outline: none;
  background: var(--cream);
  transition: border-color 0.2s;
  min-height: 44px;
  max-height: 120px;
}
.inbox-chat-reply textarea:focus { border-color: var(--forest); }
.inbox-chat-reply button {
  background: var(--forest);
  color: var(--sand);
  border: none;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
  white-space: nowrap;
}
.inbox-chat-reply button:hover { background: var(--forest-light); }

/* Inbox empty states */
.inbox-page-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  color: var(--muted);
  text-align: center;
}
.inbox-page-empty-state p { font-size: 0.9rem; margin-top: 8px; }
.inbox-empty-icon { font-size: 2.5rem; margin-bottom: 4px; }
.inbox-no-messages {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}
.inbox-no-messages h3 { color: var(--charcoal); margin: 12px 0 6px; font-size: 1.1rem; }
.inbox-no-messages p { color: var(--muted); font-size: 0.9rem; max-width: 300px; }

/* Inbox skeletons */
.inbox-page-loading { padding: 8px 0; }
.inbox-skeleton {
  height: 72px;
  background: linear-gradient(90deg, var(--sand) 25%, rgba(0,0,0,0.04) 50%, var(--sand) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Mobil: stacked layout */
@media (max-width: 768px) {
  .inbox-page-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .inbox-page-threads {
    border-right: none;
    max-height: none;
  }
  .inbox-page-empty-state { display: none; }
  .inbox-page-chat {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #fff;
    max-height: none;
    border-radius: 0;
  }
  .inbox-chat-header {
    padding: 14px 16px;
  }
  .inbox-chat-back { display: flex !important; }
  .inbox-chat-reply { padding: 12px 16px; }
  .inbox-chat-messages { padding: 16px; }
  .inbox-page { padding: 0 16px 40px; }
  .inbox-page-title { font-size: 1.5rem; }
}

/* ── INDBAKKE (modal legacy) ── */
.inbox-badge { background: var(--rust); color: #fff; border-radius: 100px; font-size: 0.7rem; font-weight: 700; padding: 2px 7px; margin-left: 4px; vertical-align: middle; }
.inbox-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--sand); border-radius: 10px; border: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
.inbox-row:hover { background: var(--border); }
.inbox-row.unread { border-left: 3px solid var(--rust); }
.inbox-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--forest); color: var(--sand); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.inbox-content { flex: 1; min-width: 0; }
.inbox-from { font-weight: 600; font-size: 0.88rem; margin-bottom: 2px; }
.inbox-bike { font-size: 0.78rem; color: var(--muted); margin-bottom: 4px; }
.inbox-preview { font-size: 0.82rem; color: var(--charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-time { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.thread-header { background: var(--sand); border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; border: 1px solid var(--border); font-size: 0.88rem; }
.thread-messages { display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow-y: auto; padding: 4px 0; margin-bottom: 14px; }
.message-bubble { max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 0.85rem; line-height: 1.5; }
.message-bubble.sent { background: var(--forest); color: var(--sand); align-self: flex-end; border-bottom-right-radius: 4px; }
.message-bubble.received { background: var(--sand); color: var(--charcoal); align-self: flex-start; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.message-bubble .msg-time { font-size: 0.7rem; opacity: 0.6; margin-top: 4px; }
.message-bubble.bid-bubble.received { background: #fff8ec; border-color: var(--rust); font-weight: 600; }
.message-bubble.accepted-bubble { background: #edf7ed; border-color: #4caf50; color: #2e7d32; font-weight: 600; align-self: stretch; border-radius: 10px; border: 1.5px solid #4caf50; }
.btn-accept-bid { display: block; width: 100%; margin-top: 10px; padding: 9px 0; background: var(--forest); color: #fff; border: none; border-radius: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; }
.btn-accept-bid:hover { background: var(--rust); }
.thread-reply { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 14px; }
.thread-reply textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; resize: none; height: 80px; outline: none; background: var(--cream); transition: border-color 0.2s; }
.thread-reply textarea:focus { border-color: var(--forest); }
.thread-reply button { background: var(--forest); color: var(--sand); border: none; padding: 11px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; }
.thread-reply button:hover { background: var(--forest-light); }

/* ── LOGIN / GLEMT ── */
.btn-back-login { background: none; border: none; color: var(--muted); font-size: 0.85rem; cursor: pointer; font-family: 'DM Sans', sans-serif; margin-top: 12px; padding: 0; display: block; width: 100%; text-align: center; transition: color 0.15s; }
.btn-back-login:hover { color: var(--charcoal); }

/* ── NOTIFIKATION PULS ── */
@keyframes inboxPulse {
  0%   { transform: scale(1);   box-shadow: 0 0 0 0 rgba(200,80,42,0.7); }
  50%  { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(200,80,42,0); }
  100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(200,80,42,0); }
}
.inbox-pulse { animation: inboxPulse 0.6s ease 3; }

/* ── MOBIL FILTER DRAWER ── */
.mobile-filter-bar { display: none; gap: 10px; margin-bottom: 14px; }
.btn-mobile-filter { flex: 1; background: var(--sand); border: 1.5px solid var(--border); border-radius: 8px; padding: 10px; font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; display: flex; align-items: center; justify-content: center; gap: 6px; transition: border-color 0.15s; }
.btn-mobile-filter:hover { border-color: var(--forest); }
.mobile-filter-drawer { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--cream); border-radius: 20px 20px 0 0; padding: 20px 20px 40px; z-index: 200; max-height: 80vh; overflow-y: auto; box-shadow: 0 -4px 30px rgba(0,0,0,0.15); transform: translateY(100%); transition: transform 0.3s ease; }
.mobile-filter-drawer.open { display: block; transform: translateY(0); }
.drawer-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 20px; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.drawer-header h3 { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 700; }
.drawer-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.mobile-filter-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 199; }
.mobile-filter-overlay.open { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 12px 14px; }
  .nav-links { gap: 6px; }
  .nav-links a:not(.btn-sell) { display: none; }
  .btn-sell { font-size: 0.8rem; padding: 8px 14px; white-space: nowrap; }
  .logo { font-size: 1.2rem; }
  .nav-profile { gap: 4px; }
  .profile-avatar-btn { width: 34px; height: 34px; }
  .nav-inbox-btn { width: 34px; height: 34px; }
  .nav-admin-btn { width: 34px; height: 34px; }
  .hero { min-height: 480px; }
  .hero-text { padding: 48px 20px 48px; max-width: 100%; }
  .hero-img-side::after { background: linear-gradient(to right, rgba(42,61,46,0.96) 0%, rgba(42,61,46,0.85) 50%, rgba(42,61,46,0.6) 100%); }
  .hero-text h1 { font-size: 2.8rem; line-height: 1.08; }
  .hero-sub { font-size: 0.95rem; max-width: 100%; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns button { width: 100%; }
  .hero-trust { gap: 10px; flex-direction: column; }
  .hero-stats-bar { padding: 14px 16px; gap: 0; overflow-x: auto; }
  .stat-bar-item { padding: 0 20px 0 0; flex-shrink: 0; }
  .stat-bar-divider { margin: 0 20px 0 0; }
  .stat-bar-num { font-size: 1.1rem; }
  .search-section { padding: 16px; }
  .search-bar { flex-direction: column; gap: 10px; border-radius: 12px; padding: 14px; }
  .search-bar input, .search-bar select, .search-bar button { width: 100%; border-radius: 8px; font-size: 0.9rem; }
  .search-bar button { padding: 12px; }
  .cta-hero { padding: 48px 24px; }
  .cta-headline { font-size: 2rem; letter-spacing: -0.01em; }
  .cta-subheading { font-size: 0.9rem; }
  .cta-button { width: 100%; padding: 14px 32px; }
  .filters-row { padding: 12px 16px; gap: 8px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .filters-row::-webkit-scrollbar { display: none; }
  .filters-label { display: none; }
  .pill { flex-shrink: 0; font-size: 0.8rem; padding: 7px 14px; }
  .main { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .sidebar { display: none; }
  .mobile-filter-bar { display: flex !important; }
  .listings-grid { grid-template-columns: 1fr; gap: 14px; }
  .listings-header { flex-direction: column; gap: 10px; align-items: flex-start; }
  .sort-select { width: 100%; }
  .bike-card-img { height: 180px; }
  .dealer-strip { padding: 28px 16px; }
  .dealer-strip h2 { font-size: 1.5rem; }
  .dealer-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dealer-card { padding: 16px 12px; }
  footer { padding: 28px 16px; gap: 12px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal { border-radius: 20px 20px 0 0; max-height: 92vh; overflow-y: auto; width: 100%; max-width: 100%; }
  .modal-wide { max-width: 100%; }
  .modal-header { padding: 20px 20px 16px; }
  .modal-body { padding: 0 20px 40px; }
  .bike-detail-grid { grid-template-columns: 1fr; gap: 16px; }
  .bike-detail-img { height: 220px; }
  .bike-detail-price { font-size: 1.8rem; }
  .gallery-main { height: 220px; }
  .gallery-thumb { width: 52px; height: 52px; }
  .profile-header { gap: 14px; }
  .profile-avatar-wrap { width: 52px; height: 52px; }
  .profile-big-avatar { width: 52px; height: 52px; font-size: 1.1rem; }
  .seller-toggle { gap: 8px; }
  .seller-type-btn { padding: 12px 8px; }
  .type-label { font-size: 0.85rem; }
  .type-sub { font-size: 0.72rem; }
  .form-grid { grid-template-columns: 1fr !important; }
  .form-group.full { grid-column: 1; }
  .dealer-strip-header { flex-direction: column; }
}

@media (max-width: 420px) {
  nav { padding: 10px 12px; }
  .btn-sell { font-size: 0.76rem; padding: 7px 11px; }
  .logo { font-size: 1.1rem; }
  .nav-links { gap: 4px; }
  .profile-avatar-btn, .nav-inbox-btn, .nav-admin-btn { width: 32px; height: 32px; }
  .nav-inbox-btn { font-size: 1rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-text { padding: 64px 40px; }
  .hero-text h1 { font-size: 3.2rem; }
  .hero-stats-bar { padding: 16px 32px; }
  .main { padding: 24px 32px; gap: 24px; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .dealer-cards { grid-template-columns: repeat(2, 1fr); }
  .modal { max-width: 600px; }
}

@media (min-width: 769px) {
  .mobile-filter-bar { display: none !important; }
  .mobile-filter-drawer { display: none !important; }
  .mobile-filter-overlay { display: none !important; }
}

/* ── ADMIN ── */
.nav-admin-btn {
  background: rgba(245,240,232,0.12);
  border: 1.5px solid rgba(245,240,232,0.2);
  border-radius: 8px;
  width: 36px; height: 36px;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; margin-right: 4px;
}
.nav-admin-btn:hover { background: rgba(245,240,232,0.25); }

.admin-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--sand); border-radius: 10px;
  border: 1px solid var(--border); margin-bottom: 10px;
}
.admin-row-info { flex: 1; }
.admin-row-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.admin-row-meta { font-size: 0.78rem; color: var(--muted); }
.admin-row-actions { display: flex; gap: 8px; }
.btn-approve {
  background: var(--forest); color: var(--sand);
  border: none; border-radius: 6px; padding: 7px 14px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: background 0.15s;
}
.btn-approve:hover { background: var(--forest-light); }
.btn-reject {
  background: none; border: 1.5px solid var(--border);
  border-radius: 6px; padding: 7px 14px;
  font-size: 0.78rem; color: var(--muted); cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all 0.15s;
}
.btn-reject:hover { border-color: var(--rust); color: var(--rust); }

/* Verificeret badge */
.verified-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: #2A7D4F;
  border-radius: 50%;
  color: #fff; font-size: 0.6rem;
  font-weight: 700; margin-left: 4px;
  vertical-align: middle;
  border: 2px solid var(--cream);
  flex-shrink: 0;
}
.verified-badge-large {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: #2A7D4F; border-radius: 50%;
  color: #fff; font-size: 0.75rem; font-weight: 700;
  margin-left: 6px; vertical-align: middle;
  border: 2px solid var(--cream);
}

/* Profil avatar med verificeret badge */
.avatar-wrapper { position: relative; display: inline-flex; }
.avatar-verified {
  position: absolute; bottom: -2px; right: -2px;
  width: 16px; height: 16px;
  background: #2A7D4F; border-radius: 50%;
  border: 2px solid var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; color: #fff;
}

/* ── AUTOCOMPLETE ── */
.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 150;
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}
.autocomplete-item {
  padding: 11px 16px;
  cursor: pointer;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.12s;
  border-bottom: 1px solid var(--border);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item.active { background: var(--sand); }
.autocomplete-item strong { color: var(--rust); }
.autocomplete-meta { font-size: 0.75rem; color: var(--muted); margin-left: auto; }
.autocomplete-no-results {
  padding: 14px 16px;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

/* ── DEL ANNONCE ── */
.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
  color: var(--charcoal);
  background: var(--sand);
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.share-icon { font-size: 1.6rem; }
.share-whatsapp:hover { border-color: #25D366; background: #f0fdf4; color: #16a34a; }
.share-facebook:hover { border-color: #1877F2; background: #eff6ff; color: #1877F2; }
.share-link:hover     { border-color: var(--forest); background: #f0f4f0; color: var(--forest); }
.share-sms:hover      { border-color: var(--rust); background: #fff7f5; color: var(--rust); }

.share-link-box {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--sand);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 4px 4px 4px 14px;
}
.share-link-box input {
  flex: 1; border: none; background: transparent;
  font-size: 0.82rem; color: var(--muted);
  font-family: 'DM Sans', sans-serif; outline: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.share-link-box button {
  background: var(--forest); color: var(--sand);
  border: none; border-radius: 6px; padding: 8px 16px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: background 0.15s;
  white-space: nowrap;
}
.share-link-box button:hover { background: var(--forest-light); }

/* ── SÆT SOM SOLGT ── */
.sold-tag {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,26,24,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; border-radius: 0;
}
.sold-tag span {
  background: var(--charcoal); color: #fff;
  font-family: 'Fraunces', serif; font-size: 1.1rem;
  font-weight: 700; padding: 8px 20px; border-radius: 6px;
  transform: rotate(-5deg);
}
.btn-sold {
  background: var(--charcoal); color: var(--sand);
  border: none; border-radius: 6px; padding: 6px 12px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: background 0.15s;
  white-space: nowrap;
}
.btn-sold:hover { background: #333; }
.btn-unsold {
  background: var(--forest); color: var(--sand);
  border: none; border-radius: 6px; padding: 6px 12px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: background 0.15s;
  white-space: nowrap;
}
.btn-unsold:hover { background: var(--forest-light); }

/* Køber-picker modal */
.buyer-pick-btn {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 10px; background: #fff; cursor: pointer; text-align: left;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
}
.buyer-pick-btn:hover { border-color: var(--rust); background: var(--sand); }

/* ── SÅDAN VIRKER DET ── */
.how-it-works {
  background: var(--sand);
  padding: 56px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.how-it-works h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--charcoal); margin-bottom: 8px;
}
.how-subtitle {
  color: var(--muted); font-size: 0.95rem;
  margin-bottom: 40px;
}
.how-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.how-step {
  flex: 1; min-width: 180px; max-width: 220px;
  padding: 24px 16px;
  background: var(--cream);
  border-radius: 14px;
  border: 1px solid var(--border);
}
.how-icon { font-size: 2.2rem; margin-bottom: 12px; }
.how-step h3 {
  font-family: 'Fraunces', serif;
  font-size: 1rem; font-weight: 600;
  margin-bottom: 8px; color: var(--charcoal);
}
.how-step p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.how-step-arrow {
  font-size: 1.5rem; color: var(--border);
  padding: 0 12px; flex-shrink: 0;
}

@media (max-width: 768px) {
  .how-it-works { padding: 36px 16px; }
  .how-steps { gap: 12px; }
  .how-step-arrow { display: none; }
  .how-step { min-width: 140px; }
}

/* ── KORTVISNING ── */
.view-toggle {
  background: var(--sand);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 38px; height: 38px;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.view-toggle:hover      { border-color: var(--forest); }
.view-toggle.active     { background: var(--forest); border-color: var(--forest); color: white; }

/* Leaflet popup override */
.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  font-family: 'DM Sans', sans-serif !important;
  padding: 0 !important;
}
.leaflet-popup-content {
  margin: 0 !important;
  min-width: 220px !important;
}
.map-popup {
  padding: 14px 16px;
}
.map-popup-title {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.map-popup-price {
  color: var(--rust);
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.map-popup-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.map-popup-btn {
  background: var(--forest); color: var(--sand);
  border: none; border-radius: 6px; padding: 8px 14px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; width: 100%;
  transition: background 0.15s;
}
.map-popup-btn:hover { background: var(--forest-light); }

/* Bruger lokation knap */
.locate-btn {
  position: absolute;
  bottom: 16px; right: 16px;
  z-index: 1000;
  background: white;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.15s;
}
.locate-btn:hover { border-color: var(--forest); }

/* ── VERIFICERING (E-MAIL & TELEFON) ── */
.verify-box {
  background: var(--sand);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0;
}
.verify-box-title {
  font-family: 'Fraunces', serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.verify-box-sub { font-size: 0.74rem; color: var(--muted); margin-bottom: 10px; }
.verify-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--cream);
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 0;
}
.verify-row-icon { font-size: 1rem; flex-shrink: 0; }
.verify-row-body { flex: 1; min-width: 0; }
.verify-row-label { font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.verify-row-value { font-size: 0.82rem; font-weight: 500; color: var(--charcoal); }
.verify-row-status { flex-shrink: 0; }
.verify-status-ok {
  background: #E8F0E8; color: #2A7D4F;
  border-radius: 100px; font-size: 0.72rem;
  padding: 4px 10px; font-weight: 600;
  white-space: nowrap;
}
.verify-action-btn {
  background: var(--forest); color: var(--sand);
  border: none; border-radius: 100px;
  padding: 5px 14px; font-size: 0.78rem;
  font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.verify-action-btn:hover { background: var(--forest-light); }

/* Email badge (inline) */
.email-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  margin-left: 4px; vertical-align: middle;
}

/* Min profil — verificeringskort */
.mp-verify-card {
  background: var(--sand);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.mp-verify-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem; font-weight: 700;
  margin-bottom: 14px;
}
.mp-verify-items { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.mp-verify-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--muted);
  min-width: 140px;
}
.mp-verify-item.verified {
  background: #E8F0E8;
  border-color: #c3ddc3;
  color: #2A7D4F;
}
.mp-verify-icon { font-size: 1rem; }
.mp-verify-label { flex: 1; }
.mp-verify-check { font-weight: 700; font-size: 0.9rem; }
.mp-verify-cta {
  background: var(--forest); color: var(--sand);
  border: none; border-radius: 8px;
  padding: 10px 20px; font-size: 0.85rem;
  font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.mp-verify-cta:hover { background: var(--forest-light); }

/* Admin ID liste */
.admin-id-img {
  width: 80px; height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s;
}
.admin-id-img:hover { transform: scale(1.05); }

/* ============================================================
   LAYOUT ZONES – landing-layout vs page-layout
   ============================================================ */

#page-layout {
  min-height: calc(100vh - 64px);
}


/* ============================================================
   MIN PROFIL SIDE (.mp-*) – Konto-side #/me
   ============================================================ */

.mp-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

/* ── Top-sektion: let, ingen baggrund ── */
.mp-top {
  margin-bottom: 24px;
}
.mp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0 0 14px;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.15s;
}
.mp-back-btn:hover { color: var(--charcoal); }
.mp-title {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--charcoal);
  margin: 0 0 6px;
  line-height: 1.05;
}
.mp-subtitle {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  font-family: 'DM Sans', sans-serif;
}

/* ── Account-kort: airy, hvid baggrund ── */
.mp-account-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 16px;
}

.mp-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--border);
}

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

.mp-name {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mp-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.mp-member-since { font-size: 0.78rem; color: var(--muted); }
.mp-location, .mp-email { font-size: 0.82rem; color: var(--muted); margin-bottom: 2px; }

.mp-header-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.mp-action-btn {
  background: var(--forest);
  color: var(--cream);
  border: none;
  border-radius: 9px;
  padding: 8px 16px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.mp-action-btn:hover { background: var(--forest-light); }
.mp-action-btn--secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--border);
}
.mp-action-btn--secondary:hover { background: var(--sand); }
.mp-action-btn--logout {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  font-weight: 500;
}
.mp-action-btn--logout:hover { color: var(--charcoal); background: #f5f5f5; }

/* ── Stats-række ── */
.mp-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.mp-stat-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s;
}
.mp-stat-box:hover { border-color: #b0aaa0; }
.mp-stat-num {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 5px;
}
.mp-stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mp-achievements { margin-bottom: 4px; min-height: 0; }

/* ── Tabs ── */
.mp-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mp-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 12px 20px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.15s, border-color 0.15s;
}
.mp-tab:hover { color: var(--charcoal); }
.mp-tab.active { color: var(--rust); border-bottom-color: var(--rust); }

.mp-tab-panel { min-height: 160px; }

/* ── Marketplace listing-kort ── */
#mp-listings-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mp-listing-card {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mp-listing-card:hover {
  border-color: #b8b2a8;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.mp-listing-card--sold { opacity: 0.72; }

.mp-listing-img {
  width: 88px;
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
  background: var(--sand);
}
.mp-listing-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mp-listing-thumb--empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.mp-listing-body {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  cursor: pointer;
}
.mp-listing-title {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 3px;
  transition: color 0.15s;
}
.mp-listing-card:hover .mp-listing-title { color: var(--rust); }
.mp-listing-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 3px; }
.mp-listing-views { font-size: 0.73rem; color: var(--muted); }
.mp-sold-tag {
  background: var(--charcoal);
  color: #fff;
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mp-listing-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  min-width: 140px;
}
.mp-listing-price {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--rust);
  white-space: nowrap;
}
.mp-listing-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: stretch;
  width: 100%;
}

/* Knapper: tydelig hierarki */
.mp-btn-edit {
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
  white-space: nowrap;
  text-align: center;
}
.mp-btn-edit:hover { background: var(--forest-light); }

.mp-btn-sold, .mp-btn-unsold {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.15s;
  white-space: nowrap;
  text-align: center;
}
.mp-btn-sold:hover, .mp-btn-unsold:hover { border-color: var(--charcoal); }

.mp-btn-delete {
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 0.75rem;
  color: #c0b8b0;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.15s;
  text-align: center;
}
.mp-btn-delete:hover { color: var(--rust); }

@media (max-width: 640px) {
  .mp-wrap { padding: 20px 12px 56px; }
  .mp-title { font-size: 1.55rem; }
  .mp-account-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    gap: 14px;
  }
  .mp-name { justify-content: center; font-size: 1.15rem; }
  .mp-meta { justify-content: center; }
  .mp-header-actions { flex-direction: row; justify-content: center; width: 100%; }
  .mp-stats-row { gap: 8px; }
  .mp-stat-num { font-size: 1.35rem; }
  .mp-tab { padding: 10px 14px; font-size: 0.82rem; }
  .mp-listing-img { width: 70px; }
  .mp-listing-aside { min-width: 110px; padding: 12px 10px; }
}

/* ============================================================
   PROFILSIDE (.pp-*) – Marketplace-kvalitet profil-pages
   ============================================================ */

.pp-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* Tilbage-knap */
.pp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--rust);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 20px;
  transition: opacity 0.15s;
}
.pp-back-btn:hover { opacity: 0.7; }

/* Header */
.pp-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 0;
}
.pp-header-dealer {
  background: linear-gradient(135deg, var(--cream), #f7f4ec);
  border: 1.5px solid var(--forest);
}
.pp-header-skeleton {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* Avatar */
.pp-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--border);
}
.pp-avatar-dealer {
  border: 3px solid var(--forest);
  box-shadow: 0 0 0 3px rgba(42, 61, 46, 0.15);
}

/* Info */
.pp-info {
  flex: 1;
  min-width: 0;
}
.pp-name {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pp-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.pp-member-since {
  font-size: 0.78rem;
  color: var(--muted);
}
.pp-location {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.pp-last-seen {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.pp-bio {
  font-size: 0.88rem;
  color: var(--charcoal);
  line-height: 1.55;
  margin: 10px 0 0;
  max-width: 540px;
}

/* Trust bar */
.pp-trust-bar {
  display: flex;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #fff;
}
.pp-trust-item {
  flex: 1;
  text-align: center;
  padding: 16px 12px;
  cursor: pointer;
  transition: background 0.15s;
  border-right: 1px solid var(--border);
}
.pp-trust-item:last-child { border-right: none; }
.pp-trust-item:hover { background: var(--sand); }
.pp-trust-val {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
}
.pp-trust-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

/* CTA section (send besked) */
.pp-cta-section {
  margin-top: 16px;
}
.pp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rust);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.pp-cta-btn:hover { background: var(--rust-light); transform: translateY(-1px); }

/* Tabs (re-uses existing up-tab styling) */
.pp-tabs {
  margin-bottom: 20px;
}

/* Section titles */
.pp-section {
  margin-bottom: 32px;
}
.pp-section-title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 16px;
}

/* Bikes grid */
.pp-bikes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Empty state */
.pp-empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}
.pp-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* Achievements */
.pp-achievements {
  margin-bottom: 8px;
}

/* ============================================================
   PROFILSIDE – Responsive
   ============================================================ */

@media (max-width: 640px) {
  .pp-wrap {
    padding: 16px 12px 48px;
  }
  .pp-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    gap: 16px;
  }
  .pp-header-skeleton {
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    gap: 16px;
  }
  .pp-name {
    font-size: 1.25rem;
    justify-content: center;
  }
  .pp-badges {
    justify-content: center;
  }
  .pp-bio {
    max-width: 100%;
  }
  .pp-cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .pp-trust-item {
    padding: 12px 8px;
  }
  .pp-trust-val {
    font-size: 1.1rem;
  }
  .pp-bikes-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════
   SELL PAGE (#/sell)
   ═══════════════════════════════════════════════════════════ */

.sell-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.sell-page-header {
  margin-bottom: 28px;
}

.sell-page-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 4px;
  line-height: 1.2;
  text-align: center;
}

.sell-page-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
}

.sell-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.15s;
}

.sell-back-btn:hover {
  color: var(--charcoal);
}

.sell-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 16px;
}

.sell-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sell-section-desc {
  color: var(--muted);
  font-size: 0.875rem;
  margin: -8px 0 16px;
}

.sell-page-actions {
  margin-top: 8px;
  text-align: center;
}

.sell-submit {
  width: 100%;
  max-width: 360px;
  font-size: 1rem;
  padding: 16px 32px;
  letter-spacing: 0.01em;
}

.sell-disclaimer {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.sell-terms-link {
  cursor: pointer;
  text-decoration: underline;
  color: var(--muted);
}

.sell-terms-link:hover {
  color: var(--charcoal);
}

/* ═══════════════════════════════════════════════════════════
   LISTING SUCCESS MODAL
   ═══════════════════════════════════════════════════════════ */

.listing-success-inner {
  max-width: 420px;
  width: 100%;
  text-align: center;
  padding: 52px 40px 44px;
  border-radius: 20px;
}

.success-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  animation: success-pop 0.5s cubic-bezier(0.17, 0.89, 0.32, 1.49) both;
}

@keyframes success-pop {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 8px;
}

.success-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 28px;
}

.success-bike-card {
  background: var(--sand);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
}

.success-bike-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.success-bike-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest);
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.success-btn-view {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 8px;
  width: 100%;
}

.success-btn-new {
  padding: 12px 28px;
  font-size: 0.9rem;
  border-radius: 8px;
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  transition: background 0.15s;
  width: 100%;
}

.success-btn-new:hover {
  background: var(--sand);
}

@media (max-width: 600px) {
  .sell-page {
    padding: 20px 16px 60px;
  }
  .sell-page-title {
    font-size: 1.5rem;
  }
  .sell-section {
    padding: 20px 16px;
  }
  .listing-success-inner {
    padding: 40px 24px 36px;
    border-radius: 16px;
  }
  .success-title {
    font-size: 1.6rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   STATISKE SIDER (Om os, Vilkår, Privatlivspolitik, Kontakt)
   ═══════════════════════════════════════════════════════════ */

.static-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.static-page-title {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 24px 0 28px;
}

.static-page-body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--charcoal);
}

.static-page-body h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.static-page-body p { margin-bottom: 14px; }
.static-page-body ul { margin-bottom: 14px; padding-left: 20px; }
.static-page-body li { margin-bottom: 6px; }

.static-page-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.88rem;
}
.static-page-body td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--border); }

@media (max-width: 600px) {
  .static-page { padding: 20px 16px 60px; }
  .static-page-title { font-size: 1.55rem; }
}

/* ═══════════════════════════════════════════════════════════
   BLIV FORHANDLER SIDE
   ═══════════════════════════════════════════════════════════ */

.bd-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.bd-page-header {
  margin-bottom: 28px;
}

.bd-page-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 4px;
  line-height: 1.2;
  text-align: center;
  font-family: 'Fraunces', serif;
}

.bd-page-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
}

.bd-trial-banner {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 1.5px solid #a5d6a7;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #2e7d32;
  margin-bottom: 24px;
  line-height: 1.5;
  text-align: center;
}

.bd-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--sand);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.bd-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.bd-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.bd-form {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.bd-form-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 18px;
}

@media (max-width: 600px) {
  .bd-page { padding: 20px 16px 60px; }
  .bd-page-title { font-size: 1.5rem; }
  .bd-plans { grid-template-columns: 1fr; }
  .bd-form { padding: 18px 16px; }
}

/* ═══════════════════════════════════════════════════════════
   GEMTE ANNONCER — KORTVISNING
   ═══════════════════════════════════════════════════════════ */

.saved-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.saved-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.saved-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}

.saved-card--sold {
  opacity: 0.6;
}

.saved-card-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--sand);
  overflow: hidden;
}

.saved-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}

.saved-card:hover .saved-card-img {
  transform: scale(1.04);
}

.saved-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--muted);
}

.saved-card-sold-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.saved-card-remove {
  position: absolute;
  top: 7px;
  right: 7px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  color: var(--rust);
  backdrop-filter: blur(4px);
  transition: background 0.15s, transform 0.1s;
  line-height: 1;
}

.saved-card-remove:hover {
  background: #fff;
  transform: scale(1.15);
}

.saved-card-body {
  padding: 12px 14px 14px;
}

.saved-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.saved-card-meta {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.saved-card-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rust);
}

@media (max-width: 600px) {
  .saved-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
