.logo {
  display:flex;
  align-items:center;
  cursor:pointer;
}
.title-descr {
  color:var(--text-dim);
  font-size:12px;
  font-family:var(--font-body);
  font-weight:400;
  letter-spacing:1px;
  margin-left:8px;
  vertical-align:middle;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-brand {
  display: none; /* hidden on desktop */
  font-weight: 700;
  font-size: 1.1rem;
  flex: 1;
}

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

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

/* Hamburger button — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animate hamburger → X when open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.no-scroll {
  overflow-y: hidden; /* Stops vertical scrolling */
}
/* For better cross-browser compatibility, consider adding this rule too: */
html.no-scroll {
  overflow: hidden;
}

/* Mobile breakpoint */
@media (max-width: 600px) {
  .title-descr {
    display: none;
  }
  nav {
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  .nav-brand {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 0 4px;
    gap: 4px;
    /* Slide-down animation */
    animation: slideDown 0.2s ease;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-btn {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
  }

}

/* Mobile dropdown */
    .mobile-menu {
      display: none;
      flex-direction: column;
      position: sticky;
      top: var(--nav-h);
      left: 0; right: 0;
      background: var(--color-background-primary);
      border-bottom: 0.5px solid var(--color-border-tertiary);
      padding: 8px 12px 12px;
      gap: 2px;
      z-index: 199;
      animation: slideDown 0.2s ease;
    }
    .mobile-menu.open { display: flex; }

    @keyframes slideDown {
      from { opacity: 0; transform: translateY(-6px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .mobile-menu .nav-btn {
      width: 100%;
      justify-content: space-between;
      padding: 11px 14px;
      font-size: 15px;
      border-radius: var(--border-radius-md);
    }
    .mobile-menu .nav-btn.accent {
      margin-top: 6px;
      justify-content: center;
    }

    /* Hide hamburger on desktop, hide links on mobile */
    @media (max-width: 640px) {
      .nav-links { display: none; }
      .hamburger { display: flex; }
    }


:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface2: #f4f1ec;
  --border: #e8e2d9;
  --accent: #0094cf;
  --accent2: #2d6a4f;
  --accent-light: #e0f4fd;
  --text: #1a1612;
  --text-muted: #7a7068;
  --text-dim: #b5afa7;
  --radius: 8px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.1), 0 8px 32px rgba(0,0,0,0.06);
  --nav-h: 60px;
  --border-radius-md: 8px;
  --color-background-primary: #ffffff;
  --color-background-secondary: #f5f5f4;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #6b6b6b;
  --color-border-tertiary: rgba(0,0,0,0.12);
}
* { margin:0; padding:0; box-sizing:border-box; }
body { background:var(--bg); color:var(--text); font-family:var(--font-body); font-size:14px; min-height:100vh; overflow-x:hidden; }

header {
  display:flex; align-items:center; justify-content:space-between;
  padding:0 32px; height:150px; border-bottom:1px solid var(--border);
  position:sticky; top:0; background:rgba(250,248,245,0.94);
  backdrop-filter:blur(16px); z-index:100;
}
.logo { font-family:var(--font-display); font-size:26px; font-weight:900; color:var(--accent); cursor:pointer; }
.logo span { color:var(--text-dim); font-size:12px; font-family:var(--font-body); font-weight:400; letter-spacing:1px; margin-left:8px; vertical-align:middle; }
nav { display:flex; gap:6px; }
.nav-btn { background:transparent; border:1px solid transparent; color:var(--text-muted); padding:7px 16px; border-radius:20px; cursor:pointer; font-family:var(--font-body); font-size:13px; font-weight:500; transition:all 0.15s; }
.nav-btn:hover { color:var(--text); background:var(--surface2); }
.nav-btn.active { background:var(--text); color:var(--bg); font-weight:600; }
.nav-btn.accent { background:var(--accent); color:#fff; }
.nav-btn.accent:hover { opacity:0.88; }

.view { display:none; padding:36px 32px; max-width:1200px; margin:0 auto; animation:fadeUp 0.2s ease; }
.view.active { display:block; }
@keyframes fadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

.page-title { font-family:var(--font-display); font-size:42px; font-weight:900; letter-spacing:-0.5px; line-height:1; margin-bottom:6px; }
.page-title span { color:var(--accent); }
.page-subtitle { color:var(--text-muted); font-size:13px; margin-bottom:32px; }
.section-title { font-family:var(--font-display); font-size:16px; font-weight:700; color:var(--text-muted); margin-bottom:16px; display:flex; align-items:center; gap:12px; }
.section-title::after { content:''; flex:1; height:1px; background:var(--border); }
hr { border:none; border-top:1px solid var(--border); margin:24px 0; }

.input-group { margin-bottom:16px; }
.input-group label { display:block; font-size:11px; font-weight:600; letter-spacing:1px; text-transform:uppercase; color:var(--text-muted); margin-bottom:6px; }
.input-group input, .input-group textarea, .input-group select {
  width:100%; background:var(--surface); border:1px solid var(--border); color:var(--text);
  padding:10px 14px; border-radius:var(--radius); font-family:var(--font-body); font-size:13px;
  outline:none; transition:all 0.15s; box-shadow:var(--shadow);
}
.input-group input:focus, .input-group textarea:focus, .input-group select:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(0,148,207,0.1); }
.input-group textarea { resize:vertical; min-height:80px; }
.input-group select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23b5afa7'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:32px; cursor:pointer; }

.btn { background:var(--accent); color:#fff; border:none; padding:11px 10px; border-radius:var(--radius); font-family:var(--font-body); font-size:13px; font-weight:600; cursor:pointer; transition:all 0.15s; width:100%; }
.btn:hover { opacity:0.88; transform:translateY(-1px); box-shadow:0 4px 12px rgba(0,148,207,0.25); }
.btn.secondary { background:var(--surface2); color:var(--text-muted); border:1px solid var(--border); box-shadow:none; }
.btn.secondary:hover { border-color:var(--text-muted); color:var(--text); transform:none; box-shadow:none; }
.btn.green { background:var(--accent2); }
.btn.green:hover { box-shadow:0 4px 12px rgba(45,106,79,0.25); }
.btn.danger { background:#e74c3c; }
.btn.sm { padding:8px 18px; font-size:12px; width:auto; border-radius:20px; }

/* filter panel */
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.2s ease;
}
.filter-top-row {
  display:flex; gap:10px; align-items:center; padding: 14px 18px; flex-wrap:wrap;
}
.filter-toggle-btn {
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 16px; border-radius:20px; border:1px solid var(--border);
  background:var(--surface2); color:var(--text-muted); cursor:pointer;
  font-family:var(--font-body); font-size:13px; font-weight:500;
  transition:all 0.15s; flex-shrink:0; white-space:nowrap;
}
.filter-toggle-btn:hover { border-color:var(--accent); color:var(--accent); }
.filter-toggle-btn.has-filters { background:var(--accent-light); border-color:rgba(0,148,207,0.3); color:var(--accent); font-weight:600; }
.filter-toggle-btn .chevron { font-size:10px; transition:transform 0.2s; display:inline-block; }
.filter-toggle-btn.open .chevron { transform:rotate(180deg); }
.filter-body {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
}
.filter-body.open { display: block; animation: fadeUp 0.15s ease; }
.filter-body-inner { padding-top: 16px; }
.filter-rows { display:grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap:10px; }
.filter-group { display:flex; flex-direction:column; gap:4px; }
.filter-label { font-size:10px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--text-muted); }
.filter-price-row { display:flex; gap:6px; align-items:center; }
.filter-price-row input { flex:1; background:var(--surface2); border:1px solid var(--border); color:var(--text); padding:8px 10px; border-radius:var(--radius); font-family:var(--font-body); font-size:12px; outline:none; transition:all 0.15s; width:0; }
.filter-price-row input:focus { border-color:var(--accent); box-shadow:0 0 0 2px rgba(0,148,207,0.1); }
.filter-price-row input::placeholder { color:var(--text-dim); }
.filter-price-sep { color:var(--text-dim); font-size:11px; flex-shrink:0; }
.filter-footer { display:flex; align-items:center; justify-content:space-between; margin-top:14px; padding-top:12px; border-top:1px solid var(--border); }
.active-filters { display:flex; gap:6px; flex-wrap:wrap; align-items:center; flex:1; }
.active-filter-tag { display:inline-flex; align-items:center; gap:5px; background:var(--accent-light); border:1px solid rgba(0,148,207,0.25); color:var(--accent); padding:3px 10px; border-radius:10px; font-size:11px; font-weight:600; }
.active-filter-tag button { background:none; border:none; cursor:pointer; color:var(--accent); font-size:13px; line-height:1; padding:0; margin-left:2px; }
.clear-all-btn { font-size:11px; color:var(--text-muted); background:none; border:none; cursor:pointer; font-family:var(--font-body); text-decoration:underline; padding:0; white-space:nowrap; }
.clear-all-btn:hover { color:var(--accent); }
.results-count { font-size:12px; color:var(--text-muted); margin-bottom:16px; font-family:var(--font-mono); }

.filter-select, .search-wrap input {
  background:var(--surface2); border:1px solid var(--border); color:var(--text);
  padding:8px 32px 8px 10px; border-radius:var(--radius); font-family:var(--font-body); font-size:12px;
  outline:none; cursor:pointer; transition:all 0.15s; appearance:none; width:100%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23b5afa7'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 8px center;
}
.filter-select:focus, .search-wrap input:focus { border-color:var(--accent); box-shadow:0 0 0 2px rgba(0,148,207,0.1); }
.search-wrap { position:relative; flex:1; min-width:200px; }
.search-wrap input { padding-left:34px; background-image:none; cursor:text; }
.search-wrap input::placeholder { color:var(--text-dim); }
.search-icon { position:absolute; left:11px; top:50%; transform:translateY(-50%); color:var(--text-dim); font-size:13px; }
.listings-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)); gap:18px; }

@media (max-width: 640px) {
  .listings-grid { 
    grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); 
    gap:18px; 
  }
}
.listing-card { background:var(--surface); border:1px solid var(--border); border-radius:12px; overflow:hidden; cursor:pointer; transition:all 0.2s; box-shadow:var(--shadow); }
.listing-card:hover { border-color:var(--accent); transform:translateY(-3px); box-shadow:var(--shadow-hover); }
.listing-img { width:100%; aspect-ratio:3/4; background:var(--surface2); display:flex; align-items:center; justify-content:center; font-size:52px; position:relative; overflow:hidden; }
.listing-img::after { content:''; position:absolute; inset:0; background:linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.08)); }
.listing-badge { position:absolute; top:10px; right:10px; background:var(--accent); color:#fff; padding:3px 8px; font-size:10px; font-weight:700; border-radius:10px; z-index:1; font-family:var(--font-mono); }
.listing-cert-badge { position:absolute; top:10px; left:10px; color:#fff; padding:3px 7px; font-size:9px; font-weight:700; border-radius:8px; z-index:1; font-family:var(--font-mono); letter-spacing:0.3px; }
.listing-info { padding:14px; }
.listing-brand { font-size:10px; font-weight:700; letter-spacing:1.5px; color:var(--accent); text-transform:uppercase; margin-bottom:4px; }
.listing-name { font-size:14px; font-weight:500; margin-bottom:8px; line-height:1.3; }
.listing-meta { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.listing-price { font-family:var(--font-display); font-size:20px; font-weight:700; }
.listing-specs { display:flex; gap:4px; flex-wrap:wrap; }
.spec-pill { background:var(--surface2); border:1px solid var(--border); padding:2px 7px; border-radius:6px; font-size:10px; font-family:var(--font-mono); color:var(--text-muted); }
.listing-seller-row { margin-top:10px; display:flex; align-items:center; gap:6px; font-size:11px; color:var(--text-muted); }
.seller-dot { width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; color:#fff; flex-shrink:0; }
.seller-name-link { cursor:pointer; transition:color 0.15s; font-weight:500; }
.listing-seller-row:hover .seller-name-link { color:var(--accent); text-decoration:underline; }
.empty-state { grid-column:1/-1; text-align:center; padding:80px 20px; }
.empty-state .big-icon { font-size:48px; margin-bottom:16px; }
.empty-state p { font-size:13px; color:var(--text-muted); }

/* ── PHOTO UPLOAD ── */
.photo-upload-zone {
  border: 2px dashed var(--border); border-radius: 12px; padding: 28px 20px;
  text-align: center; cursor: pointer; transition: all 0.2s; background: var(--surface2);
  position: relative;
}
.photo-upload-zone:hover, .photo-upload-zone.drag-over {
  border-color: var(--accent); background: var(--accent-light);
}
.photo-upload-icon { font-size: 32px; margin-bottom: 8px; }
.photo-upload-text { font-size: 14px; font-weight: 500; color: var(--text-muted); margin-bottom: 4px; }
.photo-upload-text span { color: var(--accent); text-decoration: underline; }
.photo-upload-sub { font-size: 11px; color: var(--text-dim); }
.photo-preview-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.photo-thumb {
  position: relative; width: 80px; height: 80px; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--border); flex-shrink: 0; transition: border-color 0.15s;
}
.photo-thumb:hover { border-color: var(--accent); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb-remove {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px;
  background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 50%;
  font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.15s;
}
.photo-thumb:hover .photo-thumb-remove { opacity: 1; }

/* ── AI ANALYZE ── */
.ai-hint { font-size: 11px; color: var(--text-muted); margin-top: 7px; display: flex; align-items: center; gap: 5px; }
.ai-result-banner {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: rgba(0,148,207,0.07); border: 1px solid rgba(0,148,207,0.25);
  border-radius: var(--radius); margin-bottom: 18px; font-size: 13px; font-weight: 500; color: var(--text);
  animation: fadeUp 0.25s ease;
}
.ai-spinner {
  width: 16px; height: 16px; border: 2px solid rgba(0,148,207,0.25);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.7s linear infinite; display: inline-block; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-field-highlight { animation: highlightPop 0.5s ease; }
@keyframes highlightPop {
  0%   { background: rgba(0,148,207,0.15); }
  100% { background: transparent; }
}

/* ── SELL FORM ── */
.list-form { background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:32px; max-width:600px; box-shadow:var(--shadow); }
.emoji-picker-row { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.emoji-opt { width:48px; height:48px; background:var(--surface2); border:2px solid transparent; border-radius:var(--radius); font-size:22px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all 0.15s; }
.emoji-opt:hover { background:var(--accent-light); }
.emoji-opt.selected { border-color:var(--accent); background:var(--accent-light); }
.price-input-wrap { position:relative; }
.price-input-wrap span { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--accent); font-weight:700; font-size:16px; }
.price-input-wrap input { padding-left:28px !important; }

/* chat */
.chat-layout { display:grid; grid-template-columns:280px 1fr; height:calc(100vh - 170px); border:1px solid var(--border); border-radius:16px; overflow:hidden; box-shadow:var(--shadow); }
.chat-list { background:var(--surface); border-right:1px solid var(--border); overflow-y:auto; }
.chat-list-header { padding:18px 18px 14px; border-bottom:1px solid var(--border); font-family:var(--font-display); font-size:16px; font-weight:700; }
.chat-item { padding:14px 18px; border-bottom:1px solid var(--border); cursor:pointer; transition:background 0.1s; display:flex; gap:10px; align-items:flex-start; }
.chat-item:hover { background:var(--surface2); }
.chat-item.active { background:var(--accent-light); border-left:3px solid var(--accent); }
.chat-avatar { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:#fff; flex-shrink:0; }
.chat-preview-name { font-size:13px; font-weight:600; margin-bottom:3px; }
.chat-preview-msg { font-size:11px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:160px; }
.chat-main { display:flex; flex-direction:column; background:var(--bg); }
.chat-header { padding:16px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:12px; background:var(--surface); }
.chat-header-info .name { font-weight:600; font-size:14px; cursor:pointer; transition:color 0.15s; }
.chat-header-info .name:hover { color:var(--accent); }
.chat-header-info .subline { font-size:11px; color:var(--text-muted); }
.chat-messages { flex:1; overflow-y:auto; padding:20px; display:flex; flex-direction:column; gap:12px; }
.msg-wrap { display:flex; gap:8px; max-width:75%; }
.msg-wrap.own { align-self:flex-end; flex-direction:row-reverse; }
.msg-bubble { background:var(--surface); border:1px solid var(--border); padding:9px 14px; border-radius:14px; border-bottom-left-radius:3px; font-size:13px; line-height:1.5; box-shadow:var(--shadow); }
.msg-wrap.own .msg-bubble { background:var(--accent); color:#fff; border-color:var(--accent); border-bottom-left-radius:14px; border-bottom-right-radius:3px; box-shadow:0 2px 8px rgba(0,148,207,0.2); }
.msg-time { font-size:10px; color:var(--text-dim); margin-top:4px; font-family:var(--font-mono); }
.msg-wrap.own .msg-time { text-align:right; }
.chat-input-row { padding:16px; border-top:1px solid var(--border); display:flex; gap:10px; background:var(--surface); }
.chat-input-row input { flex:1; background:var(--surface2); border:1px solid var(--border); color:var(--text); padding:10px 16px; border-radius:20px; font-family:var(--font-body); font-size:13px; outline:none; transition:all 0.15s; }
.chat-input-row input:focus { border-color:var(--accent); background:var(--surface); }
.send-btn { width:40px; height:40px; background:var(--accent); color:#fff; border:none; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; transition:all 0.15s; box-shadow:0 2px 8px rgba(0,148,207,0.3); }
.send-btn:hover { opacity:0.85; transform:scale(1.05); }
.chat-empty { flex:1; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:12px; color:var(--text-dim); }
.chat-empty .icon { font-size:40px; }

/* ── AVATAR UPLOAD ── */
.avatar-upload-wrap {
  position: relative; width: 80px; height: 80px; margin-bottom: 16px; cursor: pointer;
}
.avatar-wrap {
  width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-family: var(--font-display); font-size: 32px;
  font-weight: 900; color: #fff; overflow: hidden;
}
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-upload-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,0.45); display: flex; flex-direction: column;
  align-items: center; justify-content: center; opacity: 0;
  transition: opacity 0.18s; color: #fff; font-size: 10px; font-weight: 600;
  letter-spacing: 0.5px; gap: 3px;
}
.avatar-upload-wrap:hover .avatar-upload-overlay { opacity: 1; }
.avatar-upload-overlay .cam-icon { font-size: 18px; }

/* my profile */
.profile-layout { display:grid; grid-template-columns:280px 1fr; gap:28px; }
.profile-card { background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:28px; height:fit-content; box-shadow:var(--shadow); }
.profile-name-display { font-family:var(--font-display); font-size:24px; font-weight:700; }
.profile-handle-display { color:var(--text-muted); font-size:12px; font-family:var(--font-mono); margin-bottom:16px; }
.profile-stats { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:20px 0; padding:16px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.stat { text-align:center; }
.stat-num { font-family:var(--font-display); font-size:26px; font-weight:700; color:var(--accent); }
.stat-label { font-size:11px; color:var(--text-muted); letter-spacing:1px; text-transform:uppercase; }
.profile-saved { color:var(--accent2); font-size:12px; margin-top:8px; display:none; font-weight:600; }

/* ── PUBLIC SELLER PROFILE ── */
.back-btn { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--text-muted); cursor:pointer; padding:6px 0; margin-bottom:20px; background:none; border:none; font-family:var(--font-body); transition:color 0.15s; }
.back-btn:hover { color:var(--accent); }

.seller-hero {
  background:var(--surface); border:1px solid var(--border); border-radius:20px;
  padding:36px; margin-bottom:32px; box-shadow:var(--shadow);
  display:flex; align-items:flex-start; gap:28px; position:relative; overflow:hidden;
}
.seller-hero::before {
  content:''; position:absolute; inset:0;
  background:linear-gradient(135deg, rgba(0,148,207,0.04) 0%, transparent 60%);
  pointer-events:none;
}
.seller-hero-avatar {
  width:96px; height:96px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:38px; font-weight:900; color:#fff; flex-shrink:0;
  box-shadow:0 4px 20px rgba(0,0,0,0.15);
}
.seller-hero-body { flex:1; min-width:0; }
.seller-hero-name { font-family:var(--font-display); font-size:34px; font-weight:900; margin-bottom:3px; line-height:1; }
.seller-hero-handle { font-size:13px; font-family:var(--font-mono); color:var(--text-muted); margin-bottom:12px; }
.seller-hero-bio { font-size:14px; color:var(--text-muted); line-height:1.7; margin-bottom:14px; max-width:500px; }
.seller-hero-chips { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.seller-chip { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:var(--text-muted); background:var(--surface2); border:1px solid var(--border); padding:4px 12px; border-radius:12px; }
.seller-chip.me-chip { background:var(--accent-light); color:var(--accent); border-color:rgba(0,148,207,0.2); }
.seller-hero-actions { display:flex; gap:8px; flex-wrap:wrap; }

.seller-hero-right { display:flex; flex-direction:column; gap:10px; flex-shrink:0; }
.seller-stat-card { background:var(--surface2); border:1px solid var(--border); border-radius:12px; padding:14px 22px; text-align:center; min-width:82px; }
.seller-stat-num { font-family:var(--font-display); font-size:30px; font-weight:700; color:var(--accent); line-height:1; }
.seller-stat-label { font-size:10px; color:var(--text-muted); text-transform:uppercase; letter-spacing:1px; margin-top:3px; }

/* modal */
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(26,22,18,0.5); z-index:200; align-items:center; justify-content:center; padding:20px; backdrop-filter:blur(4px); }
.modal-overlay.open { display:flex; animation:fadeUp 0.2s ease; }
.modal { background:var(--surface); border:1px solid var(--border); border-radius:16px; width:100%; max-width:700px; max-height:90vh; overflow-y:auto; display:grid; grid-template-columns:280px 1fr; box-shadow:0 20px 60px rgba(0,0,0,0.15); position:relative; }
.modal-img { background:var(--surface2); display:flex; align-items:center; justify-content:center; font-size:80px; border-right:1px solid var(--border); min-height:320px; border-radius:16px 0 0 16px; }
.modal-details { padding:28px; }
.modal-brand { font-size:10px; font-weight:700; letter-spacing:2px; color:var(--accent); text-transform:uppercase; margin-bottom:6px; }
.modal-name { font-family:var(--font-display); font-size:26px; font-weight:700; margin-bottom:8px; line-height:1.15; }
.modal-price { font-family:var(--font-display); font-size:30px; font-weight:700; margin-bottom:20px; }
.modal-attr { display:flex; gap:8px; margin-bottom:20px; flex-wrap:wrap; }
.attr-chip { background:var(--surface2); border:1px solid var(--border); padding:5px 12px; border-radius:10px; font-size:12px; font-family:var(--font-mono); color:var(--text-muted); }
.modal-desc { font-size:13px; color:var(--text-muted); line-height:1.6; margin-bottom:24px; }
.modal-seller-card { display:flex; align-items:center; gap:12px; padding:14px; background:var(--surface2); border-radius:var(--radius); margin-bottom:16px; cursor:pointer; border:1px solid var(--border); transition:all 0.15s; }
.modal-seller-card:hover { border-color:var(--accent); background:var(--accent-light); }
.modal-seller-card .s-name { font-size:13px; font-weight:600; }
.modal-seller-card .s-label { font-size:11px; color:var(--text-muted); }
.modal-actions { display:flex; gap:8px; }
.modal-actions .btn { flex:1; }
.modal-close { position:absolute; top:16px; right:16px; background:var(--surface2); border:1px solid var(--border); color:var(--text-muted); width:32px; height:32px; border-radius:50%; cursor:pointer; font-size:14px; display:flex; align-items:center; justify-content:center; transition:all 0.15s; }
.modal-close:hover { background:var(--border); color:var(--text); }

.cond-badge { display:inline-block; padding:3px 10px; border-radius:10px; font-size:10px; font-weight:700; letter-spacing:0.5px; text-transform:uppercase; font-family:var(--font-mono); }
.cond-new  { background:rgba(45,106,79,0.1);  color:var(--accent2); border:1px solid rgba(45,106,79,0.2); }
.cond-used { background:rgba(0,148,207,0.1);  color:var(--accent);  border:1px solid rgba(0,148,207,0.2); }
.cond-fair { background:rgba(122,112,104,0.1);color:#888;           border:1px solid rgba(122,112,104,0.2); }

/* follow button */
.follow-btn {
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 20px; border-radius:20px; font-family:var(--font-body);
  font-size:13px; font-weight:600; cursor:pointer; transition:all 0.18s;
  border:2px solid var(--accent2); background:transparent; color:var(--accent2);
}
.follow-btn:hover { background:var(--accent2); color:#fff; transform:translateY(-1px); box-shadow:0 4px 12px rgba(45,106,79,0.25); }
.follow-btn.following { background:var(--accent2); color:#fff; }
.follow-btn.following:hover { background:#e8f5f0; color:var(--accent2); }

/* following feed */
.following-grid { display:flex; flex-direction:column; gap:16px; }
.following-user-row {
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  padding:20px; box-shadow:var(--shadow); transition:all 0.15s;
}
.following-user-row:hover { border-color:var(--border); box-shadow:var(--shadow-hover); }
.following-user-header { display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.following-user-avatar { width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:18px; font-weight:900; color:#fff; flex-shrink:0; cursor:pointer; transition:opacity 0.15s; }
.following-user-avatar:hover { opacity:0.85; }
.following-user-meta { flex:1; }
.following-user-name { font-weight:700; font-size:15px; cursor:pointer; transition:color 0.15s; }
.following-user-name:hover { color:var(--accent); }
.following-user-handle { font-size:12px; color:var(--text-muted); font-family:var(--font-mono); }
.following-user-listings { display:grid; grid-template-columns:repeat(auto-fill, minmax(130px,1fr)); gap:10px; }
.following-mini-card { background:var(--surface2); border:1px solid var(--border); border-radius:10px; overflow:hidden; cursor:pointer; transition:all 0.15s; }
.following-mini-card:hover { border-color:var(--accent); transform:translateY(-2px); box-shadow:var(--shadow-hover); }
.following-mini-img { aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; font-size:28px; background:var(--surface2); }
.following-mini-info { padding:8px 10px; }
.following-mini-name { font-size:11px; font-weight:500; line-height:1.3; margin-bottom:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.following-mini-price { font-family:var(--font-display); font-size:14px; font-weight:700; color:var(--accent); }
.no-following { text-align:center; padding:48px 20px; color:var(--text-muted); }
.no-following .icon { font-size:40px; margin-bottom:12px; }

/* profile tabs */
.profile-tabs { display:flex; gap:0; border-bottom:2px solid var(--border); margin-bottom:24px; }
.profile-tab { padding:10px 20px; font-size:13px; font-weight:600; color:var(--text-muted); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all 0.15s; background:none; border-top:none; border-left:none; border-right:none; font-family:var(--font-body); }
.profile-tab:hover { color:var(--text); }
.profile-tab.active { color:var(--accent); border-bottom-color:var(--accent); }

/* ── SAVE BUTTON ── */
.save-btn {
  position:absolute; bottom:10px; right:10px; z-index:2;
  width:32px; height:32px; border-radius:50%; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center; font-size:15px;
  background:rgba(255,255,255,0.92); backdrop-filter:blur(4px);
  box-shadow:0 2px 8px rgba(0,0,0,0.12); transition:all 0.18s;
}
.save-btn:hover { transform:scale(1.12); background:#fff; }
.save-btn.saved { background:#ffe4e4; }

/* ── FEATURED STRIP ── */
.featured-strip {
  background:#222;
  border-radius:0px; padding:28px 32px; margin-bottom:28px;
  display:flex; align-items:center; gap:24px; position:relative; overflow:hidden;
}
.featured-strip::before { content:'⚾'; position:absolute; right:28px; top:50%; transform:translateY(-50%); font-size:110px; opacity:0.06; pointer-events:none; }
.featured-text { flex:1; min-width:0; }
.featured-label { font-size:10px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--accent); margin-bottom:6px; }
.featured-title { font-family:var(--font-display); font-size:22px; font-weight:900; color:#fff; margin-bottom:4px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.featured-sub { font-size:12px; color:rgba(255,255,255,0.5); }
.featured-price { font-family:var(--font-display); font-size:32px; font-weight:900; color:var(--accent); flex-shrink:0; }
.featured-actions { display:flex; flex-direction:column; gap:8px; flex-shrink:0; }
.featured-btn { background:var(--accent); color:#fff; border:none; padding:10px 22px; border-radius:20px; font-family:var(--font-body); font-size:13px; font-weight:600; cursor:pointer; transition:all 0.15s; white-space:nowrap; }
.featured-btn:hover { opacity:0.85; transform:translateY(-1px); }
.featured-btn.outline { background:transparent; border:1px solid rgba(255,255,255,0.25); color:rgba(255,255,255,0.75); }
.featured-btn.outline:hover { border-color:rgba(255,255,255,0.5); color:#fff; }

/* ── NOTIFICATIONS ── */
.notif-btn { position:relative; background:none; border:1px solid var(--border); color:var(--text-muted); width:38px; height:38px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:16px; transition:all 0.15s; flex-shrink:0; }
.notif-btn:hover { background:var(--surface2); color:var(--text); }
.notif-dot { position:absolute; top:5px; right:5px; width:9px; height:9px; background:var(--accent); border-radius:50%; border:2px solid var(--bg); display:none; }
.notif-dot.show { display:block; }
.notif-panel { display:none; position:fixed; top:72px; right:24px; width:340px; max-height:480px; background:var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow:0 8px 40px rgba(0,0,0,0.12); z-index:150; overflow:hidden; animation:fadeUp 0.18s ease; }
.notif-panel.open { display:block; }
.notif-header { display:flex; align-items:center; justify-content:space-between; padding:16px 18px 12px; border-bottom:1px solid var(--border); }
.notif-header-title { font-family:var(--font-display); font-size:15px; font-weight:700; }
.notif-mark-read { font-size:11px; color:var(--accent); cursor:pointer; background:none; border:none; font-family:var(--font-body); }
.notif-mark-read:hover { text-decoration:underline; }
.notif-list { overflow-y:auto; max-height:390px; }
.notif-item { display:flex; gap:12px; padding:13px 18px; border-bottom:1px solid var(--border); cursor:pointer; transition:background 0.1s; align-items:flex-start; }
.notif-item:hover { background:var(--surface2); }
.notif-item.unread { background:var(--accent-light); }
.notif-item.unread:hover { background:#fbd8cc; }
.notif-icon { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; background:var(--surface2); border:1px solid var(--border); }
.notif-body { flex:1; min-width:0; }
.notif-text { font-size:12px; line-height:1.5; color:var(--text); }
.notif-text strong { font-weight:600; }
.notif-time { font-size:10px; color:var(--text-dim); margin-top:3px; font-family:var(--font-mono); }
.notif-empty { padding:40px 20px; text-align:center; color:var(--text-muted); font-size:13px; }

/* ── VIEW COUNTER + PRICE DROP ── */
.listing-views { display:flex; align-items:center; gap:3px; font-size:10px; color:var(--text-dim); font-family:var(--font-mono); margin-top:5px; }
.price-drop-badge { background:rgba(45,106,79,0.1); color:var(--accent2); border:1px solid rgba(45,106,79,0.2); padding:2px 8px; border-radius:8px; font-size:10px; font-weight:700; font-family:var(--font-mono); }

/* ── SAVED VIEW ── */
.saved-empty { text-align:center; padding:64px 20px; }
.saved-empty .icon { font-size:48px; margin-bottom:14px; }
.saved-empty p { font-size:13px; color:var(--text-muted); line-height:1.7; }

/* ── PROFILE STAT 3-COL ── */
.profile-stats { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; margin:20px 0; padding:16px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }

.toast { position:fixed; bottom:24px; right:24px; background:var(--text); color:var(--bg); padding:12px 20px; border-radius:20px; font-size:13px; font-weight:600; z-index:999; opacity:0; transform:translateY(12px); transition:all 0.3s; pointer-events:none; box-shadow:0 8px 24px rgba(0,0,0,0.15); }
.toast.show { opacity:1; transform:translateY(0); }

/* ══════════════════════════════════════════════════════
   CHECKOUT PAGE
   ══════════════════════════════════════════════════════ */

/* Layout */
.checkout-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Left column ── */
.checkout-summary-col {
  position: sticky;
  top: 170px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-bat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.checkout-bat-img {
  width: 90px;
  height: 110px;
  border-radius: 10px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.checkout-bat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.checkout-bat-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.checkout-bat-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.checkout-bat-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.checkout-bat-price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.checkout-bat-seller {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Price breakdown */
.checkout-price-breakdown {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 6px 0;
}

.price-row.total {
  border-top: 1.5px solid var(--border);
  margin-top: 8px;
  padding-top: 14px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.price-row .label { color: var(--text-muted); }
.price-row .value { font-weight: 600; color: var(--text); }
.price-row.total .value { color: var(--accent); }
.price-row .value.green { color: var(--accent2); }

/* Trust badges */
.checkout-trust-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trust-badge {
  flex: 1;
  min-width: 90px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.trust-badge span:first-child { font-size: 18px; }

/* ── Right column ── */
.checkout-form-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}

/* Step indicator */
.checkout-steps {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.25s;
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.25s;
}

.checkout-step.active .step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0,148,207,0.15);
}

.checkout-step.active .step-label { color: var(--accent); }

.checkout-step.done .step-circle {
  background: var(--accent2);
  border-color: var(--accent2);
  color: #fff;
}

.checkout-step.done .step-label { color: var(--accent2); }

.step-connector {
  flex: 1;
  height: 1.5px;
  background: var(--border);
  margin: 0 10px;
  transition: background 0.25s;
}

.step-connector.done { background: var(--accent2); }

/* Section titles inside form */
.checkout-section-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Shipping options */
.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shipping-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.18s;
}

.shipping-option:hover { border-color: var(--accent); }
.shipping-option.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.shipping-option input[type="radio"] { display: none; }

.shipping-option-body { flex: 1; }

.shipping-option-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.shipping-option-eta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.shipping-option-price {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

/* Payment tabs */
.payment-tabs {
  display: flex;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 4px;
}

.payment-tab {
  flex: 1;
  padding: 9px 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.payment-tab:hover { color: var(--text); }
.payment-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Card input */
.card-input-wrap {
  position: relative;
}

.card-input-wrap input {
  padding-right: 48px !important;
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.card-brand-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  pointer-events: none;
}

/* Checkbox row */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

/* Alt payment box */
.alt-payment-box {
  margin-top: 18px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.alt-payment-logo {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.alt-payment-box p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.venmo-handle-display {
  margin-top: 16px;
  background: #008cff18;
  border: 1px solid #008cff44;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #008cff;
  text-align: center;
}

/* Review step */
.review-section {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.review-section:last-of-type { border-bottom: none; }

.review-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 130px;
  flex-shrink: 0;
  padding-top: 2px;
}

.review-section-value {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}

.review-edit-btn {
  font-size: 11px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: underline;
  flex-shrink: 0;
  padding-top: 2px;
}

.review-edit-btn:hover { opacity: 0.75; }

.order-total-box {
  background: linear-gradient(135deg, #0094cf0d, #2d6a4f0d);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 8px;
}

/* ── Order success overlay ── */
.order-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,22,18,0.6);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeUp 0.25s ease;
}

.order-success-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: successBounce 0.6s cubic-bezier(0.36,0.07,0.19,0.97) both;
}

@keyframes successBounce {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  80%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.success-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
}

.success-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.success-order-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(0,148,207,0.2);
  padding: 6px 16px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 16px;
}

.success-details {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  background: var(--surface2);
  border-radius: 12px;
  padding: 14px 16px;
}

.success-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(500px) rotate(720deg); opacity: 0; }
}

/* ── BUY NOW button on card ── */
.card-buy-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  background: var(--accent2);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.18s;
  box-shadow: 0 2px 8px rgba(45,106,79,0.3);
}
.listing-card:hover .card-buy-btn {
  opacity: 1;
  transform: translateY(0);
}
.card-buy-btn:hover {
  background: #1d5237;
  box-shadow: 0 4px 12px rgba(45,106,79,0.4);
}

::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:4px; }

@media (max-width:768px) {
  header { padding:0 16px; }
  .view { padding:16px; }
  .profile-layout { grid-template-columns:1fr; }
  .chat-layout { grid-template-columns:1fr; height:auto; }
  .chat-list { display:none; }
  .modal { grid-template-columns:1fr; }
  .modal-img { min-height:200px; border-right:none; border-bottom:1px solid var(--border); border-radius:16px 16px 0 0; }
  .page-title { font-size:30px; }
  .seller-hero { flex-direction:column; }
  .seller-hero-right { flex-direction:row; }
  .title-descr {display:none;}
  nav {
    padding: 0;
  }
  .featured-strip {
    padding: 20px;
    gap: 5px;
  }
::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:4px; }

@media (max-width:768px) {
  header { padding:0 16px; }
  .view { padding:16px; }
  .profile-layout { grid-template-columns:1fr; }
  .chat-layout { grid-template-columns:1fr; height:auto; }
  .chat-list { display:none; }
  .modal { grid-template-columns:1fr; }
  .modal-img { min-height:200px; border-right:none; border-bottom:1px solid var(--border); border-radius:16px 16px 0 0; }
  .page-title { font-size:30px; }
  .seller-hero { flex-direction:column; }
  .seller-hero-right { flex-direction:row; }
  .title-descr {display:none;}
  nav {
    padding: 0;
  }
  .featured-strip {
    padding: 20px;
    gap: 5px;
  }
  .checkout-summary-col {
    position: initial;
  }
}