/* TradeCovo brand layer for account, auth, admin and scanner pages (loaded after styles.css + app.css) */
:root {
  --bg: #0a0b12;
  --bg-2: #0f111b;
  --surface: #141724;
  --surface-2: #1b1f30;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f3f8;
  --muted: #959ab4;
  --yellow: #c5f82a;
  --yellow-2: #2ee6c8;
  --red: #ff5c7a;
  --blue: #5b8cff;
  --purple: #8b5cf6;
  --green: #34d399;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}
.logo { font-weight: 700; }
.logo em { color: var(--yellow); }
.btn--primary { background: linear-gradient(135deg, #d4ff3a, #9cf05a); color: #0a0b12; box-shadow: 0 10px 30px -12px rgba(197, 248, 42, .65); }
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(197, 248, 42, .8); }
.gradient-text { background: linear-gradient(100deg, #d4ff3a 0%, #2ee6c8 50%, #8b5cf6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__glow--a { background: rgba(139, 92, 246, .32); }
.hero__glow--b { background: rgba(46, 230, 200, .18); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(197, 248, 42, .14); }

/* Marketplace links on account/auth pages */
.brand-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.brand-nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; }
.brand-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.seller-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: 18px; margin-bottom: 22px;
  background: linear-gradient(120deg, rgba(197, 248, 42, .12), rgba(139, 92, 246, .14)); border: 1px solid rgba(197, 248, 42, .25); }
.seller-cta h2 { font-size: 22px; margin-bottom: 4px; }
.seller-cta p { color: var(--muted); }
.seller-cta .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); margin-right: 6px; }
.seller-cta .dot--off { background: #ff9f43; box-shadow: 0 0 0 4px rgba(255, 159, 67, .2); }

/* Inventory workspace: collections sidebar, slots, storage groups */
.inv-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.inv-sets { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 12px !important; display: grid; gap: 4px; }
.inv-sets__find { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); margin-bottom: 6px; }
.inv-set { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; overflow: hidden; }
.inv-set:hover { background: rgba(255,255,255,.04); }
.inv-set.is-active { background: rgba(197,248,42,.1); box-shadow: inset 3px 0 0 var(--yellow); }
.inv-set b { font-size: 14px; font-weight: 600; }
.inv-set em { font-style: normal; font-weight: 700; color: var(--green); font-size: 13px; }
.inv-set span { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.inv-set i { position: absolute; left: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: rgba(52,211,153,.5); }
.inv-main { min-width: 0; }
.slot-pill { display: inline-block; min-width: 44px; padding: 3px 10px; border-radius: 8px; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.35); color: #7ff0c5; font: 600 12px ui-monospace, monospace; text-align: center; }
.slot-pill--clash { background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.5); color: #fcd34d; }
.slot-cell { white-space: nowrap; }
.slot-more { margin-left: 4px; color: var(--muted, #8b93a7); font: 600 11px ui-monospace, monospace; cursor: help; }
.slot-warn { margin-bottom: 14px; padding: 12px 16px; border-color: rgba(251,191,36,.45); color: #fde68a; line-height: 1.5; }
.slot-warn .link { margin-left: 6px; white-space: nowrap; }
.purge { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-color: rgba(248,113,113,.35); }
.purge h2 { margin: 0 0 4px; }
.purge p { margin: 0; }
tr.clash-start td { border-top: 2px solid rgba(251,191,36,.35); }
code.sku { font-size: 12px; color: var(--muted); }
.inv-table th a { color: inherit; text-decoration: none; }
.inv-table th a:hover { color: var(--yellow); }
.grp { margin-bottom: 14px; }
.grp__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grp__head b { display: block; font-size: 17px; }
.grp__move { margin-left: auto; }
.grp__bar { display: flex; gap: 2px; margin: 14px 0 8px; flex-wrap: wrap; }
.grp__bar i { width: 7px; height: 16px; border-radius: 2px; background: rgba(255,255,255,.08); }
.grp__bar i.is-in { background: #6ee7b7; }
.grp__leave { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.grp__leave b { color: #ffb547; }
.grp-mode { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.grp-mode a { padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; }
.grp-mode a.is-active { background: rgba(255,255,255,.1); color: var(--text); }
.grp-sum { margin: -4px 0 12px; }
.grp details .data td { white-space: nowrap; }
.grp details .data td:nth-child(2) { white-space: normal; }
@media (max-width: 980px) { .inv-layout { grid-template-columns: 1fr; } .inv-sets { position: static; max-height: 260px; } }

/* Scanner: 4 modes + language toggle */
.scn__mode--4 { grid-template-columns: repeat(4, 1fr) !important; }
.scn__mode--4 button span { font-size: 13px; }
.scn__langbar { display: flex; justify-content: center; margin: 2px 0 8px; }
.scn__lang { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font: 600 13px var(--font-body); cursor: pointer; }
.scn__lang.is-intl { border-color: rgba(255,92,122,.5); background: rgba(255,92,122,.12); }
.res__select { width: 100%; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); }
@media (min-width: 981px) { .inv-layout { grid-template-columns: 240px minmax(0, 1fr); } }
.inv-table td.user-cell { min-width: 210px; }
.inv-table td:nth-child(6) { min-width: 120px; }
.inv-table .cond { white-space: nowrap; }

/* Scanner: condition prices on each button, Collection Scanner header, beta language tag */
.seg--conds .seg__btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; min-width: 0; }
.seg--conds .seg__btn small { font-size: 11px; font-weight: 600; opacity: .85; white-space: nowrap; }
.res__meta--est { color: #ffd75e; margin-top: 2px; }
.scn__langbar { gap: 10px; align-items: center; flex-wrap: wrap; }
.scn__back { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font: 600 13px var(--font-body); }
.scn__lang i { font-style: normal; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: #ffd75e; color: #1a1400; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.scn__collnote { margin: 0 0 12px; text-align: center; font-size: 13px; color: var(--muted); }
.scn__colllink { margin-top: 0; text-decoration: none; }
.scn__mode { min-width: 0; }
.scn__mode button { min-width: 0; }
.scn__mode button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
@media (max-width: 420px) { .scn__mode--3 button span { font-size: 13px; } .scn__mode button em { font-size: 11px; padding: 1px 6px; } }

/* In-page dialog (replaces the browser's confirm box) */
.dlg { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.dlg__backdrop { position: absolute; inset: 0; background: rgba(4,5,10,.7); backdrop-filter: blur(4px); opacity: 0; transition: opacity .18s; }
.dlg__panel { position: relative; width: min(420px, 100%); padding: 26px 24px 20px; border-radius: 20px; background: linear-gradient(180deg, #1b1f30, #141724); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); text-align: center; transform: translateY(12px) scale(.97); opacity: 0; transition: transform .2s, opacity .18s; }
.dlg.is-open .dlg__backdrop { opacity: 1; }
.dlg.is-open .dlg__panel { transform: none; opacity: 1; }
.dlg__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: rgba(255,255,255,.06); font-size: 28px; }
.dlg--danger .dlg__icon { background: rgba(255,77,94,.14); }
.dlg__panel h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; color: var(--text); }
.dlg__body { color: var(--muted); font-size: 14px; line-height: 1.55; text-align: left; }
.dlg__body p { margin: 0 0 10px; }
.dlg__body b { color: var(--text); }
.dlg__body ul { margin: 0 0 6px; padding-left: 18px; }
.dlg__body li { margin: 4px 0; }
.dlg__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.dlg__actions .btn:only-child { grid-column: 1 / -1; }

/* Dialog extras for the inventory workspace (List a card / delete) */
.dlg__item { display: flex; gap: 12px; align-items: center; margin: 4px 0 14px; padding: 10px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--line); text-align: left; }
.dlg__item img { width: 46px; height: 64px; object-fit: contain; border-radius: 6px; flex: none; }
.dlg__item b { display: block; color: var(--text); font-size: 15px; }
.dlg__item span { font-size: 13px; color: var(--muted); }
.dlg__field { display: grid; gap: 6px; font-weight: 700; font-size: 13px; color: var(--text); text-align: left; }
.dlg__field input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--text); font-size: 17px; font-weight: 700; }
.dlg__field input:focus { outline: none; border-color: #c5f82a; }
.dlg__hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); text-align: left; }
.dlg__hint b { color: var(--text); }
.dlg__hint .linkbtn { margin-left: 6px; }
.dlg__body .hint { color: var(--muted); }
.inv-table .actions { flex-wrap: nowrap; }
