/* ===== FONTS =====
   @import was removed — moved to <link> with preconnect in each page's <head>.
   Audit: @import inside stylesheet is worst-case loading; serial round-trip
   before any text renders. Replacement is done via includes/font-head.php. */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #06060F;
  --bg2:        #0C0C1E;
  --card:       #101020;
  --card2:      #16162E;
  --border:     #1E1E3C;
  --border2:    #2A2A50;
  --gold:       #E8B84B;
  --gold-light: #F5D470;
  --gold-dim:   #8B6D2A;
  --gold-glow:  rgba(232,184,75,.25);
  --blue:       #4FC3F7;
  --purple:     #A78BFA;
  --red:        #FF4D6D;
  --green:      #00D4A0;
  --text:       #EEEEF8;
  --muted:      #7878A0;
  --faint:      #3C3C60;
  --success:    #00D4A0;
  --danger:     #FF4D6D;
  --radius:     12px;
  --shadow:     0 4px 32px rgba(0,0,0,.7);
  --shadow-gold: 0 4px 24px rgba(232,184,75,.25);
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ===== HEADER ===== */
header {
  background: rgba(6,6,15,.9);
  border-bottom: 1px solid rgba(232,184,75,.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 1px;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(232,184,75,.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* Shield-B icon next to the wordmark. Background-image so it can ride in front
 * of any existing `Buy<span>Account</span>` markup without touching the HTML. */
.logo::before {
  content: "";
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  background-image: url("/assets/img/logo-icon.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 0 8px rgba(232,184,75,.35));
  flex-shrink: 0;
}

.logo span { color: var(--text); }

/* Auth pages have a centered logo block — keep the icon visible there too. */
.auth-logo .logo { font-size: 2rem; }

/* Footer brand can swap to a smaller wordmark variant if desired; we keep
 * the existing text styling but suppress the icon since the footer logo is
 * already styled with .hp-footer-logo and isn't an `.logo` element. */

.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.header-search input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 16px 9px 40px;
  color: var(--text);
  font-size: .9rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.header-search input:focus {
  border-color: var(--gold);
  background: rgba(232,184,75,.04);
}

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

.header-search .search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: .85rem;
}

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

#langBtn { flex-shrink: 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #E8B84B, #C89B3C);
  color: #06060F;
  box-shadow: 0 2px 12px rgba(232,184,75,.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #F5D470, #E8B84B);
  box-shadow: 0 4px 20px rgba(232,184,75,.5);
  transform: translateY(-1px);
  color: #06060F;
}

.btn-outline {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border2);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(232,184,75,.06);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 2px 12px rgba(255,77,109,.3);
}
.btn-danger:hover { background: #ff6b85; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}
.btn-ghost:hover { border-color: var(--border2); color: var(--text); }

.btn-sm { padding: 6px 14px; font-size: .8rem; border-radius: 8px; }
.btn-lg { padding: 13px 28px; font-size: 1rem; border-radius: 12px; }

/* ===== MAIN LAYOUT ===== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ===== FILTERS + GRID ===== */
.page-layout {
  display: grid;
  grid-template-columns: 265px 1fr;
  gap: 24px;
  padding: 28px 0;
}

.sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 84px;
}

.sidebar h3 {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
}

.filter-group { margin-bottom: 18px; }
.filter-group label {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 7px;
  font-weight: 600;
}

.filter-group select,
.filter-group input[type=number],
.filter-group input[type=text] {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-size: .88rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}

.filter-group select:focus,
.filter-group input[type=number]:focus,
.filter-group input[type=text]:focus { border-color: var(--gold); background: rgba(232,184,75,.03); }

.price-row { display: flex; gap: 8px; }
.price-row input { flex: 1; }

/* ===== LISTING GRID ===== */
.listings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.listings-header h2 {
  font-size: .92rem;
  color: var(--muted);
  font-weight: 500;
}
.listings-header h2 span { color: var(--text); font-size: 1.1rem; font-weight: 700; }

.sort-select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--text);
  font-size: .85rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--gold); }

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 18px;
  /* Reserve roughly one card-row of height so the spinner-to-cards transition
     doesn't trigger CLS while JS hydrates. ~360px = a typical 220px image card. */
  min-height: 360px;
}
/* Featured listings on home — same CLS guard. */
#featuredListings { min-height: 320px; }

/* ===== LISTING CARD ===== */
.listing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  position: relative;
}

.listing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(232,184,75,.06), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.listing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,184,75,.5);
  box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(232,184,75,.1), var(--shadow-gold);
}

.listing-card:hover::after { opacity: 1; }

.card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: var(--bg2);
  display: block;
  transition: transform var(--transition);
}

.listing-card:hover .card-img { transform: scale(1.03); }

.card-img-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--bg2) 0%, #1a1a35 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.card-body { padding: 14px; }

.card-badges {
  display: flex;
  gap: 5px;
  margin-bottom: 9px;
  flex-wrap: wrap;
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 5px;
  font-size: .71rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-family: 'Barlow Condensed', sans-serif;
}

.badge-server   { background: rgba(79,195,247,.12);  color: var(--blue); border: 1px solid rgba(79,195,247,.2); }
.badge-platform { background: rgba(255,152,0,.12);   color: #ff9800; border: 1px solid rgba(255,152,0,.2); }
.badge-iron        { background: rgba(125,107,90,.15);  color: #a0907e; border: 1px solid rgba(125,107,90,.25); }
.badge-bronze      { background: rgba(173,95,40,.15);   color: #d4864A; border: 1px solid rgba(173,95,40,.25); }
.badge-silver      { background: rgba(168,180,194,.15); color: #b8c4d2; border: 1px solid rgba(168,180,194,.25); }
.badge-gold        { background: rgba(232,184,75,.12);  color: var(--gold); border: 1px solid rgba(232,184,75,.25); }
.badge-platinum    { background: rgba(0,180,160,.12);   color: #00c4ae; border: 1px solid rgba(0,180,160,.2); }
.badge-emerald     { background: rgba(80,200,120,.12);  color: #50c878; border: 1px solid rgba(80,200,120,.2); }
.badge-diamond     { background: rgba(75,200,255,.12);  color: #4bc8ff; border: 1px solid rgba(75,200,255,.2); }
.badge-master      { background: rgba(167,139,250,.12); color: var(--purple); border: 1px solid rgba(167,139,250,.25); }
.badge-grandmaster { background: rgba(255,77,109,.12);  color: #ff6b80; border: 1px solid rgba(255,77,109,.2); }
.badge-challenger  { background: rgba(240,192,80,.12);  color: #f0c050; border: 1px solid rgba(240,192,80,.2); }
.badge-unranked    { background: rgba(85,85,112,.12);   color: var(--muted); border: 1px solid rgba(85,85,112,.2); }

.card-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.stat {
  background: var(--bg2);
  border-radius: 7px;
  padding: 5px 8px;
  text-align: center;
  border: 1px solid var(--border);
}

.stat-val { font-size: .82rem; font-weight: 700; color: var(--text); }
.stat-lbl { font-size: .67rem; color: var(--muted); margin-top: 1px; }

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

.card-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .5px;
}
.card-seller { font-size: .75rem; color: var(--muted); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.page-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: .88rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: rgba(232,184,75,.08);
}
.page-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(232,184,75,.12);
  font-weight: 700;
}
.page-btn[disabled] {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}
.page-btn.page-ellipsis {
  border: none;
  background: transparent;
  cursor: default;
  pointer-events: none;
  color: var(--muted);
}

/* ===== LISTING DETAIL ===== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  padding: 28px 0;
}

.gallery { margin-bottom: 20px; }

.gallery-main-wrap {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: 700px;
}

.gallery-main {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

/* Galeri thumbs — yatay kaydırılabilir.
   overflow-x: auto + belirgin scrollbar + sağ-kenar fade taşma ipucu.
   2026-05-22: scrollbar default olarak çok ince/gizli kalıyordu, kullanıcılar
   en sağdaki resimleri göremiyordu. */
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  /* Firefox + standart scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--bg2);
  /* Sağ kenarda fade — "daha resim var" görsel ipucu.
     Kaydırma uçtaki resimleri yarı saydam yapmasın diye sadece sağ kenar. */
  mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent 100%);
}
/* WebKit (Chrome, Edge, Safari) için belirgin scrollbar */
.gallery-thumbs::-webkit-scrollbar { height: 8px; }
.gallery-thumbs::-webkit-scrollbar-track {
  background: var(--bg2);
  border-radius: 4px;
}
.gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}
.gallery-thumbs::-webkit-scrollbar-thumb:hover {
  background: var(--gold-hover, var(--gold));
}

.gallery-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: border-color var(--transition), opacity var(--transition);
  opacity: .65;
}
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--gold); opacity: 1; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.94);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 95vh; object-fit: contain; border-radius: 6px; }

.detail-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.detail-description {
  color: var(--muted);
  font-size: .88rem;
  white-space: pre-wrap;
  line-height: 1.7;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--border2); }

.stat-card-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.stat-card-value { font-size: 1.25rem; font-weight: 800; color: var(--text); margin-top: 4px; font-family: 'Barlow Condensed', sans-serif; }
.stat-card-value.gold { color: var(--gold); }

/* ===== STICKY BUY BOX ===== */
.buy-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 84px;
  height: fit-content;
  transition: border-color var(--transition);
}
.buy-box:hover { border-color: var(--border2); }

.buy-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(232,184,75,.3);
}
.buy-meta { font-size: .8rem; color: var(--muted); margin-bottom: 20px; }

.buy-box .btn { width: 100%; justify-content: center; font-size: 1rem; padding: 13px; margin-bottom: 10px; }

.info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.info-row:last-child { border-bottom: none; }
.info-row .lbl { color: var(--muted); min-width: 110px; font-size: .8rem; }
.info-row .val { color: var(--text); font-weight: 600; }

/* ===== AUTH FORMS ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 42px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo { font-size: 1.7rem; }
.auth-card h2 { font-size: 1.35rem; margin-bottom: 6px; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; letter-spacing: .5px; }
.auth-card p { color: var(--muted); font-size: .88rem; margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }

.form-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-size: .92rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.form-input:focus { border-color: var(--gold); background: rgba(232,184,75,.03); }
.form-input::placeholder { color: var(--faint); }

.role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.role-btn {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg2);
  color: var(--muted);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  transition: all var(--transition);
}
.role-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(232,184,75,.08); }
.role-btn:hover:not(.active) { border-color: var(--border2); color: var(--text); }

.auth-footer { margin-top: 20px; text-align: center; font-size: .85rem; color: var(--muted); }

.alert {
  padding: 11px 14px;
  border-radius: 9px;
  font-size: .85rem;
  margin-bottom: 16px;
  display: none;
  font-weight: 500;
}
.alert-error   { background: rgba(255,77,109,.1); border: 1px solid rgba(255,77,109,.25); color: #ff8fa3; }
.alert-success { background: rgba(0,212,160,.1); border: 1px solid rgba(0,212,160,.25); color: #5de8c5; }

/* ===== DASHBOARD ===== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: calc(100vh - 68px);
}

.dash-sidebar {
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 24px 0;
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.dash-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.dash-nav a.active { color: var(--gold); background: rgba(232,184,75,.07); border-right: 2px solid var(--gold); }

.dash-content { padding: 28px; }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.dash-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition), transform var(--transition);
}
.dash-stat:hover { border-color: var(--border2); transform: translateY(-2px); }

.dash-stat-val { font-size: 1.9rem; font-weight: 800; color: var(--text); font-family: 'Barlow Condensed', sans-serif; letter-spacing: .5px; }
.dash-stat-lbl { font-size: .8rem; color: var(--muted); margin-top: 4px; }

.api-key-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
}
.api-key-box h3 { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }

.api-key-row { display: flex; align-items: center; gap: 10px; }

.api-key-val {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .82rem;
  color: var(--gold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== LISTINGS TABLE ===== */
.table-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.table-header h3 { font-size: 1rem; font-weight: 700; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; font-size: .85rem; }
th {
  background: var(--bg2);
  color: var(--muted);
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-family: 'Barlow Condensed', sans-serif;
}
td { border-bottom: 1px solid var(--border); color: var(--text); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .4px;
}
.status-active  { background: rgba(0,212,160,.12);  color: #00D4A0; border: 1px solid rgba(0,212,160,.2); }
.status-sold    { background: rgba(79,195,247,.12);  color: #4FC3F7; border: 1px solid rgba(79,195,247,.2); }
.status-pending { background: rgba(232,184,75,.12);  color: var(--gold); border: 1px solid rgba(232,184,75,.2); }
.status-deleted { background: rgba(255,77,109,.12);  color: #FF4D6D; border: 1px solid rgba(255,77,109,.2); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.modal h3 { font-size: 1.15rem; margin-bottom: 20px; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; letter-spacing: .5px; }

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; display: block; }
.empty-state h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; font-weight: 700; }

/* ===== LOADING ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--faint); }

/* ===== PROFILE DROPDOWN ===== */
.profile-dropdown { position: relative; }

.profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition);
}
.profile-btn:hover { border-color: var(--gold); background: rgba(232,184,75,.05); }

.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--gold), #8B6D2A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 800;
  color: #06060F;
  flex-shrink: 0;
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-caret { color: var(--muted); font-size: .65rem; }

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 14px;
  min-width: 210px;
  box-shadow: 0 12px 40px rgba(0,0,0,.7);
  z-index: 200;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.dropdown-menu.open { display: block; }

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.dropdown-header .profile-avatar { width: 38px; height: 38px; font-size: 1rem; }
.dropdown-username { font-weight: 700; font-size: .9rem; }
.dropdown-role { font-size: .72rem; color: var(--muted); text-transform: capitalize; margin-top: 2px; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
}
.dropdown-item:hover { background: rgba(255,255,255,.05); color: var(--text); }
.dropdown-item-logout { color: var(--danger) !important; }
.dropdown-item-logout:hover { background: rgba(255,77,109,.1) !important; }

.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ===== ITEMS BOX ===== */
.items-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color var(--transition);
}
.items-box:hover { border-color: var(--border2); }

.items-box-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: .9rem;
  user-select: none;
  transition: background var(--transition);
}
.items-box-header:hover { background: rgba(255,255,255,.03); }

.items-box-toggle { color: var(--muted); font-size: .75rem; transition: transform .2s; }

.items-box-content {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

.items-search { margin-bottom: 10px; }
.items-search input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--text);
  font-size: .85rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color var(--transition);
}
.items-search input:focus { border-color: var(--gold); }

.items-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
}

.item-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px 3px 4px;
  font-size: .77rem;
  color: var(--text);
  white-space: nowrap;
  transition: border-color var(--transition);
}
.item-tag.skin-tag {
  border-color: rgba(232,184,75,.3);
  color: var(--gold-light);
  background: rgba(232,184,75,.06);
}
.item-tag-icon { width: 22px; height: 22px; border-radius: 3px; object-fit: cover; flex-shrink: 0; }

/* ===== ITEM GRID CARDS ===== */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
  padding: 4px 2px;
}

.item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  cursor: default;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.item-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-dim);
  box-shadow: 0 4px 16px rgba(232,184,75,.15);
}

.item-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center;
  display: block;
}

.item-card-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 6px;
  text-align: center;
  gap: 6px;
}
.item-card-placeholder .ph-icon { font-size: 1.4rem; opacity: .55; }
.item-card-placeholder .ph-name { font-size: .6rem; color: #c8c8d8; line-height: 1.3; word-break: break-word; font-style: italic; }

.item-card-name {
  font-size: .68rem;
  color: var(--text);
  text-align: center;
  padding: 5px 4px;
  line-height: 1.2;
  word-break: break-word;
  width: 100%;
}

.item-card--wide .item-card-img,
.item-card--wide .item-card-placeholder {
  aspect-ratio: 4/1;
  object-fit: contain;
  background: #07070f;
}

.item-card--square .item-card-img,
.item-card--square .item-card-placeholder {
  aspect-ratio: 1/1;
  object-fit: contain;
  background: #0d0d1a;
}

.items-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

/* ===== SELLER PROFILE ===== */
.seller-profile { display: flex; align-items: center; gap: 14px; }

.seller-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #7c5a10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

.seller-name { font-weight: 700; font-size: 1rem; color: var(--text); }
.seller-meta { font-size: .78rem; color: var(--muted); margin-top: 2px; }

/* ===== REVIEWS SECTION ===== */
.reviews-section {
  margin-top: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.reviews-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.reviews-section-header h2 { font-size: 1.1rem; font-weight: 700; }
.reviews-avg { font-size: .85rem; color: var(--muted); }

.reviews-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
}

.reviews-list {
  border-left: 1px solid var(--border);
  padding: 20px 24px;
  max-height: 520px;
  overflow-y: auto;
}

/* ===== SELLER CARD ===== */
.seller-card-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }

.seller-rating { display: flex; align-items: center; gap: 5px; margin-top: 5px; }
.seller-rating .star { font-size: .95rem; }
.seller-rating-val { font-weight: 700; font-size: .88rem; color: var(--gold); }
.seller-rating-count { font-size: .75rem; color: var(--muted); }

.seller-stats-row {
  display: flex;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.seller-stat { flex: 1; text-align: center; border-right: 1px solid var(--border); }
.seller-stat:last-child { border-right: none; }
.seller-stat-val { font-size: .95rem; font-weight: 700; color: var(--text); }
.seller-stat-lbl { font-size: .7rem; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }

/* ===== REVIEWS ===== */
.review-form-wrap { padding: 20px 24px; }
.stars-row { display: flex; gap: 4px; margin-bottom: 8px; }

.star {
  font-size: 1.4rem;
  cursor: default;
  line-height: 1;
  transition: color .1s, transform .1s;
}
.star-input { cursor: pointer; }
.star-input:hover { transform: scale(1.2); }
.star-filled { color: var(--gold); }
.star-empty  { color: var(--faint); }

.review-card {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.review-card:last-child { border-bottom: none; }

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.review-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  overflow: hidden;
}

/* ===== SKIN DROPDOWN ===== */
.skin-dropdown { position: relative; }

.skin-dropdown-btn {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-size: .88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color var(--transition);
  user-select: none;
}
.skin-dropdown-btn:hover { border-color: var(--border2); }
.skin-dropdown-btn.active { border-color: var(--gold); }

.skin-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.7);
  z-index: 50;
  overflow: hidden;
}
.skin-dropdown-panel.open { display: block; }

.skin-dropdown-search {
  padding: 8px;
  border-bottom: 1px solid var(--border);
}
.skin-dropdown-search input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--text);
  font-size: .85rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
}
.skin-dropdown-search input:focus { border-color: var(--gold); }

.skin-dropdown-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
}

.dd-item {
  padding: 7px 10px;
  font-size: .85rem;
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
  transition: background var(--transition);
}
.dd-item:hover { background: rgba(255,255,255,.05); }
.dd-item.selected { background: rgba(232,184,75,.1); color: var(--gold); }
.dd-loading { padding: 20px; text-align: center; color: var(--muted); font-size: .85rem; }

/* ===== GAME TABS (index page) ===== */
.game-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}

.game-tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all var(--transition);
  text-align: center;
  font-family: 'DM Sans', sans-serif;
}
.game-tab.active { background: rgba(232,184,75,.12); color: var(--gold); border: 1px solid rgba(232,184,75,.25); }
.game-tab:hover:not(.active) { color: var(--text); background: rgba(255,255,255,.04); }

/* ===== MESSAGES ===== */
.msg-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  height: calc(100vh - 68px);
}

.msg-sidebar {
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.msg-sidebar-header {
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  font-weight: 700;
}

.conv-list { flex: 1; overflow-y: auto; }

.conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.conv-item:hover { background: rgba(255,255,255,.03); }
.conv-item.active { background: rgba(232,184,75,.06); border-right: 2px solid var(--gold); }

.conv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #7c5a10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: #000;
  flex-shrink: 0;
}

.conv-name { font-size: .9rem; font-weight: 600; }
.conv-preview { font-size: .78rem; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.conv-unread { background: var(--gold); color: #000; border-radius: 50px; padding: 1px 7px; font-size: .72rem; font-weight: 800; margin-left: auto; flex-shrink: 0; }

.msg-area {
  display: flex;
  flex-direction: column;
}

.msg-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
}

.msg-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg-bubble-wrap {
  display: flex;
  gap: 8px;
  max-width: 70%;
}
.msg-bubble-wrap.mine { align-self: flex-end; flex-direction: row-reverse; }

.msg-bubble {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: 10px 14px;
  font-size: .88rem;
  line-height: 1.5;
}
.msg-bubble-wrap.mine .msg-bubble {
  background: rgba(232,184,75,.1);
  border-color: rgba(232,184,75,.25);
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 14px;
}

.msg-time { font-size: .72rem; color: var(--muted); margin-top: 4px; }
.msg-bubble-wrap.mine .msg-time { text-align: right; }

.msg-input-wrap {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.msg-input {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: .9rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  resize: none;
  transition: border-color var(--transition);
}
.msg-input:focus { border-color: var(--gold); }

/* ===== UNREAD BADGE ===== */
.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  border-radius: 50px;
  padding: 1px 7px;
  font-size: .7rem;
  font-weight: 800;
  min-width: 20px;
}

/* ===== ADMIN PANEL ===== */
.admin-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header h1 { font-size: 1.4rem; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; letter-spacing: .5px; }

.admin-tabs {
  display: flex;
  gap: 2px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.admin-tab {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
  white-space: nowrap;
}
.admin-tab.active { background: rgba(232,184,75,.1); color: var(--gold); border: 1px solid rgba(232,184,75,.2); }
.admin-tab:hover:not(.active) { color: var(--text); background: rgba(255,255,255,.04); }

/* ===== SELLER PROFILE PAGE ===== */
.seller-page-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.seller-page-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #7c5a10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #000;
  flex-shrink: 0;
  border: 2px solid rgba(232,184,75,.3);
}

.seller-page-name { font-size: 1.4rem; font-weight: 800; font-family: 'Barlow Condensed', sans-serif; letter-spacing: .5px; }
.seller-page-bio { color: var(--muted); font-size: .88rem; margin-top: 5px; }

/* ===== NOTIFICATIONS / TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  animation: slideIn .3s ease;
  max-width: 340px;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.toast-success { border-left: 3px solid var(--green); }
.toast-error   { border-left: 3px solid var(--red); }
.toast-info    { border-left: 3px solid var(--blue); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 240px 1fr; }
  .detail-layout { grid-template-columns: 1fr 340px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .buy-box { position: static; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .msg-layout { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .reviews-body { grid-template-columns: 1fr; }
  .reviews-list { border-left: none; border-top: 1px solid var(--border); }
  .admin-tabs { padding: 8px 16px; }
  .header-inner { padding: 0 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .auth-card { padding: 28px 20px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: 1fr; }
}


/* ===== LANGUAGE CHIPS ===== */
.lang-checkboxes { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: 1px solid var(--border);
  border-radius: 50px; font-size: .82rem; cursor: pointer;
  color: var(--muted); background: var(--bg2);
  transition: all .15s; user-select: none;
}
.lang-chip input { display: none; }
.lang-chip:hover { border-color: var(--gold); color: var(--text); }
.lang-chip-on { border-color: var(--gold); background: rgba(232,184,75,.1); color: var(--gold); }

/* ===== UPLOAD ZONE ===== */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 28px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-zone:hover { border-color: var(--gold); background: rgba(232,184,75,.04); }
.upload-zone-inner { pointer-events: none; }

/* ===== GAME BADGE (table) ===== */
.badge-game {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; background: rgba(79,195,247,.1); color: var(--blue);
}
.badge-game-league-of-legends { background: rgba(232,184,75,.1); color: var(--gold); }
.badge-game-valorant           { background: rgba(255,70,70,.12); color: #ff6b6b; }
.badge-game-fortnite           { background: rgba(0,149,255,.12); color: #4db8ff; }
.badge-game-tft                { background: rgba(156,70,224,.12); color: #c07af0; }
.badge-game-wild-rift          { background: rgba(80,200,120,.12); color: #6fe09b; }

/* ===== SKIN ITEM ===== */
.skin-item { padding: 8px 12px; font-size: .84rem; color: var(--text); cursor: pointer; transition: background .1s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skin-item:hover { background: rgba(255,255,255,.05); }
.skin-item.active { color: var(--gold); background: rgba(232,184,75,.08); }

/* ===== SELLER PROFILE PAGE ===== */
.sp-hero { display: flex; align-items: center; gap: 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.sp-avatar-col { flex-shrink: 0; }
.sp-avatar-wrap { position: relative; width: 80px; height: 80px; }
.sp-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #7c5a10); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; font-weight: 800; color: #000; overflow: hidden; border: 3px solid var(--gold); box-sizing: border-box; }
.sp-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.sp-online-dot { position: absolute; bottom: 3px; right: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--success); border: 2px solid var(--card); }
.sp-info-col { flex: 1; min-width: 0; }
.sp-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-username { font-size: 1.4rem; font-weight: 800; line-height: 1.2; margin: 0; }
.sp-verified-badge { background: rgba(232,184,75,.15); color: var(--gold); border: 1px solid rgba(232,184,75,.35); border-radius: 50px; padding: 2px 10px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.sp-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; font-size: .79rem; color: var(--muted); }
.sp-meta-item { white-space: nowrap; }
.sp-meta-sep { color: var(--border); }
.sp-bio { margin: 6px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.6; max-width: 500px; }
.sp-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex-shrink: 0; margin-left: auto; }
.sp-stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.sp-stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px; text-align: center; transition: border-color .2s; }
.sp-stat:hover { border-color: rgba(232,184,75,.4); }
.sp-stat-val { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.sp-stat-lbl { font-size: .72rem; color: var(--muted); margin-top: 5px; text-transform: uppercase; letter-spacing: .06em; }
.seller-profile-page-header { display: flex; align-items: flex-start; gap: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.seller-profile-avatar-wrap { flex-shrink: 0; }
.seller-page-avatar { width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #7c5a10); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 800; color: #000; overflow: hidden; border: 3px solid var(--gold); }
.seller-page-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.seller-profile-info { flex: 1; min-width: 0; }
.seller-meta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.seller-meta-row span { display: flex; align-items: center; gap: 5px; }
.last-active-badge { display: none; font-size: .75rem; padding: 3px 10px; border-radius: 50px; background: rgba(76,175,80,.12); color: var(--success); border: 1px solid rgba(76,175,80,.25); }

/* ===== SEO CONTENT SECTIONS (index.php game pages) ===== */
.game-why {
  padding: 56px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.game-why-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.game-section-hd {
  text-align: center;
  margin-bottom: 40px;
}
.game-section-kicker {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.game-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.25;
}
.game-section-sub {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto;
}
.game-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.game-why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color .2s, transform .2s;
}
.game-why-card:hover {
  border-color: rgba(232,184,75,.35);
  transform: translateY(-3px);
}
.game-why-icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.game-why-title { font-size: .9rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.game-why-desc { font-size: .82rem; color: var(--muted); line-height: 1.65; }

@media (max-width: 768px) {
  .game-why { padding: 40px 16px; }
  .game-section-hd { margin-bottom: 28px; }
  .game-section-title { font-size: 1.2rem; }
  .game-why-grid { gap: 12px; }
  .game-why-card { padding: 18px 16px; }
}
@media (max-width: 480px) {
  .game-why { padding: 32px 12px; }
  .game-why-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Game-page FAQ section ── */
.game-faq {
  padding: 0 24px 56px;
  background: var(--bg2);
}
.game-faq-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── FAQ accordion (shared: game pages + listing page) ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-weight: 600;
  font-size: .95rem;
  user-select: none;
}
.faq-chevron {
  display: inline-block;
  font-size: .75rem;
  color: var(--muted);
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
  transition: max-height .25s ease, padding .25s ease;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 18px 16px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

@media (max-width: 768px) {
  .game-faq { padding: 0 16px 40px; }
}
@media (max-width: 480px) {
  .game-faq { padding: 0 12px 32px; }
}
.seller-page-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.seller-page-stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.seller-page-stat-val { font-size: 1.6rem; font-weight: 800; color: var(--text); }
.seller-page-stat-lbl { font-size: .75rem; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }
.seller-page-layout { display: flex; gap: 24px; align-items: flex-start; }
.seller-page-reviews-panel { width: 340px; flex-shrink: 0; position: sticky; top: 84px; }

/* ===== GAME TABS ===== */
.game-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.game-tab { display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 50px; background: var(--card); color: var(--muted); font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .15s; white-space: nowrap; }
.game-tab:hover { border-color: var(--gold); color: var(--text); }
.game-tab.active { border-color: var(--gold); background: rgba(232,184,75,.1); color: var(--gold); }

/* ===== MISC ===== */
.dash-stat-val.positive { color: var(--success); }
.apply-wrap { max-width: 680px; margin: 0 auto; padding: 32px 24px 80px; }
.apply-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.apply-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.settings-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.settings-card-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* ===== ADMIN ===== */
.admin-layout { display: grid; grid-template-columns: 200px 1fr; min-height: calc(100vh - 68px); }
.admin-sidebar { background: var(--card); border-right: 1px solid var(--border); padding: 20px 0; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--muted); font-size: .88rem; font-weight: 500; transition: all .2s; }
.admin-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.admin-nav a.active { color: var(--danger); background: rgba(255,77,109,.07); border-right: 2px solid var(--danger); }
.admin-content { padding: 28px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-stats-row2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.admin-stat-val { font-size: 1.8rem; font-weight: 800; color: var(--text); }
.admin-stat-lbl { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.ticket-row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); transition: background .15s; }
.ticket-row:hover { background: rgba(255,255,255,.02); }
.ticket-row:last-child { border-bottom: none; }
.ticket-subject { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.ticket-meta { font-size: .78rem; color: var(--muted); }
.app-row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.app-row:last-child { border-bottom: none; }
.review-comment { padding-left: 44px; }
.review-body { font-size: .84rem; color: var(--muted); line-height: 1.65; }
.review-date { font-size: .73rem; color: var(--faint); margin-top: 6px; }

/* ===== MOBILE FILTER ===== */
.mobile-filter-btn { display: none; position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90; background: var(--gold); color: #06060F; border: none; border-radius: 50px; padding: 12px 26px; font-size: .88rem; font-weight: 800; cursor: pointer; box-shadow: 0 6px 24px rgba(232,184,75,.45); gap: 8px; align-items: center; white-space: nowrap; transition: opacity .2s; }
.mobile-filter-btn:hover { opacity: .9; }
.mobile-filter-btn .mfb-count { background: #06060F; color: var(--gold); border-radius: 50px; padding: 1px 7px; font-size: .72rem; font-weight: 800; }
.mobile-filter-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 91; backdrop-filter: blur(2px); }
.mobile-filter-overlay.open { display: block; }
.mobile-close-btn { display: none; }

/* ===== LANGUAGE SELECTOR ===== */
.lang-btn { display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 5px 10px; cursor: pointer; color: var(--text); font-size: .8rem; font-weight: 700; transition: border-color .15s, background .15s; margin-left: 10px; white-space: nowrap; flex-shrink: 0; }
.lang-btn:hover { border-color: rgba(232,184,75,.4); background: rgba(232,184,75,.07); }
.lang-btn img { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; display: block; }
.lang-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 9000; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.lang-overlay.open { display: flex; }
.lang-modal { background: var(--card); border: 1px solid var(--border2); border-radius: 18px; width: 100%; max-width: 420px; margin: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.7); overflow: visible; }
.lang-modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 22px 18px; border-bottom: 1px solid var(--border); }
.lang-modal-icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; background: rgba(232,184,75,.12); border: 1px solid rgba(232,184,75,.25); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.lang-modal-head-text h3 { font-size: .98rem; font-weight: 800; margin-bottom: 3px; }
.lang-modal-head-text p { font-size: .78rem; color: var(--muted); }
.lang-modal-close { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 2px 6px; border-radius: 6px; line-height: 1; transition: color .15s, background .15s; }
.lang-modal-close:hover { color: var(--text); background: rgba(255,255,255,.07); }
.lang-modal-body { padding: 20px 22px 22px; overflow: visible; }
.lang-modal-body label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 10px; }
.lang-select-wrap { position: relative; }
.lang-select-btn { width: 100%; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 10px 14px; cursor: pointer; color: var(--text); font-size: .88rem; font-weight: 600; transition: border-color .15s; }
.lang-select-btn:hover, .lang-select-btn.open { border-color: rgba(232,184,75,.4); }
.lang-select-btn img { width: 22px; height: 16px; border-radius: 2px; object-fit: cover; }
.lang-select-btn .ls-caret { margin-left: auto; color: var(--muted); font-size: .7rem; }
.lang-dropdown { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--card2); border: 1px solid var(--border2); border-radius: 10px; overflow: hidden; max-height: 260px; overflow-y: auto; z-index: 9999; box-shadow: 0 12px 32px rgba(0,0,0,.6); }
.lang-dropdown.open { display: block; }
.lang-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; font-size: .86rem; font-weight: 600; transition: background .1s; }
.lang-option:hover { background: rgba(232,184,75,.08); }
.lang-option.selected { background: rgba(232,184,75,.07); color: var(--gold); }
.lang-option img { width: 22px; height: 16px; border-radius: 2px; object-fit: cover; flex-shrink: 0; }
.lang-option-sub { font-size: .73rem; color: var(--muted); margin-left: auto; font-weight: 400; }
.lang-modal-footer { padding: 0 22px 22px; display: flex; gap: 10px; }
.lang-modal-footer .btn { flex: 1; justify-content: center; padding: 11px; }

/* ===== EXTENDED RESPONSIVE ===== */
@media (max-width: 1200px) {
  .detail-layout { grid-template-columns: 1fr 320px; gap: 22px; }
  .seller-page-reviews-panel { width: 290px; }
}
@media (max-width: 1100px) {
  .detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .buy-box { position: static; }
}
@media (max-width: 1024px) {
  .mobile-filter-btn { display: flex; }
  .mobile-close-btn  { display: block !important; }
  .page-layout { grid-template-columns: 1fr; gap: 0; padding: 18px 0; }
  .sidebar { display: none; position: fixed; left: 0; top: 68px; bottom: 0; width: 290px; z-index: 92; overflow-y: auto; border-radius: 0 18px 18px 0; border-right: 1px solid rgba(232,184,75,.3); box-shadow: 6px 0 40px rgba(0,0,0,.65); padding: 20px 20px 100px; }
  .sidebar.mobile-open { display: block; }
  .mobile-filter-overlay { top: 68px; }
  .admin-layout { grid-template-columns: 180px 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 900px) {
  .seller-page-layout { flex-direction: column; }
  .seller-page-reviews-panel { width: 100%; position: static; }
  .sp-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 0 0; }
  .admin-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 16px; gap: 2px; }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav a { padding: 9px 16px; border-radius: 8px 8px 0 0; flex-shrink: 0; white-space: nowrap; border-right: none !important; }
  .admin-nav a.active { border-right: none !important; border-bottom: 2px solid var(--danger); border-radius: 8px 8px 0 0; }
  .admin-content { padding: 22px 18px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 768px) {
  header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: rgba(6,6,15,.98); backdrop-filter: none; -webkit-backdrop-filter: none; }
  body { padding-top: 60px; }
  .header-inner { padding: 0 16px; gap: 10px; height: 60px; }
  .mobile-filter-overlay { top: 60px; }
  .sidebar { top: 60px; }
  .profile-btn > span:not(.profile-caret) { display: none; }
  .profile-btn { padding: 4px 8px 4px 4px; gap: 4px; }
  .header-nav > a.btn { font-size: .74rem; padding: 5px 10px; }
  .dashboard-layout { min-height: calc(100vh - 60px); }
  .container { padding: 0 16px; }
  .listing-grid { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 12px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dash-content { padding: 20px 16px; }
  .sp-hero { padding: 16px; gap: 14px; }
  .table-card { overflow-x: auto; }
  .table-card table { min-width: 580px; }
  th, td { padding: 10px 12px; font-size: .82rem; }
}
@media (max-width: 640px) {
  .header-inner { height: 56px; padding: 0 14px; gap: 8px; }
  body { padding-top: 56px; }
  .sidebar { top: 56px; }
  .mobile-filter-overlay { top: 56px; }
  .header-nav > a.btn { font-size: .7rem; padding: 4px 9px; }
  .dashboard-layout { grid-template-columns: 1fr; min-height: auto; }
  .dash-sidebar { border-right: none; border-bottom: 1px solid var(--border); padding: 10px 0 0; }
  .dash-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 14px; gap: 2px; }
  .dash-nav::-webkit-scrollbar { display: none; }
  .dash-nav a { padding: 8px 12px; border-radius: 8px 8px 0 0; border-right: none !important; white-space: nowrap; flex-shrink: 0; }
  .dash-nav a.active { border-right: none !important; border-bottom: 2px solid var(--gold); border-radius: 8px 8px 0 0; }
  .dash-content { padding: 16px 14px; }
  .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px 10px 12px; }
  .card-title { font-size: .81rem; }
  .card-price { font-size: 1.05rem; }
  .badge { font-size: .68rem; padding: 2px 6px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .admin-content { padding: 16px 14px; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: 20px 20px 0 0; max-height: 88vh; padding: 22px 18px 36px; }
  .game-tabs { gap: 5px; }
  .game-tab { padding: 6px 11px; font-size: .79rem; }
  .upload-zone { padding: 20px; }
}
@media (max-width: 480px) {
  .header-inner { height: 52px; padding: 0 12px; }
  body { padding-top: 52px; }
  .sidebar { top: 52px; }
  .mobile-filter-overlay { top: 52px; }
  .header-nav > a.btn-sm { display: none; }
  .listing-grid { grid-template-columns: 1fr; gap: 10px; }
  .lang-btn span { display: none; }
  .lang-btn { padding: 5px 7px; }
  .upload-zone { padding: 18px 14px; }
  .game-tab { padding: 5px 9px; font-size: .76rem; }
  .sp-stats-bar { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
@media (max-width: 375px) {
  .header-inner { padding: 0 10px; height: 48px; }
  body { padding-top: 48px; }
  .sidebar { top: 48px; }
  .mobile-filter-overlay { top: 48px; }
  .container { padding: 0 10px; }
  .card-body { padding: 8px 10px 10px; }
  .card-title { font-size: .79rem; }
  .card-price { font-size: 1rem; }
  .badge { font-size: .63rem; padding: 1px 5px; }
}

/* ── GLOBAL FOOTER (hp-footer) ─────────────────────────────────────────
   Shared by home.php, index.php and any future page that includes the
   <footer class="hp-footer"> block. Keep selectors here as the single
   source of truth so additional pages don't ship broken layouts. */
.hp-footer {
  background: rgba(6, 6, 18, .95);
  border-top: 1px solid rgba(200, 155, 60, .12);
  padding: 52px 24px 28px;
}
.hp-footer-inner { max-width: 1200px; margin: 0 auto; }
.hp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.hp-footer-logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hp-footer-logo::before {
  content: "";
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  background-image: url("/assets/img/logo-icon.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 0 6px rgba(232,184,75,.25));
  flex-shrink: 0;
}
.hp-footer-logo span { color: var(--text); }
.hp-footer-desc {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 280px;
}
.hp-footer-col-title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 16px;
}
.hp-footer-col a {
  display: block;
  font-size: .84rem;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color .15s;
}
.hp-footer-col a:hover { color: var(--gold); }
.hp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hp-footer-copy { font-size: .76rem; color: var(--faint); }
.hp-footer-legal { display: flex; gap: 20px; }
.hp-footer-legal a {
  font-size: .76rem;
  color: var(--faint);
  transition: color .15s;
}
.hp-footer-legal a:hover { color: var(--muted); }

@media (max-width: 1024px) {
  .hp-footer-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
@media (max-width: 768px) {
  .hp-footer { padding: 44px 16px 24px; }
  .hp-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 32px; }
  .hp-footer-desc { max-width: 100%; }
  .hp-footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .hp-footer-legal { justify-content: center; flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 480px) {
  .hp-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Screen-reader-only label. Visually hidden but read by assistive tech. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Accessibility & tap-target compliance ──────────────────────────
   Audit D6: filter pills/game tags had 30–32px tap height, below Google's
   48px recommendation. Bring all interactive pills to ≥44px on touch. */
@media (pointer: coarse) {
  .hp-tag, .hp-rank-pill, .filter-pill, .badge[role="button"], .badge.clickable {
    min-height: 44px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
  }
  .listing-card, .hp-listing-card, .hp-game-card, .mini-card, .blog-card { min-height: 44px; }
}

/* Audit D18: respect user motion preferences. Hero orbs, fade-up, shimmer
   keyframe animations stop when the OS reports reduced-motion intent.
   This is a hard accessibility requirement (WCAG 2.3.3). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hp-orb-1, .hp-orb-2, .hp-orb-3 { display: none !important; }
}

/* ───────────────────────────────────────────────────────────────────
 * Audit Round 2026-05-22 (Agent A — accessibility + perf)
 * ─────────────────────────────────────────────────────────────────── */

/* CSS issue #5: keyboard-only focus indicator for every interactive element.
 * Previously only inputs had a focus ring — buttons/links/tabs had none, so
 * keyboard users had no visual cue when tabbing. :focus-visible respects the
 * user's pointer-vs-keyboard intent (no ring on mouse click, ring on Tab). */
button:focus-visible,
a:focus-visible,
.btn:focus-visible,
.page-btn:focus-visible,
.game-tab:focus-visible,
.dropdown-item:focus-visible,
.faq-item:focus-visible,
.listing-card:focus-visible,
.hp-tag:focus-visible,
.lang-option:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: inherit;
}

/* CSS issue #9/10/11: minimum 12px floor for body-context text. Anything below
 * 12px (.67rem/.7rem) at default zoom is below the WCAG accessibility floor. */
.sidebar h3 { font-size: .75rem !important; }
.stat-lbl   { font-size: .72rem !important; }
.pstat-label, .hp-stat-lbl { font-size: .72rem !important; }

/* CSS issue #12 / Bug 12: dead duplicate selectors removed at build time would
 * be ideal; until that pass, set canonical sizes here so cascade resolves it. */
.seller-page-avatar {
  width: 88px;
  height: 88px;
  border: 3px solid var(--gold);
  font-size: 2.2rem;
}

/* CSS issue #4: sticky sidebar overflow on short viewports */
.sidebar {
  max-height: calc(100vh - 84px);
  overflow-y: auto;
}

/* Per-game card image framing. LoL thumbs are 1:1 (champion roster screenshot),
 * Valorant thumbs are mostly 16:9 (in-game capture). One blanket aspect ratio
 * always left gaps on one side. We tag .listing-card with data-game and pick
 * the right frame per card — works for both SSR and JS-rendered cards. */
.card-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;            /* default — works for valorant majority */
  overflow: hidden;
  background: var(--card);
  display: block;
}
.card-image-wrap > .card-image,
.card-image-wrap > img.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--card);
}

/* LoL is square — override both SSR and JS card paths to 1:1 so champion
 * portraits don't get letterboxed inside a 16:9 frame. */
.listing-card[data-game="league-of-legends"] .card-image-wrap,
.listing-card[data-game="lol"]               .card-image-wrap {
  aspect-ratio: 1 / 1;
}
.listing-card[data-game="league-of-legends"] .card-img,
.listing-card[data-game="lol"]               .card-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Valorant — 16:9 frame on JS cards too (SSR default already 16:9). */
.listing-card[data-game="valorant"] .card-img,
.listing-card[data-game="val"]      .card-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Other games default to the original 1:1 .card-img rule (untouched). */

/* Minimal checkout-style trust strip (replaces the old ostentatious card).
 * Stripe-checkout-inspired: tiny green checks + short labels in a single row.
 * Wraps to 2x2 on narrow viewports without any visual chrome. */
.checkout-trust {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.checkout-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.ct-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.3;
  flex: 0 1 auto;
}
.ct-cell svg {
  color: #4caf50;
  flex-shrink: 0;
}
.ct-cell span {
  white-space: nowrap;
}
@media (max-width: 480px) {
  .ct-cell { width: calc(50% - 7px); }
}

/* Legacy .trust-block (still referenced on a few pages). */
.trust-block {
  margin-top: 12px;
  padding: 12px;
  background: rgba(76,175,80,.06);
  border: 1px solid rgba(76,175,80,.18);
  border-radius: 10px;
  font-size: .82rem;
  color: var(--muted);
}
.trust-block strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: .88rem;
}
.trust-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.trust-block li {
  padding-left: 18px;
  position: relative;
  line-height: 1.7;
}
.trust-block li::before {
  content: '\2713';
  color: #4caf50;
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ───────────────────────────────────────────────────────────────────
 * Multi-select skin/champion filter — chip-based UI
 * ─────────────────────────────────────────────────────────────────── */

/* List items with checkbox indicator */
.skin-dropdown-list .skin-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.skin-item-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  font-size: 11px;
  color: #0f0f13;
  background: transparent;
  flex-shrink: 0;
}
.skin-item.active .skin-item-check {
  background: var(--gold);
  border-color: var(--gold);
}
.skin-item-name { flex: 1; }

/* Footer with Clear / Apply buttons */
.dd-footer {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  position: sticky;
  bottom: 0;
}
.dd-footer-btn {
  flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  transition: background .15s, border-color .15s, color .15s;
}
.dd-footer-btn:hover { background: rgba(255,255,255,.04); }
.dd-footer-btn.dd-done {
  background: var(--gold);
  border-color: var(--gold);
  color: #0f0f13;
}
.dd-footer-btn.dd-done:hover {
  background: #e0b558;
  border-color: #e0b558;
}

/* Chip list under each filter — shows currently picked items as removable pills */
.dd-chips {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.dd-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 8px;
  background: rgba(200,155,60,.12);
  border: 1px solid rgba(200,155,60,.4);
  border-radius: 12px;
  font-size: .73rem;
  color: var(--text);
  max-width: 100%;
  line-height: 1.2;
}
.dd-chip > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.dd-chip button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: .7rem;
  transition: background .15s, color .15s;
}
.dd-chip button:hover {
  background: rgba(255,255,255,.1);
  color: var(--text);
}

/* Dropdown panel needs flex column so footer sits at bottom */
.skin-dropdown-panel {
  display: none;
  flex-direction: column;
}
.skin-dropdown-panel.open { display: flex; }
.skin-dropdown-list { flex: 1; max-height: 280px; overflow-y: auto; }

/* ───────────────────────────────────────────────────────────────────
 * /valorant — top horizontal filter bar (single-column layout)
 * Applies only when .page-layout has .layout-topfilter (set in PHP).
 * Sidebar becomes a flex row that spans the full width above the grid.
 * ─────────────────────────────────────────────────────────────────── */
.layout-topfilter {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}
.layout-topfilter .sidebar {
  position: static;
  height: auto;
  width: 100%;
  max-height: none;
  overflow: visible;
  padding: 14px 16px;
}
.layout-topfilter .sidebar h3 { display: none; }
.layout-topfilter .mobile-close-btn { display: none !important; }

.layout-topfilter .sidebar > div:first-child { margin-bottom: 0 !important; }

/* Filter groups → horizontal flex row of compact inputs */
.layout-topfilter .sidebar > .filter-group {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 8px 8px 0;
  vertical-align: top;
  min-width: 120px;
}
.layout-topfilter .sidebar > .filter-group > label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  margin-bottom: 0;
  font-weight: 700;
}
.layout-topfilter .sidebar > .filter-group select,
.layout-topfilter .sidebar > .filter-group input[type="number"],
.layout-topfilter .sidebar > .filter-group input[type="text"] {
  height: 34px;
  font-size: .85rem;
  padding: 4px 8px;
}
.layout-topfilter .sidebar > .filter-group .price-row { gap: 4px; }
.layout-topfilter .sidebar > .filter-group .price-row input { width: 80px; min-width: 0; }

/* Multi-select dropdown buttons in the top bar — match the compact input height */
.layout-topfilter .skin-dropdown-btn {
  height: 34px;
  padding: 4px 10px;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 160px;
}

/* Skin/champion blocks need a bit more breathing room because chips wrap below */
.layout-topfilter .filter-group:has(#skinDropdownWrap),
.layout-topfilter .filter-group:has(#champDropdownWrap) {
  min-width: 180px;
}

/* Apply / Reset buttons → inline with the filter row, primary highlighted */
.layout-topfilter .sidebar > .btn {
  display: inline-flex;
  width: auto !important;
  margin-top: 22px;     /* line up with the inputs below their labels */
  height: 34px;
  font-size: .82rem;
  padding: 0 14px;
}
.layout-topfilter .sidebar > .btn + .btn { margin-left: 6px; }

/* Make the whole filter bar wrap nicely; the main grid stays full width below */
.layout-topfilter .sidebar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 4px;
}

/* Drop the sticky behavior — top bar doesn't follow scroll on this layout */
.layout-topfilter .sidebar { position: static !important; top: auto !important; }

/* Mobile: revert to original collapsible sidebar so the page doesn't become
 * one giant column of filters on small screens. Reuse existing mobile rules. */
@media (max-width: 768px) {
  .layout-topfilter .sidebar {
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .layout-topfilter .sidebar.mobile-open { display: flex; }
  .layout-topfilter .sidebar > .filter-group {
    display: flex;
    min-width: 0;
    margin: 0 0 12px 0;
  }
  .layout-topfilter .sidebar > .btn { width: 100% !important; margin: 8px 0 0 0; }
}

/* Transparent filter bar + sort dropdown pinned to the right ---------------- */
.layout-topfilter .sidebar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 8px 0 !important;
}

/* Sort dropdown pinned to the far right of the filter row */
.layout-topfilter .filter-sort-corner {
  margin-left: auto !important;     /* push to right edge of flex row */
}
.layout-topfilter .filter-sort-corner select {
  min-width: 160px;
}
@media (max-width: 768px) {
  .layout-topfilter .filter-sort-corner { margin-left: 0 !important; }
}

/* More filters dropdown panel — wider, opens below */
#moreFiltersPanel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 50;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
#moreFiltersPanel.open { display: block; }

/* Layout: full-width form, apply/reset full-width on mobile, inline on desktop */
.layout-topfilter .filter-apply-btn,
.layout-topfilter .filter-reset-btn {
  height: 34px !important;
  margin: 22px 0 8px 6px !important;
  width: auto !important;
  font-size: .82rem;
  padding: 0 14px;
}
@media (max-width: 768px) {
  .layout-topfilter .filter-apply-btn,
  .layout-topfilter .filter-reset-btn {
    width: 100% !important;
    margin: 8px 0 0 0 !important;
  }
}

/* Sort by — pinned right, slightly larger min-width */
.layout-topfilter .filter-sort-corner select.sort-select {
  min-width: 180px;
  height: 34px;
  padding: 4px 10px;
  font-size: .85rem;
}
