/* Arcade Exchange - mobile-first neon arcade theme */

:root {
  --bg: #0d1014;
  --bg-alt: #121720;
  --panel: #171c25;
  --panel-alt: #202735;
  --border: #2c3442;
  --text: #edf1f7;
  --muted: #99a3b5;
  --accent: #27d980;
  --accent2: #58b7ff;
  --accent3: #ffd23f;
  --success: #2ee6a6;
  --danger: #ff5c7a;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 12px;
  --header-h: 58px;
  --category-h: 44px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-top: calc(var(--header-h) + var(--category-h));
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #000; padding: 8px 12px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap;
  transition: transform .1s ease, opacity .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--accent { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #06100b; }
.btn--outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--ghost { color: var(--text); background: transparent; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--full { width: 100%; }
.btn--sm { padding: 6px 12px; font-size: .82rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------------- Announcement bar ---------------- */
body.has-announce { padding-top: calc(var(--header-h) + var(--category-h) + 36px); }
body.has-announce .site-header { top: 36px; }
.announce-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110; height: 36px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #04060c; font-size: .82rem; font-weight: 700; padding: 0 40px;
}
.announce-bar a, .announce-bar span { color: #04060c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce-bar__close {
  position: absolute; right: 6px; top: 4px; width: 28px; height: 28px; border: none;
  background: transparent; color: #04060c; font-size: 1.2rem; cursor: pointer; line-height: 1;
}

/* ---------------- Header ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,14,20,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__bar {
  height: var(--header-h); display: flex; align-items: center; gap: 12px;
  padding: 0 12px; max-width: var(--container); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.15rem; flex-shrink: 0; }
.logo__img { max-height: 36px; max-width: 180px; display: block; }
.logo__mark { font-size: 1.3rem; }
.logo__text em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hamburger { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

.site-search { display: none; flex: 1; position: relative; }
.site-search input {
  width: 100%; padding: 9px 40px 9px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); font-size: .9rem;
}
.site-search button { position: absolute; right: 4px; top: 3px; bottom: 3px; width: 32px; background: none; border: none; color: var(--muted); cursor: pointer; }
.site-search--drawer { display: flex; margin-bottom: 12px; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-actions__sell { display: none; }
.header-actions__join { display: none; }
.icon-link { position: relative; font-size: 1.2rem; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.icon-link:hover { background: var(--panel); }
.badge {
  position: absolute; top: 2px; right: 2px; background: var(--accent2); color: #fff;
  font-size: .62rem; font-weight: 700; border-radius: 999px; min-width: 15px; height: 15px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--panel-alt);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  background-size: cover; background-position: center; border: 1px solid var(--border);
}
.avatar--sm { width: 30px; height: 30px; font-size: .85rem; }
.avatar--lg { width: 72px; height: 72px; font-size: 1.6rem; }

.account-menu { position: relative; }
.account-menu__toggle { background: none; border: none; cursor: pointer; padding: 0; }
.account-menu__dropdown {
  display: none; position: absolute; right: 0; top: 46px; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius); min-width: 190px;
  padding: 6px; flex-direction: column; box-shadow: 0 12px 30px rgba(0,0,0,.4); z-index: 200;
}
.account-menu__dropdown.is-open { display: flex; }
.account-menu__dropdown a { padding: 9px 12px; border-radius: 8px; font-size: .9rem; }
.account-menu__dropdown a:hover { background: var(--panel-alt); }

.category-bar {
  height: var(--category-h); display: flex; align-items: center; gap: 18px; overflow-x: auto;
  padding: 0 16px; border-top: 1px solid var(--border); font-size: .84rem; white-space: nowrap;
  max-width: var(--container); margin: 0 auto; scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }
.category-bar a { color: var(--muted); flex-shrink: 0; }
.category-bar a:hover, .category-bar__all { color: var(--text); }

/* ---------------- Mobile drawer ---------------- */
.mobile-drawer {
  position: fixed; top: 0; left: -300px; bottom: 0; width: 280px; background: var(--panel);
  z-index: 300; padding: 16px; overflow-y: auto; transition: left .25s ease; display: flex; flex-direction: column; gap: 2px;
}
.mobile-drawer.is-open { left: 0; }
.mobile-drawer a { padding: 11px 4px; border-bottom: 1px solid var(--border); }
.mobile-drawer hr { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.drawer-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 250;
}
.drawer-overlay.is-open { display: block; }

/* ---------------- Flash messages ---------------- */
.flash-stack { position: fixed; top: calc(var(--header-h) + var(--category-h) + 10px); left: 0; right: 0; z-index: 500; display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 0 12px; }
.flash { padding: 10px 18px; border-radius: calc(var(--radius) - 2px); font-size: .88rem; max-width: 480px; width: 100%; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.flash--success { background: #123a2c; color: var(--success); border: 1px solid #1f5c40; }
.flash--error { background: #2a1220; color: var(--danger); border: 1px solid #5c1f36; }
.flash--info { background: #12233a; color: var(--accent); border: 1px solid #1f3d5c; }

/* ---------------- Hero / Home ---------------- */
.hero {
  background: radial-gradient(circle at 20% 20%, rgba(0,229,255,.18), transparent 55%),
              radial-gradient(circle at 80% 0%, rgba(255,46,196,.15), transparent 55%), var(--bg-alt);
  padding: 40px 0 32px; border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: 1.7rem; margin-bottom: 10px; }
.hero p { color: var(--muted); max-width: 520px; margin-bottom: 20px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.section { padding: 32px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section__head a { color: var(--accent); font-size: .88rem; }

.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.category-tile {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 14px; text-align: center; font-weight: 600; font-size: .88rem;
}
.category-tile__icon { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.category-tile:hover { border-color: var(--accent); }
.category-tile--photo {
  position: relative; background-size: cover; background-position: center; min-height: 110px;
  display: flex; align-items: flex-end; padding: 0; overflow: hidden;
}
.category-tile--photo .category-tile__label {
  width: 100%; padding: 24px 12px 12px; text-align: left; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
}

/* ---------------- Promo banners ---------------- */
.promo-banners { display: grid; gap: 14px; grid-template-columns: 1fr; }
.promo-banner {
  position: relative; display: flex; align-items: flex-end; min-height: 160px;
  border-radius: var(--radius); background-size: cover; background-position: center;
  border: 1px solid var(--border); overflow: hidden;
}
.promo-banner__heading {
  width: 100%; padding: 30px 16px 14px; font-weight: 800; font-size: 1.15rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
}
a.promo-banner:hover { border-color: var(--accent); }

/* ---------------- Blog cards ---------------- */
.post-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.post-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.post-card:hover { border-color: var(--accent); }
.post-card img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.post-card__body { padding: 14px 16px 16px; }
.post-card__body h3 { font-size: 1rem; margin-bottom: 6px; }
.post-card__body p { font-size: .85rem; margin: 0 0 8px; }
.post-content { line-height: 1.7; }
.post-content img { border-radius: var(--radius); margin: 14px 0; }
.post-content h2, .post-content h3 { margin-top: 1.4em; }
@media (min-width: 720px) {
  .promo-banners--2 { grid-template-columns: 1fr 1fr; }
  .promo-banner { min-height: 200px; }
  .post-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------- Listing grid & card ---------------- */
.listing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.listing-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .15s ease;
}
.listing-card:hover { border-color: var(--accent); }
.listing-card__media { position: relative; aspect-ratio: 1/1; background: var(--bg-alt); overflow: hidden; }
.listing-card__media img { width: 100%; height: 100%; object-fit: cover; }
.watch-btn {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(11,14,20,.7); border: none; color: #fff; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.watch-btn.is-watching { color: var(--accent2); }
.badge-ribbon {
  position: absolute; top: 8px; left: 8px; background: var(--danger); color: #fff; font-size: .7rem;
  font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase;
}
.listing-card__body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.listing-card__title { font-size: .88rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listing-card__price { font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; }
.tag--offer { background: rgba(0,229,255,.15); color: var(--accent); }
.tag--drop { background: rgba(255,210,63,.16); color: var(--accent3); }
.listing-card__meta { font-size: .74rem; color: var(--muted); }
.listing-card__price s { color: var(--muted); font-weight: 600; font-size: .82rem; }

/* ---------------- Browse layout / filters ---------------- */
.browse-layout { display: flex; flex-direction: column; gap: 18px; }
.browse-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.browse-toolbar select { background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.filter-toggle { display: inline-flex; align-items: center; gap: 6px; }

.filters-panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px;
}
.filters-panel h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.filter-group label { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: .9rem; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--text); }
.form-control--compact { margin-top: 8px; padding: 8px 10px; font-size: .86rem; }
.save-search-form { margin: 0; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 24px 0; font-size: .9rem; }
.pagination a { color: var(--accent); font-weight: 600; }

/* ---------------- Listing detail ---------------- */
.listing-detail { display: flex; flex-direction: column; gap: 22px; padding: 20px 0 40px; }
.gallery-main { aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.gallery-thumbs img.is-active { border-color: var(--accent); }

.listing-info h1 { font-size: 1.4rem; }
.listing-price { font-size: 1.8rem; font-weight: 800; margin: 8px 0; }
.listing-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.badge-pill { background: var(--panel-alt); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; font-size: .8rem; }

.buy-box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.buy-box__row { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); }
.trust-note { border: 1px solid rgba(39,217,128,.28); background: rgba(39,217,128,.08); color: #bff5d7; border-radius: 8px; padding: 9px 10px; font-size: .82rem; }

.detail-panels { display: grid; gap: 12px; margin-top: 16px; }
.detail-panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px;
}
.detail-panel h3 { font-size: .98rem; margin-bottom: 10px; }
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.market-grid div { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.market-grid strong { display: block; font-size: 1rem; }
.market-grid span { display: block; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.spec-list { margin: 0; display: grid; gap: 8px; }
.spec-list div { display: grid; grid-template-columns: minmax(120px, .45fr) 1fr; gap: 10px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.spec-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-list dt { color: var(--muted); font-size: .78rem; }
.spec-list dd { margin: 0; font-size: .88rem; }
.mini-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 7px; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .82rem; }
.mini-list strong { color: var(--text); white-space: nowrap; }
.inline-link { color: var(--accent); font-weight: 700; font-size: .86rem; }
.small-copy { font-size: .84rem; margin-bottom: 0; }

.seller-card { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-top: 16px; }
.seller-card__info { flex: 1; }
.seller-card__name { font-weight: 700; }

.listing-description { white-space: pre-wrap; line-height: 1.7; color: #cdd3e4; }

.stars { color: var(--accent3); letter-spacing: 1px; font-size: .85rem; }
.stars__count { color: var(--muted); margin-left: 4px; font-size: .8rem; }

/* ---------------- Modals ---------------- */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 400;
  align-items: flex-end; justify-content: center;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--panel); border-radius: 16px 16px 0 0; width: 100%; max-width: 480px;
  padding: 22px; max-height: 85vh; overflow-y: auto;
}
@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
  .modal { border-radius: 16px; }
}
.modal__close { float: right; background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; }

/* ---------------- Forms ---------------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-alt); color: var(--text); font-size: .95rem;
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row > .form-group { flex: 1; min-width: 140px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.form-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; max-width: 460px; margin: 32px auto; }
.form-card h1 { font-size: 1.3rem; }
.form-section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 24px 0 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.form-error { background: #2a1220; border: 1px solid #5c1f36; color: var(--danger); padding: 10px 14px; border-radius: 8px; font-size: .85rem; margin-bottom: 14px; }
.form-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: .85rem; }
.form-links a { color: var(--accent); }

.image-upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.image-upload-grid .thumb { position: relative; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.image-upload-grid .thumb img { width: 100%; height: 100%; object-fit: cover; }
.image-upload-grid .thumb .remove-img { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.7); border: none; color: #fff; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; }

/* ---------------- Dashboard / account ---------------- */
.dashboard-layout { display: flex; flex-direction: column; gap: 20px; padding: 20px 0 50px; }
.dashboard-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.dashboard-nav a { padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); font-size: .85rem; white-space: nowrap; }
.dashboard-nav a.is-active { background: var(--accent); color: #04060c; border-color: var(--accent); font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-card__value { font-size: 1.5rem; font-weight: 800; }
.stat-card__label { font-size: .8rem; color: var(--muted); }

.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th, .data-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.data-table th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; }
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.table-wrap .data-table { min-width: 560px; }

.status-pill { padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.status-pending_payment, .status-pending { background: #3a2e12; color: var(--accent3); }
.status-paid, .status-active, .status-accepted, .status-completed { background: #123a2c; color: var(--success); }
.status-shipped { background: #12233a; color: var(--accent); }
.status-cancelled, .status-declined, .status-removed { background: #2a1220; color: var(--danger); }
.status-sold, .status-draft { background: #232a41; color: var(--muted); }

.thread-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.thread-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--panel); }
.thread-item.is-unread { background: var(--panel-alt); font-weight: 700; }
.thread-item__name { font-size: .9rem; }
.thread-item__preview { font-size: .82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.message-thread { display: flex; flex-direction: column; gap: 10px; padding: 16px 0 90px; }
.message-bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: .9rem; background: var(--panel); border: 1px solid var(--border); }
.message-bubble.is-mine { align-self: flex-end; background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #04060c; }
.message-bubble__time { font-size: .68rem; opacity: .7; margin-top: 4px; display: block; }
.message-compose { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg); border-top: 1px solid var(--border); padding: 10px 12px; display: flex; gap: 8px; z-index: 90; }
.message-compose textarea { flex: 1; resize: none; border-radius: 20px; padding: 10px 16px; border: 1px solid var(--border); background: var(--panel); color: var(--text); max-height: 100px; }

.empty-state { text-align: center; padding: 60px 16px; }
.empty-state__icon { font-size: 2.4rem; margin-bottom: 12px; }

/* ---------------- Marketplace utility pages ---------------- */
.utility-hero {
  display: grid; gap: 18px; align-items: end; padding: 32px 0 26px;
  border-bottom: 1px solid var(--border); margin-bottom: 22px;
}
.utility-hero h1 { font-size: 1.6rem; margin-bottom: 8px; }
.utility-hero p { max-width: 680px; margin: 0; }
.utility-search { display: flex; gap: 10px; align-items: center; max-width: 620px; }
.utility-search .form-control { margin: 0; }
.info-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 18px 0 40px; }
.stat-grid--wide { margin-bottom: 18px; }

/* ---------------- Seller profile ---------------- */
.seller-header { display: flex; align-items: center; gap: 16px; padding: 24px 0; }
.seller-header__info h1 { font-size: 1.3rem; margin-bottom: 4px; }
.seller-trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 22px; }
.seller-policy-panel { margin-bottom: 22px; }
.seller-policy-panel p { font-size: .9rem; }

/* ---------------- Reviews ---------------- */
.review { border-bottom: 1px solid var(--border); padding: 14px 0; }
.review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }

/* ---------------- Offer / cart lines ---------------- */
.cart-item { display: flex; gap: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.cart-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-item__info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cart-item__remove { align-self: flex-start; color: var(--danger); font-size: .8rem; background: none; border: none; cursor: pointer; padding: 0; }
.cart-summary { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.cart-summary__row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .9rem; }
.cart-summary__row--total { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 32px 16px 0; margin-top: 40px; }
.site-footer__grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.site-footer__grid > div:first-child { grid-column: 1 / -1; }
.site-footer__grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.site-footer__grid a { display: block; padding: 5px 0; font-size: .88rem; color: #cdd3e4; }
.site-footer__grid a:hover { color: var(--accent); }
.logo--footer { margin-bottom: 8px; }
.site-footer__bottom { max-width: var(--container); margin: 24px auto 0; padding: 16px 0; border-top: 1px solid var(--border); font-size: .78rem; color: var(--muted); }
@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .site-footer__grid > div:first-child { grid-column: auto; }
}

/* ---------------- Responsive ---------------- */
@media (min-width: 720px) {
  body { padding-top: calc(var(--header-h) + var(--category-h)); }
  .hamburger { display: none; }
  .site-search { display: flex; max-width: 420px; }
  .header-actions__sell { display: inline-flex; }
  .header-actions__join { display: inline-flex; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .listing-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .seller-trust-grid { grid-template-columns: repeat(4, 1fr); }
  .utility-hero { grid-template-columns: 1fr auto; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-detail { flex-direction: row; align-items: flex-start; }
  .listing-detail__gallery { width: 46%; position: sticky; top: calc(var(--header-h) + var(--category-h) + 16px); }
  .listing-detail__info { flex: 1; }
  .browse-layout { flex-direction: row; align-items: flex-start; }
  .filters-panel { width: 260px; flex-shrink: 0; position: sticky; top: calc(var(--header-h) + var(--category-h) + 16px); }
  .browse-results { flex: 1; }
  .filters-toggle-mobile { display: none; }
}
@media (min-width: 1000px) {
  .listing-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 719px) {
  .filters-panel { display: none; }
  .filters-panel.is-open { display: flex; }
}

/* Tight phone widths: keep the header on one line without clipping */
@media (max-width: 520px) {
  .site-header__bar { gap: 4px; padding: 0 8px; }
  .logo { gap: 4px; }
  .logo__text { font-size: 1rem; }
  .logo__mark { font-size: 1.1rem; }
  .header-actions { gap: 2px; }
  .icon-link { width: 34px; height: 34px; font-size: 1.05rem; }
  .btn--ghost { padding: 8px 8px; font-size: .85rem; }
}
@media (max-width: 400px) {
  .logo__mark { display: none; }
}

/* ---------------- Search autocomplete ---------------- */
.site-search { position: relative; }
.suggest-box {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 400;
  background: var(--panel); border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px);
  overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.5);
}
.suggest-box.is-open { display: block; }
.suggest-box__item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: .88rem; border-bottom: 1px solid var(--border);
}
.suggest-box__item:last-child { border-bottom: none; }
.suggest-box__item:hover { background: var(--panel-alt); }
.suggest-box__item small { color: var(--muted); flex-shrink: 0; }
.suggest-box__item--search { color: var(--accent); }
.suggest-box__item--category span::before { content: '\1F4C1  '; }
.suggest-box__item--seller span::before { content: '\1F3EA  '; }

/* ---------------- Notification bell ---------------- */
.notif-menu { position: relative; }
.notif-menu__toggle { background: none; border: none; cursor: pointer; }
.notif-menu__dropdown {
  display: none; position: absolute; right: -60px; top: 46px; width: 320px; max-width: 92vw;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0,0,0,.45); z-index: 300; overflow: hidden;
}
.notif-menu__dropdown.is-open { display: block; }
.notif-menu__head { padding: 10px 14px; font-weight: 700; font-size: .85rem; border-bottom: 1px solid var(--border); }
.notif-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: .84rem; align-items: flex-start; }
.notif-item:hover { background: var(--panel-alt); }
.notif-item.is-unread { background: rgba(0,229,255,.06); }
.notif-item.is-unread .notif-item__body { font-weight: 600; }
.notif-item__icon { flex-shrink: 0; }
.notif-item__body { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.notif-item__body small { color: var(--muted); font-weight: 400; }
.notif-item--empty { color: var(--muted); justify-content: center; padding: 18px; border-bottom: none; }
.notif-menu__all { display: block; text-align: center; padding: 10px; font-size: .82rem; color: var(--accent); }
.tag--promoted { background: rgba(255,210,63,.15); color: var(--accent3); border: 1px solid rgba(255,210,63,.4); }
.follow-btn.is-following { background: var(--panel-alt); color: var(--muted); border-color: var(--border); }
