
:root {
  --yellow: #f5c842; --yellow2: #ffd83a;
  --text: #f0ece4; --text2: rgba(240,236,228,0.65); --text3: rgba(240,236,228,0.35);
  --bg1: rgba(12,10,18,0.88); --bg2: rgba(18,14,26,0.92); --bg3: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.08); --border2: rgba(255,255,255,0.14);
  --red: #f87171; --green: #4ade80; --blue: #74b4ff;
}

body { background: #06040c; overflow-x: hidden; font-family: 'DM Sans', sans-serif; color: var(--text); margin: 0; }

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url('wallpaper.png');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  filter: brightness(0.22) saturate(0.6);
}

body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 60%, rgba(255,80,0,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(30,80,255,0.08) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.6) 100%);
}

* { box-sizing: border-box; }

.app-topbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(8,4,6,0.82);
  border-bottom: 1px solid rgba(245,200,66,0.12);
  backdrop-filter: blur(18px);
  display: flex; align-items: center;
  height: 56px; padding: 0 20px; gap: 0;
}
.app-logo {
  font-family: 'Unbounded', sans-serif; font-size: 14px; font-weight: 800;
  color: #fff; display: flex; align-items: center; gap: 6px;
  text-decoration: none; margin-right: 28px; white-space: nowrap;
}
.app-logo strong { color: var(--yellow); }
.nav-lnks { display: flex; gap: 2px; flex: 1; }
.nav-lnks a {
  padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
  color: var(--text2); text-decoration: none; transition: all .15s;
}
.nav-lnks a:hover  { background: rgba(255,255,255,0.07); color: var(--text); }
.nav-lnks a.active { background: rgba(245,200,66,0.12); color: var(--yellow); }
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.user-chip {
  text-decoration: none; color: var(--text, #f0ece4); transition: all .15s;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px 4px 6px; font-size: 13px;
}
.user-chip:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.14); }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--yellow); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  background-size: cover; background-position: center; overflow: hidden; flex-shrink: 0;
}
.btn-nav-outline {
  padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.18); background: transparent;
  color: var(--text2); text-decoration: none; cursor: pointer; transition: all .15s;
}

button.btn-nav-outline { background: transparent !important; -webkit-appearance: none; }
.btn-nav-outline:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.btn-add {
  padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 700;
  border: none; background: linear-gradient(135deg, var(--yellow), #ff8c00);
  color: #000; cursor: pointer; transition: all .15s;
}
.btn-add:hover { opacity: .88; transform: translateY(-1px); }

.page-wrap {
  position: relative; z-index: 1;
  display: flex; min-height: calc(100vh - 56px);
}

.sidebar {
  width: 220px; flex-shrink: 0;
  background: rgba(8,4,10,0.72);
  border-right: 1px solid var(--border);
  padding: 14px 0;
  position: sticky; top: 56px;
  height: calc(100vh - 56px); overflow-y: auto;
  backdrop-filter: blur(12px);
}
.sb-section { padding: 0 12px 14px; }
.sb-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  color: var(--text3); text-transform: uppercase;
  padding: 0 4px 7px; display: block;
}
.sb-divider { height: 1px; background: var(--border); margin: 4px 12px 14px; }

/* ── Accordion ── */
.sb-acc-wrap { padding-bottom: 0; }
.sb-acc-hdr {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text3); padding: 0 4px 10px; border-radius: 4px;
  transition: color .15s;
}
.sb-acc-hdr:hover { color: var(--text2); }
.sb-acc-arrow {
  color: var(--text3); flex-shrink: 0; transition: transform .2s ease;
}
.sb-acc-hdr.open .sb-acc-arrow { transform: rotate(180deg); }
.sb-acc-body { padding-bottom: 12px; }
.filter-opt {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--text2); cursor: pointer;
  padding: 4px 4px; border-radius: 6px; transition: background .1s;
}
.filter-opt:hover { background: rgba(255,255,255,0.05); }
.filter-opt input { width: 14px; height: 14px; accent-color: var(--yellow); flex-shrink: 0; }
.price-row { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--text3); }
.price-inp {
  width: 62px; padding: 5px 7px; border-radius: 7px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.05);
  color: var(--text); font-family: inherit; font-size: 12px; outline: none;
}
.price-inp:focus { border-color: rgba(245,200,66,0.4); }

.main { flex: 1; padding: 18px 20px; min-width: 0; }

.market-toolbar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.search-wrap { flex: 1; min-width: 200px; position: relative; }
.search-wrap::before {
  content: '🔍'; position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%); font-size: 14px; pointer-events: none;
}
.search-wrap input {
  width: 100%; padding: 9px 14px 9px 36px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 13px; outline: none; transition: border-color .15s;
}
.search-wrap input:focus { border-color: rgba(245,200,66,0.4); }
.search-wrap input::placeholder { color: var(--text3); }
.sort-sel {
  padding: 8px 12px; border-radius: 9px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.06);
  color: var(--text2); font-family: 'DM Sans', sans-serif; font-size: 13px;
  cursor: pointer; outline: none; color-scheme: dark;
}
.sort-sel option, .adv-inp option {
  background: #0e0c14;
  color: #f0ece4;
}
.sort-sel optgroup, .adv-inp optgroup {
  background: #0a0810;
  color: rgba(240,236,228,0.45);
  font-style: normal;
  font-weight: 700;
}
.view-toggle { display: flex; gap: 4px; background: rgba(255,255,255,0.05); border-radius: 9px; padding: 3px; }
.vt-btn {
  padding: 5px 11px; border-radius: 6px; border: none;
  background: transparent; color: var(--text3); font-size: 12px;
  cursor: pointer; transition: all .15s;
}
.vt-btn.act { background: rgba(255,255,255,0.1); color: var(--text); }
.count-info { font-size: 12px; color: var(--text3); white-space: nowrap; }

.listings-wrap { display: flex; flex-direction: column; gap: 10px; }

.listing-row {
  display: flex; gap: 14px; padding: 14px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 14px; cursor: pointer;
  transition: border-color .15s, background .15s;
  backdrop-filter: blur(8px);
}
.listing-row:hover { border-color: var(--border2); background: var(--bg2); }

.card-thumb {
  width: 58px; height: 80px; border-radius: 7px; flex-shrink: 0;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 9px; color: var(--text3); text-align: center; padding: 4px;
}

.listing-info { flex: 1; min-width: 0; }
.listing-title {
  font-size: 15px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px;
}
.listing-meta {
  font-size: 12px; color: var(--text3); margin-bottom: 8px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.listing-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag {
  padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.tag-sell  { background: rgba(34,197,94,0.15);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.tag-trade { background: rgba(74,158,255,0.15); color: #74b4ff; border: 1px solid rgba(74,158,255,0.25); }
.tag-cond  { background: rgba(255,255,255,0.07); color: var(--text2); border: 1px solid var(--border); }
.tag-warn  { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }

.listing-right {
  display: flex; flex-direction: column; align-items: flex-end;
  justify-content: space-between; flex-shrink: 0; min-width: 120px;
}
.price-big { font-size: 18px; font-weight: 700; color: var(--text); }
.price-big small { font-size: 11px; color: var(--text3); font-weight: 400; display: block; text-align: right; }
.price-trade { font-size: 15px; font-weight: 700; color: var(--blue); }
.offer-count { font-size: 11px; color: var(--text3); }
.action-btns { display: flex; gap: 5px; }
.btn-buy {
  padding: 6px 13px; border-radius: 7px; font-size: 12px; font-weight: 700;
  border: none; background: rgba(34,197,94,0.2); color: #4ade80;
  cursor: pointer; transition: all .15s;
}
.btn-buy:hover { background: rgba(34,197,94,0.3); }
.btn-offer {
  padding: 6px 11px; border-radius: 7px; font-size: 12px;
  border: 1px solid var(--border); background: transparent; color: var(--text2);
  cursor: pointer; transition: all .15s;
}
.btn-offer:hover { border-color: var(--border2); color: var(--text); }
.btn-trade-sm {
  padding: 6px 11px; border-radius: 7px; font-size: 12px;
  border: 1px solid rgba(74,158,255,0.3); background: transparent; color: var(--blue);
  cursor: pointer; transition: all .15s;
}
.btn-trade-sm:hover { background: rgba(74,158,255,0.1); }

.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text3);
}
.empty-state .icon { font-size: 48px; margin-bottom: 14px; }
.empty-state h3 { font-size: 16px; color: var(--text2); margin-bottom: 8px; }

.skeleton-row {
  height: 108px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0%{background-position:200% 0}100%{background-position:-200% 0} }

/* ── DETAIL PAGE ─────────────────────────────────────────────── */
.detail-page { display: none; }
.detail-page.show { display: block; }

.breadcrumb {
  font-size: 13px; color: var(--text3); margin-bottom: 16px;
  display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--text2); text-decoration: none; }
.breadcrumb a:hover { color: var(--yellow); }

.detail-grid {
  display: grid; grid-template-columns: 300px 1fr; gap: 20px;
  align-items: start;
}
.detail-gallery {
  position: sticky; top: 74px;
}
.gallery-main {
  width: 100%; aspect-ratio: 3/4;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 7px; flex-wrap: wrap; }
.gallery-thumb {
  width: 56px; height: 74px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--border); overflow: hidden;
  background: var(--bg2); transition: border-color .15s;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--text3); text-align: center;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.act { border-color: var(--yellow); }
.gallery-hint { font-size: 10px; color: var(--text3); margin-top: 7px; text-align: center; }

.detail-info-box {
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px; backdrop-filter: blur(8px);
}
.detail-title { font-family: 'Unbounded', sans-serif; font-size: 20px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 4px; }
.detail-seller { font-size: 13px; color: var(--text3); margin-bottom: 14px; }
.detail-seller span { color: var(--yellow); font-weight: 700; }

.detail-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.detail-price { font-size: 28px; font-weight: 800; color: var(--text); }
.detail-price-eur { font-size: 14px; color: var(--text3); }
.detail-trend { font-size: 12px; color: var(--text3); }
.detail-trend span { color: var(--green); }

.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }

.detail-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.meta-row {
  background: rgba(255,255,255,0.04); border-radius: 8px; padding: 8px 10px;
  border: 1px solid var(--border);
}
.meta-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.meta-val { font-size: 13px; font-weight: 600; color: var(--text); }

.detail-desc {
  font-size: 13px; color: var(--text2); line-height: 1.7;
  background: rgba(255,255,255,0.03); border-radius: 9px; padding: 12px;
  border: 1px solid var(--border); margin-bottom: 16px;
}

.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.btn-detail-buy {
  flex: 1; padding: 12px 20px; border-radius: 10px; font-size: 15px; font-weight: 700;
  border: none; background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff; cursor: pointer; transition: all .15s;
}
.btn-detail-buy:hover { opacity: .88; transform: translateY(-1px); }
.btn-detail-offer {
  padding: 12px 18px; border-radius: 10px; font-size: 14px;
  border: 1px solid var(--border2); background: transparent; color: var(--text);
  cursor: pointer; transition: all .15s;
}
.btn-detail-offer:hover { background: rgba(255,255,255,0.06); }
.btn-detail-trade {
  padding: 12px 18px; border-radius: 10px; font-size: 14px;
  border: 1px solid rgba(74,158,255,0.4); background: transparent; color: var(--blue);
  cursor: pointer; transition: all .15s;
}
.btn-detail-trade:hover { background: rgba(74,158,255,0.08); }
.btn-detail-msg {
  padding: 12px 16px; border-radius: 10px; font-size: 14px;
  border: 1px solid var(--border); background: transparent; color: var(--text3);
  cursor: pointer; transition: all .15s;
}
.btn-detail-msg:hover { color: var(--text); border-color: var(--border2); }

/* Panels */
.action-panel {
  border: 1px solid var(--border2); border-radius: 12px; padding: 14px;
  margin-bottom: 10px; display: none; flex-direction: column; gap: 10px;
  background: rgba(255,255,255,0.03);
}
.action-panel.show { display: flex; }
.panel-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.panel-inp {
  padding: 9px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.05);
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none;
}
.panel-inp:focus { border-color: rgba(245,200,66,0.4); }
.panel-textarea {
  padding: 9px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.05);
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 13px; outline: none;
  resize: none; height: 70px; line-height: 1.5;
}
.panel-textarea::placeholder, .panel-inp::placeholder { color: var(--text3); }

.trade-cards-wrap { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 4px; }
.trade-card-item {
  width: 54px; height: 74px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: var(--text3); text-align: center; padding: 3px;
  overflow: hidden; transition: border-color .15s;
}
.trade-card-item img { width: 100%; height: 100%; object-fit: cover; }
.trade-card-item.sel { border: 2px solid var(--yellow); }
.trade-view-toggle { display: flex; gap: 5px; }
.tv-btn {
  padding: 4px 10px; border-radius: 6px; font-size: 11px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text3); transition: all .15s;
}
.tv-btn.act { background: rgba(255,255,255,0.08); color: var(--text2); }
.trade-list-wrap { display: none; }
.trade-list-wrap.show { display: block; }
.trade-list-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px;
  cursor: pointer; transition: background .1s; font-size: 13px; color: var(--text2);
}
.trade-list-item:hover { background: rgba(255,255,255,0.05); }
.trade-list-item input { accent-color: var(--yellow); }

.msg-thread {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  display: none; flex-direction: column;
}
.msg-thread.show { display: flex; }
.msg-thread-head {
  padding: 9px 12px; background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600;
}
.msg-list { padding: 10px; display: flex; flex-direction: column; gap: 7px; max-height: 180px; overflow-y: auto; }
.msg-bbl {
  padding: 7px 11px; border-radius: 10px; font-size: 13px;
  max-width: 80%; line-height: 1.5;
}
.msg-bbl.them { background: rgba(255,255,255,0.07); align-self: flex-start; color: var(--text2); }
.msg-bbl.me   { background: rgba(74,158,255,0.18); align-self: flex-end; color: var(--blue); }
.msg-input-row {
  display: flex; gap: 7px; padding: 8px 10px;
  border-top: 1px solid var(--border); background: rgba(0,0,0,0.2);
}
.msg-input-row input {
  flex: 1; padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.05);
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 13px; outline: none;
}
.msg-input-row input:focus { border-color: rgba(74,158,255,0.4); }
.msg-send-btn {
  padding: 7px 14px; border-radius: 8px; border: none; font-size: 13px; font-weight: 600;
  background: rgba(74,158,255,0.2); color: var(--blue); cursor: pointer;
}

.panel-btns { display: flex; gap: 8px; }
.btn-confirm {
  padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 700;
  border: none; background: rgba(245,200,66,0.2); color: var(--yellow); cursor: pointer;
}
.btn-cancel {
  padding: 8px 14px; border-radius: 8px; font-size: 13px;
  border: 1px solid var(--border); background: transparent; color: var(--text3); cursor: pointer;
}

@media (max-width: 900px) {
  .sidebar { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-gallery { position: static; }
}

/* ── Blue aura for matching cards ── */
.trade-card-item.match {
  border: 2px solid #74b4ff !important;
  box-shadow: 0 0 0 2px rgba(116,180,255,0.3), 0 0 18px 4px rgba(74,158,255,0.45);
  animation: blueAuraPulse 2.2s ease-in-out infinite;
  position: relative;
}
@keyframes blueAuraPulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(116,180,255,0.3), 0 0 14px 4px rgba(74,158,255,0.35); }
  50%      { box-shadow: 0 0 0 2px rgba(116,180,255,0.6), 0 0 24px 8px rgba(74,158,255,0.65); }
}
.trade-card-item.match::after {
  content: '✓'; position: absolute; bottom: 2px; right: 3px;
  font-size: 9px; font-weight: 900; color: #74b4ff;
  background: rgba(0,0,0,0.75); border-radius: 4px; padding: 1px 3px;
}
.trade-match-section {
  background: rgba(74,158,255,0.07);
  border: 1px solid rgba(74,158,255,0.2);
  border-radius: 10px; padding: 10px; margin-bottom: 4px;
}
.trade-match-label {
  font-size: 11px; font-weight: 700; color: var(--blue);
  letter-spacing: .05em; margin-bottom: 8px;
  display: flex; align-items: center; gap: 5px;
}
.trade-match-label::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.trade-wants-box {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; margin-bottom: 6px;
}
.trade-wants-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.trade-wants-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.trade-want-tag {
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: rgba(116,180,255,0.12); border: 1px solid rgba(116,180,255,0.25);
  color: var(--blue);
}
.trade-other-label {
  font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .08em;
  margin: 8px 0 5px;
}
.trade-no-match {
  font-size: 12px; color: var(--text3); padding: 8px 0;
  text-align: center;
}

/* ── Card search modal ── */
.card-search-modal {
  display: none; position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 20px;
}
.card-search-modal.open { display: flex; }
.card-search-box {
  background: #0e0c14; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px; width: 100%; max-width: 560px;
  max-height: 85vh; overflow: hidden; display: flex; flex-direction: column;
}
.csb-head {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.csb-title { font-family: 'Unbounded', sans-serif; font-size: 14px; font-weight: 800; color: #fff; }
.csb-close { background: none; border: none; color: var(--text3); font-size: 18px; cursor: pointer; padding: 4px 8px; }
.csb-search-row { padding: 14px 20px; display: flex; gap: 8px; border-bottom: 1px solid var(--border); }
.csb-inp {
  flex: 1; padding: 9px 12px; border-radius: 9px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.06);
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none;
}
.csb-inp:focus { border-color: rgba(245,200,66,0.4); }
.csb-set-inp {
  width: 160px; padding: 9px 12px; border-radius: 9px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.06);
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none;
}
.csb-set-inp:focus { border-color: rgba(245,200,66,0.4); }
.csb-search-btn {
  padding: 9px 16px; border-radius: 9px; border: none;
  background: linear-gradient(135deg,var(--yellow),#ff8c00);
  color: #000; font-weight: 800; font-size: 13px; cursor: pointer;
}
.csb-results { overflow-y: auto; flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.csb-results::-webkit-scrollbar { width: 4px; }
.csb-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.csb-card-row {
  display: flex; gap: 10px; align-items: center; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 10px;
  background: rgba(255,255,255,0.03); cursor: pointer; transition: all .15s;
}
.csb-card-row:hover { border-color: var(--border2); background: rgba(255,255,255,0.06); }
.csb-card-row.selected { border-color: var(--yellow); background: rgba(245,200,66,0.08); }
.csb-card-img { width: 40px; height: 55px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.csb-card-info { flex: 1; min-width: 0; }
.csb-card-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csb-card-meta { font-size: 11px; color: var(--text3); margin-top: 2px; }
.csb-card-select { padding: 5px 12px; border-radius: 7px; border: 1px solid rgba(245,200,66,0.3); background: transparent; color: var(--yellow); font-size: 12px; font-weight: 700; cursor: pointer; }
.csb-card-select:hover { background: rgba(245,200,66,0.1); }
.csb-empty { text-align: center; padding: 30px; color: var(--text3); font-size: 13px; }
.csb-loading { text-align: center; padding: 20px; color: var(--text3); }
.csb-hint { padding: 10px 20px 14px; font-size: 11px; color: var(--text3); text-align: center; border-top: 1px solid var(--border); }
.btn-search-card {
  padding: 6px 11px; border-radius: 7px; font-size: 12px;
  border: 1px solid rgba(245,200,66,0.3); background: transparent; color: var(--yellow);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn-search-card:hover { background: rgba(245,200,66,0.1); }

/* ── AI Drop Zone ── */
.ai-drop-zone {
  border: 2px dashed rgba(116,180,255,0.25);
  border-radius: 14px;
  background: rgba(74,158,255,0.04);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.ai-drop-zone:hover, .ai-drop-zone.drag-over {
  border-color: rgba(116,180,255,0.6);
  background: rgba(74,158,255,0.1);
}
.ai-drop-zone.drag-over { transform: scale(1.01); }
.ai-drop-zone.scanning {
  border-color: rgba(116,180,255,0.5);
  animation: zoneGlow 1.5s ease-in-out infinite;
}
@keyframes zoneGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(74,158,255,0); }
  50%      { box-shadow: 0 0 20px 4px rgba(74,158,255,0.2); }
}
.ai-drop-icon { font-size: 32px; margin-bottom: 8px; }
.ai-drop-title { font-size: 14px; font-weight: 600; color: var(--text2); margin-bottom: 4px; }
.ai-drop-hint  { font-size: 12px; color: var(--text3); }

/* Preview inside drop zone */
.ai-preview-wrap {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px; padding: 10px; margin: 0;
  cursor: default;
}
.ai-preview-img { width: 52px; height: 72px; border-radius: 7px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }
.ai-preview-info { flex: 1; min-width: 0; text-align: left; }
.ai-preview-name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-preview-meta { font-size: 11px; color: var(--text3); margin-top: 3px; }
.ai-preview-conf {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 5px;
  font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 20px;
}
.ai-preview-conf.high { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.ai-preview-conf.med  { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.ai-preview-conf.low  { background: rgba(248,113,113,0.15); color: #f87171; border: 1px solid rgba(248,113,113,0.25); }
.ai-preview-change {
  font-size: 11px; color: var(--text3); cursor: pointer; padding: 5px;
  border-radius: 6px; border: 1px solid var(--border); background: transparent;
  white-space: nowrap; flex-shrink: 0;
}
.ai-preview-change:hover { color: var(--text2); border-color: var(--border2); }

/* Scan progress bar */
.ai-scan-bar {
  height: 3px; background: rgba(255,255,255,0.06);
  border-radius: 2px; overflow: hidden; margin-top: 8px;
}
.ai-scan-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), #a78bff);
  width: 0%; transition: width .4s ease;
  animation: scanShimmer 1.5s ease-in-out infinite;
}
@keyframes scanShimmer {
  0%   { filter: brightness(1); }
  50%  { filter: brightness(1.4); }
  100% { filter: brightness(1); }
}
.ai-scan-status {
  font-size: 11px; color: rgba(116,180,255,0.8);
  text-align: center; margin-top: 5px;
}

/* AI Pick candidates */
.ai-candidate {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 10px; cursor: pointer; transition: all .15s;
  background: rgba(255,255,255,0.03); display: flex; flex-direction: column; gap: 7px;
}
.ai-candidate:hover { border-color: rgba(116,180,255,0.4); background: rgba(74,158,255,0.06); }
.ai-candidate.best-match {
  border-color: rgba(116,180,255,0.5);
  background: rgba(74,158,255,0.08);
  box-shadow: 0 0 0 1px rgba(116,180,255,0.15);
}
.ai-candidate-img { width: 100%; aspect-ratio: 3/4; object-fit: contain; border-radius: 7px; background: rgba(255,255,255,0.03); }
.ai-candidate-name { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.3; }
.ai-candidate-meta { font-size: 10px; color: var(--text3); }
.ai-candidate-badge {
  font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 20px;
  background: rgba(116,180,255,0.15); color: var(--blue); border: 1px solid rgba(116,180,255,0.25);
  align-self: flex-start;
}
.ai-scanning-overlay {
  position: absolute; inset: 0; background: rgba(6,4,12,0.85);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-radius: 12px;
}
.ai-scanner-line {
  width: 70%; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent);
  animation: scanLine 1.2s ease-in-out infinite;
}
@keyframes scanLine {
  0%   { transform: translateY(-30px); opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateY(30px); opacity: 0; }
}
.ai-scanning-text { font-size: 12px; color: var(--blue); font-weight: 700; letter-spacing: .05em; }



.nav-icon { width:26px; height:26px; object-fit:contain; vertical-align:middle; margin-right:5px; mix-blend-mode:screen; filter:brightness(1.3); }

/* ── Global modern minimal scrollbars ──────────────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
*::-webkit-scrollbar { width: 4px; height: 4px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1); border-radius: 4px;
  transition: background .2s;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(245,200,66,0.35); }

/* ── Pending queue button & badge ──────────────────────────── */
.btn-pending {
  position: relative;
  padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(245,200,66,0.3);
  background: rgba(245,200,66,0.07); color: var(--yellow);
  font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: inherit;
}
.btn-pending:hover { background: rgba(245,200,66,0.14); border-color: rgba(245,200,66,0.5); }
.btn-pending.active { background: rgba(245,200,66,0.18); border-color: rgba(245,200,66,0.6); }
.btn-pending.empty { opacity: 0.45; pointer-events: none; }
.pending-badge {
  background: var(--yellow); color: #000;
  font-size: 10px; font-weight: 900;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px; line-height: 1;
}

/* ── Item type filter tabs (Vše / Karty / Sealed) ─────────── */
.item-type-btn {
  padding: 6px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05); color: rgba(240,236,228,0.6);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s;
  font-family: inherit;
}
.item-type-btn:hover { background: rgba(255,255,255,0.1); color: #f0ece4; border-color: rgba(255,255,255,0.2); }
.item-type-btn.active { background: rgba(245,200,66,0.15); color: #f5c842; border-color: rgba(245,200,66,0.45); }

/* ── Modal: Karta / Produkt tabs ─────────────────────────── */
.listing-tab {
  flex: 1; padding: 9px 0; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); color: rgba(240,236,228,0.55);
  font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s;
  font-family: inherit;
}
.listing-tab:hover { background: rgba(255,255,255,0.08); color: #f0ece4; }
.listing-tab.active { background: rgba(245,200,66,0.14); color: #f5c842; border-color: rgba(245,200,66,0.4); }

/* ── Modal: Typ produktu (Booster, ETB…) ─────────────────── */
.prod-type-btn {
  padding: 8px 4px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); color: rgba(240,236,228,0.6);
  font-size: 11px; font-weight: 600; cursor: pointer; transition: all .15s;
  font-family: inherit; text-align: center; line-height: 1.4;
}
.prod-type-btn:hover { background: rgba(255,255,255,0.08); color: #f0ece4; border-color: rgba(255,255,255,0.2); }
.prod-type-btn.active { background: rgba(245,200,66,0.14); color: #f5c842; border-color: rgba(245,200,66,0.4); }

/* ── Modal: Jazyk (EN, CZ, JP…) ──────────────────────────── */
.lang-btn {
  padding: 5px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); color: rgba(240,236,228,0.6);
  font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s;
  font-family: inherit; white-space: nowrap;
}
.lang-btn:hover { background: rgba(255,255,255,0.08); color: #f0ece4; border-color: rgba(255,255,255,0.2); }
.lang-btn.active { background: rgba(245,200,66,0.14); color: #f5c842; border-color: rgba(245,200,66,0.4); }

/* ── Modal: Stav obalu (Sealed / Poškozený / Otevřený) ───── */
.seal-btn {
  padding: 7px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); color: rgba(240,236,228,0.6);
  font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s;
  font-family: inherit; white-space: nowrap;
}
.seal-btn:hover { background: rgba(255,255,255,0.08); color: #f0ece4; border-color: rgba(255,255,255,0.2); }
.seal-btn.active { background: rgba(245,200,66,0.14); color: #f5c842; border-color: rgba(245,200,66,0.4); }

/* ── Pending queue panel ────────────────────────────────────── */
#pendingPanel {
  display: none;
  background: rgba(10,8,18,0.96);
  border: 1px solid rgba(245,200,66,0.18);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
  animation: panelSlide .18s ease;
}
@keyframes panelSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
#pendingPanel .panel-head {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
}
#pendingPanel .panel-head-title {
  font-family: 'Unbounded', sans-serif; font-size: 12px; font-weight: 800;
  color: var(--yellow); display: flex; align-items: center; gap: 8px;
}
#pendingPanel .panel-close {
  background: none; border: none; color: var(--text3);
  font-size: 16px; cursor: pointer; padding: 2px 6px; line-height: 1;
}
#pendingPanel .panel-close:hover { color: var(--text2); }
.pending-list { display: flex; flex-direction: column; }
.pending-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer; transition: background .12s;
}
.pending-row:last-child { border-bottom: none; }
.pending-row:hover { background: rgba(245,200,66,0.04); }
.pending-row-img {
  width: 36px; height: 50px; border-radius: 5px; object-fit: cover;
  flex-shrink: 0; background: rgba(255,255,255,0.04);
}
.pending-row-info { flex: 1; min-width: 0; }
.pending-row-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pending-row-meta { font-size: 11px; color: var(--text3); margin-top: 2px; }
.pending-row-price {
  font-size: 13px; font-weight: 700; color: var(--yellow);
  white-space: nowrap; flex-shrink: 0;
}
.pending-row-cond {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px;
  background: rgba(255,255,255,0.06); color: var(--text3);
  white-space: nowrap; flex-shrink: 0;
}
.pending-row-del {
  background: none; border: none; color: rgba(248,113,113,0.4);
  font-size: 14px; cursor: pointer; padding: 4px 6px; line-height: 1;
  border-radius: 5px; transition: all .12s; flex-shrink: 0;
}
.pending-row-del:hover { color: #f87171; background: rgba(248,113,113,0.1); }
.pending-empty {
  padding: 32px 16px; text-align: center;
  font-size: 13px; color: var(--text3); line-height: 1.6;
}

/* ── Advanced search filter ── */
.search-filter-btn {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text3); font-size: 13px; cursor: pointer;
  padding: 4px 8px; border-radius: 5px; line-height: 1;
  transition: all .15s; letter-spacing: .02em; font-weight: 700;
}
.search-filter-btn:hover { color: var(--yellow); background: rgba(245,200,66,0.08); }
.search-filter-btn.active { color: var(--yellow); background: rgba(245,200,66,0.12); }

.adv-filter-panel {
  background: rgba(8,4,14,0.96);
  border: 1px solid rgba(245,200,66,0.2);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  animation: panelSlide .18s ease;
  backdrop-filter: blur(12px);
}
.adv-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
@media(max-width:900px) { .adv-filter-grid { grid-template-columns: 1fr 1fr; } }
.adv-field label {
  display: block;
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  color: var(--text3); text-transform: uppercase; margin-bottom: 5px;
}
.adv-inp {
  width: 100%; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.05);
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 13px; outline: none; color-scheme: dark;
}
.adv-inp:focus { border-color: rgba(245,200,66,0.4); }
.adv-url-row { margin-bottom: 12px; }
.adv-url-row > label {
  display: block;
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  color: var(--text3); text-transform: uppercase; margin-bottom: 5px;
}
.adv-url-preview {
  display: flex; align-items: center; gap: 10px; margin-top: 8px;
  background: rgba(245,200,66,0.06); border: 1px solid rgba(245,200,66,0.2);
  border-radius: 9px; padding: 8px 12px; font-size: 12px; color: var(--text2);
}
.adv-filter-footer {
  display: flex; gap: 8px; align-items: center;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.btn-adv-search {
  padding: 8px 18px; border-radius: 8px; border: none;
  background: linear-gradient(135deg,var(--yellow),#ff8c00);
  color: #000; font-size: 13px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.btn-adv-clear {
  padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text3); font-size: 13px; cursor: pointer; font-family: inherit;
}
.btn-adv-clear:hover { color: var(--text); border-color: var(--border2); }
.adv-filter-active-badge {
  font-size: 11px; color: var(--yellow);
  display: flex; align-items: center; gap: 4px;
}
.adv-filter-active-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow); display: inline-block;
  box-shadow: 0 0 6px var(--yellow);
}

/* ── Sidebar counts ── */
.sb-count {
  margin-left: auto;
  font-size: 10px; font-weight: 700;
  background: rgba(255,255,255,0.06);
  color: var(--text3);
  padding: 1px 7px; border-radius: 10px;
  min-width: 22px; text-align: center;
  transition: all .2s;
}
.sb-count.has-val { background: rgba(245,200,66,0.12); color: var(--yellow); }

/* ── Album price info in listing form ──────────────────────── */
.album-price-info {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  background: rgba(245,200,66,0.06); border: 1px solid rgba(245,200,66,0.18);
  font-size: 12px; color: var(--text3); margin-bottom: 2px;
}
.album-price-info strong { color: var(--yellow); font-size: 15px; font-weight: 800; }

/* ── Album Compare ──────────────────────────────────────────── */
.btn-album-compare {
  width: 100%; padding: 8px 10px; border-radius: 9px;
  border: 1px solid rgba(116,180,255,0.3);
  background: rgba(74,158,255,0.07);
  color: var(--blue); font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all .15s; display: flex; align-items: center;
  gap: 7px; text-align: left;
}
.btn-album-compare:hover { background: rgba(74,158,255,0.14); border-color: rgba(116,180,255,0.5); }
.btn-album-compare.active { background: rgba(74,158,255,0.18); border-color: rgba(116,180,255,0.6); color: #a5d0ff; }
.btn-album-compare .ac-badge {
  margin-left: auto; font-size: 10px; font-weight: 900;
  background: var(--blue); color: #000;
  padding: 1px 6px; border-radius: 8px; min-width: 20px; text-align: center;
}

.album-picker-drop {
  margin-top: 6px; background: rgba(8,4,14,0.97);
  border: 1px solid rgba(116,180,255,0.2); border-radius: 10px;
  overflow: hidden; animation: panelSlide .15s ease;
}
.album-picker-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12px; color: var(--text2); transition: background .12s;
}
.album-picker-item:last-child { border-bottom: none; }
.album-picker-item:hover { background: rgba(116,180,255,0.08); color: var(--text); }
.album-picker-item.sel { background: rgba(116,180,255,0.12); color: var(--blue); }
.album-picker-icon { font-size: 14px; flex-shrink: 0; }

/* active compare banner in main area */
.compare-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 10px; margin-bottom: 10px;
  background: rgba(74,158,255,0.1); border: 1px solid rgba(116,180,255,0.25);
  font-size: 12px; color: var(--blue); animation: panelSlide .15s ease;
}
.compare-banner strong { color: #a5d0ff; }
.compare-banner-close {
  margin-left: auto; background: none; border: none;
  color: rgba(116,180,255,0.5); font-size: 14px; cursor: pointer;
  padding: 2px 6px; border-radius: 5px; line-height: 1;
}
.compare-banner-close:hover { color: var(--blue); }

/* ── Trade: Album card finder ──────────────────────────────── */
.btn-find-trade-cards {
  padding: 7px 12px; border-radius: 8px; font-size: 12px; font-weight: 700;
  border: 1px solid rgba(116,180,255,0.35);
  background: rgba(74,158,255,0.1); color: var(--blue);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn-find-trade-cards:hover { background: rgba(74,158,255,0.2); }

#tradeAlbumPicker {
  background: rgba(8,4,14,0.97);
  border: 1px solid rgba(116,180,255,0.18);
  border-radius: 10px; padding: 10px; margin-bottom: 8px;
  animation: panelSlide .15s ease;
}
.tap-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.tap-albums { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.tap-album-btn {
  padding: 4px 11px; border-radius: 20px; font-size: 12px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  color: var(--text2); cursor: pointer; transition: all .13s;
}
.tap-album-btn:hover { border-color: var(--border2); color: var(--text); }
.tap-album-btn.sel { border-color: rgba(116,180,255,0.5); background: rgba(74,158,255,0.12); color: var(--blue); }

#tradeAlbumResults {
  margin-top: 6px;
}
.trade-album-match-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  transition: all .12s; margin-bottom: 4px;
}
.trade-album-match-row:hover { border-color: rgba(116,180,255,0.4); background: rgba(74,158,255,0.06); }
.trade-album-match-row.queued { border-color: rgba(116,180,255,0.5); background: rgba(74,158,255,0.1); }
.tam-img { width: 32px; height: 44px; border-radius: 5px; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,0.04); }
.tam-info { flex: 1; min-width: 0; }
.tam-name { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tam-meta { font-size: 10px; color: var(--text3); }
.tam-add { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700;
  border: 1px solid rgba(116,180,255,0.35); background: transparent; color: var(--blue); cursor: pointer; }
.tam-add:hover { background: rgba(74,158,255,0.15); }
.tam-add.done { border-color: rgba(74,222,128,0.4); color: #4ade80; pointer-events: none; }
.tam-empty { font-size: 12px; color: var(--text3); padding: 8px 0; text-align: center; }

/* confirm trade offer UI */
.trade-offer-confirm {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px; margin-top: 8px;
  background: rgba(74,222,128,0.07); border: 1px solid rgba(74,222,128,0.2);
}
.trade-offer-confirm-btn {
  margin-left: auto; padding: 6px 14px; border-radius: 7px; border: none;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
}
.trade-offer-confirm-btn:hover { opacity: .88; }



/* ══════════════════════════════════════════════════════════════
   POPTÁVKY – DEMAND SYSTEM STYLES
   ══════════════════════════════════════════════════════════════ */

/* ── Market Mode Tabs ─────────────────────────────────────── */
.market-mode-tabs {
  display: flex;
  gap: 6px;
  padding: 0 0 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 10px;
}
.mmt-btn {
  padding: 8px 22px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text3);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
}
.mmt-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text2);
}
.mmt-btn.active {
  background: rgba(34,211,238,0.12);
  border-color: rgba(34,211,238,0.35);
  color: #22d3ee;
}
#mmtOffer.active {
  background: rgba(245,200,66,0.12);
  border-color: rgba(245,200,66,0.35);
  color: var(--yellow);
}

/* ── Demand search row ────────────────────────────────────── */
.demand-search-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.demand-search-wrap .panel-inp {
  flex: 1;
  min-width: 200px;
  font-size: 14px;
}

/* ── Demands wrap grid ────────────────────────────────────── */
.demands-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Demand card ──────────────────────────────────────────── */
.demand-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(10, 12, 22, 0.85);
  border: 1px solid rgba(34,211,238,0.14);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s, transform .12s;
  cursor: pointer;
  position: relative;
}
.demand-card:hover {
  border-color: rgba(34,211,238,0.38);
  box-shadow: 0 4px 28px rgba(34,211,238,0.1);
  transform: translateY(-1px);
}

.demand-card-img-wrap {
  flex-shrink: 0;
  width: 80px;
  background: rgba(34,211,238,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.demand-card-img {
  width: 80px;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  filter: saturate(0.8);
  transition: opacity .2s, filter .2s;
}
.demand-card:hover .demand-card-img {
  opacity: 0.95;
  filter: saturate(1.1);
}
.demand-card-placeholder {
  font-size: 28px;
  opacity: 0.35;
}
.demand-card-overlay {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #22d3ee;
  background: rgba(10,12,22,0.72);
  padding: 2px 0;
}

.demand-card-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.demand-card-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.demand-card-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demand-set {
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
}
.demand-notes {
  font-size: 12px;
  color: var(--text3);
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demand-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.demand-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text3);
}
.demand-tag.trade-tag {
  background: rgba(34,211,238,0.1);
  border-color: rgba(34,211,238,0.25);
  color: #22d3ee;
}
.demand-tag.cond-tag { color: var(--text2); }
.demand-tag.type-tag {
  background: rgba(245,200,66,0.08);
  border-color: rgba(245,200,66,0.2);
  color: rgba(245,200,66,0.8);
}

.demand-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
}
.demand-card-price { display: flex; align-items: center; gap: 6px; }
.demand-max-price {
  font-size: 15px;
  font-weight: 800;
  color: #22d3ee;
  font-family: 'Unbounded', sans-serif;
}
.demand-max-price-any {
  font-size: 13px;
  color: var(--text3);
}
.demand-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}
.demand-user { color: var(--blue); font-weight: 600; }
.demand-dot  { color: var(--text3); }
.demand-ago  { color: var(--text3); }
.demand-resp-cnt { color: #22d3ee; font-weight: 700; }

/* ── Demand actions column ────────────────────────────────── */
.demand-card-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-left: 1px solid rgba(255,255,255,0.05);
}
.btn-demand-respond {
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid rgba(34,211,238,0.3);
  background: rgba(34,211,238,0.1);
  color: #22d3ee;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all .15s;
}
.btn-demand-respond:hover {
  background: rgba(34,211,238,0.2);
  border-color: rgba(34,211,238,0.55);
  box-shadow: 0 0 14px rgba(34,211,238,0.15);
}
.btn-demand-own {
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid rgba(248,113,113,0.25);
  background: rgba(248,113,113,0.08);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all .15s;
}
.btn-demand-own:hover {
  background: rgba(248,113,113,0.18);
}

/* ── Demand drop zone tint ────────────────────────────────── */
.demand-drop-zone {
  border-color: rgba(34,211,238,0.2) !important;
  background: rgba(34,211,238,0.04) !important;
}
.demand-drop-zone:hover, .demand-drop-zone.drag-over {
  border-color: rgba(34,211,238,0.45) !important;
  background: rgba(34,211,238,0.09) !important;
}

/* ── Demand respond modal – listing picker ────────────────── */
.dr-listing-pick-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  font-size: 12px;
  transition: background .14s, border-color .14s;
}
.dr-listing-pick-item:hover {
  background: rgba(34,211,238,0.08);
  border-color: rgba(34,211,238,0.22);
}
.dr-listing-label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--text2);
}
.dr-listing-price {
  margin-left: auto;
  color: #22d3ee;
  font-weight: 700;
  font-size: 12px;
}

/* ── Sidebar: demand mode hint ────────────────────────────── */
.demand-sidebar-hint {
  font-size: 11px;
  color: #22d3ee;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.18);
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.5;
}


/* ══════════════════════════════════════════════════════════════
   CARD PREVIEW – HOVER ZOOM
   ══════════════════════════════════════════════════════════════ */
.card-preview-hover-wrap {
  position: relative;
  flex-shrink: 0;
}
.card-preview-thumb {
  width: 44px; height: 60px;
  border-radius: 5px; object-fit: cover;
  cursor: zoom-in;
  transition: opacity .15s;
}
.card-preview-hover-wrap:hover .card-preview-thumb { opacity: 0.7; }
.card-preview-zoom-overlay {
  display: none;
  position: fixed;
  z-index: 9700;
  pointer-events: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.92);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 0 80px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.08);
}
.card-preview-hover-wrap:hover .card-preview-zoom-overlay { display: block; }
.card-zoom-large {
  display: block;
  max-width: min(360px, 80vw);
  max-height: 70vh;
  border-radius: 8px;
  object-fit: contain;
}

/* ══════════════════════════════════════════════════════════════
   OFFICIAL CARD HOVER-ZOOM (sale photos left col)
   ══════════════════════════════════════════════════════════════ */
.listing-official-card-wrap {
  flex-shrink: 0;
}
.card-hover-zoom-wrap {
  position: relative;
  width: 72px;
  border-radius: 8px;
  overflow: visible;
  cursor: zoom-in;
}
.official-card-thumb {
  width: 72px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: filter .15s, transform .15s;
  display: block;
}
.card-hover-zoom-wrap:hover .official-card-thumb {
  filter: brightness(0.6);
  transform: scale(1.04);
}
.card-hover-zoom-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
  border-radius: 8px;
}
.card-hover-zoom-wrap:hover .card-hover-zoom-label { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   SALE PHOTOS STRIP
   ══════════════════════════════════════════════════════════════ */
.sale-photos-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.sale-photo-tile {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
  background: rgba(255,255,255,0.03);
}
.sale-photo-tile:hover .sale-photo-actions { opacity: 1; }
.sale-photo-img {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  display: block;
  transition: filter .15s;
}
.sale-photo-tile:hover .sale-photo-img { filter: brightness(0.55); }
.sale-photo-actions {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity .15s;
}
.spt-zoom-btn {
  background: rgba(96,165,250,0.85);
  border: none;
  border-radius: 6px;
  width: 28px; height: 28px;
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background .1s;
}
.spt-zoom-btn:hover { background: #60a5fa; }
.spt-crop-btn {
  background: rgba(245,200,66,0.85);
  border: none;
  border-radius: 6px;
  width: 28px; height: 28px;
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background .1s;
}
.spt-crop-btn:hover { background: #f5c842; }
.spt-del-btn {
  background: rgba(248,113,113,0.85);
  border: none;
  border-radius: 6px;
  width: 28px; height: 28px;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background .1s;
}
.spt-del-btn:hover { background: #f87171; }
.spt-cropped-badge {
  position: absolute;
  bottom: 3px; right: 3px;
  font-size: 9px;
  background: rgba(245,200,66,0.9);
  border-radius: 4px;
  padding: 1px 4px;
  pointer-events: none;
}
.sale-photo-add {
  width: 80px; height: 80px;
  border-radius: 8px;
  border: 1.5px dashed rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
}
.sale-photo-add:hover,
.sale-photo-add.drag-over {
  border-color: rgba(245,200,66,0.45);
  background: rgba(245,200,66,0.06);
}

/* ══════════════════════════════════════════════════════════════
   ALBUM PICKER MODAL
   ══════════════════════════════════════════════════════════════ */
.album-picker-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 8px 6px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  transition: background .14s, border-color .14s, transform .12s;
  min-width: 0;
}
.album-picker-card:hover {
  background: rgba(74,222,128,0.1);
  border-color: rgba(74,222,128,0.3);
  transform: translateY(-2px);
}
.apc-img {
  width: 64px; height: 88px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.apc-img-placeholder {
  width: 64px; height: 88px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.apc-name {
  font-size: 10px; font-weight: 700;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  width: 100%; max-width: 80px;
}
.apc-meta {
  font-size: 9px; color: var(--text3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  width: 100%;
}
.apc-cond {
  font-size: 10px; font-weight: 800;
}
.apc-price {
  font-size: 10px; color: var(--yellow); font-weight: 700;
}


/* ══════════════════════════════════════════════════════════════
   FULL-SCREEN MODAL (Nabídka / Poptávka)
   ══════════════════════════════════════════════════════════════ */
.fs-modal {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(6,4,12,0.97);
  backdrop-filter: blur(20px);
  overflow-y: auto;
  animation: fsIn .2s ease;
}
@keyframes fsIn { from { opacity:0; transform:translateY(12px) } to { opacity:1; transform:translateY(0) } }

.fs-modal-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.fs-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6,4,12,0.92);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0 14px;
  border-bottom: 1px solid rgba(245,200,66,0.15);
  margin-bottom: 16px;
}
.fs-header.demand { border-bottom-color: rgba(34,211,238,0.2); }
.fs-header-left { min-width: 0; }
.fs-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px; font-weight: 800; color: #fff;
}
.fs-subtitle { font-size: 13px; color: var(--text3); margin-top: 3px; }
.fs-close {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text3); font-size: 20px;
  cursor: pointer; transition: all .15s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fs-close:hover { background: rgba(255,80,80,0.15); color: #f87171; border-color: rgba(255,80,80,0.3); }

.fs-tabs {
  display: flex; gap: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px; padding: 4px;
  margin-bottom: 18px;
  width: fit-content;
}
.fs-tabs.demand { background: rgba(34,211,238,0.06); }
.fs-tab {
  padding: 8px 20px; border-radius: 9px; border: none;
  background: transparent; color: var(--text3);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.fs-tab.active {
  background: rgba(245,200,66,0.15);
  color: var(--yellow); font-weight: 700;
}
.fs-tabs.demand .fs-tab.active {
  background: rgba(34,211,238,0.15);
  color: #22d3ee;
}

.fs-body { flex: 1; }

.fs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.fs-col { display: flex; flex-direction: column; gap: 0; }

.fs-section {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}
.fs-section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fs-label {
  font-size: 11px; color: var(--text3);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 5px;
}

.fs-card-preview {
  display: flex; gap: 10px; align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 10px;
  margin-top: 8px; position: relative;
}
.fs-card-preview.demand {
  background: rgba(34,211,238,0.06);
  border-color: rgba(34,211,238,0.15);
}

.fs-btn-sm {
  padding: 9px 14px; border-radius: 8px; border: none;
  font-size: 13px; cursor: pointer; font-weight: 700;
  white-space: nowrap; font-family: inherit;
  transition: all .15s;
}
.fs-btn-sm.gold  { background: rgba(245,200,66,0.2);  color: var(--yellow); }
.fs-btn-sm.blue  { background: rgba(74,158,255,0.15); color: var(--blue); }
.fs-btn-sm.green { background: rgba(74,222,128,0.15); color: #4ade80; }
.fs-btn-sm.cyan  { background: rgba(34,211,238,0.18); color: #22d3ee; }
.fs-btn-sm:hover { filter: brightness(1.15); transform: translateY(-1px); }

.fs-ext-link {
  font-size: 11px; color: var(--text3);
  text-decoration: none;
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: all .15s;
}
.fs-ext-link:hover { background: rgba(255,255,255,0.08); color: var(--text2); }

/* Trade URL cards */
.trade-url-cards-wrap {
  display: flex; gap: 8px; flex-wrap: wrap;
  min-height: 10px;
}
.trade-url-card {
  position: relative;
  width: 64px; height: 88px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
}
.trade-url-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.trade-url-card .tuc-del {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(248,113,113,0.9); border: none;
  color: #fff; font-size: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
}
.trade-url-card:hover .tuc-del { opacity: 1; }
.trade-url-card .tuc-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.75);
  font-size: 8px; color: #fff; padding: 2px 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.trade-url-card-loading {
  width: 64px; height: 88px; border-radius: 8px;
  border: 1px dashed rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text3);
  animation: shimmer 1.4s infinite;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
}

/* Footer */
.fs-footer {
  position: sticky; bottom: 0;
  background: rgba(6,4,12,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 0;
  margin-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.fs-btn-draft {
  padding: 11px 20px; border-radius: 10px;
  border: 1px solid rgba(245,200,66,0.25);
  background: rgba(245,200,66,0.08);
  color: var(--yellow); font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.fs-btn-draft:hover { background: rgba(245,200,66,0.15); }
.fs-btn-cancel {
  padding: 11px 22px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text3); font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.fs-btn-cancel:hover { background: rgba(255,255,255,0.1); color: var(--text2); }
.fs-btn-submit {
  padding: 11px 28px; border-radius: 10px; border: none;
  font-size: 15px; font-weight: 800;
  cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.fs-btn-submit.offer {
  background: linear-gradient(135deg, var(--yellow), #ff8c00);
  color: #000;
}
.fs-btn-submit.demand {
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  color: #000;
}
.fs-btn-submit:hover { opacity: .88; transform: translateY(-1px); }

@media (max-width: 768px) {
  .fs-grid { grid-template-columns: 1fr; }
  .fs-modal-inner { padding: 0 14px 14px; }
  .fs-title { font-size: 16px; }
  .fs-footer { flex-direction: column; }
}

/* ── Seller link ────────────────────────────────────────────── */
.seller-link{color:var(--yellow,#f5c842);text-decoration:none;font-weight:700;transition:opacity .15s;cursor:pointer}
.seller-link:hover{opacity:.75;text-decoration:underline}
.seller-stars-inline{display:inline-flex;align-items:center;gap:4px;margin-left:6px;vertical-align:middle}
.seller-stars-tiny{font-size:12px;color:#f5c842;letter-spacing:1px;line-height:1}
.seller-stars-count{font-size:11px;color:rgba(245,200,66,0.75);font-weight:600;margin-left:2px}

/* ── Owner buttons ──────────────────────────────────────────── */
.btn-owner-confirm{padding:10px 18px;border-radius:9px;border:none;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-size:13px;font-weight:800;cursor:pointer;font-family:inherit;transition:opacity .15s}
.btn-owner-confirm:hover{opacity:.85}
.btn-owner-relist{padding:10px 18px;border-radius:9px;border:1px solid var(--border2,rgba(255,255,255,.14));background:transparent;color:rgba(240,236,228,.65);font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;transition:all .15s}
.btn-owner-relist:hover{background:rgba(255,255,255,.07)}
.btn-owner-sold{padding:10px 18px;border-radius:9px;border:none;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-size:13px;font-weight:800;cursor:pointer;font-family:inherit;transition:opacity .15s}
.btn-owner-sold:hover{opacity:.85}
.btn-owner-cancel{padding:10px 18px;border-radius:9px;border:1px solid rgba(255,80,80,.35);background:rgba(255,80,80,.08);color:#ff6060;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;transition:background .15s}
.btn-owner-cancel:hover{background:rgba(255,80,80,.18)}

/* ══════════════════════ SHARE BUTTON ═══════════════════════════ */
.btn-detail-share {
  padding: 12px 16px; border-radius: 10px; font-size: 14px;
  border: 1px solid rgba(99,179,237,0.35); background: transparent;
  color: #63b3ed; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn-detail-share:hover { background: rgba(99,179,237,0.09); border-color: rgba(99,179,237,0.6); }

/* ══════════════════════ SHARE MODAL ════════════════════════════ */
.share-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.share-modal-overlay.open { display: flex; animation: shareFadeIn .18s ease; }
@keyframes shareFadeIn { from { opacity:0; transform:scale(.94); } to { opacity:1; transform:scale(1); } }

.share-modal-box {
  background: #1e1e2e; border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding: 24px; width: 90%; max-width: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,.7);
}
.share-modal-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
}
.share-modal-title { font-size: 17px; font-weight: 800; color: var(--text,#f0ece4); }
.share-modal-close {
  background: transparent; border: none; color: var(--text3,rgba(240,236,228,.45));
  font-size: 18px; cursor: pointer; padding: 2px 6px; border-radius: 6px; transition: color .15s;
}
.share-modal-close:hover { color: var(--text,#f0ece4); }
.share-modal-name {
  font-size: 12px; color: var(--text3,rgba(240,236,228,.5));
  margin-bottom: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.share-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.share-btn {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 6px 12px; border-radius: 13px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04); cursor: pointer; font-family: inherit;
  font-size: 11px; color: var(--text,#f0ece4); transition: all .15s; font-weight: 600;
}
.share-btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.18); }
.share-icon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.share-icon svg { width: 20px; height: 20px; }

/* Platform colours */
.share-fb   .share-icon { background: #1877f2; color: #fff; }
.share-fb:hover          { background: rgba(24,119,242,.12); }
.share-wa   .share-icon  { background: #25d366; color: #fff; }
.share-wa:hover          { background: rgba(37,211,102,.12); }
.share-msng .share-icon  { background: linear-gradient(135deg,#0084ff,#a334fa); color: #fff; }
.share-msng:hover        { background: rgba(0,132,255,.1); }
.share-x    .share-icon  { background: #000; color: #fff; border: 1px solid rgba(255,255,255,.15); }
.share-x:hover           { background: rgba(255,255,255,.06); }
.share-tg   .share-icon  { background: #2aabee; color: #fff; }
.share-tg:hover          { background: rgba(42,171,238,.12); }
.share-email .share-icon { background: rgba(245,200,66,.15); color: #f5c842; }
.share-email:hover       { background: rgba(245,200,66,.1); }
.share-native .share-icon{ background: rgba(99,179,237,.15); color: #63b3ed; }
.share-native:hover      { background: rgba(99,179,237,.1); }
.share-copy  .share-icon { background: rgba(255,255,255,.08); color: var(--text,#f0ece4); }
.share-copy:hover        { background: rgba(255,255,255,.06); }
.share-copy.copied .share-icon { background: rgba(34,197,94,.15); color: #22c55e; }

@media (max-width: 400px) {
  .share-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Správa inzerátů — status badges ────────────────────────── */
.my-listing-status-badge {
  font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 6px; margin-bottom: 6px; white-space: nowrap;
  display: inline-block;
}
.status-active   { background: rgba(34,197,94,0.12);  color: #4ade80; }
.status-reserved { background: rgba(245,200,66,0.12); color: #f5c842; }
.status-sold     { background: rgba(255,255,255,0.06); color: rgba(240,236,228,0.4); }

/* ══════════════════════════════════════════════════════════════
   CARD ZOOM LIGHTBOX WITH LOUPE  (přidáno)
══════════════════════════════════════════════════════════════ */
#cardZoomLightbox {
  position: fixed; inset: 0; z-index: 9850;
  background: rgba(0,0,0,0.97);
  display: none; align-items: center; justify-content: center;
  animation: czlFadeIn .18s ease;
}
#cardZoomLightbox.czl-open { display: flex; }
@keyframes czlFadeIn { from { opacity:0 } to { opacity:1 } }

.czl-wrap {
  display: flex; gap: 24px; align-items: flex-start;
  max-width: 1120px; width: 100%;
  padding: 16px 20px;
  height: calc(100vh - 32px);
  box-sizing: border-box;
}

/* ─── Image area ─────────────────────────────────────── */
.czl-img-area {
  position: relative; flex-shrink: 0;
  width: min(400px, 48vw);
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  cursor: crosshair;
  user-select: none;
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  /* ~1cm přesah – lupa nezmizí hned na okraji fotky */
  padding: 16px;
  margin: -16px;
  box-sizing: content-box;
}
.czl-img-area img {
  max-width: 100%; max-height: 100%;
  border-radius: 14px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transition: opacity .2s;
}

/* ─── Loupe ──────────────────────────────────────────── */
.czl-loupe {
  position: fixed;
  width: 210px; height: 210px;
  border-radius: 50%;
  border: 3px solid rgba(245,200,66,0.85);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    0 12px 40px rgba(0,0,0,0.85),
    inset 0 0 0 1px rgba(245,200,66,0.2);
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 9999;
  display: none;
  overflow: hidden;
  transition: opacity .1s;
}
.czl-loupe-cross {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
}
.czl-loupe-cross::before,
.czl-loupe-cross::after {
  content: ''; position: absolute; background: rgba(245,200,66,0.45);
}
.czl-loupe-cross::before { width: 1px; height: 100%; left: 50%; top: 0; }
.czl-loupe-cross::after  { height: 1px; width: 100%; top: 50%; left: 0; }
.czl-loupe-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none; z-index: 3;
}

/* ─── Side panel ─────────────────────────────────────── */
.czl-side {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 12px;
  height: 100%; overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.czl-card-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 17px; font-weight: 800; color: #fff; line-height: 1.3;
}
.czl-meta-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.czl-zoom-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 8px 12px;
}
.czl-zoom-row label { font-size: 11px; color: rgba(255,255,255,0.4); white-space: nowrap; }
.czl-zoom-slider { flex: 1; accent-color: #f5c842; cursor: pointer; }
.czl-zoom-val {
  font-size: 13px; font-weight: 700; color: #f5c842;
  min-width: 30px; text-align: right;
}

/* ─── AI box ─────────────────────────────────────────── */
.czl-ai-box {
  background: rgba(74,158,255,0.05);
  border: 1px solid rgba(74,158,255,0.18);
  border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.czl-ai-header {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.czl-ai-badge {
  font-size: 9px; font-weight: 800; letter-spacing: .1em; color: #74b4ff;
  background: rgba(74,158,255,0.15); border: 1px solid rgba(74,158,255,0.35);
  border-radius: 20px; padding: 2px 9px;
}
.czl-ai-lbl {
  font-size: 13px; font-weight: 700; color: #fff; flex: 1;
}
.czl-ai-run {
  padding: 5px 13px; border-radius: 8px;
  border: 1px solid rgba(74,158,255,0.35);
  background: rgba(74,158,255,0.12);
  color: #74b4ff; font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all .15s;
  white-space: nowrap;
}
.czl-ai-run:hover:not(:disabled) { background: rgba(74,158,255,0.22); }
.czl-ai-run:disabled { opacity: .4; cursor: default; }

.czl-loading {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #74b4ff;
}
.czl-loading-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(74,158,255,0.2);
  border-top-color: #74b4ff;
  animation: czlSpin .7s linear infinite; flex-shrink: 0;
}
@keyframes czlSpin { to { transform: rotate(360deg); } }

.czl-section-lbl {
  font-size: 10px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: rgba(245,200,66,0.65);
  margin-bottom: 2px;
}
.czl-textarea {
  width: 100%; min-height: 130px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 10px 12px;
  font-size: 13px; color: #f0ece4;
  font-family: inherit; resize: vertical; line-height: 1.65;
  box-sizing: border-box; transition: border-color .15s;
}
.czl-textarea:focus { outline: none; border-color: rgba(74,158,255,0.4); }
.czl-textarea::placeholder { color: rgba(255,255,255,0.2); font-style: italic; }

.czl-save-btn {
  width: 100%; padding: 10px;
  border-radius: 9px; border: 1px solid rgba(74,222,128,0.3);
  background: rgba(74,222,128,0.08);
  color: #4ade80; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.czl-save-btn:hover { background: rgba(74,222,128,0.15); }

/* ─── Close / nav ────────────────────────────────────── */
.czl-close {
  position: fixed; top: 14px; right: 18px; z-index: 9860;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.13); border-radius: 50%;
  width: 36px; height: 36px; color: rgba(255,255,255,0.65);
  font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; font-family: inherit;
}
.czl-close:hover { background: rgba(255,80,80,0.25); color: #fff; }

.czl-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 9860;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 50%;
  width: 42px; height: 42px; color: rgba(255,255,255,0.55);
  font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; font-family: inherit;
}
.czl-nav:hover { background: rgba(255,255,255,0.14); color: #fff; }
.czl-nav-l { left: 10px; }
.czl-nav-r { right: 10px; }

.czl-hint-bar {
  position: fixed; bottom: 10px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: rgba(255,255,255,0.2); pointer-events: none;
  white-space: nowrap;
}

/* ─── Photo count badge ──────────────────────────────── */
.czl-photo-idx {
  position: absolute; top: 10px; left: 12px;
  background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 2px 10px;
  font-size: 11px; color: rgba(255,255,255,0.5);
  pointer-events: none; z-index: 2;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 680px) {
  .czl-wrap { flex-direction: column; height: auto; min-height: 100vh; padding: 8px; gap: 10px; }
  .czl-img-area { width: 100%; height: 50vh; min-height: 260px; }
  .czl-side { height: auto; max-height: none; }
  .czl-nav-r { right: 4px; }
  .czl-nav-l { left: 4px; }
}

/* ─── Gallery main – clickable cursor ────────────────── */
.gallery-main { cursor: zoom-in; }
.gallery-main:hover { border-color: rgba(245,200,66,0.4); }
.gallery-main::after {
  content: '🔍 Klikni pro detail';
  position: absolute; bottom: 8px; right: 8px;
  font-size: 10px; color: rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.5); border-radius: 8px; padding: 2px 8px;
  pointer-events: none; opacity: 0; transition: opacity .2s;
}
.gallery-main { position: relative; }
.gallery-main:hover::after { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   MOBILNÍ PŘIZPŮSOBENÍ — marketplace
   ══════════════════════════════════════════════════════════════ */

/* ── Tlačítko pro otevření filtrů na mobilu ── */
.mob-filter-btn {
  display: none;
  position: fixed; bottom: 20px; right: 20px; z-index: 500;
  background: linear-gradient(135deg, #f5c842, #ff8c00);
  color: #000; font-weight: 800; font-size: 13px;
  border: none; border-radius: 50px;
  padding: 12px 18px;
  box-shadow: 0 4px 20px rgba(245,200,66,0.4);
  cursor: pointer; transition: all .2s;
  align-items: center; gap: 7px;
}
.mob-filter-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,200,66,0.5); }

/* Sidebar jako drawer na mobilu */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.sidebar-overlay.open { display: block; }

@media (max-width: 900px) {
  /* Sidebar se mění na fixed drawer */
  .sidebar {
    position: fixed !important;
    top: 0 !important; left: 0 !important; bottom: 0 !important;
    height: 100vh !important;
    width: min(85vw, 300px) !important;
    z-index: 850;
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(0.4,0,0.2,1);
  }
  .sidebar.mob-open {
    transform: translateX(0);
    display: flex !important;
    flex-direction: column;
  }

  /* Plovoucí tlačítko filtrů */
  .mob-filter-btn { display: flex; }

  /* Hlavní obsah na celou šířku */
  .page-wrap { flex-direction: column; }
  .main { padding: 12px; }

  /* Listing karty na mobilu */
  .listing-row {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 12px;
  }
  .listing-actions {
    flex-direction: column;
    gap: 5px;
    min-width: auto;
  }
  .listing-price-wrap {
    text-align: left;
  }

  /* Vyhledávací řádek */
  .search-row { flex-wrap: wrap; gap: 8px; }
  .search-wrap { min-width: 0; width: 100%; }
  .vt-btns { flex-shrink: 0; }

  /* Card grid na mobilu — 2 sloupce */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Detail modal na celou šířku */
  .detail-panel {
    max-width: 100% !important;
    border-radius: 16px 16px 0 0 !important;
    position: fixed !important;
    bottom: 0 !important; left: 0 !important; right: 0 !important;
    max-height: 90vh !important;
    overflow-y: auto;
  }

  /* Fullscreen overlay formuláře */
  .fs-modal-box {
    max-width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
  }
  .fs-modal-inner { padding: 0 12px 12px !important; }
}

@media (max-width: 480px) {
  /* Listing info — zkrátit */
  .listing-name { font-size: 13px; }
  .listing-set  { font-size: 11px; }
  .listing-tags { display: none; }

  /* Card grid — 1 sloupec na velmi malých telefonech */
  .cards-grid {
    grid-template-columns: 1fr !important;
  }

  /* Demand karty */
  .demand-row { flex-wrap: wrap; gap: 8px; }
}

/* ── Image search button (📷) ── */
.search-img-btn {
  position: absolute; right: 52px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  font-size: 16px; cursor: pointer; line-height: 1;
  padding: 4px 6px; border-radius: 5px;
  transition: all .15s; opacity: 0.65;
}
.search-img-btn:hover { opacity: 1; background: rgba(245,200,66,0.1); }

/* ══════════════════════════════════════════════════════════════
   BULK LISTING STYLES
   ══════════════════════════════════════════════════════════════ */

/* Bulk thumb v listingu */
.bulk-thumb {
  background: rgba(245,200,66,0.06) !important;
  border-color: rgba(245,200,66,0.2) !important;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 2px;
}
.bulk-thumb-inner {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.bulk-thumb-count {
  font-size: 15px; font-weight: 800;
  font-family: 'Unbounded', sans-serif;
  color: #f5c842; line-height: 1;
}
.bulk-thumb-label {
  font-size: 8px; font-weight: 800; letter-spacing: .1em;
  color: rgba(245,200,66,0.5); text-transform: uppercase;
}

/* Bulk listing row — žlutý levý okraj */
.listing-row:has(.bulk-thumb) {
  border-left: 3px solid rgba(245,200,66,0.3);
}

/* dBulkInfo panel v detailu */
#dBulkInfo {
  margin: 10px 0 4px;
  display: flex; flex-direction: column; gap: 6px;
}
