/* ============================
   3D MARKET — STYLE
   Palette: Teal #1D9E75 accent, near-white surface, dark ink
   Type: Space Grotesk (display) + Inter (body)
============================ */

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

:root {
  --green: #1D9E75;
  --green-light: #E1F5EE;
  --green-mid: #5DCAA5;
  --green-dark: #0F6E56;
  --ink: #1a1a1a;
  --ink-2: #3d3d3a;
  --ink-3: #6b6b66;
  --ink-4: #9c9a92;
  --surface: #ffffff;
  --surface-2: #f7f7f5;
  --surface-3: #f0efeb;
  --border: rgba(0,0,0,0.08);
  --border-md: rgba(0,0,0,0.14);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --header-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-2);
  background: var(--surface-2);
  line-height: 1.6;
  padding-top: var(--header-h);
}

/* ---- UTILITIES ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.w-full { width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---- PAGES ---- */
.page { display: none; }
.page.active { display: block; }

/* ---- HEADER ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 32px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--ink); white-space: nowrap;
  flex-shrink: 0;
}
.logo-icon { font-size: 22px; color: var(--green); }
.logo-text strong { color: var(--green); }

.main-nav { display: flex; gap: 4px; }
.nav-link {
  padding: 6px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-3);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.nav-link:hover { background: var(--surface-3); color: var(--ink); }
.nav-link.active { background: var(--green-light); color: var(--green-dark); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.btn-icon {
  width: 36px; height: 36px; border-radius: 8px;
  border: 0.5px solid var(--border);
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: 18px;
  transition: background 0.15s, color 0.15s;
}
.btn-icon:hover { background: var(--surface-3); color: var(--ink); }

.btn-secondary {
  padding: 7px 16px; border-radius: 8px;
  border: 0.5px solid var(--border-md);
  background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  font-family: var(--font-body);
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--surface-3); }

.btn-primary {
  padding: 8px 18px; border-radius: 8px;
  border: none; background: var(--green); cursor: pointer;
  font-size: 14px; font-weight: 500; color: #fff;
  font-family: var(--font-body);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  padding: 8px 18px; border-radius: 8px;
  border: 0.5px solid var(--border-md);
  background: rgba(255,255,255,0.6); cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--ink);
  font-family: var(--font-body);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s;
}
.btn-ghost:hover { background: var(--surface-3); }

.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: 10px; }

.mobile-menu-btn { display: none; }

/* Search bar global */
.search-bar-global {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
  background: var(--surface); border-bottom: 0.5px solid var(--border);
  padding: 10px 0;
  transform: translateY(-100%); opacity: 0;
  transition: transform 0.2s, opacity 0.2s;
  pointer-events: none;
}
.search-bar-global.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.search-inner {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border-radius: 10px;
  padding: 10px 14px; border: 0.5px solid var(--border);
}
.search-inner i { font-size: 18px; color: var(--ink-4); }
.search-inner input {
  flex: 1; border: none; background: none;
  font-size: 15px; color: var(--ink); outline: none;
  font-family: var(--font-body);
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #f0fdf8 0%, #f7f7f5 60%, #faf5ff 100%);
  padding: 72px 0 64px;
  border-bottom: 0.5px solid var(--border);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-light); color: var(--green-dark);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 20px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700; line-height: 1.15;
  color: var(--ink); margin-bottom: 16px;
}
.hero h1 .accent { color: var(--green); }
.hero-sub {
  font-size: 16px; color: var(--ink-3); line-height: 1.7;
  margin-bottom: 28px; max-width: 480px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; align-items: center; gap: 0; }
.hero-stat { padding: 0 20px 0 0; }
.hero-stat:first-child { padding-left: 0; }
.stat-num { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); }
.stat-lbl { font-size: 12px; color: var(--ink-4); }
.hero-stat-sep { width: 1px; height: 32px; background: var(--border-md); margin-right: 20px; }

/* Hero visual */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-card-stack { position: relative; width: 300px; height: 260px; }
.hcard {
  position: absolute; background: var(--surface);
  border: 0.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
  width: 180px; box-shadow: var(--shadow);
  font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--ink);
}
.hcard-emoji { font-size: 32px; }
.hcard-price { color: var(--green); font-weight: 700; }
.hcard-1 { top: 0; left: 60px; transform: rotate(-4deg); z-index: 3; }
.hcard-2 { top: 70px; left: 0; transform: rotate(2deg); z-index: 2; }
.hcard-3 { top: 120px; left: 100px; transform: rotate(-1deg); z-index: 1; }

/* ---- CATEGORIES ---- */
.categories-section { padding: 36px 0 0; }
.section-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--ink); margin-bottom: 16px;
}
.categories-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-card {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 40px;
  border: 0.5px solid var(--border-md);
  background: var(--surface); cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--ink-3);
  font-family: var(--font-body);
  transition: all 0.15s;
}
.cat-card i { font-size: 16px; }
.cat-card:hover { border-color: var(--green-mid); color: var(--green-dark); background: var(--green-light); }
.cat-card.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ---- FILTERS BAR ---- */
.filters-bar {
  padding: 14px 0;
  border-bottom: 0.5px solid var(--border);
  background: var(--surface-2);
  position: sticky; top: var(--header-h); z-index: 50;
}
.filters-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.results-count { font-size: 13px; color: var(--ink-4); font-weight: 500; }
.filters-right { display: flex; gap: 10px; }
.filter-select {
  padding: 7px 12px; border-radius: 8px;
  border: 0.5px solid var(--border-md);
  background: var(--surface); font-size: 13px;
  color: var(--ink-2); cursor: pointer;
  font-family: var(--font-body); outline: none;
}
.filter-select:focus { border-color: var(--green-mid); }

/* ---- PRODUCTS GRID ---- */
.products-section { padding: 28px 0 60px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 0.5px solid var(--border);
  overflow: hidden; transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-card.hidden { display: none; }

.product-img {
  height: 140px; display: flex; align-items: center; justify-content: center;
  font-size: 52px;
}
.product-img.deco { background: #faeeda; }
.product-img.brico { background: #e1f5ee; }
.product-img.maison { background: #eeedfe; }
.product-img.art { background: #faece7; }
.product-img.tech { background: #f0fdf8; }

.product-body { padding: 12px 14px 14px; }
.product-badges { margin-bottom: 6px; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 6px;
}
.badge-deco { background: #faeeda; color: #633806; }
.badge-brico { background: #e1f5ee; color: #085041; }
.badge-maison { background: #eeedfe; color: #3C3489; }
.badge-art { background: #faece7; color: #712B13; }
.badge-tech { background: #e1f5ee; color: #085041; }

.product-name {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  color: var(--ink); line-height: 1.3; margin-bottom: 4px;
}
.product-seller {
  font-size: 12px; color: var(--ink-4); display: flex; align-items: center; gap: 4px;
}
.product-seller i { font-size: 12px; }
.product-footer {
  display: flex; align-items: center; justify-content: space-between; margin-top: 10px;
}
.product-price {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 700; color: var(--green);
}
.btn-heart {
  width: 30px; height: 30px; border-radius: 6px;
  border: 0.5px solid var(--border); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--ink-4); font-size: 16px; transition: all 0.15s;
}
.btn-heart:hover { color: #E24B4A; border-color: #E24B4A; background: #FCEBEB; }

/* ---- PAGE HERO SM ---- */
.page-hero-sm {
  background: linear-gradient(135deg, #f0fdf8, #f7f7f5);
  padding: 48px 0 36px;
  border-bottom: 0.5px solid var(--border);
}
.page-hero-sm h1 {
  font-family: var(--font-display); font-size: 32px;
  font-weight: 700; color: var(--ink); margin-bottom: 6px;
}
.page-hero-sm p { font-size: 15px; color: var(--ink-3); }

/* ---- FORUM ---- */
.forum-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding-top: 32px; padding-bottom: 60px; }

.forum-sidebar { display: flex; flex-direction: column; gap: 14px; }
.sidebar-box {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 0.5px solid var(--border); padding: 18px;
}
.sidebar-box h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.sidebar-label { font-size: 11px; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 8px; }

.brand-filters, .topic-filters { display: flex; flex-direction: column; gap: 4px; }
.brand-btn, .topic-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 8px;
  border: none; background: transparent; cursor: pointer;
  font-size: 13px; color: var(--ink-3); text-align: left;
  font-family: var(--font-body); transition: all 0.15s;
}
.brand-btn:hover, .topic-btn:hover { background: var(--surface-2); color: var(--ink); }
.brand-btn.active, .topic-btn.active { background: var(--green-light); color: var(--green-dark); font-weight: 500; }

.brand-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--ink-4);
}
.bambu .brand-dot { background: var(--green); }
.creality .brand-dot { background: #534AB7; }
.prusa .brand-dot { background: #EF9F27; }
.anycubic .brand-dot { background: #D85A30; }
.flashforge .brand-dot { background: #E24B4A; }

.forum-topbar { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; }
.forum-search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 8px; padding: 8px 12px;
}
.forum-search i { color: var(--ink-4); font-size: 16px; }
.forum-search input {
  border: none; background: none; font-size: 14px; color: var(--ink); outline: none;
  font-family: var(--font-body); width: 100%;
}

.thread-list { display: flex; flex-direction: column; gap: 10px; }
.thread-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 18px;
  cursor: pointer; transition: box-shadow 0.15s, transform 0.15s;
}
.thread-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.thread-card.hidden { display: none; }

.thread-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.thread-body { flex: 1; min-width: 0; }
.thread-tags { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.thread-badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 6px;
}
.bambu-badge { background: #E1F5EE; color: #0F6E56; }
.creality-badge { background: #EEEDFE; color: #3C3489; }
.prusa-badge { background: #FAEEDA; color: #633806; }
.anycubic-badge { background: #FAECE7; color: #712B13; }
.model-badge { background: var(--surface-3); color: var(--ink-3); }
.topic-badge { background: var(--surface-3); color: var(--ink-3); }

.thread-title {
  font-family: var(--font-display); font-size: 15px;
  font-weight: 600; color: var(--ink); margin-bottom: 4px; line-height: 1.35;
}
.thread-preview { font-size: 13px; color: var(--ink-4); line-height: 1.5; margin-bottom: 8px; }
.thread-meta { display: flex; gap: 14px; font-size: 12px; color: var(--ink-4); flex-wrap: wrap; }
.thread-meta span { display: flex; align-items: center; gap: 4px; }
.thread-meta i { font-size: 13px; }

.thread-right { text-align: center; flex-shrink: 0; }
.thread-replies {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 700; color: var(--green); line-height: 1;
}
.thread-replies-lbl { font-size: 10px; color: var(--ink-4); }

/* ---- SELL PAGE ---- */
.sell-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding-top: 32px; padding-bottom: 60px; }
.sell-form-wrap { display: flex; flex-direction: column; gap: 24px; }
.form-section {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 0.5px solid var(--border); padding: 24px;
}
.form-section h2 {
  font-family: var(--font-display); font-size: 17px;
  font-weight: 700; color: var(--ink); margin-bottom: 18px;
}

.photo-upload-zone {
  border: 1.5px dashed var(--border-md); border-radius: var(--radius);
  padding: 40px 20px; text-align: center; cursor: pointer;
  color: var(--ink-4); transition: border-color 0.15s, background 0.15s;
}
.photo-upload-zone:hover { border-color: var(--green-mid); background: var(--green-light); color: var(--green-dark); }
.photo-upload-zone i { font-size: 36px; margin-bottom: 8px; display: block; }
.photo-upload-zone p { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.photo-upload-zone span { font-size: 12px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 12px; border-radius: 8px;
  border: 0.5px solid var(--border-md); background: var(--surface-2);
  font-size: 14px; color: var(--ink); outline: none;
  font-family: var(--font-body); transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--green-mid); background: #fff;
}
.form-group textarea { resize: vertical; line-height: 1.6; }

.form-actions { display: flex; gap: 12px; justify-content: flex-end; }

.sell-aside { display: flex; flex-direction: column; gap: 16px; align-self: start; position: sticky; top: calc(var(--header-h) + 20px); }

.tip-box {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 0.5px solid var(--border); padding: 18px;
}
.tip-box h3 {
  font-family: var(--font-display); font-size: 14px;
  font-weight: 700; color: var(--ink); margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.tip-box h3 i { color: var(--green); }
.tip-box ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tip-box ul li {
  font-size: 13px; color: var(--ink-3); padding-left: 14px; position: relative; line-height: 1.5;
}
.tip-box ul li::before { content: '·'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.tip-box p { font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.perf-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 0.5px solid var(--border); font-size: 13px; color: var(--ink-3); }
.perf-row:last-child { border: none; }
.perf-row strong { color: var(--green); font-weight: 600; }
.settings-links { list-style: none; display: flex; flex-direction: column; }
.settings-links li a { display: block; padding: 7px 0; font-size: 13px; color: var(--green-dark); border-bottom: 0.5px solid var(--border); transition: color 0.15s; }
.settings-links li:last-child a { border: none; }
.settings-links li a:hover { color: var(--green); }

/* ---- PROFILE ---- */
.profile-banner {
  background: linear-gradient(135deg, #f0fdf8, #f7f7f5);
  border-bottom: 0.5px solid var(--border); padding: 40px 0;
}
.profile-header { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green-light); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  flex-shrink: 0;
}
.profile-info h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); }
.profile-info p { font-size: 14px; color: var(--ink-4); margin-top: 2px; }
.profile-tags { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.profile-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--green-light); color: var(--green-dark);
  font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 20px;
}
.profile-tag i { font-size: 13px; }
.profile-stats { margin-left: auto; display: flex; gap: 32px; }
.pstat { text-align: center; }
.pstat-num { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); }
.pstat-lbl { font-size: 12px; color: var(--ink-4); }

.profile-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; padding-top: 28px; padding-bottom: 60px; }
.profile-tabs { display: flex; gap: 0; border-bottom: 0.5px solid var(--border); margin-bottom: 20px; }
.ptab {
  padding: 10px 20px; border: none; background: none; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--ink-4);
  font-family: var(--font-body); border-bottom: 2px solid transparent;
  margin-bottom: -0.5px; transition: color 0.15s;
  display: flex; align-items: center; gap: 6px;
}
.ptab:hover { color: var(--ink); }
.ptab.active { color: var(--green-dark); border-bottom-color: var(--green); }
.badge-count {
  background: var(--green); color: #fff;
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.annonces-list { display: flex; flex-direction: column; gap: 10px; }
.annonce-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
}
.annonce-img {
  width: 48px; height: 48px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.annonce-info { flex: 1; }
.annonce-info h4 { font-size: 14px; font-weight: 500; color: var(--ink); }
.annonce-info p { font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.annonce-price { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--green); white-space: nowrap; }
.annonce-status { font-size: 12px; font-weight: 500; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.status-active { color: var(--green); }
.status-sold { color: var(--ink-4); }
.annonce-actions { display: flex; gap: 4px; }
.btn-icon-sm {
  width: 28px; height: 28px; border-radius: 6px;
  border: 0.5px solid var(--border); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--ink-4); font-size: 15px; transition: all 0.15s;
}
.btn-icon-sm:hover { background: var(--surface-3); color: var(--ink); }

.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--ink-4); display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty-state i { font-size: 40px; color: var(--ink-4); }
.empty-state p { font-size: 15px; }

.messages-list { display: flex; flex-direction: column; }
.msg-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 0.5px solid var(--border); cursor: pointer;
  position: relative; transition: opacity 0.15s;
}
.msg-row:last-child { border: none; }
.msg-row:hover { opacity: 0.8; }
.msg-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.msg-body { flex: 1; min-width: 0; }
.msg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.msg-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.msg-time { font-size: 11px; color: var(--ink-4); }
.msg-preview { font-size: 13px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-row.unread .msg-preview { color: var(--ink-2); font-weight: 500; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.profile-aside { align-self: start; position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }

/* ---- MODALS ---- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.4);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 32px; width: 100%; max-width: 420px;
  margin: 20px; position: relative;
  border: 0.5px solid var(--border);
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 0.5px solid var(--border); background: var(--surface-2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--ink-4); font-size: 16px;
}
.modal-close:hover { background: var(--surface-3); }
.modal h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.modal p { font-size: 14px; color: var(--ink-3); margin-bottom: 24px; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form input {
  padding: 11px 14px; border-radius: 10px;
  border: 0.5px solid var(--border-md); font-size: 14px;
  font-family: var(--font-body); outline: none; color: var(--ink);
  transition: border-color 0.15s;
}
.modal-form input:focus { border-color: var(--green-mid); }
.modal-switch { font-size: 13px; color: var(--ink-4); text-align: center; margin-top: 8px; }
.modal-switch a { color: var(--green-dark); cursor: pointer; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.6);
  padding: 48px 0 0;
}
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-bottom: 40px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-icon { color: var(--green-mid); }
.footer-brand p { font-size: 13px; margin-top: 10px; line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h4 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.footer-links a { display: block; font-size: 13px; padding: 3px 0; transition: color 0.15s; }
.footer-links a:hover { color: var(--green-mid); }
.footer-bottom {
  border-top: 0.5px solid rgba(255,255,255,0.1);
  padding: 16px 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .forum-layout { grid-template-columns: 1fr; }
  .forum-sidebar { display: none; }
  .sell-layout { grid-template-columns: 1fr; }
  .sell-aside { position: static; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-aside { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .profile-stats { margin-left: 0; }
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .main-nav, .btn-secondary, .btn-primary:not(.btn-lg) { display: none; }
  .mobile-menu-btn { display: flex; }
  .header-actions { gap: 4px; }
  .hero { padding: 36px 0 32px; }
  .hero h1 { font-size: 28px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: 1; }
  .profile-header { flex-direction: column; align-items: flex-start; }
  .profile-stats { gap: 20px; }
  .annonce-row { flex-wrap: wrap; }
  .hero-stats { flex-wrap: wrap; gap: 12px; }
}
