/* ==========================================================================
   Badges / NFTs Marketplace (UI/nfts.html) + Steam-Style Badge Trades
   (UI/badge-transaction.html)
   ========================================================================== */

.nft-page {
  max-width: 1380px;
  margin: 0 auto;
  padding: 18px 18px 64px;
}

.nft-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
}

.nft-bar-top {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.nft-brand { display: flex; align-items: center; gap: 9px; }
.nft-brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.nft-brand-title { font-size: 16px; font-weight: 700; margin: 0; }
.nft-brand-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
}

.nft-view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.nft-tab-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nft-tab-btn:hover { color: var(--text); }
.nft-tab-btn.is-active { background: var(--accent); color: #ffffff; }
.nft-tab-cnt {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.nft-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.nft-search-box { position: relative; display: flex; align-items: center; }
.nft-search-box svg { position: absolute; left: 10px; color: var(--text-muted); pointer-events: none; }
.nft-search-input {
  height: 34px;
  width: 190px;
  padding: 0 12px 0 32px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 12.5px;
  outline: none;
}
.nft-search-input:focus { border-color: var(--accent); background: var(--surface); }

.nft-select {
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.nft-rarity-bar {
  padding: 8px 16px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--border);
}
.nft-rarity-bar::-webkit-scrollbar { display: none; }

.nft-cat-pill {
  flex-shrink: 0;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
}
.nft-cat-pill:hover { color: var(--text); }
.nft-cat-pill[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.nft-sub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.nft-sub-head h2 { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 8px; }

/* 4-Column Gallery Grid */
.nft-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1160px) { .nft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .nft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 500px) { .nft-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   SLEEK FULL-ART OBSIDIAN COLLECTOR CARD (Shared across Market & Badge Trades)
   ========================================================================== */
.nft-card {
  --r-accent: #94a3b8;
  --r-border: rgba(148, 163, 184, 0.28);
  --r-glow: rgba(148, 163, 184, 0.14);
  position: relative;
  background: #10131a;
  color: #f8fafc;
  border-radius: 18px;
  border: 1px solid var(--r-border);
  overflow: hidden;
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.42), 0 0 0 1px var(--r-glow);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.16s ease;
}
.nft-card:hover { transform: translateY(-3px); border-color: var(--r-accent); }
.nft-card.is-static { cursor: default; }
.nft-card.is-static:hover { transform: none; }
.nft-card.is-in-offer { opacity: 0.42; border-style: dashed; }
.nft-card.is-locked { opacity: 0.48; filter: grayscale(0.5); cursor: not-allowed; }
.nft-card.is-locked:hover { transform: none; }

.r-mythic    { --r-accent: #f43f5e; --r-border: rgba(244, 63, 94, 0.48);  --r-glow: rgba(244, 63, 94, 0.15); }
.r-legendary { --r-accent: #f59e0b; --r-border: rgba(245, 158, 11, 0.48); --r-glow: rgba(245, 158, 11, 0.15); }
.r-epic      { --r-accent: #a855f7; --r-border: rgba(168, 85, 247, 0.48); --r-glow: rgba(168, 85, 247, 0.15); }
.r-rare      { --r-accent: #3b82f6; --r-border: rgba(59, 130, 246, 0.48); --r-glow: rgba(59, 130, 246, 0.15); }
.r-common    { --r-accent: #94a3b8; --r-border: rgba(148, 163, 184, 0.30); --r-glow: rgba(148, 163, 184, 0.08); }

.nft-art-wrap {
  position: relative;
  aspect-ratio: 4 / 3.8;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--r-accent) 20%, #0b0d13) 0%, #0b0d13 74%);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 26px 18px 14px;
}

.nft-art {
  width: 78%;
  height: 78%;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
}

.nft-art-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #10131a 0%, rgba(16, 19, 26, 0.18) 32%, transparent 65%);
  pointer-events: none;
  z-index: 2;
}

.nft-top-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  z-index: 3;
}

.nft-rarity-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #f8fafc;
}

.rarity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--r-accent);
  box-shadow: 0 0 8px var(--r-accent);
}

.nft-grade-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10.5px;
  font-weight: 800;
  color: #fde68a;
}

.nft-panel { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.nft-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.nft-name { font-size: 15px; font-weight: 700; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nft-cost { font-size: 14.5px; font-weight: 800; color: #34d399; flex-shrink: 0; }

.nft-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-head { display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, 0.56); }
.stat-head strong { font-size: 11px; color: #f8fafc; }
.stat-track { height: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.stat-fill { height: 100%; border-radius: 999px; }
.stat-fill--atk { background: #fb7185; }
.stat-fill--def { background: #34d399; }
.stat-fill--gem { background: #60a5fa; }

.nft-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.seller { display: flex; align-items: center; gap: 7px; min-width: 0; }
.seller-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  flex-shrink: 0;
}
.seller-handle { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.76); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nft-serial { font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, 0.44); flex-shrink: 0; }

/* Compact Card Variant (for Badge Trades inventory & trays) */
.nft-card--compact { border-radius: 13px; }
.nft-card--compact .nft-art-wrap { aspect-ratio: 4 / 3.4; padding: 20px 10px 8px; }
.nft-card--compact .nft-top-bar { top: 6px; left: 6px; right: 6px; }
.nft-card--compact .nft-rarity-pill { padding: 2px 6px; font-size: 8.5px; }
.nft-card--compact .nft-grade-pill { padding: 2px 6px; font-size: 9px; }
.nft-card--compact .nft-panel { padding: 4px 9px 9px; gap: 6px; }
.nft-card--compact .nft-name { font-size: 12px; }
.nft-card--compact .nft-stats { gap: 5px; }
.nft-card--compact .stat-head { font-size: 8.5px; }
.nft-card--compact .stat-head strong { font-size: 9.5px; }

.nft-card-flag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  z-index: 4;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.94);
  color: #ffffff;
}
.nft-card-flag--locked { background: rgba(245, 158, 11, 0.94); color: #111827; }

.nft-mini-btn {
  width: 100%;
  height: 30px;
  border-radius: 8px;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.nft-mini-btn--accent { background: var(--accent); color: #ffffff; }
.nft-mini-btn--danger { background: rgba(244, 63, 94, 0.16); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.35); }

.nft-buy-pill {
  height: 28px;
  padding: 0 13px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.nft-buy-pill:hover { filter: brightness(1.1); transform: translateY(-1px); }

.nft-own-pill {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.nft-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.nft-empty h3 { margin: 0 0 6px; font-size: 16px; }
.nft-empty p { margin: 0 0 14px; font-size: 13px; color: var(--text-muted); }

/* Inspect Modal */
.nft-modal {
  max-width: 660px !important;
  display: grid !important;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  padding: 20px !important;
  overflow-y: auto;
}
.nft-modal-card-wrap .nft-buy-pill,
.nft-modal-card-wrap .nft-own-pill { display: none; }
.nft-modal-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nft-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.nft-modal-title { font-size: 20px; font-weight: 800; margin: 0; }
.nft-modal-sub { font-size: 12.5px; color: var(--text-muted); margin: 3px 0 0; }
.nft-modal-desc { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); margin: 0; }
.nft-modal-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.nft-meta-box { padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.nft-meta-k { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.nft-meta-v { font-size: 13.5px; font-weight: 700; margin-top: 2px; }
.nft-btn-buy { margin-top: auto; width: 100%; height: 40px; }
.nft-form-err { padding: 8px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 600; background: rgba(244, 63, 94, 0.14); color: #e11d48; }

/* Buy Requests Tab */
.nft-req-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.nft-req-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.nft-req-card h2 { font-size: 16px; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.nft-req-hint { font-size: 12.5px; color: var(--text-muted); margin: 0 0 14px; }
.nft-req-fields { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.nft-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.nft-field input[type="number"] { height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg); color: var(--text); width: 140px; }
.nft-field--check { flex-direction: row; align-items: center; gap: 7px; height: 36px; cursor: pointer; }
.nft-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; padding: 4px; }
.nft-pick-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  text-align: center;
  position: relative;
}
.nft-pick-tile:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.nft-pick-tile input { position: absolute; opacity: 0; }
.nft-pick-tile img { width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated; }
.nft-pick-name { font-size: 11px; font-weight: 700; line-height: 1.15; }
.nft-pick-rar { font-size: 9.5px; color: var(--text-muted); }

.nft-req-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.nft-req-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); }
.nft-req-thumb { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; }
.nft-req-info { flex: 1; min-width: 0; }
.nft-req-title { font-size: 13.5px; font-weight: 700; }
.nft-req-rar { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-left: 6px; }
.nft-req-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.nft-req-row .nft-mini-btn { width: auto; padding: 0 12px; }

/* ==========================================================================
   ORDERS TOP-LEVEL TAB SWITCHER + STEAM-STYLE BADGE TRADES TAB
   ========================================================================== */
.orders-top-bar {
  max-width: 1380px;
  margin: 0 auto;
  padding: 18px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.orders-top-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.orders-top-tab {
  height: 34px;
  padding: 0 15px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.orders-top-tab.is-active { background: var(--accent); color: #ffffff; }

.bt-wrap {
  --bt-give: #e11d48;
  --bt-give-bg: rgba(225, 29, 72, 0.09);
  --bt-give-border: rgba(225, 29, 72, 0.34);
  --bt-recv: #059669;
  --bt-recv-bg: rgba(5, 150, 105, 0.09);
  --bt-recv-border: rgba(5, 150, 105, 0.36);

  max-width: 1380px;
  margin: 0 auto;
  padding: 16px 20px 56px;
}
[data-theme="dark"] .bt-wrap {
  --bt-give: #fb7185;
  --bt-give-bg: rgba(244, 63, 94, 0.13);
  --bt-recv: #34d399;
  --bt-recv-bg: rgba(16, 185, 129, 0.13);
}

.bt-subtabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.bt-main-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.bt-tab-btn {
  height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.bt-tab-btn[aria-selected="true"] { background: var(--accent); color: #ffffff; }
.bt-tab-badge {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
}
.bt-tab-btn[aria-selected="true"] .bt-tab-badge { background: rgba(255, 255, 255, 0.24); color: #ffffff; }

.bt-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.bt-partner-bar { padding: 10px 14px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bt-partner-label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.bt-partner-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.bt-partner-lookup { display: flex; align-items: center; gap: 6px; }
.bt-partner-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bt-partner-chip {
  height: 32px;
  padding: 0 10px 0 6px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}
.bt-partner-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--text); }
.bt-partner-cnt { font-size: 10.5px; opacity: 0.75; }
.bt-av { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 9.5px; font-weight: 800; flex-shrink: 0; }

.bt-steam-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr); gap: 16px; align-items: start; }
.bt-inv-box { overflow: hidden; }
.bt-inv-owner-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-bottom: 1px solid var(--border); }
.bt-inv-owner-tab {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.bt-inv-owner-tab:first-child { border-right: 1px solid var(--border); }
.bt-inv-owner-tab[aria-selected="true"] { background: var(--surface); color: var(--text); }
.bt-inv-owner-tab--me[aria-selected="true"] { border-bottom-color: var(--bt-give); }
.bt-inv-owner-tab--them[aria-selected="true"] { border-bottom-color: var(--bt-recv); }
.bt-inv-owner-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bt-count-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); }

.bt-inv-toolbar { padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.bt-inv-toolbar-row { display: flex; align-items: center; gap: 8px; }
.bt-inv-grid-wrap { padding: 14px; background: var(--bg); min-height: 420px; }
.bt-inv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bt-empty-slot {
  aspect-ratio: 4 / 5.2;
  border-radius: 12px;
  border: 1px dashed var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.5;
}

.bt-offer-stack { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 72px; }
.bt-tray { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.bt-tray--give { border-color: var(--bt-give-border); }
.bt-tray--recv { border-color: var(--bt-recv-border); }
.bt-tray-head { padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--border); }
.bt-tray--give .bt-tray-head { background: var(--bt-give-bg); }
.bt-tray--recv .bt-tray-head { background: var(--bt-recv-bg); }
.bt-tray-title-wrap { display: flex; align-items: center; gap: 8px; }
.bt-tray-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; }
.bt-tray--give .bt-tray-tag { background: var(--bt-give); color: #ffffff; }
.bt-tray--recv .bt-tray-tag { background: var(--bt-recv); color: #052e22; }
.bt-tray-title { font-size: 13px; font-weight: 800; }
.bt-tray-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; }
.bt-tray-clear { background: none; border: 0; font-size: 11px; font-weight: 700; color: var(--text-muted); text-decoration: underline; cursor: pointer; }
.bt-tray-grid { padding: 10px; background: var(--bg); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-height: 148px; }

.bt-offer-footer { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.bt-mode-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; }
.bt-mode-opt { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.bt-input { height: 34px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 12.5px; outline: none; }
.bt-input:focus { border-color: var(--accent); background: var(--surface); }
.bt-form-error { padding: 8px 10px; border-radius: 9px; font-size: 12px; font-weight: 700; background: var(--bt-give-bg); color: var(--bt-give); }
.bt-btn-primary { height: 40px; border-radius: 10px; border: 0; background: var(--accent); color: #ffffff; font-size: 13px; font-weight: 800; cursor: pointer; }
.bt-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.bt-btn-success { height: 34px; padding: 0 14px; border-radius: 9px; border: 0; background: var(--bt-recv); color: #052e22; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.bt-btn-danger { height: 34px; padding: 0 14px; border-radius: 9px; background: var(--bt-give-bg); color: var(--bt-give); border: 1px solid var(--bt-give-border); font-size: 12.5px; font-weight: 700; cursor: pointer; }

/* Confirm Transaction Offers List */
.bt-offers-list { display: flex; flex-direction: column; gap: 14px; }
.bt-offer-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.bt-offer-head { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bt-offer-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.bt-ref { font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); }
.bt-badge-pill { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.bt-badge-pill.is-in { background: var(--bt-recv-bg); color: var(--bt-recv); }
.bt-badge-pill.is-out { background: var(--bt-give-bg); color: var(--bt-give); }
.bt-offer-note { padding: 10px 16px 0; margin: 0; font-size: 13px; color: var(--text-muted); }
.bt-offer-sides { padding: 14px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bt-side { padding: 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.bt-side--give { border-color: var(--bt-give-border); }
.bt-side--recv { border-color: var(--bt-recv-border); }
.bt-side-label { font-size: 11px; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; color: var(--text-muted); }
.bt-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bt-none { font-size: 12px; color: var(--text-muted); }
.bt-offer-foot { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bt-resp-input { flex: 1; min-width: 180px; }
.bt-offer-btns { display: flex; gap: 8px; }

/* History List */
.bt-hist-list { overflow: hidden; }
.bt-hist-row { padding: 13px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bt-hist-row:last-child { border-bottom: 0; }
.bt-hist-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bt-hist-title { font-size: 13.5px; font-weight: 600; }
.bt-hist-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.bt-status-pill { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.bt-status-pill.is-completed { background: var(--bt-recv-bg); color: var(--bt-recv); }
.bt-status-pill.is-pending { background: rgba(245, 158, 11, 0.16); color: #f59e0b; }
.bt-status-pill.is-declined { background: var(--bt-give-bg); color: var(--bt-give); }

@media (max-width: 1060px) {
  .bt-steam-grid, .nft-req-layout { grid-template-columns: 1fr; }
  .bt-offer-stack { position: static; }
}
@media (max-width: 680px) {
  .nft-modal { grid-template-columns: 1fr !important; }
  .bt-inv-grid, .bt-tray-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-offer-sides { grid-template-columns: 1fr; }
}
