/* ═══════════════════════════════════════════════════
   RBXTRADE — Vender + Chat (mockup exacto)
   Desktop 3 cols · Mobile wizard + bottom nav
   ═══════════════════════════════════════════════════ */

:root {
  --sc-bg: #07080c;
  --sc-panel: #0d1118;
  --sc-panel-2: #10151e;
  --sc-border: #1a2230;
  --sc-border-soft: #243044;
  --sc-green: #00ff87;
  --sc-green-dim: #00c96a;
  --sc-text: #f3f4f6;
  --sc-muted: #8b95a8;
  --sc-dim: #5c6578;
  --sc-radius: 16px;
  --sc-radius-sm: 12px;
  --sc-radius-xs: 10px;
}

/* ── Page shell ── */
body.page-sell,
body.page-chat {
  background: var(--sc-bg);
}

/* Chat: viewport fijo para que el input no se salga al crecer los mensajes */
body.page-chat {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

body.page-chat .app-shell {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.page-sell::before,
body.page-chat::before {
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgba(0, 255, 135, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 10%, rgba(120, 80, 255, 0.06), transparent 50%);
}

/* ── Navbar mockup ── */
body.page-sell .navbar,
body.page-chat .navbar {
  background: rgba(7, 8, 12, 0.92);
  border-bottom: 1px solid var(--sc-border);
  height: 60px;
}

body.page-sell .navbar-inner,
body.page-chat .navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 60px;
}

body.page-sell .logo,
body.page-chat .logo {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

body.page-sell .nav-links-center,
body.page-chat .nav-links-center {
  gap: 0.15rem;
}

body.page-sell .nav-link,
body.page-chat .nav-link {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--sc-muted);
  background: transparent;
}

body.page-sell .nav-link:hover,
body.page-chat .nav-link:hover {
  color: var(--sc-text);
  background: rgba(255, 255, 255, 0.04);
}

body.page-sell .nav-link.nav-pill.active,
body.page-chat .nav-link.nav-pill.active {
  background: var(--sc-green) !important;
  color: #04140c !important;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 255, 135, 0.35);
}

body.page-sell .robux-badge,
body.page-chat .robux-badge {
  background: rgba(0, 255, 135, 0.1);
  border-color: rgba(0, 255, 135, 0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
}

/* ════════════════════════════════════
   SELL — Desktop 3 columns
   ════════════════════════════════════ */
.sell-page-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.5rem;
  width: 100%;
}

.sell-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 300px;
  gap: 0.85rem;
  min-height: calc(100vh - 60px - 2rem);
  align-items: stretch;
}

.sell-panel {
  background: var(--sc-panel);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.sell-panel-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.05rem;
  border-bottom: 1px solid var(--sc-border);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sc-muted);
  flex-shrink: 0;
}

.sell-panel-header .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 255, 135, 0.12);
  border: 1.5px solid rgba(0, 255, 135, 0.45);
  color: var(--sc-green);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sell-panel-header .title-text {
  color: var(--sc-text);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* Search fields */
.sell-search {
  padding: 0.75rem 0.85rem 0.35rem;
  flex-shrink: 0;
}

.sell-search .input,
.items-toolbar .input {
  background: #080b11;
  border: 1px solid var(--sc-border);
  border-radius: 10px;
  padding: 0.6rem 0.85rem 0.6rem 2.35rem;
  font-size: 0.82rem;
  color: var(--sc-text);
}

.sell-search .search-wrap,
.items-toolbar .search-wrap {
  position: relative;
}

.sell-search .search-icon,
.items-toolbar .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sc-dim);
  pointer-events: none;
  display: flex;
}

/* Game list */
.games-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.4rem 0.65rem 0.85rem;
}

.game-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  margin-bottom: 0.2rem;
  transition: all 0.15s ease;
  user-select: none;
}

.game-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.game-row.active {
  background: rgba(0, 255, 135, 0.08);
  border-color: rgba(0, 255, 135, 0.4);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 135, 0.08);
}

.game-row-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.game-row-meta {
  min-width: 0;
  flex: 1;
}

.game-row-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-row-count {
  font-size: 0.72rem;
  color: var(--sc-dim);
  margin-top: 0.1rem;
}

/* Items center panel */
.items-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--sc-border);
  align-items: center;
  flex-shrink: 0;
}

.items-toolbar .search-wrap {
  flex: 1;
  min-width: 140px;
}

.filter-chip {
  padding: 0.55rem 0.8rem;
  background: #080b11;
  border: 1px solid var(--sc-border);
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--sc-muted);
  min-width: 88px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%238b95a8' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  padding-right: 1.6rem;
}

.items-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  min-height: 0;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (min-width: 1280px) {
  .items-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.item-tile {
  background: #0a0e15;
  border: 1px solid var(--sc-border);
  border-radius: 14px;
  padding: 0.85rem 0.7rem 0.7rem;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item-tile:hover {
  border-color: rgba(0, 255, 135, 0.3);
  box-shadow: 0 0 18px rgba(0, 255, 135, 0.06);
}

.item-tile.selected {
  border-color: rgba(0, 255, 135, 0.55);
  box-shadow: 0 0 22px rgba(0, 255, 135, 0.14);
  background: rgba(0, 255, 135, 0.04);
}

.item-tile-art {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 0.55rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.item-tile-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sc-text);
  line-height: 1.25;
  margin-bottom: 0.15rem;
}

.item-tile-rarity {
  font-size: 0.68rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.item-tile-rarity.mythical { color: #ef4444; }
.item-tile-rarity.legendary { color: #f59e0b; }
.item-tile-rarity.epic { color: #a855f7; }
.item-tile-rarity.rare { color: #3b82f6; }
.item-tile-rarity.common { color: #9ca3af; }

.item-tile-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--sc-green);
  margin: 0.15rem 0 0.45rem;
}

.qty-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.qty-bar .qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--sc-border);
  background: #121820;
  color: var(--sc-muted);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s;
}

.qty-bar .qty-btn:hover {
  border-color: var(--sc-green);
  color: var(--sc-green);
}

.qty-bar .qty-btn.plus {
  background: rgba(0, 255, 135, 0.14);
  border-color: rgba(0, 255, 135, 0.4);
  color: var(--sc-green);
}

.qty-bar .qty-btn.plus:hover {
  background: rgba(0, 255, 135, 0.28);
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.25);
}

.qty-bar .qty-val {
  min-width: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--sc-text);
}

.sell-foot-note {
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--sc-border);
  font-size: 0.68rem;
  color: var(--sc-dim);
  text-align: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.sell-foot-note .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  flex-shrink: 0;
}

/* Summary panel */
.summary-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem;
  min-height: 0;
}

.summary-empty {
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--sc-dim);
  gap: 0.4rem;
}

.summary-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #121820;
  border: 1px solid var(--sc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.summary-empty-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--sc-dim);
}

.summary-empty p {
  font-size: 0.82rem;
  color: var(--sc-muted);
  font-weight: 600;
}

.summary-empty span {
  font-size: 0.75rem;
  color: var(--sc-dim);
  max-width: 170px;
  line-height: 1.4;
}

.cart-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem;
  border-radius: 10px;
  background: #0a0e15;
  border: 1px solid var(--sc-border);
  margin-bottom: 0.4rem;
}

.cart-line img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-line-info {
  flex: 1;
  min-width: 0;
}

.cart-line-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-line-qty {
  font-size: 0.7rem;
  color: var(--sc-dim);
}

.cart-line-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sc-green);
  white-space: nowrap;
}

.cart-line-x {
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: var(--sc-dim);
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-line-x:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
}

.summary-footer {
  padding: 0.9rem 1rem 1.05rem;
  border-top: 1px solid var(--sc-border);
  flex-shrink: 0;
}

.summary-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
}

.summary-stat .lbl {
  color: var(--sc-muted);
}

.summary-stat .val {
  color: var(--sc-text);
  font-weight: 600;
}

.summary-stat.total .lbl {
  font-weight: 600;
}

.summary-stat.total .val {
  color: var(--sc-green);
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-display), Inter, sans-serif;
}

.btn-continuar {
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #00ff87, #00d96e);
  color: #04140c;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(0, 255, 135, 0.3);
  transition: filter 0.15s, transform 0.1s;
}

.btn-continuar:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-continuar:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.summary-hint {
  font-size: 0.68rem;
  color: var(--sc-dim);
  text-align: center;
  margin-top: 0.55rem;
  line-height: 1.4;
}

.trust-box {
  margin-top: 0.85rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.22);
}

.trust-box .trust-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #c4b5fd;
  margin-bottom: 0.2rem;
}

.trust-box .trust-sub {
  font-size: 0.7rem;
  color: var(--sc-dim);
  margin-bottom: 0.5rem;
}

.trust-avatars {
  display: flex;
  align-items: center;
  gap: 0;
}

.trust-avatars span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--sc-panel);
  margin-left: -6px;
  background: #1f2937;
  display: block;
}

.trust-avatars span:first-child {
  margin-left: 0;
}

.trust-avatars .more {
  margin-left: 0.4rem;
  font-size: 0.7rem;
  color: var(--sc-muted);
  border: none;
  width: auto;
  height: auto;
  background: none;
}

/* ════════════════════════════════════
   CHAT
   ════════════════════════════════════ */
.chat-page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.25rem;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  flex: 1 1 auto;
  width: 100%;
  height: calc(100vh - 60px - 2rem);
  min-height: 0;
  max-height: calc(100vh - 60px - 2rem);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  overflow: hidden;
  background: var(--sc-panel);
}

.chat-sidebar {
  border-right: 1px solid var(--sc-border);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--sc-panel);
}

.chat-sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid var(--sc-border);
  flex-shrink: 0;
}

.chat-sidebar-header h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sc-text);
}

.chat-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.chat-list-item {
  display: flex;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(26, 34, 48, 0.8);
  border-left: 3px solid transparent;
  transition: background 0.12s;
}

.chat-list-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.chat-list-item.active {
  background: rgba(0, 255, 135, 0.07);
  border-left-color: var(--sc-green);
}

.chat-list-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--sc-border);
}

.chat-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-list-info {
  flex: 1;
  min-width: 0;
}

.chat-list-top {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
}

.chat-list-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--sc-text);
}

.chat-list-time {
  font-size: 0.68rem;
  color: var(--sc-dim);
}

.chat-list-preview {
  font-size: 0.75rem;
  color: var(--sc-dim);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-list-badges {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.3rem;
  align-items: center;
}

.chat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #080a0f;
}

/* Header + mensajes con scroll + input fijo (no se empuja al enviar muchos msgs) */
.chat-active {
  display: none;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--sc-border);
  background: var(--sc-panel);
  gap: 0.75rem;
  flex-shrink: 0;
}

.chat-header-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sc-text);
}

.chat-header-info p {
  font-size: 0.72rem;
  color: var(--sc-dim);
  margin-top: 0.1rem;
}

.chat-header-info .online {
  color: var(--sc-green);
  font-size: 0.72rem;
}

.chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.msg {
  display: flex;
  gap: 0.55rem;
  max-width: 75%;
}

.msg.own {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg.system {
  align-self: center;
  max-width: 90%;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--sc-border);
}

.msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg-bubble {
  background: var(--sc-panel);
  border: 1px solid var(--sc-border);
  border-radius: 14px 14px 14px 4px;
  padding: 0.7rem 0.9rem;
}

.msg.own .msg-bubble {
  background: rgba(0, 255, 135, 0.1);
  border-color: rgba(0, 255, 135, 0.28);
  border-radius: 14px 14px 4px 14px;
}

.msg.system .msg-bubble {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.3);
  border-radius: 14px;
}

.msg-sender {
  font-size: 0.68rem;
  font-weight: 700;
  color: #a78bfa;
  margin-bottom: 0.25rem;
}

.msg.own .msg-sender {
  color: var(--sc-green);
}

.msg-content {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--sc-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-meta {
  font-size: 0.65rem;
  color: var(--sc-dim);
  margin-top: 0.35rem;
  text-align: right;
}

/* Item list bubble (like mockup chat) */
.msg-items-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.msg-item-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}

.msg-item-row img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.msg-item-row .n {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 600;
}

.msg-item-row .q {
  font-size: 0.72rem;
  color: var(--sc-dim);
}

.msg-item-row .p {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sc-green);
}

.chat-input-area {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--sc-border);
  background: var(--sc-panel);
  flex-shrink: 0;
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.chat-textarea {
  flex: 1;
  background: #080b11;
  border: 1px solid var(--sc-border);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-size: 0.88rem;
  color: var(--sc-text);
  resize: none;
  min-height: 44px;
  max-height: 100px;
  outline: none;
}

.chat-textarea:focus {
  border-color: rgba(0, 255, 135, 0.4);
}

.chat-tools {
  display: flex;
  gap: 0.25rem;
}

.chat-tools .btn-icon,
.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--sc-border);
  background: #121820;
  color: var(--sc-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-send-btn {
  background: var(--sc-green);
  border-color: var(--sc-green);
  color: #04140c;
  box-shadow: 0 0 14px rgba(0, 255, 135, 0.3);
}

.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--sc-dim);
  text-align: center;
  padding: 2rem;
}

.chat-empty .font-medium {
  color: var(--sc-muted);
  font-size: 1rem;
  font-weight: 600;
}

/* Mobile step indicator (hidden on desktop) */
.sell-mobile-bar {
  display: none;
}

.sell-mobile-steps {
  display: none;
}

/* ════════════════════════════════════
   MOBILE
   ════════════════════════════════════ */
@media (max-width: 900px) {
  body.page-sell {
    padding-bottom: 72px;
  }

  body.page-sell .navbar .nav-links-center,
  body.page-chat .navbar .nav-links-center {
    display: none !important;
  }

  body.page-sell .menu-toggle {
    display: none;
  }

  .sell-page-wrap {
    padding: 0;
    max-width: 100%;
  }

  .sell-layout {
    display: block;
    min-height: calc(100vh - 60px - 72px);
    gap: 0;
  }

  .sell-panel {
    border: none;
    border-radius: 0;
    min-height: calc(100vh - 60px - 72px);
    background: var(--sc-bg);
  }

  /* Mobile: show only active step panel */
  .sell-panel[data-step] {
    display: none;
  }

  .sell-panel[data-step].step-active {
    display: flex;
  }

  .sell-mobile-steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sc-muted);
  }

  .sell-mobile-steps .num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 255, 135, 0.12);
    border: 1.5px solid rgba(0, 255, 135, 0.45);
    color: var(--sc-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
  }

  /* Mobile items = list rows (not grid) */
  .items-grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .item-tile {
    flex-direction: row;
    text-align: left;
    padding: 0.65rem 0.75rem;
    gap: 0.7rem;
    align-items: center;
  }

  .item-tile-art {
    width: 52px;
    height: 52px;
    margin-bottom: 0;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .item-tile-body {
    flex: 1;
    min-width: 0;
  }

  .item-tile-name {
    font-size: 0.88rem;
    margin-bottom: 0.1rem;
  }

  .item-tile-rarity {
    display: none;
  }

  .item-tile-price {
    margin: 0;
    font-size: 0.88rem;
  }

  .qty-bar {
    margin-left: auto;
    flex-shrink: 0;
  }

  .items-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.4rem;
  }

  .items-toolbar .search-wrap {
    min-width: 120px;
    flex: 1;
  }

  .filter-chip {
    min-width: 72px;
    flex-shrink: 0;
  }

  .sell-foot-note {
    display: none;
  }

  /* Sticky continue on mobile items/summary */
  .sell-mobile-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 64px;
    z-index: 90;
    padding: 0.65rem 1rem;
    background: linear-gradient(180deg, transparent, rgba(7, 8, 12, 0.95) 30%);
  }

  .sell-mobile-bar.show {
    display: block;
  }

  .sell-mobile-bar .btn-continuar {
    margin: 0;
  }

  .summary-footer {
    padding-bottom: 1.25rem;
  }

  .trust-box {
    display: none;
  }

  /* Chat mobile full screen */
  .chat-page-shell {
    padding: 0;
  }

  .chat-layout {
    grid-template-columns: 1fr;
    height: calc(100dvh - 60px - 64px);
    max-height: calc(100dvh - 60px - 64px);
    min-height: 0;
    border: none;
    border-radius: 0;
  }

  .chat-sidebar {
    display: none;
    border-right: none;
  }

  .chat-sidebar.mobile-open {
    display: flex !important;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: var(--sc-panel);
  }

  .chat-layout:has(.chat-sidebar.mobile-open) .chat-main {
    display: none;
  }

  .chat-main {
    height: 100%;
  }

  .chat-main:has(#chat-active[style*="flex"]) {
    display: flex;
  }

  .msg {
    max-width: 88%;
  }

  body.page-chat {
    padding-bottom: 0;
  }

  body.page-chat .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body.page-sell .mobile-nav {
    display: block !important;
  }
}

/* Desktop: hide mobile-only */
@media (min-width: 901px) {
  .sell-panel[data-step] {
    display: flex !important;
  }

  .sell-mobile-steps {
    display: none !important;
  }

  .item-tile-body {
    display: contents;
  }
}

/* Bottom nav green active */
.mobile-nav-item.active {
  color: var(--sc-green) !important;
}

.mobile-nav-item.active .ico {
  filter: drop-shadow(0 0 6px rgba(0, 255, 135, 0.5));
}
