?@font-face {
  font-family: 'Autaut Grotesk';
  font-weight: 400;
  font-display: swap;
  src: local('AutautGrotesk-Regular'),
       url('fonts/AutautGrotesk-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Autaut Grotesk';
  font-weight: 500;
  font-display: swap;
  src: local('AutautGrotesk-Medium'),
       url('fonts/AutautGrotesk-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Autaut Grotesk';
  font-weight: 700;
  font-display: swap;
  src: local('AutautGrotesk-Medium'),
       url('fonts/AutautGrotesk-Medium.ttf') format('truetype');
}

:root {
  /* bloxmarket.io dark palette (default) */
  --bg: #131516;
  --bg-soft: #181a1b;
  --bg-card: #1b1d1e;
  --bg-elev: #1f2224;
  --border: #2a2e31;
  --border-soft: #282a2c;
  --text: #ffffff;
  --text-dim: #c4c4c4;
  --text-mute: #888888;
  --text-faint: rgba(160, 160, 160, 0.36);
  /* bloxmarket.io signature blue */
  --accent: #0077ff;
  --accent-hover: #2e8fff;
  --accent-tint: rgba(0, 119, 255, 0.12);
  --accent-tint-strong: rgba(0, 119, 255, 0.24);
  --accent-2: #03a9f4;
  --accent-grad: linear-gradient(135deg, #0077ff 0%, #2e8fff 100%);
  --success: #00b67a;
  --success-bright: #66bb6a;
  --success-tint: rgba(0, 182, 122, 0.12);
  --warn: #ffb547;
  --danger: #ff416c;
  --danger-tint: rgba(255, 65, 108, 0.12);
  /* Glass surface */
  --glass: rgba(255, 255, 255, 0.03);
  --glass-strong: rgba(255, 255, 255, 0.05);
  /* Rarity (keep our existing) */
  --rarity-common: #6fa3ff;
  --rarity-rare: #b072ff;
  --rarity-legend: #ffa845;
  --rarity-mythic: #ff5b9c;
  --shadow-card: 0 8px 24px rgba(0,0,0,.4);
  --shadow-glow: 0 0 0 1px rgba(255,255,255,.04), 0 12px 32px rgba(0,0,0,.4);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Stop stray full-width elements (negative-margin topbars, wide tables) from
   triggering horizontal scroll on phones. Vertical scroll is unaffected. */
html { overflow-x: hidden; }
body {
  font-family: 'Autaut Grotesk', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-mute);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
}
h1, h2, h3, h4, h5, h6, strong { color: var(--text); }

/* ===================================================================
   LANDING page — scoped overrides that map exactly to bloxmarket.io's spec.
   Anything inside `body.landing` should look identical to bloxmarket.io.
   =================================================================== */
body.landing { overflow-x: hidden; }
body.landing > * { position: relative; z-index: 1; }
@media (min-width: 1400px) {
  body.landing .hero,
  body.landing .showcase,
  body.landing .advantages,
  body.landing .feedback,
  body.landing .faq-section { padding-left: 64px; padding-right: 64px; }
}

/* Topbar on landing: matches bloxmarket.io `.header` — bigger top margin,
   transparent bg, no border. */
body.landing .topbar {
  background: transparent;
  border-bottom: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.landing .topbar-inner {
  max-width: 1276px;
  padding: 40px 24px 0;
}

/* Footer on landing: bloxmarket.io spec — single hairline border, 8px padding,
   faded logo on the left, tiny sign-off on the right. */
body.landing .footer {
  border-top: 1px solid var(--border-soft);
  padding: 16px 0;
  margin-top: 40px;
}
body.landing .footer .footer_wrapper {
  max-width: 1276px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body.landing .footer .footer_wrapper .logo {
  cursor: pointer;
  opacity: .12;
  transition: opacity .2s ease;
  text-decoration: none;
}
body.landing .footer .footer_wrapper .logo:hover { opacity: .5; }
body.landing .footer .footer_wrapper .sign {
  color: rgba(128, 144, 153, 0.36);
  font-size: 14px;
  font-weight: 400;
  text-align: right;
  transition: color .2s ease;
}
body.landing .footer .footer_wrapper .sign:hover { color: rgba(128, 144, 153, 0.5); }

/* ----- Landing nav: plain text (no padding/border-radius), bloxmarket.io spec ----- */
body.landing .primary-nav { gap: 24px; }
body.landing .nav-link {
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: var(--text-mute);
}
body.landing .nav-link:hover { background: transparent; color: var(--text-dim); transform: translateY(-2px); }
body.landing .nav-link.active { background: transparent; color: var(--text); }
body.landing .topbar .logo { width: 160px; }

/* ----- Hero: tighter, matches their numeric spec ----- */
body.landing .hero { padding: 40px 24px 60px; }
body.landing .hero-inner { gap: 40px; }
body.landing .hero-text h1 { font-size: 50px; line-height: 64px; font-weight: 500; margin-bottom: 8px; }
body.landing .hero-text p {
  font-size: 16px;
  line-height: 26px;
  color: var(--text-mute);
  margin-bottom: 24px;
  font-weight: 400;
}
body.landing .hero-text .hero-actions { gap: 8px; }

/* ----- Showcase: bloxmarket.io exact title size, smaller gap ----- */
body.landing .showcase { margin-bottom: 40px; }
body.landing .showcase-head { margin-bottom: 12px; }
body.landing .showcase-head h2 { font-size: 20px; line-height: 28px; font-weight: 500; }
body.landing .showcase-head h2::before { display: none; }

/* ----- Advantages: their exact title size ----- */
body.landing .advantages-title { font-size: 20px; line-height: 28px; text-align: left; }
body.landing .advantages { margin-bottom: 88px; }

/* ----- FAQ: their exact accordion spec ----- */
body.landing .faq-section { max-width: 744px; margin: 0 auto 88px; }
body.landing .faq-section h2 { font-size: 20px; line-height: 28px; font-weight: 500; margin-bottom: 16px; }
body.landing .faq-acc { gap: 8px; }
body.landing .faq-acc-item {
  background: var(--glass-strong);
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}
body.landing .faq-acc-item:hover { background: var(--glass-strong); }
body.landing .faq-acc-q {
  height: 40px;
  padding: 7px 16px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-mute);
}
body.landing .faq-acc-item:hover .faq-acc-q { color: var(--text); }
body.landing .faq-acc-item.open .faq-acc-q { color: var(--text); border-radius: 8px 8px 0 0; }
body.landing .faq-acc-a {
  padding: 0 16px;
  background: transparent;
  border-radius: 0 0 8px 8px;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
}
body.landing .faq-acc-item.open .faq-acc-a { padding: 8px 16px; }

/* ----- Feedback (Trustpilot): bloxmarket.io pads less + smaller copy ----- */
body.landing .feedback { margin-bottom: 88px; }
body.landing .feedback-inner { padding: 32px; }
body.landing .feedback-quote { font-size: 16px; line-height: 26px; font-weight: 400; }

/* ===================================================================
   APP SHELL — sidebar + main content (bloxmarket.io homepage layout)
   =================================================================== */
body.app { background: var(--bg); font-family: 'Autaut Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif; }

/* Hint native form controls (select dropdown menus, scrollbars, etc.) to
   match the user's theme. Without this, the OS draws the <select> options
   menu in light mode even on the dark page. */
:root { color-scheme: dark light; }
body { color-scheme: dark; }
body.theme-light { color-scheme: light; }
.app-shell {
  display: block;
  min-height: 100vh;
}
body.app .side-nav { display: none; }

/* ----- Sidebar ----- */
.side-nav {
  background: #0f1011;
  border-right: 1px solid var(--border-soft);
  padding: 16px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: padding .22s ease;
}
.app-shell.collapsed .side-nav { padding: 16px 6px; }
.app-shell.collapsed .side-label,
.app-shell.collapsed .side-logo-word,
.app-shell.collapsed .side-ext { display: none; }
.app-shell.collapsed .side-link { justify-content: center; padding: 12px; }
.app-shell.collapsed .side-collapse svg { transform: rotate(180deg); }
.app-shell.collapsed .side-brand {
  padding: 8px 4px 16px;
  gap: 4px;
}
.app-shell.collapsed .side-sep { margin: 12px 6px; }

.side-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 16px;
  margin-bottom: 8px;
}
.side-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
}
.side-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: 8px;
}
.side-logo-word { color: var(--text); }
.side-collapse {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  color: var(--text-mute);
  cursor: pointer;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s, border-color .15s, transform .2s;
}
.side-collapse:hover { color: var(--text); background: var(--border-soft); border-color: var(--border); }
body.theme-light .side-collapse { background: #f3f4f6; border-color: #e5e7eb; color: #6b7280; }
body.theme-light .side-collapse:hover { background: #e5e7eb; color: #0a0a0a; }

.side-menu { display: flex; flex-direction: column; gap: 2px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--text-mute);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
  position: relative;
}
.side-link:hover { color: var(--text); background: var(--bg-elev); }
.side-link.active {
  color: var(--accent);
  background: var(--accent-tint);
}
.side-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px; bottom: 8px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.side-ico {
  flex-shrink: 0;
  opacity: .9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  line-height: 0;
}
.side-ico svg { display: block; }
.side-link.active .side-ico { opacity: 1; }
.side-label { flex: 1; line-height: 1.2; }
.side-ext { opacity: .5; }

/* ----- Main column ----- */
.app-main {
  padding: 16px 32px 60px;
  min-width: 0;
}

/* ----- Top action bar ----- */
.app-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -16px -32px 24px;
  padding: 14px 32px;
  background: transparent;
  border-bottom: 1px solid var(--border-soft);
  min-height: 64px;
  box-sizing: border-box;
  position: relative;
}
/* Mobile hamburger — hidden on desktop, shown under 600px. */
.top-burger {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  margin-left: -6px;
  border-radius: 8px;
  flex-shrink: 0;
}
.top-burger:hover { background: var(--bg-elev); }
.app-top-spacer { flex: 1; }
body.theme-light .app-top {
  background: #ffffff;
  border-bottom-color: #e5e7eb;
}

/* ----- Top nav (logo + horizontal menu + right-side actions) ----- */
.top-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  flex-shrink: 0;
  white-space: nowrap;
}
.top-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* BloxMarket "BM" lettermark used in the topbar + sidebar logo. */
.top-logo-img,
.side-logo-img { height: 26px; width: auto; display: block; flex-shrink: 0; }
.top-logo-word { color: var(--text); }
.top-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  margin-left: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.top-menu::-webkit-scrollbar { display: none; }
.top-menu-link {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-mute);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.top-menu-link:hover { color: var(--text); background: var(--bg-elev); }
.top-menu-link.active { color: var(--accent); background: var(--accent-tint); }
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
body.theme-light .top-menu-link:hover { color: #0a0a0a; background: #f3f4f6; }
body.theme-light .top-menu-link.active { background: rgba(0,119,255,.08); }

@media (max-width: 900px) {
  .top-menu-link { padding: 6px 10px; font-size: 13px; }
}
@media (max-width: 600px) {
  .top-burger { display: inline-flex; align-items: center; justify-content: center; }
  /* App-top spans full width: match the reduced 16px page padding so the
     negative margin doesn't push past the viewport and cause h-scroll. */
  .app-top { margin: -16px -16px 20px; padding: 12px 16px; gap: 8px; }
  /* Nav collapses into a drawer that drops down from the topbar. */
  .top-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 8px;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 12px 24px rgba(0,0,0,.3);
    display: none;
    z-index: 150;
    max-height: 70vh;
    overflow-y: auto;
  }
  body.theme-light .top-menu { background: #ffffff; }
  .app-top.nav-open .top-menu { display: flex; }
  .top-menu-link { padding: 12px 14px; font-size: 15px; border-radius: 10px; }
  /* Keep the right-side actions compact so they never overflow — critically,
     the account button must stay visible (it's the only way to reach logout /
     admin / settings). Logo word + account username collapse to make room. */
  .top-actions { gap: 6px; }
  .top-logo-word { display: none; }
  .account-btn { padding: 6px; }
  .account-btn span { display: none; }
  .account-btn > svg:last-of-type { display: none; }  /* hide the dropdown chevron */
}
@media (max-width: 480px) {
  /* Free up more room — the + add-balance is redundant with the wallet page. */
  .add-balance-btn { display: none; }
  .currency-btn { padding: 6px 8px; font-size: 12px; }
  .balance-pill { font-size: 12px; padding: 6px 10px; }
}
.currency-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
}
.currency-btn:hover { background: var(--accent-tint); }
.theme-toggle {
  background: var(--accent-tint);
  border: 0;
  color: var(--accent);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.theme-toggle .t-sun { position: absolute; right: 8px; top: 8px; opacity: .6; }
body.theme-light .theme-toggle .t-moon { display: none; }
body.theme-light .theme-toggle .t-sun  { position: static; opacity: 1; }
.btn-login {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-login:hover { background: var(--accent-tint); }

/* ----- Raffle banner ----- */
.raffle {
  display: none;
  align-items: center;
  gap: 16px;
  background: #0f1011;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
/* Hidden by default to prevent the placeholder block flashing on refresh.
   layout.js's renderRaffleBanners() flips display + visibility after it
   fetches /raffle, and only if the admin has the banner enabled. */
.raffle.is-visible {
  display: flex;
}
.raffle-thumb {
  width: 60px;
  height: 60px;
  background: var(--bg-elev);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}
.raffle-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.raffle-info { flex: 1; min-width: 0; }
.raffle-title { color: var(--accent); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.raffle-meta {
  color: var(--text-mute);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.raffle-meta-warn { color: var(--danger); }
.btn-raffle {
  background: var(--bg-elev);
  border: 0;
  color: var(--text-mute);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: not-allowed;
  font-family: inherit;
  opacity: .6;
}

/* ----- Big blue "Buy cheap Limiteds" banner ----- */
.buy-banner {
  background: linear-gradient(90deg, #07f 0%, #2e8fff 50%, #07f 100%);
  border-radius: 14px;
  padding: 36px 44px;
  margin-bottom: 32px;
  color: white;
}
.buy-banner h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px;
  color: white;
  letter-spacing: -.5px;
}
.buy-banner p {
  font-size: 15px;
  margin: 0 0 18px;
  max-width: 640px;
  line-height: 1.55;
  color: rgba(255,255,255,.95);
}
.banner-link {
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
}
.banner-link:hover { opacity: .85; }

/* ----- Recently sold strip ----- */
.recent { margin-bottom: 16px; }
.recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.recent-head h2 {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.recent-arrows { display: flex; gap: 4px; }
.recent-arrow,
.recent-next {
  background: transparent;
  border: 0;
  color: var(--text-mute);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s, opacity .15s, visibility 0s linear .15s;
  font-family: inherit;
}
.recent-arrow:hover,
.recent-next:hover { color: var(--text); background: var(--bg-elev); }
.recent-arrow[hidden] {
  display: none;
}
body.theme-light .recent-arrow { color: #9ca3af; }
body.theme-light .recent-arrow:hover { color: #0a0a0a; background: #f3f4f6; }
.recent-track {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: none;
}
.recent-track::-webkit-scrollbar { display: none; }
.recent-track.dragging { cursor: grabbing; }
.recent-track.dragging * { pointer-events: none; }
.recent-row {
  display: flex;
  gap: 12px;
  width: max-content;
}
.recent-card {
  flex-shrink: 0;
  width: 220px;
  height: 80px;
  background: #0f1011;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.recent-card:hover { background: var(--bg-card); border-color: var(--border); }
.rc-thumb {
  width: 56px;
  height: 56px;
  background: var(--bg-elev);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  overflow: hidden;
}
.rc-thumb img { width: 100%; height: 100%; object-fit: contain; }
.rc-info { flex: 1; min-width: 0; }
.rc-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.rc-price { color: var(--text-mute); font-size: 12px; }
.rc-price strong { color: var(--accent); font-weight: 600; }

/* ----- Trustpilot rating strip ----- */
.rating-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.rating-strip .tp-star { color: var(--success-bright); font-size: 18px; }
.rating-strip .rating-text { margin-left: 8px; font-weight: 600; }

/* ----- Filter bar ----- */
.filter-bar-mk {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-bar-mk .search-input {
  flex: 1;
  min-width: 240px;
  position: relative;
  display: flex;
  align-items: center;
}
.filter-bar-mk .search-input svg {
  position: absolute;
  left: 14px;
  color: var(--text-mute);
}
.filter-bar-mk .search-input input {
  width: 100%;
  background: #0f1011;
  border: 1px solid var(--border-soft);
  color: var(--text);
  padding: 12px 14px 12px 40px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.filter-bar-mk .search-input input:focus { border-color: var(--accent); }
.mk-dropdown {
  background: #0f1011;
  border: 1px solid var(--border-soft);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-width: 150px;
  justify-content: space-between;
}
.mk-dropdown:hover { border-color: var(--accent); }
.mk-dropdown svg { color: var(--text-mute); }
.mk-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f1011;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s;
}
.mk-toggle:hover { border-color: var(--accent); }
body.theme-light .mk-toggle {
  background: #ffffff;
  border-color: var(--border-soft);
  color: #0a0a0a;
}
.mk-toggle input { display: none; }
.mk-switch {
  position: relative;
  width: 32px; height: 18px;
  background: var(--bg-elev);
  border-radius: 999px;
  transition: background .15s;
}
.mk-switch::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: var(--text-mute);
  border-radius: 50%;
  transition: transform .15s, background .15s;
}
.mk-toggle input:checked + .mk-switch { background: var(--accent); }
.mk-toggle input:checked + .mk-switch::before { transform: translateX(14px); background: white; }

/* ----- Item grid ----- */
.mk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Optimized View — denser grid, smaller cards, no payment-method strip.
   Mirrors Adurite/RO.Place's "compact" toggle: trades visual chrome for
   information density so power-users can scan more listings at once. */
.mk-grid.opt-view {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.mk-grid.opt-view .mk-card { border-radius: 8px; }
.mk-grid.opt-view .mk-card-thumb { aspect-ratio: 1; padding: 6px; }
.mk-grid.opt-view .mk-card-thumb .mk-emoji { font-size: 36px; }
.mk-grid.opt-view .mk-card-pay { display: none; }
.mk-grid.opt-view .mk-card-foot { padding: 6px 8px 8px; }
.mk-grid.opt-view .mk-card-name { font-size: 12px; line-height: 1.2; }
.mk-grid.opt-view .mk-card-meta { gap: 4px; flex-wrap: wrap; }
.mk-grid.opt-view .mk-card-rap { font-size: 11px; }
.mk-grid.opt-view .mk-card-price { font-size: 13px; }
.mk-grid.opt-view .mk-card-actions { transform: scale(.8); transform-origin: top right; }

/* Price Notifier bells: hidden unless the toolbar toggle is on (or the user
   has already marked an item as watched — we keep those visible so the user
   can un-watch without flipping the master switch). */
body:not(.pn-on) .mk-card-action[data-pn]:not(.is-active) { display: none; }
.mk-card-action[data-pn].is-active {
  color: #f59e0b;
  background: rgba(245,158,11,.15);
  border-color: rgba(245,158,11,.3);
}
.mk-card {
  background: #0f1011;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.mk-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.mk-card-thumb {
  aspect-ratio: 1;
  background: var(--bg-elev);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.mk-card-thumb img { width: 75%; height: 75%; object-fit: contain; }
.mk-card-thumb .mk-emoji { font-size: 72px; }

/* Hover-revealed action chips (bell top-left, heart top-right) */
.mk-card-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity .15s;
}
.mk-card:hover .mk-card-actions { opacity: 1; }
.mk-card-action {
  width: 32px; height: 32px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  cursor: pointer;
  pointer-events: auto;
  transition: background .15s, color .15s;
  font-family: inherit;
}
.mk-card-action:hover { color: var(--accent); }
.mk-card-action.is-active { color: var(--accent); }
body.theme-light .mk-card-action { color: #6b7280; }

/* Payment-method strip (above name) */
.mk-card-pay {
  background: var(--accent);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  margin: 12px 14px 0;
  align-self: flex-start;
}
.mk-card-pay svg { display: block; }
.mk-card-pay .pay-sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.35);
}

.mk-card-foot {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border-soft);
  margin-top: 12px;
}
body.theme-light .mk-card-foot { border-top-color: #e5e7eb; }
.mk-card-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mk-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.mk-card-rap {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 500;
}
.mk-card-rap .rs {
  background: #0a0a0a;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 4px;
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
body.theme-light .mk-card-rap .rs { background: #0a0a0a; }
.mk-card-price {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}

/* ----- Page heads (wishlist, support, etc.) ----- */
.page-head { margin: 24px 0 20px; }
.page-h1 {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: -.5px;
}
.page-h1-xl {
  font-size: 64px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -1px;
  line-height: 1.05;
}
.page-h1-edit {
  background: transparent;
  border: 0;
  color: var(--text-mute);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s;
}
.page-h1-edit:hover { color: var(--text); background: var(--bg-elev); }
.page-subtitle {
  color: var(--text-mute);
  font-size: 15px;
  margin: 0 0 32px;
  line-height: 1.5;
}
.support-head { margin: 24px 0 36px; }

/* ----- Wishlist toolbar ----- */
.wishlist-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.wishlist-toolbar .filter-spacer { flex: 1; }
.btn-add-item {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
}
.btn-add-item:hover { background: var(--accent-tint); }

/* ----- Wishlist empty state ----- */
.wishlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 20px;
  color: var(--text-mute);
}
.we-icon {
  color: var(--text-mute);
  opacity: .45;
  margin-bottom: 16px;
}
.we-text {
  font-size: 15px;
  color: var(--text-mute);
  margin: 0;
}

/* ----- Support FAQ accordion ----- */
.support-faq { display: flex; flex-direction: column; gap: 16px; }
.sup-acc {
  background: #0f1011;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
}
.sup-acc-q {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 24px 28px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.sup-acc-q svg {
  color: var(--text-mute);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.sup-acc.open .sup-acc-q svg { transform: rotate(180deg); }
.sup-acc-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 28px;
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.6;
  transition: max-height .25s ease, padding .25s ease;
}
.sup-acc.open .sup-acc-a { max-height: 400px; padding: 0 28px 24px; }

/* ----- Server error state (rate-limited, network down, 5xx) ----- */
.server-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
  text-align: center;
  min-height: 50vh;
}
.server-error .se-icon {
  color: #6b7280;
  opacity: .85;
  margin-bottom: 18px;
}
.server-error .se-title {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}
.server-error .se-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.server-error .se-link:hover { text-decoration: underline; }
.server-error-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
}

/* ===================================================================
   LANDING PAGE (body.lp) — 1:1 bloxmarket.io homepage clone
   =================================================================== */
body.lp {
  background: #0a0a0b;
  font-family: 'Autaut Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text-mute);
  max-width: 1276px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: hidden;
}

/* Landing-page sections when rendered inside the standard app-shell
   (index.html with body.app + data-page="home-landing"). Centers + caps
   width so the hero / counters / FAQ etc. don't sprawl edge-to-edge. */
body.app[data-page="home-landing"] .app-main > .lp-hero,
body.app[data-page="home-landing"] .app-main > .lp-counters,
body.app[data-page="home-landing"] .app-main > .lp-section,
body.app[data-page="home-landing"] .app-main > .lp-advantages,
body.app[data-page="home-landing"] .app-main > .lp-faq,
body.app[data-page="home-landing"] .app-main > .lp-cta {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
body.app[data-page="home-landing"] .app-main > .lp-hero { padding-top: 30px; padding-bottom: 60px; }

/* ----- Top nav ----- */
.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  gap: 24px;
}
.lp-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.lp-logo-mark {
  width: 44px;
  height: 44px;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lp-menu {
  display: flex;
  gap: 36px;
  align-items: center;
}
.lp-menu a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s, transform .15s;
}
.lp-menu a:hover { color: var(--text-dim); transform: translateY(-2px); }
.lp-login {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
}
.lp-login:hover { background: var(--accent-tint); }
.lp-login u { text-decoration: underline; }

/* ----- Hero ----- */
.lp-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0 80px;
  position: relative;
}
.lp-hero-left h1 {
  font-size: 64px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--text);
  margin: 0 0 16px;
}
.lp-hero-left h1 .accent { color: var(--accent); }
.lp-hero-left p {
  font-size: 16px;
  color: var(--text-mute);
  margin: 0 0 32px;
  max-width: 420px;
}
.lp-btn-primary {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s;
}
.lp-btn-primary:hover { opacity: .9; }

/* Hero right: character renders + floating item cards */
.lp-hero-right {
  position: relative;
  height: 500px;
}
.lp-pers {
  position: absolute;
  height: 100%;
  width: auto;
  pointer-events: none;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.5));
}
.lp-pers-1 { left: 0; bottom: 0; z-index: 2; }
.lp-pers-2 { right: 0; bottom: 0; z-index: 1; }

/* RO.Place-style hero: one combined character render centered, with the two
   item cards overlapping at the sides. Only applied once the character image
   has actually loaded (JS adds .has-chars) — otherwise the cards fall back to
   their default layout, so a missing image never leaves dead space. */
.lp-hero-right.has-chars .lp-pers-1 {
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  /* Landscape render (≈1.32:1) — size by width so it doesn't blow out the
     column height-first. */
  width: 100%;
  height: auto;
  max-width: 560px;
  z-index: 1;
}
.lp-hero-right.has-chars .lp-float-card { z-index: 3; }
.lp-hero-right.has-chars .lp-float-1 { top: auto; bottom: 38%; left: -2%; }
.lp-hero-right.has-chars .lp-float-2 { top: auto; bottom: 4%; right: -2%; }
/* Floating product cards (homepage hero) — glassy frosted look that adapts
   to the page theme, with a gentle floating animation. */
.lp-float-card {
  position: absolute;
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 14px;
  padding: 12px;
  width: 176px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3;
  cursor: pointer;
  color: var(--text);
  box-shadow:
    0 10px 30px rgba(15,30,60,.18),
    inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .2s ease, box-shadow .2s ease;
  /* Pull animation params from per-card overrides so each card drifts
     independently — see .lp-float-1 / .lp-float-2 below. */
  animation: lpFloat var(--lp-float-dur, 6s) ease-in-out var(--lp-float-delay, 0s) infinite;
  will-change: transform;
}
.lp-float-card:hover {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 18px 40px rgba(15,30,60,.25),
    inset 0 1px 0 rgba(255,255,255,.7);
}

@keyframes lpFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-8px) rotate(-.6deg); }
  50%      { transform: translateY(0)    rotate(.4deg); }
  75%      { transform: translateY(-6px) rotate(.2deg); }
}

/* Dark theme — frosted dark glass instead of milky white */
body:not(.theme-light) .lp-float-card {
  background: rgba(30,33,40,.55);
  border-color: rgba(255,255,255,.10);
  box-shadow:
    0 10px 30px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.05);
  color: #fff;
}
body:not(.theme-light) .lp-float-card:hover {
  box-shadow:
    0 18px 40px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.lp-float-card .lp-fc-thumb {
  width: 100%;
  aspect-ratio: 1.5;
  background: rgba(0,0,0,.10);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
body:not(.theme-light) .lp-float-card .lp-fc-thumb {
  background: rgba(0,0,0,.35);
}
.lp-float-card .lp-fc-emoji { font-size: 38px; }
.lp-float-card .lp-fc-thumb img { max-width: 80%; max-height: 80%; object-fit: contain; }
.lp-float-card .lp-fc-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lp-float-card .lp-fc-name {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
body:not(.theme-light) .lp-float-card .lp-fc-name { color: #fff; }
.lp-float-card .lp-fc-buy {
  background: var(--accent);
  color: white;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity .15s;
}
.lp-float-card .lp-fc-buy:hover { opacity: .85; }
.lp-float-1 { top: 30%; left: 20%; --lp-float-dur: 6.5s; --lp-float-delay: 0s; }
.lp-float-2 { bottom: 8%; right: 5%; --lp-float-dur: 7.5s; --lp-float-delay: -1.5s; }
@media (prefers-reduced-motion: reduce) {
  .lp-float-card { animation: none; }
}

/* ----- Counter band ----- */
.lp-counters {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
}
body:not(.theme-light) .lp-counters {
  background: #16181c;
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.25);
}
.lp-counters::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 120% 0%, rgba(0,119,255,.10), transparent 55%);
  pointer-events: none;
}
.lp-counter { position: relative; z-index: 1; }
.lp-counter-title {
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
.lp-counter-desc {
  color: var(--text-mute);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

/* ----- "Hot Items" / "Best Deals" sections ----- */
.lp-section { margin-bottom: 56px; }
.lp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.lp-section-head h2 {
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.3px;
}
.lp-view-all {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.lp-view-all:hover { text-decoration: underline; }
.lp-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.lp-card {
  background: #131516;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.lp-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.lp-card-thumb {
  aspect-ratio: 1;
  background: rgba(0,0,0,.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.lp-card-discount {
  position: absolute;
  top: 8px; left: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.lp-card-thumb img { width: 78%; height: 78%; object-fit: contain; }
.lp-card-emoji { font-size: 40px; }
.lp-card-info { padding: 0 2px; }
.lp-card-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.lp-card-price {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}
@media (max-width: 1100px) { .lp-strip { grid-template-columns: repeat(4, 1fr); } }
/* Mobile: Hot Items / Best Deals become a horizontal swipe row (RO.Place
   style) — cards keep a fixed width and scroll sideways with snap, bleeding
   off the right edge to hint there's more. */
@media (max-width: 700px) {
  .lp-strip {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .lp-strip::-webkit-scrollbar { display: none; }
  .lp-strip > * {
    flex: 0 0 auto;
    width: 152px;
    scroll-snap-align: start;
  }
  /* The empty-state message spans the full width, not a card slot. */
  .lp-strip > .lp-strip-empty { flex: 1 0 100%; width: 100%; }
}

/* ----- Two-column "Why buy" advantages ----- */
.lp-advantages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 40px 0;
  margin-bottom: 56px;
  justify-content: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.lp-adv .lp-adv-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.lp-adv h3 {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.25;
}
.lp-adv p {
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 280px;
}

/* ----- FAQ section ----- */
.lp-faq {
  max-width: 700px;
  margin: 0 auto 56px;
  padding: 40px 0;
}
.lp-faq-title {
  text-align: center;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
}
.lp-acc { display: flex; flex-direction: column; gap: 8px; }
.lp-acc-item {
  background: rgba(255,255,255,.03);
  border-radius: 10px;
  overflow: hidden;
  transition: background .15s;
}
.lp-acc-item:hover { background: rgba(255,255,255,.05); }
.lp-acc-q {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text-mute);
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.lp-acc-q svg { color: var(--accent); transition: transform .2s; flex-shrink: 0; }
.lp-acc-item.open .lp-acc-q { color: var(--text); }
.lp-acc-item.open .lp-acc-q svg { transform: rotate(180deg); }
.lp-acc-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.6;
  transition: max-height .25s ease, padding .25s ease;
}
.lp-acc-item.open .lp-acc-a { max-height: 300px; padding: 0 20px 16px; }

/* ----- CTA banner ----- */
.lp-cta {
  background: linear-gradient(90deg, #07f 0%, #2e8fff 100%);
  border-radius: 16px;
  padding: 40px 32px;
  margin-bottom: 60px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 240px;
}
.lp-cta-pers {
  position: absolute;
  bottom: 0;
  height: 100%;
  width: auto;
  pointer-events: none;
}
.lp-cta-pers-1 { left: 5%; }
.lp-cta-pers-2 { right: 5%; transform: scaleX(-1); }
.lp-cta-inner {
  text-align: center;
  color: white;
  position: relative;
  z-index: 2;
  max-width: 420px;
}
.lp-cta h2 {
  color: white;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}
.lp-cta p {
  color: rgba(255,255,255,.95);
  font-size: 15px;
  margin: 0 0 20px;
}
.lp-cta-btn {
  background: white;
  color: var(--accent);
  border: 0;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}
.lp-cta-btn u { text-decoration: underline; }
.lp-cta-btn:hover { opacity: .92; }

/* ----- Footer ----- */
.lp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--border-soft);
}
.lp-foot-logo {
  color: var(--text-mute);
  opacity: .25;
  text-decoration: none;
  transition: opacity .15s;
}
.lp-foot-logo:hover { opacity: .5; }
.lp-foot-sign {
  color: var(--text-mute);
  opacity: .4;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  /* RO.Place-style mobile hero: single column, everything centered. Without a
     character image the item cards show inline (centered row); with one
     (.has-chars) the character is centered and the cards overlap at the sides. */
  .lp-hero { grid-template-columns: 1fr; text-align: center; padding: 32px 0 40px; }
  .lp-hero-left h1 { font-size: 44px; }
  .lp-hero-left p { margin-left: auto; margin-right: auto; }
  .lp-hero-right {
    display: flex;
    height: auto;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
  }
  .lp-pers { display: none; }           /* hidden unless a character loads */
  .lp-float-card {
    position: static;
    animation: none;
    width: 150px;
    margin: 0;
  }
  /* Character-render variant (RO.Place look) on mobile. */
  .lp-hero-right.has-chars {
    display: block;
    position: relative;
    height: 270px;
    margin-top: 10px;
  }
  .lp-hero-right.has-chars .lp-pers-1 {
    display: block;
    height: auto;
    width: auto;
    max-height: 262px;
    max-width: 88%;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
  }
  .lp-hero-right.has-chars .lp-float-card {
    position: absolute;
    width: 132px;
  }
  .lp-hero-right.has-chars .lp-float-1 { top: auto; bottom: 42%; left: -2%; }
  .lp-hero-right.has-chars .lp-float-2 { top: auto; bottom: 2%; right: -2%; }
  .lp-counters { grid-template-columns: 1fr; gap: 20px; }
  .lp-menu { display: none; }
  /* Feature blocks (Safe & Secure, etc.): single column, full-width
     descriptions (drop the 280px cap that left awkward empty space), tighter
     stacking — matches RO.Place's clean feature list. */
  .lp-advantages { grid-template-columns: 1fr; gap: 26px; max-width: 100%; padding: 24px 0; margin-bottom: 32px; }
  .lp-adv p { max-width: 100%; }
  .lp-cta-pers { display: none; }
}

/* ===================================================================
   ADURITE LAYOUT (body.adu) — full visual clone
   =================================================================== */
body.adu {
  background: var(--bg);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-dim);
  margin: 0;
  min-height: 100vh;
}
body.adu * { box-sizing: border-box; }

/* ----- Top nav ----- */
.adu-nav { background: var(--bg); border-bottom: 0; }
.adu-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.adu-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.adu-logo svg { flex-shrink: 0; }
.adu-logo-word { color: var(--text); font-weight: 700; letter-spacing: -.3px; }

.adu-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}
.adu-menu-link {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .15s;
}
.adu-menu-link:hover { color: var(--accent); }
.adu-menu-link.active { color: var(--text); }
.adu-discord { color: var(--text); display: inline-flex; align-items: center; }
.adu-discord:hover { color: var(--accent); }

.adu-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.adu-currency {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background .15s;
}
.adu-currency:hover { background: var(--accent-tint); }
.adu-balance {
  background: #1a1a1a;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}
.adu-btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .15s, background .15s;
}
.adu-btn-primary {
  background: var(--accent);
  color: white;
}
.adu-btn-primary:hover { background: var(--accent-hover); }
.adu-btn-block { width: 100%; padding: 12px; font-size: 14px; }
.adu-sell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.adu-user {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.adu-user:hover { border-color: var(--accent); color: var(--accent); }

/* ----- Trustpilot strip ----- */
.adu-trust { background: var(--bg); padding: 4px 0; }
.adu-trust-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}
.adu-trust-label { font-size: 13px; }
.adu-trust-stars { display: inline-flex; gap: 2px; padding: 4px; background: var(--accent); border-radius: 2px; }
.adu-star { color: white; font-size: 14px; line-height: 1; }
.adu-trust-text { color: var(--text); }
.adu-trust-text strong { font-weight: 700; }
.adu-trust-pilot { color: #00b67a; font-size: 13px; }

/* ----- Red announcement banner ----- */
.adu-banner {
  background: var(--accent);
  text-align: center;
  padding: 12px 16px;
  color: white;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .3px;
}

/* ----- Page wrapper ----- */
.adu-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
  min-height: calc(100vh - 400px);
}

/* ----- Section heads (Recently Sold, etc.) ----- */
.adu-section-head {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
  margin: 0 0 20px;
}

/* ----- Recently Sold strip ----- */
.adu-recent { margin-bottom: 32px; }
.adu-recent-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
  cursor: grab;
  user-select: none;
}
.adu-recent-track::-webkit-scrollbar { display: none; }
.adu-recent-track.dragging { cursor: grabbing; }
.adu-recent-track.dragging * { pointer-events: none; }
.adu-recent-card {
  flex-shrink: 0;
  width: 220px;
  height: 138px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color .15s;
}
.adu-recent-card:hover { border-color: var(--accent); }
.adu-recent-card .ar-price {
  position: absolute;
  top: 14px;
  left: 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}
.adu-recent-card .ar-thumb {
  margin: 0 auto;
  margin-top: 4px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adu-recent-card .ar-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.adu-recent-card .ar-thumb .ar-emoji { font-size: 42px; }
.adu-recent-card .ar-name {
  text-align: center;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  margin-top: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----- Marketplace layout (sidebar + grid) ----- */
.adu-market {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}
.adu-side {
  background: var(--bg);
}
.adu-side-search {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  margin-bottom: 24px;
}
.adu-side-search svg { color: var(--text-mute); flex-shrink: 0; }
.adu-side-search input {
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 11px 8px;
  width: 100%;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.adu-side h3 {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
}
.adu-side-tabs { display: flex; flex-direction: column; gap: 4px; margin-bottom: 28px; }
.adu-side-tab {
  background: transparent;
  border: 0;
  color: var(--text-mute);
  text-align: left;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.adu-side-tab.active { color: var(--accent); }
.adu-side-tab:hover { color: var(--text); }
.adu-side-tab .adu-side-new {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: .5px;
}

.adu-side-filters h3 { margin-top: 8px; }
.adu-filter-block { margin-bottom: 18px; }
.adu-filter-label {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.adu-price-row { display: flex; gap: 8px; }
.adu-price-row input {
  width: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  -moz-appearance: textfield;
}
.adu-price-row input::-webkit-outer-spin-button,
.adu-price-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.adu-radio-list { display: flex; flex-direction: column; gap: 8px; }
.adu-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
}
.adu-radio input { accent-color: var(--accent); margin: 0; }
.adu-side-reset {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  margin-top: 12px;
}
.adu-side-reset:hover { background: var(--accent-tint); }

/* ----- Catalog area ----- */
.adu-catalog h2 {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 14px;
}
.adu-catalog .adu-section-count {
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 500;
  margin-left: 8px;
}

.adu-trending {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.adu-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.adu-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.adu-item-payicons {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  z-index: 2;
}
.adu-pay-pill {
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: 5px;
  padding: 3px 5px;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.adu-item-thumb {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.adu-item-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.adu-item-thumb .adu-item-emoji { font-size: 64px; }
.adu-item-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adu-item-stats {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.adu-item-stat-label {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.adu-item-stat-value {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

/* ----- Dropdowns (currency / sell) ----- */
.adu-popup {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 36px rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adu-popup-item {
  background: transparent;
  border: 0;
  color: var(--text);
  text-align: left;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.adu-popup-item:hover { background: var(--bg-elev); color: var(--accent); }

/* ----- Wallet modal ----- */
.adu-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 300;
}
.adu-modal-overlay.open { display: flex; }
.adu-modal {
  background: var(--bg);
  border-radius: 14px;
  width: 100%;
  max-width: 600px;
  padding: 28px 32px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
}
.adu-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 0;
  color: var(--text-mute);
  font-size: 22px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.adu-modal-close:hover { color: var(--text); background: var(--bg-elev); }
.adu-modal-title {
  text-align: center;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 18px;
}
.adu-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 18px;
}
.adu-tab {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text-mute);
  padding: 12px 8px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.adu-tab:hover { color: var(--text); }
.adu-tab.active { color: var(--text); border-bottom-color: var(--text); }

.adu-tab-head {
  text-align: center;
  margin-bottom: 16px;
}
.adu-bal-label { color: var(--text-mute); font-size: 13px; margin-bottom: 4px; }
.adu-bal-value { color: var(--text); font-size: 28px; font-weight: 700; }
.adu-bal-sub { color: var(--text-mute); font-size: 12px; margin-top: 4px; }
.adu-tab-sub { text-align: center; color: var(--text-mute); font-size: 13px; margin: 0 0 18px; }
.adu-tab-foot { text-align: center; color: var(--text-mute); font-size: 12px; margin: 18px 0 0; }

.adu-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  justify-content: center;
}
.adu-method {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: border-color .15s, transform .15s;
}
.adu-method:hover { border-color: var(--accent); transform: translateY(-2px); }
.adu-method-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  border-radius: 50%;
}
.adu-method-icon.adu-bitcoin { background: #f7931a; color: white; }
.adu-method-icon.adu-litecoin { background: #345d9d; color: white; }
.adu-method-icon.adu-crypto { background: #627eea; color: white; }
.adu-method-icon.adu-usdt { background: #50af95; color: white; }
.adu-method-card .adu-method-icon { background: var(--bg-elev); color: var(--accent); }
.adu-method-name { color: var(--text); font-size: 14px; font-weight: 600; }
.adu-method-sub { color: var(--text-mute); font-size: 11px; margin-top: 2px; }
.adu-method-name.adu-gold, .adu-method-sub.adu-gold { color: #ffb547; }

.adu-convert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}
.adu-convert-side { flex: 1; text-align: center; }
.adu-convert-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text);
  padding: 14px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  outline: none;
  font-family: inherit;
}
.adu-convert-input:focus { border-color: var(--accent); }
.adu-convert-label { color: var(--text-mute); font-size: 12px; margin-top: 6px; }
.adu-convert-arrow { color: var(--text); font-size: 22px; }

.adu-gc-title { color: var(--text); font-size: 18px; font-weight: 700; text-align: center; margin: 0 0 8px; }
.adu-gc-sub { color: var(--text-mute); font-size: 13px; text-align: center; margin: 0 0 16px; line-height: 1.5; }
.adu-gc-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.adu-gc-amounts .adu-btn { padding: 14px 0; font-size: 14px; }
.adu-gc-enter { text-align: center; color: var(--text-mute); font-size: 13px; margin: 0 0 10px; }
.adu-gc-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text);
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.adu-gc-input:focus { border-color: var(--accent); }

/* ----- Footer ----- */
.adu-foot {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  margin-top: 40px;
  padding: 40px 0 24px;
}
.adu-foot-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.6fr;
  gap: 32px;
  align-items: start;
}
.adu-foot-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.adu-foot-col a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.adu-foot-col a:hover { color: var(--accent); }
.adu-foot-col strong { color: var(--text); font-size: 14px; font-weight: 700; }
.adu-foot-socials { display: flex; gap: 14px; }
.adu-foot-socials a {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.adu-foot-socials a:hover { color: var(--accent); }
.adu-foot-addr {
  font-size: 13px;
  color: var(--text-mute);
}
.adu-foot-addr strong { color: var(--text); display: block; margin-bottom: 4px; }
.adu-foot-addr-block { margin-top: 12px; line-height: 1.6; }
.adu-foot-payments {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.adu-pm {
  background: white;
  color: black;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 4px;
}
.adu-foot-bottom {
  max-width: 1400px;
  margin: 32px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  color: var(--text-mute);
  font-size: 12px;
  line-height: 1.6;
}
.adu-foot-bottom > div:first-child { color: var(--text); margin-bottom: 12px; font-weight: 500; }
.adu-foot-disclaimer { max-width: 1000px; margin: 0 auto; font-size: 11px; }

/* ----- Seller's panel ----- */
.adu-seller-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
}
.adu-seller-title {
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: .5px;
}
.adu-seller-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
}
.adu-seller-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.adu-seller-link {
  background: var(--bg-card);
  border: 0;
  color: var(--text-mute);
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  display: block;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: color .15s;
}
.adu-seller-link:hover { color: var(--text); }
.adu-seller-link.active { color: var(--text); }
.adu-seller-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--accent);
}

.adu-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.adu-stat-card {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 32px;
  text-align: center;
}
.adu-stat-card-label { color: var(--text); font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.adu-stat-card-value { color: var(--text); font-size: 48px; font-weight: 700; }

.adu-section-panel h3 { color: var(--text); font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.adu-section-panel-sub { color: var(--text-mute); font-size: 13px; margin: 0 0 14px; }
.adu-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
}
.adu-table th {
  text-align: left;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 18px;
  background: var(--bg-card);
}
.adu-table td {
  color: var(--text-dim);
  font-size: 13px;
  padding: 14px 18px;
  border-top: 1px solid var(--border-soft);
}
.adu-table .adu-empty-row td {
  text-align: center;
  color: var(--text-mute);
  padding: 30px;
}

/* List Items page */
.adu-li-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.adu-li-head h3 { margin: 0; }
.adu-view-listings-btn {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.adu-li-accounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.adu-li-action {
  background: var(--bg-card);
  border: 0;
  color: var(--text);
  padding: 16px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.adu-li-account {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 16px;
  position: relative;
}
.adu-li-account-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.adu-li-account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adu-li-account-name { color: var(--text); font-size: 15px; font-weight: 600; }
.adu-li-warn {
  background: rgba(229, 57, 53, 0.08);
  border: 1px solid rgba(229, 57, 53, 0.3);
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
  margin-bottom: 8px;
}
.adu-li-warn-title { color: var(--accent); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.adu-li-warn-sub { color: var(--text-mute); font-size: 11px; }
.adu-li-account .adu-btn { width: 100%; padding: 10px; font-size: 13px; }
.adu-li-listed { color: var(--text-mute); font-size: 11px; margin-top: 8px; text-align: center; }
.adu-li-x {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 0;
  color: var(--text-mute);
  cursor: pointer;
  font-size: 16px;
}

/* Sales History */
.adu-filter-pills {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}
.adu-pill {
  background: var(--bg-elev);
  color: var(--text-mute);
  border: 0;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.adu-pill.active { background: var(--accent); color: white; }
.adu-pill:hover { color: var(--text); }
.adu-pill.active:hover { color: white; }

/* Gift card catalog */
.adu-gc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.adu-gc-card {
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.adu-gc-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.adu-gc-card-img {
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: white;
}
.adu-gc-card-body { padding: 12px 14px; }
.adu-gc-card-name { color: var(--text); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.adu-gc-card-from {
  background: var(--bg);
  border-radius: 6px;
  padding: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* Subscriptions */
.adu-sub-banner {
  background: linear-gradient(90deg, #1a1a1a 0%, #2a1a1a 100%);
  background-image: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.5)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30"><circle cx="20" cy="15" r="8" fill="%23333"/><circle cx="50" cy="15" r="8" fill="%23333"/><circle cx="80" cy="15" r="8" fill="%23333"/></svg>');
  background-size: cover;
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 28px;
}
.adu-sub-banner h2 { color: var(--text); font-size: 22px; font-weight: 700; margin: 0 0 6px; letter-spacing: 1px; }
.adu-sub-banner p { color: var(--text-mute); font-size: 14px; margin: 0; max-width: 400px; }
.adu-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.adu-sub-card {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.adu-sub-card.premium { background: var(--accent); }
.adu-sub-tier { color: var(--text); font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.adu-sub-desc { color: var(--text-mute); font-size: 13px; margin: 0 0 18px; }
.adu-sub-card.premium .adu-sub-tier { color: white; }
.adu-sub-card.premium .adu-sub-desc { color: rgba(255,255,255,.85); }
.adu-sub-price { color: var(--text); font-size: 36px; font-weight: 700; margin-bottom: 22px; }
.adu-sub-price small { color: var(--text-mute); font-size: 14px; font-weight: 500; margin-left: 4px; }
.adu-sub-card.premium .adu-sub-price { color: white; }
.adu-sub-card.premium .adu-sub-price small { color: rgba(255,255,255,.85); }
.adu-sub-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.adu-sub-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
}
.adu-sub-card.premium .adu-sub-feat { color: rgba(255,255,255,.95); }
.adu-sub-check {
  background: rgba(229,57,53,.18);
  color: var(--accent);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.adu-sub-card.premium .adu-sub-check { background: rgba(255,255,255,.2); color: white; }
.adu-sub-cta {
  margin-top: 20px;
  background: white;
  color: var(--accent);
  border: 0;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.adu-sub-cta-disabled {
  margin-top: 20px;
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 500;
}

/* Claims */
.adu-claims-page { text-align: center; padding: 40px 0; }
.adu-claims-page h1 { color: var(--text); font-size: 26px; font-weight: 700; margin: 0 0 8px; }
.adu-claims-sub { color: var(--text-mute); font-size: 14px; margin: 0 auto 22px; max-width: 800px; line-height: 1.55; }
.adu-claims-search {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 4px;
  gap: 8px;
}
.adu-claims-search input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 12px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.adu-claims-search button {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.adu-claims-empty { color: var(--text-mute); font-size: 14px; margin-top: 32px; }

/* Responsive */
@media (max-width: 1100px) {
  .adu-foot-inner { grid-template-columns: 1fr 1fr; }
  .adu-market { grid-template-columns: 1fr; }
  .adu-menu { gap: 24px; }
}
@media (max-width: 700px) {
  .adu-nav-inner { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .adu-menu { display: none; }
  .adu-foot-inner { grid-template-columns: 1fr; }
  .adu-seller-grid { grid-template-columns: 1fr; }
  .adu-stat-row, .adu-sub-grid { grid-template-columns: 1fr; }
}

/* Live chat bubble: rename hook for adurite */
.adu-chat-bubble {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(229, 57, 53, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 91;
  transition: transform .15s;
}
.adu-chat-bubble:hover { background: var(--accent-hover); transform: scale(1.05); }

/* ===== Antlers AI chat panel (matches adurite Intercom-style widget) ===== */
.adu-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 90px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 620px;
  max-height: calc(100vh - 120px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  z-index: 90;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}
.adu-chat-panel.open {
  display: flex;
  animation: aduChatIn .2s ease;
}
@keyframes aduChatIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.adu-chat-header {
  background: var(--accent);
  color: white;
  padding: 14px 12px 14px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.adu-chat-iconbtn {
  background: transparent;
  border: 0;
  color: white;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
  opacity: .9;
  font-family: inherit;
}
.adu-chat-iconbtn:hover { opacity: 1; background: rgba(255,255,255,.12); }
.adu-chat-mascot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.adu-chat-titles { flex: 1; min-width: 0; }
.adu-chat-name { font-size: 16px; font-weight: 700; color: white; line-height: 1.2; }
.adu-chat-subtitle { font-size: 12px; color: rgba(255,255,255,.85); line-height: 1.2; }

.adu-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 18px 8px;
  background: white;
}
.adu-chat-body::-webkit-scrollbar { width: 6px; }
.adu-chat-body::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 3px; }
.adu-chat-prompt {
  text-align: center;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}
.adu-chat-prompt .adu-chat-point { display: inline-block; }

.adu-chat-bot-msg, .adu-chat-user-msg { margin-bottom: 16px; }
.adu-chat-msg-bubble {
  display: inline-block;
  background: #f1f2f4;
  border-radius: 18px;
  padding: 11px 16px;
  font-size: 14px;
  color: #1a1a1a;
  max-width: 85%;
  line-height: 1.4;
}
.adu-chat-msg-mine {
  background: var(--accent);
  color: white;
}
.adu-chat-user-msg { text-align: right; }
.adu-chat-msg-meta {
  color: #888;
  font-size: 11px;
  margin-top: 4px;
  font-weight: 500;
}

.adu-chat-quick {
  padding: 12px 14px 14px;
  background: white;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.adu-chat-chip {
  background: white;
  border: 1px solid #e3e3e3;
  color: #1a1a1a;
  padding: 9px 14px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, border-color .15s;
}
.adu-chat-chip:hover { background: #f9f9f9; border-color: #ccc; }
.adu-chat-chip-ico { font-weight: 700; }

@media (max-width: 480px) {
  .adu-chat-panel {
    right: 12px;
    left: 12px;
    bottom: 84px;
    width: auto;
    height: calc(100vh - 130px);
  }
}

/* ===================================================================
   BloxMarket — light theme (body.theme-light) + sidebar shell rebuild
   =================================================================== */
body.theme-light {
  --bg: #f0f0f0;
  --bg-soft: #f7f7f7;
  --bg-card: #ffffff;
  --bg-elev: #f5f5f5;
  --border: #e0e0e0;
  --border-soft: #ebebeb;
  --text: #0a0a0a;
  --text-dim: #444;
  --text-mute: #6b7280;
  --text-faint: rgba(0,0,0,.4);
  background: var(--bg);
  color: var(--text);
}
body.theme-light .side-nav { background: #ffffff; border-right: 1px solid var(--border-soft); }
body.theme-light .side-logo-word { color: #0a0a0a; }
body.theme-light .side-link { color: #6b7280; }
body.theme-light .side-link:hover { color: #0a0a0a; background: #f3f4f6; }
body.theme-light .side-link.active { color: var(--accent); background: rgba(0,119,255,.06); }
body.theme-light .side-collapse { color: #6b7280; }
body.theme-light .side-collapse:hover { background: #f3f4f6; color: #0a0a0a; }
body.theme-light .raffle { background: #ffffff; border: 1px solid var(--border-soft); }
body.theme-light .raffle-title { color: var(--accent); }
body.theme-light .raffle-thumb { background: #f0f0f0; }
body.theme-light .raffle-meta { color: var(--text-mute); }
body.theme-light .currency-btn { background: #ffffff; }
body.theme-light .btn-login { background: #ffffff; }
body.theme-light .theme-toggle { background: rgba(0,119,255,.1); }
body.theme-light .recent-card { background: #ffffff; border: 1px solid #e5e7eb; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
body.theme-light .rc-thumb { background: #ffffff; }
body.theme-light .rc-name { color: #0a0a0a; }
body.theme-light .filter-bar-mk .search-input input { background: #ffffff; border-color: var(--border-soft); color: #0a0a0a; }
body.theme-light .mk-dropdown { background: #ffffff; border-color: var(--border-soft); color: #0a0a0a; }
body.theme-light .mk-toggle { color: #0a0a0a; }
body.theme-light .mk-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
body.theme-light .mk-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(0,119,255,.12); }
body.theme-light .mk-card-thumb { background: #ffffff; }
body.theme-light .mk-card-name { color: #0a0a0a; }
body.theme-light .rating-strip { color: #0a0a0a; }
body.theme-light .page-h1, body.theme-light .page-h1-xl { color: #0a0a0a; }
body.theme-light .sup-acc { background: #ffffff; border: 1px solid var(--border-soft); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
body.theme-light .sup-acc-q { color: #0a0a0a; }
body.theme-light .sup-acc-q svg { color: var(--accent); }
body.theme-light .btn-add-item { background: #ffffff; border-color: var(--accent); color: var(--accent); }

/* ===== Logged-in topbar additions ===== */
.add-balance-btn {
  width: 38px; height: 38px;
  background: var(--accent);
  color: white;
  border: 0;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.add-balance-btn svg { display: block; }
.add-balance-btn:hover { background: var(--accent-hover); }
.balance-pill {
  background: var(--accent);
  color: white;
  border: 0;
  outline: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.balance-pill:focus { outline: none; box-shadow: none; }
.balance-pill:focus-visible {
  outline: 2px solid rgba(255,255,255,.5);
  outline-offset: 2px;
}
.account-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.account-btn:hover { border-color: var(--accent); }
body.theme-light .account-btn { background: #ffffff; border-color: var(--border-soft); color: #0a0a0a; }
.popup-account {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 36px rgba(0,0,0,.3);
  min-width: 160px;
}
body.theme-light .popup-account { background: #ffffff; }
.popup-account a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.popup-account a:hover { background: var(--bg-elev); color: var(--accent); }
body.theme-light .popup-account a { color: #0a0a0a; }
body.theme-light .popup-account a:hover { background: #f3f4f6; }
.popup-account a.popup-admin {
  color: var(--accent);
  font-weight: 600;
  position: relative;
}
.popup-account a.popup-admin svg { color: var(--accent); }
.popup-account a.popup-admin::after {
  content: "ADMIN";
  margin-left: auto;
  background: #dc2626;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  padding: 2px 6px;
  border-radius: 4px;
}
.popup-account a.popup-logout {
  background: var(--accent);
  color: white;
  margin-top: 4px;
}
.popup-account a.popup-logout:hover { background: var(--accent-hover); color: white; }

/* Sidebar separator + Settings */
.side-sep {
  height: 1px;
  background: var(--border-soft);
  margin: 12px 12px;
}

/* ===== Settings page ===== */
.set-page { max-width: 1180px; margin: 0 auto; padding: 8px 32px 32px; }
.set-head h1 { font-size: 56px; font-weight: 700; color: var(--text); margin: 0 0 4px; letter-spacing: -1px; line-height: 1; }
.set-head p { color: var(--text-dim); font-size: 15px; margin: 0 0 20px; }
.set-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border-soft); margin-bottom: 20px; }
.set-tab {
  background: transparent;
  border: 0;
  color: var(--text-mute);
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.set-tab:hover { color: var(--text); }
.set-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.set-section-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 22px; margin-bottom: 0;
  border-bottom: 1px solid var(--border-soft);
}
.set-section-head h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.set-section-head p { color: var(--text-mute); font-size: 14px; margin: 0; max-width: 480px; }
.set-save-btn {
  background: var(--accent); color: white; border: 0;
  padding: 10px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.set-save-btn:hover { background: var(--accent-hover); }
.set-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
}
.set-row:last-child { border-bottom: 0; }
.set-row-label { color: var(--text); font-size: 14px; font-weight: 500; }
.set-row-input input {
  width: 100%; max-width: 720px;
  background: transparent; border: 1px solid var(--border-soft);
  color: var(--text); padding: 12px 16px; border-radius: 8px;
  font-size: 14px; font-family: inherit; outline: none;
}
.set-row-input input:focus { border-color: var(--accent); }
.set-row-input .input-hint { color: var(--text-mute); font-size: 12px; margin-top: 8px; }
body.theme-light .set-row-input input { background: #ffffff; border-color: #e5e7eb; color: #0a0a0a; }
body.theme-light .set-section-head { border-bottom-color: #e5e7eb; }
body.theme-light .set-row { border-bottom-color: #e5e7eb; }
.set-phone {
  display: flex; align-items: center;
  max-width: 720px;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0 16px;
  gap: 8px;
}
.set-phone .ccy {
  color: var(--text); font-weight: 600; font-size: 14px;
  padding-right: 2px;
}
.set-phone .cce { color: var(--text-mute); font-size: 14px; }
.set-phone input { flex: 1; border: 0; padding: 12px 0; outline: none; background: transparent; color: var(--text); font-family: inherit; font-size: 14px; }
.set-phone input::placeholder { color: var(--text-mute); }
body.theme-light .set-phone { background: #ffffff; border-color: #e5e7eb; }
body.theme-light .set-phone .ccy { color: #0a0a0a; }
body.theme-light .set-phone input { color: #0a0a0a; }
.set-mega-section { padding-top: 26px; }
.set-mega-section:first-of-type { padding-top: 12px; }

/* ===== Inside-page footer ===== */
.ro-foot {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  padding: 40px 32px 24px;
  margin-top: 60px;
}
.ro-foot-inner {
  max-width: 1276px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 60px;
}
.ro-foot-blurb { color: var(--text-dim); font-size: 13px; line-height: 1.55; }
.ro-foot-links { display: flex; flex-direction: column; gap: 12px; }
.ro-foot-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; }
.ro-foot-links a:hover { color: var(--accent); }
.ro-foot-business { color: var(--text-dim); font-size: 13px; text-align: right; line-height: 1.6; }
.ro-foot-business strong { color: var(--text); display: block; }
.ro-foot-business .ro-foot-email a { color: var(--accent); text-decoration: none; }
body.theme-light .ro-foot, body.theme-light .lp-foot { background: #ffffff; }
body.theme-light .ro-foot-blurb, body.theme-light .ro-foot-business { color: #6b7280; }
body.theme-light .ro-foot-links a { color: #6b7280; }

/* ===================================================================
   Gift Cards purchase page
   =================================================================== */
.gc-page { padding: 32px; max-width: 920px; margin: 0 auto; }
.gc-hero {
  background: linear-gradient(135deg, #0066dd 0%, #0077ff 50%, #4ea1ff 100%);
  border-radius: 16px;
  padding: 36px 40px;
  color: white;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.gc-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(255,255,255,.15), transparent 50%);
  pointer-events: none;
}
.gc-hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
  color: white;
  letter-spacing: -.5px;
}
.gc-hero p {
  color: rgba(255,255,255,.92);
  font-size: 15px;
  margin: 0;
  max-width: 540px;
  line-height: 1.55;
}

.gc-section-h {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-mute);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.gc-amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.gc-amount-card {
  background: var(--bg-card);
  border: 2px solid var(--border-soft);
  border-radius: 14px;
  padding: 22px 18px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  color: var(--text);
  transition: border-color .15s, transform .12s, background .15s;
}
.gc-amount-card:hover { border-color: var(--border); transform: translateY(-2px); }
.gc-amount-card.selected {
  border-color: var(--accent);
  background: rgba(0,119,255,.06);
}
.gc-amount-card .amt {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
  /* Localized prices like "MX$4,275.00" can run wide; let the column flex and
     scale the font down a notch on narrow cards so the value stays inside. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.gc-amount-card .sub {
  color: var(--text-mute);
  font-size: 12px;
}
.gc-amount-card.custom .amt { font-size: 20px; }
.gc-amount-card.custom input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
  width: 100%;
  text-align: center;
  outline: none;
  padding: 4px 0;
  font-family: inherit;
  -moz-appearance: textfield;
  appearance: textfield;
}
.gc-amount-card.custom input::-webkit-outer-spin-button,
.gc-amount-card.custom input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.gc-amount-card.custom input:focus { border-bottom-color: var(--accent); box-shadow: none; }
.gc-amount-card.custom input::placeholder { color: var(--text-mute); font-weight: 600; opacity: .6; }
.gc-custom-input {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  border-bottom: 1px solid var(--border-soft);
  padding: 4px 0;
}
.gc-custom-input:focus-within { border-bottom-color: var(--accent); }
.gc-custom-prefix {
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.gc-amount-card.custom .gc-custom-input input {
  border-bottom: 0;
  padding: 0;
  width: auto;
  min-width: 60px;
  max-width: 100px;
  text-align: left;
  caret-color: var(--accent);
}

.gc-pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.gc-pay-card {
  background: var(--bg-card);
  border: 2px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color .15s, background .15s;
}
.gc-pay-card:hover { border-color: var(--border); }
.gc-pay-card.selected { border-color: var(--accent); background: rgba(0,119,255,.06); }
.gc-pay-card .pay-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--bg-elev);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.gc-pay-card .pay-name { font-weight: 600; font-size: 14px; }
.gc-pay-card .pay-sub  { color: var(--text-mute); font-size: 12px; }

.gc-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
}
.gc-summary .lbl { color: var(--text-mute); font-size: 13px; margin-bottom: 4px; }
.gc-summary .total {
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
}
.gc-summary .total small {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.gc-buy-btn {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.gc-buy-btn:hover { background: var(--accent-hover); }
.gc-buy-btn:disabled { background: var(--bg-elev); color: var(--text-mute); cursor: not-allowed; }

.gc-email-field {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gc-email-field input {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  flex: 1;
}

/* Success screen — shown after a purchase completes */
.gc-success {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
}
.gc-success-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(22,163,74,.15);
  color: #16a34a;
  margin: 0 auto 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gc-success h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
.gc-success p { color: var(--text-mute); font-size: 14px; margin: 0 0 24px; }
.gc-code-box {
  background: var(--bg-elev);
  border: 2px dashed var(--accent);
  border-radius: 12px;
  padding: 18px 24px;
  margin: 0 auto 18px;
  font-family: Consolas, 'SFMono-Regular', monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  display: inline-block;
}
.gc-success-actions {
  display: inline-flex;
  gap: 10px;
}
.gc-success-actions button {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.gc-success-actions .gc-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-soft);
}

/* ===== Public user-shop page ===== */
.shop-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 22px;
  align-items: center;
}
.shop-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 38px;
  text-transform: uppercase;
}
.shop-meta h1 {
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  display: flex; align-items: center; gap: 8px;
  letter-spacing: -.3px;
}
.shop-meta .shop-sub {
  color: var(--text-mute);
  font-size: 13px;
  margin-top: 6px;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.shop-meta .shop-tier {
  background: var(--accent-tint);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.shop-meta .shop-bio {
  color: var(--text-dim);
  font-size: 13.5px;
  margin: 10px 0 0;
  max-width: 560px;
  line-height: 1.5;
}
.shop-stats-inline {
  display: flex;
  gap: 28px;
  text-align: center;
}
.shop-stats-inline .num {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}
.shop-stats-inline .lbl {
  color: var(--text-mute);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-top: 2px;
}
.shop-empty {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 60px 28px;
  text-align: center;
}
.shop-empty-icon {
  width: 60px; height: 60px;
  background: var(--bg-elev);
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.shop-empty-msg {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.shop-empty-sub {
  color: var(--text-mute);
  font-size: 14px;
}

@media (max-width: 800px) {
  .shop-hero { grid-template-columns: 64px 1fr; }
  .shop-avatar { width: 64px; height: 64px; font-size: 28px; }
  .shop-stats-inline { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ===== Wishlist search-modal result rows ===== */
.wl-result-row {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 4px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: background .12s, border-color .12s;
}
.wl-result-row:hover { background: var(--bg-elev); border-color: var(--border-soft); }
.wl-result-row[disabled] { cursor: default; opacity: .6; }
.wl-result-row[disabled]:hover { background: transparent; border-color: transparent; }
.wl-result-thumb {
  width: 52px; height: 52px;
  background: var(--bg-elev);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.wl-result-thumb img { width: 80%; height: 80%; object-fit: contain; }
.wl-result-meta { min-width: 0; }
.wl-result-name {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wl-result-sub {
  color: var(--text-mute);
  font-size: 12px;
  text-transform: capitalize;
  margin-top: 2px;
}
.wl-result-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.wl-result-cta {
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.wl-result-row[disabled] .wl-result-cta {
  background: var(--bg-elev);
  color: var(--text-mute);
}

/* ===== History page ===== */
.history-page { padding: 32px; max-width: 1276px; margin: 0 auto; }
.history-h1 { font-size: 56px; font-weight: 700; color: var(--text); margin: 0 0 14px; letter-spacing: -1px; line-height: 1.05; }
.history-sub { color: var(--text-dim); font-size: 15px; margin: 0 0 32px; line-height: 1.5; }
.history-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; color: var(--text-mute);
}
.history-empty-art { font-size: 160px; opacity: .35; margin-bottom: 16px; }
.history-empty-msg { color: var(--text-mute); font-size: 16px; font-weight: 500; }

/* ----- Live chat floating bubble ----- */
.live-chat-bubble {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 119, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, box-shadow .15s;
  z-index: 90;
}
.live-chat-bubble:hover { transform: scale(1.05); box-shadow: 0 12px 32px rgba(0, 119, 255, 0.5); }

/* ----- Dropdown menu (opens below a .mk-dropdown) ----- */
.mk-dropdown { position: relative; }
.mk-dropdown.open svg { transform: rotate(180deg); }
.mk-dropdown svg { transition: transform .15s; }
.mk-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 100%;
  background: #0f1011;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 6px;
  z-index: 50;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
body.theme-light .mk-dropdown-menu {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
body.theme-light .mk-dropdown-option { color: #4b5563; }
body.theme-light .mk-dropdown-option:hover { background: #f3f4f6; color: #0a0a0a; }
body.theme-light .mk-dropdown-option.selected { color: var(--accent); background: rgba(0,119,255,.08); }
.mk-dropdown.open .mk-dropdown-menu { display: block; }
.mk-dropdown-option {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--text-mute);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.mk-dropdown-option:hover { background: var(--bg-elev); color: var(--text); }
.mk-dropdown-option.selected { color: var(--accent); background: var(--accent-tint); }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 72px 1fr; }
  .side-nav { width: 72px; }
  .side-label, .side-logo-word, .side-ext { display: none; }
  .side-link { justify-content: center; padding: 12px; }
}
@media (max-width: 600px) {
  .app-shell { grid-template-columns: 1fr; }
  .side-nav { display: none; }
  .app-main { padding: 16px; }
  .page-h1 { font-size: 28px; }
  .page-h1-xl { font-size: 40px; }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

/* ============ Top bar ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 21, 22, 0.78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
}
.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.5px;
  gap: 2px;
}
.logo-mark {
  color: var(--accent);
}
.logo-dot { color: var(--accent); margin: 0 1px; }
.logo-word { color: var(--text); }

.primary-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-mute);
  font-weight: 500;
  font-size: 14px;
  transition: color .15s, transform .15s;
}
.nav-link:hover { color: var(--text-dim); transform: translateY(-2px); }
.nav-link.active { color: var(--text); }

.top-actions { display: flex; align-items: center; gap: 10px; }
.balance {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--success-tint);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
}

/* ============ Buttons (bloxmarket.io style) ============ */
.btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity .15s, background .15s, border-color .15s, transform .12s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:hover  { opacity: .85; }
.btn-primary {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent-hover);
  height: 42px;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-elev); opacity: 1; }
.btn-outline {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  height: 42px;
}
.btn-outline:hover { background: var(--bg-card); border-color: var(--accent); opacity: 1; }
.btn-tint {
  background: var(--accent-tint);
  color: var(--accent);
  border: 0;
}
.btn-success-tint {
  background: var(--success-tint);
  color: var(--success);
  border: 0;
}
.btn-lg { padding: 14px 24px; font-size: 15px; height: 48px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ============ Hero (bloxmarket.io 1:1) ============ */
.hero {
  position: relative;
  padding: 40px 24px 60px;
}
/* Two decorative PNG blobs lifted from bloxmarket.io — gives the homepage
   its signature ambient glow. */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  background-image: url('assets/bg-element_01.png');
  width: 652px;
  height: 779px;
  top: -85px;
  left: 0;
}
.hero::after {
  background-image: url('assets/bg-element_02.png');
  width: 765.5px;
  height: 551px;
  top: 208px;
  right: 0;
}
@media (max-width: 850px) {
  .hero::before, .hero::after { display: none; }
}
.hero-inner {
  max-width: 1276px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.hero-text h1 {
  font-size: 50px;
  line-height: 64px;
  margin: 0 0 16px;
  letter-spacing: -1px;
  font-weight: 500;
  color: var(--text);
}
.hero-text h1 .accent {
  color: var(--accent);
}
.hero-text p {
  font-size: 16px;
  line-height: 26px;
  color: var(--text-mute);
  margin: 0 0 24px;
  max-width: 520px;
  font-weight: 500;
}
.hero-actions { display: flex; gap: 12px; margin-bottom: 40px; }
.trust-row { display: flex; gap: 36px; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong {
  font-size: 24px;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trust-item span { font-size: 13px; color: var(--text-mute); }

/* Hero: floating item cards over a blue glow (bloxmarket.io style) */
.hero-card-stack {
  position: relative;
  height: 420px;
}
.hero-card-stack::before {
  content: '';
  position: absolute;
  right: 18%;
  bottom: 8%;
  width: 280px;
  height: 240px;
  background: var(--accent);
  filter: blur(120px);
  opacity: 0.55;
  border-radius: 50%;
  z-index: 0;
}
.hero-float {
  position: absolute;
  width: 168px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 14px;
  z-index: 1;
  transition: transform .25s ease;
}
.hero-float:hover { transform: scale(1.04); }
.hero-float .hf-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  margin-bottom: 10px;
  overflow: hidden;
}
.hero-float .hf-thumb img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0,0,0,.4)); }
.hero-float .hf-name {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-float .hf-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-top: 2px;
}
.hf1 { top: 50px; left: 8%; animation: soaring 4s ease-in-out infinite; }
.hf2 { top: 110px; right: 12%; animation: soaring 3.4s ease-in-out 0.6s infinite; }
.hf3 { bottom: 30px; left: 28%; animation: soaring 3.8s ease-in-out 1.2s infinite; }
.hf4 { bottom: 60px; right: 5%; animation: soaring 4.4s ease-in-out 0.3s infinite; width: 152px; }
@keyframes soaring {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-8px) rotate(1deg); }
}

/* Counter band (glass) — bloxmarket.io style */
.counters {
  max-width: 1400px;
  margin: -20px auto 40px;
  padding: 28px 40px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: var(--radius);
  display: flex;
  gap: 32px;
  position: relative;
  z-index: 2;
}
.counters .counter { flex: 1; min-width: 0; }
.counters .counter strong {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--text);
  line-height: 1.2;
}
.counters .counter span {
  display: block;
  color: var(--text-mute);
  font-size: 14px;
  margin-top: 4px;
}

/* Showcase ticker — horizontally scrolling row of recently sold items */
.showcase {
  max-width: 1276px;
  margin: 0 auto 28px;
  padding: 0 24px;
}
.showcase-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.showcase-head h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.showcase-head h2::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-bright);
  box-shadow: 0 0 12px var(--success-bright);
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
/* Wrapper carries the bg + border + clips the fade overlays.
   The track inside actually scrolls. */
.showcase-wrap {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.showcase-track {
  padding: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.showcase-track::-webkit-scrollbar { display: none; }
.showcase-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.showcase-track.dragging * { pointer-events: none; }
.showcase-fade-l,
.showcase-fade-r {
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.showcase-fade-l { left: 0;  background: linear-gradient(90deg, var(--bg-soft), transparent); }
.showcase-fade-r { right: 0; background: linear-gradient(270deg, var(--bg-soft), transparent); }
.showcase-row {
  display: flex;
  gap: 12px;
  width: max-content;
}
/* bloxmarket.io .showcase_item spec — 152px wide, 6px radius, no border,
   thumb + title + separator + bottom row. */
.showcase-item {
  flex-shrink: 0;
  width: 152px;
  background: var(--bg-card);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.showcase-item:hover { background: var(--bg-elev); transform: translateY(-2px); }
.showcase-item .si-thumb {
  width: 88px;
  height: 88px;
  margin: 0 auto 4px;
  background: var(--bg-soft);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  overflow: hidden;
}
.showcase-item .si-thumb img { width: 100%; height: 100%; object-fit: contain; }
.showcase-item .si-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  max-width: 128px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
/* Separator line — bloxmarket.io's .showcase_item .separator */
.showcase-item::before {
  content: '';
  display: block;
  background: var(--border-soft);
  border-radius: 12px;
  height: 1px;
  width: 100%;
  order: 2;
}
.showcase-item .si-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  line-height: 22px;
  order: 3;
}
.showcase-item .si-row .si-price { color: var(--accent); font-weight: 500; }
.showcase-item .si-row .si-when  { color: var(--text-mute); font-size: 12px; font-weight: 400; }

/* FAQ accordion (bloxmarket.io style) */
.faq-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 24px;
}
.faq-section h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -.5px;
}
.faq-acc { display: flex; flex-direction: column; gap: 8px; }
.faq-acc-item {
  background: var(--glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background .15s;
}
.faq-acc-item:hover { background: var(--glass-strong); }
.faq-acc-q {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-acc-q::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-mute);
  border-bottom: 2px solid var(--text-mute);
  transform: rotate(45deg);
  transition: transform .2s;
}
.faq-acc-item.open .faq-acc-q::after { transform: rotate(-135deg); }
.faq-acc-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  padding: 0 20px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}
.faq-acc-item.open .faq-acc-a { max-height: 200px; padding: 0 20px 16px; }

/* ============ Marketplace ============ */
.marketplace {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 60px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
}

.sidebar {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  height: fit-content;
  position: sticky;
  top: 80px;
}
.sidebar-block { margin-bottom: 22px; }
.sidebar-block:last-of-type { margin-bottom: 16px; }
.sidebar-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-mute);
  margin-bottom: 10px;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrap svg {
  position: absolute;
  left: 12px;
  color: var(--text-mute);
}
.search-wrap input {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px 10px 36px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.search-wrap input:focus { border-color: var(--accent); }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--bg-elev);
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-row input {
  flex: 1;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  width: 100%;
  -moz-appearance: textfield;
}
.price-row input::-webkit-outer-spin-button,
.price-row input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.price-row input:focus { border-color: var(--accent); }
.price-row span { color: var(--text-mute); }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
.check input { accent-color: var(--accent); width: 15px; height: 15px; }
.check:hover { color: var(--text); }

/* ============ Catalog ============ */
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.result-count { color: var(--text-dim); font-size: 14px; }
.result-count span { color: var(--text); font-weight: 600; }
.catalog-controls { display: flex; align-items: center; gap: 10px; }
.select {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}
.select:focus { border-color: var(--accent); }

.view-toggle {
  display: flex;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}
.vt {
  background: transparent;
  border: 0;
  color: var(--text-mute);
  padding: 6px 10px;
  border-radius: 7px;
  display: flex;
  align-items: center;
}
.vt.active { background: var(--accent); color: white; }

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.item-grid.list-view { grid-template-columns: 1fr; }

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}
.item-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px -10px rgba(0, 119, 255, 0.35);
}
.item-thumb {
  aspect-ratio: 1;
  background: var(--bg-elev);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.item-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.07), transparent 55%);
}
.item-thumb svg { color: rgba(255,255,255,.15); }
.item-thumb img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  z-index: 1;
}
body.theme-light .item-thumb { background: #ffffff; }
.item-thumb .item-emoji {
  font-size: 64px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.4));
  z-index: 1;
}
.item-thumb .item-img {
  width: 80% !important;
  height: 80% !important;
  z-index: 1;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.4));
}
.rarity-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 4px 8px;
  border-radius: 4px;
  color: white;
  z-index: 2;
}
.rarity-common { background: var(--rarity-common); }
.rarity-rare { background: var(--rarity-rare); }
.rarity-legendary { background: var(--rarity-legend); }
.rarity-mythic { background: var(--rarity-mythic); }
.sold-out-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,91,107,.9);
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
}

.item-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-mute);
}
.item-meta .rap { color: var(--accent-2); font-weight: 500; }
.item-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.item-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}
.item-price-sub {
  font-size: 11px;
  color: var(--text-mute);
}
.buy-btn {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent-hover);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: opacity .15s;
  cursor: pointer;
}
.buy-btn:hover { opacity: .85; }
.item-card[data-stock="0"] .buy-btn {
  background: var(--bg-elev);
  color: var(--text-mute);
  cursor: not-allowed;
}

/* List view tweaks */
.list-view .item-card {
  flex-direction: row;
  align-items: center;
}
.list-view .item-thumb {
  width: 100px;
  aspect-ratio: 1;
  flex-shrink: 0;
}
.list-view .item-body {
  flex: 1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.list-view .item-meta { gap: 24px; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}
.page-btn {
  background: var(--bg-elev);
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  min-width: 38px;
  transition: all .15s;
}
.page-btn:hover { color: var(--text); border-color: var(--accent); }
.page-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.page-dots { color: var(--text-mute); display: flex; align-items: center; padding: 0 4px; }

/* ============ Advantages (Why buy from BloxMarket) — bloxmarket.io 1:1 ============ */
.advantages {
  max-width: 1276px;
  margin: 0 auto 88px;
  padding: 0 24px;
}
.advantages-title {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -.5px;
  color: var(--text);
  margin: 0 0 32px;
  text-align: center;
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 24px;
}
.advantage {
  max-width: 232px;
}
.advantage .icon_wrapper {
  background: var(--accent-tint);
  border-radius: 4px;
  height: 48px;
  width: 48px;
  margin-bottom: 12px;
  padding: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.advantage .icon_wrapper .icon { width: 24px; height: 24px; }
.advantage .title {
  color: var(--text);
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 2px;
  font-weight: 500;
}
.advantage .description {
  color: var(--text-mute);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
}
@media (max-width: 620px) {
  .advantage { max-width: 100%; }
  .advantage .title { font-size: 20px; }
  .advantage .description { font-size: 14px; line-height: 22px; }
}

/* ============ Feedback (Trustpilot) — bloxmarket.io 1:1 ============ */
.feedback {
  max-width: 1276px;
  margin: 0 auto 88px;
  padding: 0 24px;
}
.feedback-inner {
  background-image: url('assets/feedback_bg.png');
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 8px;
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Green glow under feedback section */
.feedback-inner::before {
  content: '';
  position: absolute;
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%);
  width: 181px;
  height: 144px;
  background: var(--success);
  filter: blur(128px);
  opacity: .4;
  animation: feedback-glow 5s ease-in infinite;
  pointer-events: none;
}
@keyframes feedback-glow {
  0%, 100% { opacity: .4; }
  50%      { opacity: .25; }
}
.feedback-trustpilot {
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.tp-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.tp-star { color: var(--success); font-size: 20px; }
.tp-rating {
  color: var(--text-mute);
  font-size: 14px;
  margin-top: 4px;
}
.feedback-quote {
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
  line-height: 32px;
  margin: 16px auto 24px;
  max-width: 640px;
  position: relative;
  z-index: 1;
}
.feedback-inner .btn { position: relative; z-index: 1; }

/* ============ Old features section kept for /sell + /trades pages ============ */
.features {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 60px 24px;
}
.features-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.feature {
  text-align: left;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(124,92,255,.15);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}
.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}

/* ============ Footer ============ */
.footer {
  background: var(--bg);
  padding: 60px 24px 30px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col { display: flex; flex-direction: column; }
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-mute);
  margin: 0 0 14px;
  font-weight: 600;
}
.footer-col a {
  color: var(--text-dim);
  font-size: 14px;
  padding: 5px 0;
  transition: color .15s;
}
.footer-col a:hover { color: var(--text); }
.footer-blurb {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 280px;
}
.footer-bottom {
  max-width: 1400px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-mute);
  font-size: 13px;
}
.socials { display: flex; gap: 14px; }
.socials a {
  color: var(--text-mute);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-elev);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s;
}
.socials a:hover { color: var(--text); background: var(--accent); }

/* ============ Toast ============ */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-elev);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 36px rgba(0,0,0,.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  z-index: 100;
  max-width: 340px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-card-stack { display: none; }
  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .marketplace { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .primary-nav { display: none; }
  .hero-text h1 { font-size: 36px; }
  .topbar-inner { gap: 12px; }
}
@media (max-width: 560px) {
  .features-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; }
  .balance { display: none; }
  .btn-ghost { display: none; }
  .hero { padding: 30px 18px; }
  .hero-text h1 { font-size: 30px; }
  .trust-row { gap: 18px; }
}

/* ===================================================================
   Shared components added for multi-page expansion
   =================================================================== */

/* Icon button & user menu */
.icon-btn {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color .15s;
}
.icon-btn:hover { border-color: var(--accent); }
.notif-dot {
  position: absolute;
  top: 8px; right: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--bg);
}

.user-menu { position: relative; }
.user-btn {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 10px 5px 5px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .15s;
}
.user-btn:hover { border-color: var(--accent); }
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.user-name { color: var(--text); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  min-width: 200px;
  box-shadow: 0 12px 36px rgba(0,0,0,.5);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 100;
}
.dropdown.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}
.dropdown a:hover { background: var(--bg-elev); color: var(--text); }
.dropdown a span { font-size: 16px; }
.dropdown-sep {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 340px;
  max-height: 480px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 36px rgba(0,0,0,.5);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 100;
}
.notif-panel.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.notif-header strong { font-size: 15px; }
.link-btn {
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 0;
}
.link-btn:hover { color: var(--accent-2); }
.notif-list { overflow-y: auto; flex: 1; }
.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  transition: background .15s;
  cursor: pointer;
}
.notif-item:hover { background: var(--bg-elev); }
.notif-item.unread { background: rgba(124,92,255,.06); }
.notif-icon {
  font-size: 22px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elev);
  border-radius: 8px;
  flex-shrink: 0;
}
.notif-title { font-size: 13px; font-weight: 600; }
.notif-text  { font-size: 12px; color: var(--text-dim); margin: 2px 0 4px; }
.notif-time  { font-size: 11px; color: var(--text-mute); }

/* Page wrapper */
.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}
.page-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -.5px;
}
.page-sub {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 28px;
}
.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

/* Dashboard layout */
.dash {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 60px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
}
.dash-side {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  height: fit-content;
  position: sticky;
  top: 80px;
}
.dash-side h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: var(--text-mute);
  margin: 14px 12px 6px;
  font-weight: 600;
}
.dash-side h5:first-child { margin-top: 4px; }
.dash-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  margin: 2px 0;
  transition: background .15s, color .15s;
}
.dash-link:hover { background: var(--bg-elev); color: var(--text); }
.dash-link.active {
  background: rgba(124,92,255,.15);
  color: var(--text);
}
.dash-link svg, .dash-link span.ico { width: 18px; height: 18px; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.dash-link .badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Panel */
.panel {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.panel + .panel { margin-top: 18px; }
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -4px 0 18px;
  gap: 14px;
}
.panel-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.panel-sub { font-size: 13px; color: var(--text-mute); margin-top: 2px; }
.panel-tight { padding: 0; overflow: hidden; }

/* Stat cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stat-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(124,92,255,.08), transparent 50%);
  pointer-events: none;
}
.stat-label {
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 600;
  margin-bottom: 8px;
}
.stat-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.5px;
}
.stat-delta {
  font-size: 12px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stat-delta.up   { color: var(--success); }
.stat-delta.down { color: var(--danger); }
.stat-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 22px;
  opacity: .7;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table thead {
  background: var(--bg-elev);
}
.data-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-mute);
  font-weight: 600;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover { background: rgba(124,92,255,.04); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .mini-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.data-table .mini-thumb {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: linear-gradient(160deg, #1f2945, #131a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.data-table .mono { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 13px; color: var(--text-dim); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  border-radius: 4px;
}
.badge-success { background: rgba(46,209,139,.15); color: var(--success); }
.badge-warn    { background: rgba(255,181,71,.15); color: var(--warn); }
.badge-danger  { background: rgba(255,91,107,.15); color: var(--danger); }
.badge-info    { background: rgba(78,163,255,.15); color: var(--accent-2); }
.badge-muted   { background: var(--bg-elev); color: var(--text-mute); }
.badge-tier-Bronze   { background: rgba(180,120,80,.18); color: #cf9970; }
.badge-tier-Silver   { background: rgba(180,190,200,.15); color: #c4cedb; }
.badge-tier-Gold     { background: rgba(255,200,80,.15); color: #ffce4a; }
.badge-tier-Diamond  { background: rgba(140,200,255,.15); color: #8ac8ff; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.form-hint { font-size: 12px; color: var(--text-mute); }
.form-input,
.form-select,
.form-textarea {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
  width: 100%;
  font-family: inherit;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.input-with-prefix {
  position: relative;
}
.input-with-prefix .prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  font-size: 14px;
  pointer-events: none;
}
.input-with-prefix .form-input { padding-left: 30px; }

/* Auth card */
.auth-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 14px 50px rgba(0,0,0,.4);
}
.auth-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
}
.auth-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 24px;
}
.auth-card .form-group { margin-bottom: 16px; }
.auth-card .btn-block { padding: 13px; font-size: 15px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--text-mute);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}
.oauth-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.oauth-btn {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.oauth-btn:hover { border-color: var(--accent); }
.auth-foot {
  margin-top: 22px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}
.auth-foot a { color: var(--accent); font-weight: 600; }
.auth-foot a:hover { color: var(--accent-2); }

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 22px;
}
.tab {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tab .pill {
  margin-left: 8px;
  background: var(--bg-elev);
  color: var(--text-mute);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
}
.tab.active .pill { background: var(--accent); color: white; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-mute);
}
.empty-state .emoji { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 17px; color: var(--text); margin: 0 0 6px; }
.empty-state p  { font-size: 14px; margin: 0 0 18px; }

/* Activity feed */
.activity-feed { display: flex; flex-direction: column; }
.activity-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.activity-item:last-child { border-bottom: 0; }
.activity-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-elev);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.activity-text { flex: 1; }
.activity-title { font-size: 14px; font-weight: 500; }
.activity-meta { font-size: 12px; color: var(--text-mute); margin-top: 2px; }
.activity-value { font-size: 14px; font-weight: 600; }
.activity-value.pos { color: var(--success); }
.activity-value.neg { color: var(--danger); }

/* Two-column generic */
.two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
}
@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; }
}

/* Mini chart */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
  padding-top: 6px;
}
.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: opacity .15s;
  position: relative;
}
.chart-bar:hover { opacity: .8; }
.chart-bar::after {
  content: attr(data-label);
  position: absolute;
  bottom: -22px;
  left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  color: var(--text-mute);
}
.chart-line {
  height: 220px;
  position: relative;
  margin: 8px 0 20px;
}
.chart-line svg { width: 100%; height: 100%; }
.chart-grid line { stroke: var(--border-soft); stroke-dasharray: 3 3; }

/* Item detail page */
.item-detail {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.item-hero {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-hero-emoji {
  font-size: 200px;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.5));
}
.item-info h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.5px;
  margin: 0 0 8px;
}
.item-info-meta {
  display: flex;
  gap: 16px;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.item-info-meta strong { color: var(--text); }
.price-block {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}
.price-block .big-price {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.5px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-block .sub {
  color: var(--text-mute);
  font-size: 13px;
  margin-top: 4px;
}
.price-block .actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.price-block .actions .btn { flex: 1; padding: 12px; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.kv {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px 14px;
}
.kv-k { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .6px; }
.kv-v { font-size: 15px; font-weight: 600; margin-top: 4px; }

/* Method picker (withdraw) */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.method-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.method-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.method-card.selected {
  border-color: var(--accent);
  background: rgba(124,92,255,.08);
}
.method-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.method-name { font-weight: 600; font-size: 14px; }
.method-min { font-size: 11px; color: var(--text-mute); margin-top: 4px; }

/* Settings sections */
.settings-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
}
.settings-section:last-child { border-bottom: 0; }
.settings-section-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}
.settings-section-sub {
  color: var(--text-mute);
  font-size: 13px;
  margin: 0 0 16px;
}
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
}
.toggle-row:first-of-type { border-top: 0; }
.toggle-row strong { display: block; font-size: 14px; margin-bottom: 2px; }
.toggle-row span.t-sub { color: var(--text-mute); font-size: 12px; }
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.switch input { display: none; }
.switch .slider {
  position: absolute;
  inset: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s;
}
.switch .slider::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: var(--text-mute);
  border-radius: 50%;
  transition: transform .15s, background .15s;
}
.switch input:checked + .slider {
  background: var(--accent);
  border-color: var(--accent);
}
.switch input:checked + .slider::before {
  transform: translateX(18px);
  background: white;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 18px 60px rgba(0,0,0,.6);
}
.modal h3 { margin: 0 0 8px; font-size: 20px; }
.modal p  { color: var(--text-dim); margin: 0 0 18px; }

/* Helper text colors */
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warn    { color: var(--warn); }
.text-info    { color: var(--accent-2); }
.text-dim     { color: var(--text-dim); }
.text-mute    { color: var(--text-mute); }

/* Misc */
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.code-pill {
  background: var(--bg-elev);
  border: 1px dashed var(--accent);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 15px;
  display: inline-block;
}
.copy-btn {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.copy-btn:hover { background: var(--accent-2); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-q::after {
  content: '+';
  font-size: 22px;
  color: var(--text-mute);
  transition: transform .15s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 0 18px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}
.faq-item.open .faq-a { display: block; }

/* Cart */
.cart-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.cart-row:last-child { border-bottom: 0; }
.cart-row .mini-thumb {
  width: 64px; height: 64px;
  border-radius: 10px;
  background: linear-gradient(160deg, #1f2945, #131a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}
.cart-row .cart-info { flex: 1; min-width: 0; }
.cart-row .cart-info h4 { margin: 0 0 2px; font-size: 15px; }
.cart-row .cart-info span { font-size: 12px; color: var(--text-mute); }
.cart-row .cart-price { font-size: 16px; font-weight: 700; min-width: 90px; text-align: right; }
.cart-row .x-btn {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-mute);
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.cart-row .x-btn:hover { color: var(--danger); border-color: var(--danger); }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-dim);
}
.summary-row.total {
  border-top: 1px solid var(--border-soft);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 17px;
  color: var(--text);
  font-weight: 700;
}

/* Admin filter bar */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.filter-bar .form-input,
.filter-bar .form-select { width: auto; }
.filter-bar .form-input { min-width: 240px; flex: 1; }

/* Avatar styles in tables */
.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-cell .avatar {
  width: 32px; height: 32px;
  font-size: 14px;
  border-radius: 8px;
}
.user-cell .u-name { font-weight: 600; font-size: 14px; }
.user-cell .u-mail { font-size: 12px; color: var(--text-mute); }

/* Responsive nudges */
@media (max-width: 820px) {
  .item-detail { grid-template-columns: 1fr; }
  .user-name { display: none; }
  .notif-panel { right: 12px; width: calc(100vw - 24px); max-width: 360px; }
  .filter-bar .form-input { min-width: 0; width: 100%; }
}

/* ===================================================================
   Item quick-view modal
   =================================================================== */
.item-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.item-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.item-modal-sheet {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  max-width: 1000px;
  width: 100%;
  max-height: 92vh;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  transform: translateY(20px) scale(.97);
  transition: transform .22s cubic-bezier(.2,.9,.3,1);
  overflow: hidden;
}
.item-modal-backdrop.open .item-modal-sheet {
  transform: translateY(0) scale(1);
}
.item-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background .15s, border-color .15s, color .15s;
}
.item-modal-close:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
.item-modal-content {
  overflow-y: auto;
  padding: 32px;
  flex: 1;
}
.item-modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--text-mute);
  font-size: 14px;
}

.item-modal-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  margin-bottom: 28px;
}
.item-modal-image {
  aspect-ratio: 1;
  background: linear-gradient(160deg, #1f2945, #131a2e);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.item-modal-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.06), transparent 55%);
}
.item-modal-image img {
  width: 75%;
  height: 75%;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.5));
  z-index: 1;
}
.item-modal-image .item-emoji {
  font-size: 140px;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.5));
  z-index: 1;
}
.item-modal-image .rarity-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}
.item-modal-image .sold-out-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.item-modal-info h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.5px;
  margin: 0 0 8px;
}
.item-modal-meta {
  display: flex;
  gap: 12px;
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.item-modal-meta strong { color: var(--text); }
.item-modal-meta .dot { color: var(--text-mute); }

.item-modal-info .price-block {
  margin-bottom: 16px;
  padding: 18px;
}
.item-modal-info .price-block .big-price { font-size: 30px; }
.item-modal-info .price-block .actions .btn { padding: 11px; font-size: 14px; }

.item-modal-section + .item-modal-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.item-modal-section h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-mute);
  margin: 0 0 14px;
}
.item-modal-similar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.item-modal-sales-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.item-modal-sales-table td { padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.item-modal-sales-table tr:last-child td { border-bottom: 0; }
.item-modal-sales-table .user-cell .avatar { width: 24px; height: 24px; font-size: 11px; border-radius: 6px; }

/* ===== Listings list (per-seller rows inside item modal) ===== */
.listings-list { display: flex; flex-direction: column; gap: 8px; }
.listing-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: border-color .15s;
}
.listing-row:hover { border-color: var(--border); }
.lr-seller { display: flex; gap: 10px; align-items: center; }
.lr-seller .avatar { width: 36px; height: 36px; font-size: 14px; border-radius: 8px; }
.lr-name { color: var(--text); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.lr-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: var(--accent);
  color: white;
  font-size: 9px;
  border-radius: 50%;
}
.lr-tier {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 2px;
}
.lr-pay-icons {
  display: flex;
  gap: 6px;
  font-size: 16px;
  opacity: .85;
}
.lr-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 17px;
  min-width: 90px;
  text-align: right;
}
.lr-buy {
  height: 36px;
  padding: 0 18px;
  font-size: 13px;
}
@media (max-width: 640px) {
  .listing-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "seller price" "icons buy";
    gap: 10px;
  }
  .lr-seller { grid-area: seller; }
  .lr-pay-icons { grid-area: icons; }
  .lr-price { grid-area: price; }
  .lr-buy { grid-area: buy; }
}

/* ===== Payment view inside the item modal ===== */
.payment-hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.payment-thumb {
  width: 120px;
  height: 120px;
  background: linear-gradient(160deg, #1f2945, #131a2e);
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.payment-thumb img { width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,.4)); }
.totals-block {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  color: var(--text-dim);
}
.totals-row.total {
  border-top: 1px solid var(--border-soft);
  margin-top: 6px;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.payment-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.payment-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: border-color .15s, transform .12s, background .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.payment-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--bg-elev);
}
.payment-tile.selected {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.payment-tile .pt-icon { font-size: 28px; line-height: 1; }
.payment-tile .pt-label { font-weight: 600; font-size: 14px; }
.payment-tile .pt-sub { font-size: 11px; color: var(--text-mute); }

@media (max-width: 640px) {
  .payment-hero { grid-template-columns: 88px 1fr; gap: 14px; }
  .payment-thumb { width: 88px; height: 88px; }
}

/* Lock the page scroll while modal is open. */
body.modal-open { overflow: hidden; }

/* ===================================================================
   Global motion system — keep it tasteful, respect prefers-reduced-motion
   =================================================================== */
@keyframes ro-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ro-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ro-modal-pop {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes ro-overlay-in {
  from { background: rgba(0,0,0,0); backdrop-filter: blur(0); }
  to   { background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
}
@keyframes ro-toast-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ro-stagger-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ro-spin {
  to { transform: rotate(360deg); }
}
@keyframes ro-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}

/* (Removed: page-load fade made every navigation feel sluggish.
   Content now renders instantly; only interactions are animated.) */

/* Modal overlays + cards pop in together */
.wm-overlay.open,
.buy-overlay.open {
  animation: ro-overlay-in .18s ease both;
}
.wm-overlay.open .wm-card,
.buy-overlay.open .buy-card {
  animation: ro-modal-pop .22s cubic-bezier(.2, .8, .3, 1) both;
}

/* Toast slide-up */
.toast.show { animation: ro-toast-in .22s cubic-bezier(.2, .8, .3, 1) both; }

/* Marketplace cards: lift + shadow on hover, gentle press on click */
.mk-card, .lp-card, .recent-card {
  transition: transform .18s cubic-bezier(.2, .8, .3, 1), border-color .15s, box-shadow .18s;
}
.mk-card:hover, .lp-card:hover { transform: translateY(-3px); }
.mk-card:active, .lp-card:active { transform: translateY(-1px); }

/* Buttons: subtle press + hover */
.btn, .wm-btn, .buy-btn, .lp-btn-primary, .lp-cta-btn,
.add-balance-btn, .balance-pill, .currency-btn,
.account-btn, .btn-login, .btn-primary, .btn-add-item,
.set-save-btn, .adm-act, .admin-pill-btn,
.sset-edit-btn, .sset-green-update, .sset-purple-btn {
  transition: background .15s, color .15s, border-color .15s,
              transform .12s cubic-bezier(.2, .8, .3, 1),
              box-shadow .18s, opacity .15s;
}
.btn:active, .wm-btn:active, .buy-btn:active,
.add-balance-btn:active, .balance-pill:active,
.account-btn:active, .currency-btn:active,
.btn-login:active, .lp-btn-primary:active,
.lp-cta-btn:active, .set-save-btn:active,
.adm-act:active, .admin-pill-btn:active,
.sset-edit-btn:active, .sset-green-update:active,
.sset-purple-btn:active, .btn-add-item:active {
  transform: translateY(1px) scale(.98);
}

/* Hover-revealed card actions (heart + bell) ease in instead of snap */
.mk-card-actions { transition: opacity .2s ease, transform .2s ease; transform: translateY(-2px); }
.mk-card:hover .mk-card-actions { transform: translateY(0); }
.mk-card-action { transition: color .15s, background .15s, transform .12s; }
.mk-card-action:active { transform: scale(.92); }

/* Sidebar / top-nav active state — soft underline grow */
.top-menu-link { position: relative; }
.top-menu-link.active::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform-origin: center;
  animation: ro-fade-up .25s ease both;
}

/* Stepper "pop" when a step becomes active/done */
.buy-step.active .num,
.buy-step.done .num {
  animation: ro-modal-pop .25s cubic-bezier(.34, 1.56, .64, 1) both;
}

/* Tile selection in the account picker */
.buy-acct-tile.selected {
  animation: ro-modal-pop .18s cubic-bezier(.34, 1.56, .64, 1) both;
}

/* (Removed: grid stagger delay made the catalog visibly "pop in" piece by piece
   for ~330ms on every navigation. Cards render instantly now.) */

/* Notifications dropdown / popup-account fade-up */
.popup-account, .mk-dropdown-menu, .wm-picker-menu, .ro-popup {
  animation: ro-fade-up .15s cubic-bezier(.2, .8, .3, 1) both;
}

/* Loading spinner utility */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: ro-spin .7s linear infinite;
}
.is-loading { animation: ro-pulse 1.2s ease-in-out infinite; }

/* Admin row hover — subtle slide */
.adm-table tr {
  transition: background .15s ease, transform .15s ease;
}

/* Stat tiles — slight lift on hover so the dashboard feels alive */
.admin-stat {
  transition: transform .18s cubic-bezier(.2, .8, .3, 1), box-shadow .18s, border-color .15s;
}
.admin-stat:hover {
  transform: translateY(-2px);
  border-color: var(--border);
}

/* FAQ accordion — animate the chevron + content height transition */
.lp-acc-item .lp-acc-q svg, .sup-acc-q svg {
  transition: transform .2s ease;
}

/* ===== Top-center promo banner (drops in from the topbar) ===== */
@keyframes ro-banner-drop {
  from { opacity: 0; transform: translate(-50%, -16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.promo-drop {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  padding: 12px 18px 12px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(234, 88, 12, .4);
  font-size: 14px;
  font-weight: 600;
  max-width: min(640px, calc(100vw - 32px));
  animation: ro-banner-drop .28s cubic-bezier(.2, .8, .3, 1) both;
  text-decoration: none;
}
.promo-drop:hover { color: #ffffff; opacity: .94; }
.promo-drop .sparkle { font-size: 16px; line-height: 1; }
.promo-drop .promo-text { flex: 1; line-height: 1.3; }
.promo-drop .promo-close {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.85);
  cursor: pointer;
  padding: 4px;
  margin-left: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.promo-drop .promo-close:hover { color: #ffffff; background: rgba(255,255,255,.18); }
.promo-drop.dismissing {
  animation: ro-banner-drop .2s cubic-bezier(.4, 0, 1, 1) reverse forwards;
  pointer-events: none;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===================================================================
   ADMIN PANEL — self-contained shell, stat tiles, status badges
   =================================================================== */
body.admin {
  background: var(--bg);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text);
}
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-side {
  background: #0f1011;
  border-right: 1px solid var(--border-soft);
  padding: 18px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
body.theme-light .admin-side { background: #ffffff; }
.admin-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.admin-brand .mark {
  width: 36px; height: 36px;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.admin-brand .word { color: var(--text); font-weight: 700; font-size: 15px; letter-spacing: .5px; }
.admin-brand .tag {
  background: #dc2626; color: white;
  font-size: 10px; font-weight: 700;
  letter-spacing: .6px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}
.admin-menu { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.admin-menu-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--text-mute);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
  position: relative;
}
.admin-menu-link:hover { color: var(--text); background: var(--bg-elev); }
.admin-menu-link.active { color: var(--accent); background: var(--accent-tint); }
.admin-menu-link.active::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; background: var(--accent); border-radius: 0 3px 3px 0;
}
.admin-menu-link .count {
  margin-left: auto;
  background: var(--bg-elev);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
.admin-menu-link.active .count { background: var(--accent); color: white; }
.admin-menu-link .count.danger { background: #dc2626; color: white; }
body.theme-light .admin-menu-link:hover { background: #f3f4f6; }
body.theme-light .admin-menu-link .count { background: #f3f4f6; }

.admin-main {
  padding: 0;
  min-width: 0;
}
.admin-topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 32px;
  background: transparent;
  border-bottom: 1px solid var(--border-soft);
  min-height: 64px;
  box-sizing: border-box;
}
body.theme-light .admin-topbar { background: #ffffff; border-bottom-color: #e5e7eb; }
.admin-topbar h1 {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.admin-topbar .spacer { flex: 1; }
.admin-search {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text);
  padding: 8px 14px 8px 36px;
  border-radius: 999px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  width: 280px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14' fill='none' stroke='%239ca3af' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>");
  background-repeat: no-repeat;
  background-position: 12px center;
}
.admin-search:focus { border-color: var(--accent); }
.admin-pill-btn {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.admin-pill-btn:hover { background: var(--accent-hover); }

.admin-content { padding: 28px 32px; max-width: 1600px; margin: 0 auto; }
.admin-h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -.3px;
}
.admin-sub {
  color: var(--text-mute);
  font-size: 14px;
  margin: 0 0 22px;
}

/* ===== Admin shell inside the standard site layout ===== */
.adm-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 28px 32px 60px;
  max-width: 1600px;
  margin: 0 auto;
  align-items: start;
}
.adm-side {
  position: sticky;
  top: 88px;
  border-right: 1px solid var(--border-soft);
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adm-side-head {
  color: var(--text-mute);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px 12px;
}
.adm-side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-mute);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: inherit;
  width: 100%;
  position: relative;
}
.adm-side-link svg { flex-shrink: 0; opacity: .9; }
.adm-side-link:hover { color: var(--text); background: var(--bg-elev); }
.adm-side-link.active { color: var(--accent); background: var(--accent-tint); }
.adm-side-link .count {
  margin-left: auto;
  background: var(--bg-elev);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
  line-height: 1.4;
}
.adm-side-link.active .count { background: var(--accent); color: #ffffff; }
.adm-side-link .count.danger { background: #dc2626; color: #ffffff; }
/* Hide the count badge when the value is zero / empty / unloaded — keeps the
   sidebar quiet rather than showing red "0" pills for things that aren't an
   issue. */
.adm-side-link .count:empty,
.adm-side-link .count.zero { display: none; }

body.theme-light .adm-side-link:hover { background: #f3f4f6; }
body.theme-light .adm-side-link .count {
  background: #e5e7eb;
  color: #374151;
}
body.theme-light .adm-side-link.active {
  background: rgba(0,119,255,.08);
  color: var(--accent);
}
/* Win the specificity war: active + light theme uses the accent fill. */
body.theme-light .adm-side-link.active .count {
  background: var(--accent);
  color: #ffffff;
}
body.theme-light .adm-side-link .count.danger {
  background: #dc2626;
  color: #ffffff;
}

.adm-body { min-width: 0; }
.adm-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.adm-section-head h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -.3px;
}
.adm-section-head .spacer { flex: 1; }
.adm-search-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text);
  padding: 9px 16px 9px 38px;
  border-radius: 999px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  width: 300px;
  max-width: 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14' fill='none' stroke='%239ca3af' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>");
  background-repeat: no-repeat;
  background-position: 14px center;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.adm-search-pill::placeholder { color: var(--text-mute); }
.adm-search-pill:hover { border-color: var(--border); }
.adm-search-pill:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,119,255,.12);
}
body.theme-light .adm-search-pill { background: #ffffff; }
body.theme-light .adm-search-pill:hover { border-color: #d1d5db; }
.adm-cta {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.adm-cta:hover { background: var(--accent-hover); }
/* A heftier variant for solo "Save" buttons at the bottom of forms. */
.adm-cta.adm-cta-block {
  padding: 12px 22px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .adm-page { grid-template-columns: 1fr; padding: 20px 16px 60px; }
  .adm-side { position: static; border-right: 0; border-bottom: 1px solid var(--border-soft); padding-right: 0; padding-bottom: 12px; flex-direction: row; overflow-x: auto; gap: 4px; }
  .adm-side-head { display: none; }
  .adm-side-link { white-space: nowrap; }
}

/* User-detail dossier (clicking a user row in the Users tab) */
.adm-userdetail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-bottom: 14px;
  font-family: inherit;
}
.adm-userdetail-back:hover { color: var(--text); }
.adm-userdetail-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}
.adm-userdetail-hero .av-lg {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
}
.adm-userdetail-hero h2 {
  font-size: 22px; font-weight: 700; color: var(--text); margin: 0;
  display: flex; align-items: center; gap: 8px;
}
.adm-userdetail-hero .meta {
  color: var(--text-mute); font-size: 13px;
  margin-top: 4px;
  display: flex; gap: 16px; flex-wrap: wrap;
}
.adm-userdetail-hero .meta span strong { color: var(--text); font-weight: 600; }

.adm-userdetail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
@media (max-width: 1100px) {
  .adm-userdetail-grid { grid-template-columns: 1fr; }
}
.adm-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
}
.adm-mini-card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 8px;
}
.adm-mini-card-head h3 {
  color: var(--text); font-size: 14px; font-weight: 700; margin: 0;
  letter-spacing: .3px;
}
.adm-mini-card-head .count {
  margin-left: auto;
  color: var(--text-mute); font-size: 12px;
}
.adm-mini-list { max-height: 320px; overflow-y: auto; }
.adm-mini-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13.5px;
}
.adm-mini-row:last-child { border-bottom: 0; }
.adm-mini-row .ico { font-size: 18px; line-height: 1; }
.adm-mini-row .nm { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-mini-row .sub { color: var(--text-mute); font-size: 11.5px; margin-top: 1px; }
.adm-mini-row .right { text-align: right; }
.adm-mini-row .right .pr { color: var(--accent); font-weight: 600; }
.adm-mini-row .right .dt { color: var(--text-mute); font-size: 11px; }
.adm-mini-empty {
  color: var(--text-mute);
  font-size: 13px;
  text-align: center;
  padding: 36px 16px;
}

/* Make user table rows visually clickable */
.adm-table tr[data-clickable] { cursor: pointer; }
.adm-table tr[data-clickable]:hover .nm { color: var(--accent); }

/* Stat tiles */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
.admin-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 18px 20px;
}
body.theme-light .admin-stat { background: #ffffff; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.admin-stat .lbl {
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.admin-stat .val {
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.5px;
}
.admin-stat .delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}
.admin-stat .delta.up   { color: #16a34a; }
.admin-stat .delta.down { color: #dc2626; }
@media (max-width: 1100px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }

/* Section card with optional table */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 22px;
}
body.theme-light .admin-card { background: #ffffff; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.admin-card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.admin-card-head h3 { color: var(--text); font-size: 15px; font-weight: 700; margin: 0; }
.admin-card-head .spacer { flex: 1; }
.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-soft);
  padding: 0 12px;
}
.admin-tab {
  background: transparent; border: 0;
  color: var(--text-mute);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Admin tables */
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th {
  text-align: left;
  color: var(--text-mute);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 12px 20px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border-soft);
}
body.theme-light .adm-table th { background: #f9fafb; }
.adm-table td {
  color: var(--text);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tr:hover { background: var(--bg-elev); }
body.theme-light .adm-table tr:hover { background: #fafafa; }
.adm-user {
  display: flex; align-items: center; gap: 10px;
}
.adm-user .av {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #6b7280;
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}
.adm-user .nm { color: var(--text); font-weight: 600; font-size: 14px; }
.adm-user .em { color: var(--text-mute); font-size: 12px; }

/* Status badges */
.adm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.adm-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.adm-badge.active   { background: rgba(22,163,74,.12);  color: #16a34a; }
.adm-badge.pending  { background: rgba(245,158,11,.14); color: #d97706; }
.adm-badge.banned   { background: rgba(220,38,38,.14);  color: #dc2626; }
.adm-badge.disputed { background: rgba(249,115,22,.14); color: #ea580c; }
.adm-badge.refunded { background: rgba(107,114,128,.16); color: #4b5563; }
.adm-badge.sold     { background: rgba(0,119,255,.14);  color: var(--accent); }
.adm-badge.used     { background: rgba(0,119,255,.14);  color: var(--accent); }
.adm-badge.revoked  { background: rgba(220,38,38,.14);  color: #dc2626; }

/* Row actions */
.adm-actions { display: flex; gap: 6px; }
.adm-act {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-mute);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.adm-act:hover { color: var(--text); border-color: var(--accent); background: var(--accent-tint); }
.adm-act.danger:hover { color: #dc2626; border-color: #dc2626; background: rgba(220,38,38,.08); }
.adm-act.success:hover { color: #16a34a; border-color: #16a34a; background: rgba(22,163,74,.08); }

/* Activity feed */
.adm-feed { padding: 4px 0; }
.adm-feed-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.adm-feed-item:last-child { border-bottom: 0; }
.adm-feed-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}
.adm-feed-dot.blue  { background: var(--accent); }
.adm-feed-dot.green { background: #16a34a; }
.adm-feed-dot.red   { background: #dc2626; }
.adm-feed-dot.amber { background: #f59e0b; }
.adm-feed-msg { color: var(--text); font-size: 14px; line-height: 1.45; }
.adm-feed-msg .who { color: var(--accent); font-weight: 600; }
.adm-feed-time { color: var(--text-mute); font-size: 12px; margin-top: 2px; }

/* Settings form */
.adm-setting-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
}
.adm-setting-row:last-child { border-bottom: 0; }
.adm-setting-row h4 { color: var(--text); font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.adm-setting-row p  { color: var(--text-mute); font-size: 13px; margin: 0; }
.adm-num-input {
  width: 100px;
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  text-align: right;
}
.adm-num-input:focus { border-color: var(--accent); }
.adm-flag {
  position: relative;
  width: 42px; height: 24px;
  background: var(--bg-elev);
  border-radius: 999px;
  cursor: pointer;
}
.adm-flag::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform .15s;
}
.adm-flag.on { background: var(--accent); }
.adm-flag.on::after { transform: translateX(18px); }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 72px 1fr; }
  .admin-side { padding: 14px 6px; }
  .admin-menu-link .nm, .admin-brand .word, .admin-brand .tag { display: none; }
  .admin-menu-link { justify-content: center; padding: 12px; }
}

/* Mobile: bottom sheet style */
@media (max-width: 768px) {
  .item-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .item-modal-sheet {
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
  }
  .item-modal-content { padding: 22px; }
  .item-modal-hero { grid-template-columns: 1fr; gap: 18px; }
  .item-modal-info h1 { font-size: 22px; }
}

/* ===================================================================
   Wallet modal (Add Funds) — always light-themed, two tabs
   =================================================================== */
.wm-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}
.wm-overlay.open { display: flex; }
.wm-card {
  background: #ffffff;
  color: #0a0a0a;
  width: 100%;
  max-width: 480px;
  border-radius: 14px;
  padding: 32px 36px 36px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.wm-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 28px; height: 28px;
  background: transparent;
  border: 0;
  color: #6b7280;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
}
.wm-close:hover { background: #f3f4f6; color: #0a0a0a; }
.wm-tabs {
  display: flex;
  margin: 0 -4px 0;
  border-bottom: 1px solid #e5e7eb;
}
.wm-tab {
  flex: 1;
  background: transparent;
  border: 0;
  color: #6b7280;
  padding: 11px 0;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.wm-tab.active { color: #0077ff; border-bottom-color: #0077ff; }
.wm-title { text-align: center; font-size: 18px; font-weight: 700; color: #0a0a0a; margin: 2px 0 14px; }
.wm-balance { text-align: center; margin: 16px 0 18px; }
.wm-balance-label { display: block; font-size: 12.5px; color: #6b7280; margin-bottom: 2px; }
.wm-balance-amt { display: block; font-size: 26px; font-weight: 800; color: #0a0a0a; }
.wm-gc-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 4px; }
.wm-gc-buy { background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 12px 0; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; transition: filter .12s, transform .06s; }
.wm-gc-buy:hover { filter: brightness(.92); }
.wm-gc-buy:active { transform: scale(.97); }
.wm-gc-or { display: flex; align-items: center; gap: 10px; color: #9ca3af; font-size: 12px; margin: 18px 0 12px; }
.wm-gc-or::before, .wm-gc-or::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }
.wm-conv-row { display: flex; align-items: stretch; gap: 10px; margin: 4px 0 18px; }
.wm-conv-box { flex: 1; background: #f7f7f7; border-radius: 12px; padding: 14px 10px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.wm-conv-label { font-size: 12px; color: #6b7280; }
.wm-conv-amt { font-size: 19px; font-weight: 800; color: #0a0a0a; }
.wm-conv-sub { font-size: 11px; color: #9ca3af; }
.wm-conv-arrow { display: flex; align-items: center; color: var(--accent); font-size: 20px; font-weight: 700; }
body:not(.theme-light) .wm-conv-box { background: rgba(255,255,255,.04); }
body:not(.theme-light) .wm-conv-label { color: #9aa0a8; }
body:not(.theme-light) .wm-conv-amt { color: #ffffff; }
body:not(.theme-light) .wm-conv-sub { color: #6b7280; }
.wm-wd-head { text-align: center; margin: 2px 0 14px; }
.wm-wd-head .lbl { font-size: 13px; color: #6b7280; }
.wm-wd-head .amt { font-size: 30px; font-weight: 800; color: #0a0a0a; line-height: 1.1; margin: 3px 0; }
.wm-wd-head .sub { font-size: 12px; color: #9ca3af; }
body:not(.theme-light) .wm-wd-head .amt { color: #ffffff; }
.wm-gc-summary { background: #f7f7f7; border-radius: 12px; padding: 2px 14px; margin: 4px 0 14px; }
.wm-gc-srow { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 14px; }
.wm-gc-srow + .wm-gc-srow { border-top: 1px solid #ececec; }
.wm-gc-srow span:first-child { color: #6b7280; }
.wm-gc-srow span:last-child { font-weight: 700; color: #0a0a0a; }
.wm-gc-done { text-align: center; padding: 12px 4px 4px; }
.wm-gc-done-ico { font-size: 38px; margin-bottom: 8px; }
.wm-gc-code { font-size: 19px; font-weight: 800; letter-spacing: 2px; background: #f3f4f6; color: #0a0a0a; padding: 14px; border-radius: 12px; user-select: all; }
.wm-btn-ghost { background: transparent; border: 1px solid #d4d4d4; color: var(--text); }
body:not(.theme-light) .wm-gc-summary { background: rgba(255,255,255,.04); }
body:not(.theme-light) .wm-gc-srow + .wm-gc-srow { border-top-color: rgba(255,255,255,.07); }
body:not(.theme-light) .wm-gc-srow span:last-child { color: #ffffff; }
body:not(.theme-light) .wm-gc-code { background: rgba(255,255,255,.06); color: #ffffff; }
body:not(.theme-light) .wm-btn-ghost { border-color: rgba(255,255,255,.18); }
.wm-h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 8px;
  text-align: center;
}
.wm-sub {
  color: #6b7280;
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
  margin: 0 0 22px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.wm-label {
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}
.wm-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #0a0a0a;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.wm-input:focus { border-color: #0077ff; }
.wm-btn {
  width: 100%;
  background: #0077ff;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
  margin-top: 18px;
}
.wm-btn:hover { background: #0066dd; }
.wm-btn[disabled],
.wm-btn.disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Crypto picker */
.wm-picker {
  position: relative;
  width: 100%;
}
.wm-picker-row {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.wm-picker-row .wm-chev {
  margin-left: 4px;
  color: #6b7280;
  transition: transform .15s;
}
.wm-picker-row #wmPickerSelected {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.wm-picker.open .wm-picker-row { border-color: #0077ff; }
.wm-picker.open .wm-chev { transform: rotate(180deg); }
.wm-coin-ico {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.wm-coin-ico.btc { background: #f7931a; }
.wm-coin-ico.eth { background: #627eea; }
.wm-coin-ico.ltc { background: #345d9d; }
.wm-coin-ico.usdt { background: #26a17b; }
.wm-coin-ico.sol { background: linear-gradient(135deg, #9945ff, #14f195); }
/* Deposit method grid (Adurite-style coin picker) */
.wm-coin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wm-coin-card {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 16px 10px; border-radius: 12px;
  border: 1.5px solid #e5e7eb; background: #fff; cursor: pointer;
  transition: border-color .12s, background .12s, transform .06s;
}
.wm-coin-card:hover { border-color: var(--accent); }
.wm-coin-card:active { transform: scale(.98); }
.wm-coin-card.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, #fff); }
.wm-coin-card .wm-coin-ico { width: 38px; height: 38px; font-size: 19px; }
.wm-coin-card-name { font-size: 14px; font-weight: 600; color: #0a0a0a; }
.wm-coin-card-sub { font-size: 11.5px; color: #6b7280; }
/* "Crypto" group card (ETH/USDT) + the Back card inside the sub-view */
.wm-coin-group-icos { display: flex; align-items: center; height: 38px; }
.wm-coin-group-icos .wm-coin-ico { width: 34px; height: 34px; font-size: 17px; border: 2px solid #fff; }
.wm-coin-group-icos .wm-coin-ico:not(:first-child) { margin-left: -12px; }
body:not(.theme-light) .wm-coin-group-icos .wm-coin-ico { border-color: #14161a; }
.wm-coin-back { justify-content: center; gap: 4px; }
.wm-coin-back .wm-coin-card-name { font-size: 13px; }
.wm-coin-ico-card { background: #4b5563; color: #fff; }
body:not(.theme-light) .wm-coin-ico-card { background: #3a4150; }
.wm-link-back { background: none; border: 0; color: var(--accent); font-size: 13px; font-weight: 500; cursor: pointer; padding: 0 0 12px; display: inline-block; }
.wm-link-back:hover { text-decoration: underline; }
body:not(.theme-light) .wm-coin-card { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
body:not(.theme-light) .wm-coin-card.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
body:not(.theme-light) .wm-coin-card-name { color: #fff; }
body:not(.theme-light) .wm-coin-card-sub { color: #9aa0a8; }
.wm-coin-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.wm-coin-sym {
  color: #0a0a0a;
  font-weight: 600;
  font-size: 15px;
}
.wm-coin-net {
  background: #ffe27a;
  color: #5a4500;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  padding: 3px 7px;
  letter-spacing: .2px;
}
.wm-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  padding: 6px;
  display: none;
  max-height: 280px;
  overflow-y: auto;
  z-index: 10;
}
.wm-picker.open .wm-picker-menu { display: block; }
.wm-picker-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.wm-picker-opt:hover { background: #f3f4f6; }
.wm-picker-opt.selected { background: #eef5ff; }

/* ===== Dark theme overrides for the Wallet/Add Funds modal ===== */
body:not(.theme-light) .wm-card {
  background: #16181a;
  color: #f5f7fa;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
body:not(.theme-light) .wm-close {
  border-color: rgba(255,255,255,.12);
  color: #9aa0a8;
}
body:not(.theme-light) .wm-close:hover { background: rgba(255,255,255,.06); color: #ffffff; }
body:not(.theme-light) .wm-tabs { border-bottom-color: rgba(255,255,255,.08); }
body:not(.theme-light) .wm-tab { color: #8a929c; }
body:not(.theme-light) .wm-tab.active { color: #4ea1ff; border-bottom-color: #4ea1ff; }
body:not(.theme-light) .wm-title { color: #ffffff; }
body:not(.theme-light) .wm-balance-label { color: #9aa0a8; }
body:not(.theme-light) .wm-balance-amt { color: #ffffff; }
body:not(.theme-light) .wm-gc-or { color: #6b7280; }
body:not(.theme-light) .wm-gc-or::before, body:not(.theme-light) .wm-gc-or::after { background: rgba(255,255,255,.1); }
body:not(.theme-light) .wm-h2  { color: #ffffff; }
body:not(.theme-light) .wm-sub { color: #9aa0a8; }
body:not(.theme-light) .wm-label { color: #e5e7eb; }
body:not(.theme-light) .wm-input {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
  color: #ffffff;
}
body:not(.theme-light) .wm-input::placeholder { color: #6b7280; }
body:not(.theme-light) .wm-input:focus { border-color: #4ea1ff; }
body:not(.theme-light) select.wm-input {
  background-color: #1a1d23;
  color: #ffffff;
}
body:not(.theme-light) select.wm-input option,
body:not(.theme-light) select.wm-input optgroup {
  background-color: #1a1d23;
  color: #ffffff;
}

/* Disclaimer notice (first-visit modal) */
.bm-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: bmNoticeFade .18s ease-out;
}
@keyframes bmNoticeFade { from { opacity: 0; } to { opacity: 1; } }
.bm-notice-card {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 28px 28px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.bm-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(239,68,68,.12);
  color: #ef4444;
  margin-bottom: 14px;
}
.bm-notice-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}
.bm-notice-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 0 0 22px;
}
.bm-notice-btn {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  min-width: 140px;
  transition: background .15s;
}
.bm-notice-btn:hover { background: #dc2626; }
body:not(.theme-light) .bm-notice-card {
  background: #1a1d23;
  border-color: rgba(255,255,255,.10);
}

/* USD withdrawal modal — always light-themed for a clean, focused look. */
#usdWithdrawalModal .wm-card,
body:not(.theme-light) #usdWithdrawalModal .wm-card {
  background: #ffffff !important;
  color: #0a0a0a !important;
  max-width: 460px;
  padding: 36px 38px 32px;
  border: none;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
#usdWithdrawalModal .wm-h2,
body:not(.theme-light) #usdWithdrawalModal .wm-h2 {
  color: #0a0a0a !important;
  text-align: left !important;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 22px;
}
#usdWithdrawalModal .wm-label,
body:not(.theme-light) #usdWithdrawalModal .wm-label {
  color: #0a0a0a !important;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 10px;
}
#usdWithdrawalModal .wm-input,
body:not(.theme-light) #usdWithdrawalModal .wm-input {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #0a0a0a !important;
  border-radius: 8px;
  padding: 16px;
  font-size: 15px;
  box-shadow: none !important;
}
#usdWithdrawalModal .wm-input::placeholder { color: #9ca3af; }
#usdWithdrawalModal .wm-input:focus,
body:not(.theme-light) #usdWithdrawalModal .wm-input:focus {
  border-color: #0077ff !important;
  box-shadow: 0 0 0 3px rgba(0,119,255,.12) !important;
}
#usdWithdrawalModal select.wm-input,
body:not(.theme-light) #usdWithdrawalModal select.wm-input,
#usdWithdrawalModal select.wm-input option,
body:not(.theme-light) #usdWithdrawalModal select.wm-input option {
  background: #ffffff !important;
  color: #0a0a0a !important;
}
#usdWithdrawalModal .wm-close,
body:not(.theme-light) #usdWithdrawalModal .wm-close {
  color: #6b7280 !important;
  background: transparent !important;
}
#usdWithdrawalModal .wm-close:hover { background: #f3f4f6 !important; color: #0a0a0a !important; }
#usdWithdrawalModal .wm-btn,
body:not(.theme-light) #usdWithdrawalModal .wm-btn {
  background: #0077ff !important;
  color: #ffffff !important;
  padding: 16px !important;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  margin-top: 8px;
}
#usdWithdrawalModal .wm-btn:hover { background: #0066dd !important; }
#usdWithdrawalModal p { color: #6b7280 !important; }

/* ============================================================
   Global Login / Signup modal (injected by layout.js)
   ============================================================ */
.bm-login-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: bmNoticeFade .18s ease-out;
}
.bm-login-card {
  background: var(--bg-card);
  color: var(--text);
  width: 100%; max-width: 420px;
  border-radius: 16px;
  padding: 52px 32px 26px;   /* extra top padding leaves room for close button above tabs */
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  border: 1px solid var(--border-soft);
}
.bm-login-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(127,127,127,.10);
  border: 0;
  color: var(--text-mute);
  border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  z-index: 2;
}
.bm-login-close:hover { background: rgba(127,127,127,.18); color: var(--text); }
.bm-login-tabs {
  display: flex; gap: 4px;
  background: rgba(127,127,127,.08);
  border-radius: 10px; padding: 4px;
  margin-bottom: 22px;
}
.bm-login-tab {
  flex: 1;
  background: transparent; border: 0;
  color: var(--text-mute);
  padding: 8px 10px;
  font-size: 13px; font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.bm-login-tab.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.bm-login-title {
  font-size: 22px; font-weight: 700; margin: 0 0 6px; color: var(--text);
}
.bm-login-sub {
  color: var(--text-mute); font-size: 13.5px; line-height: 1.5;
  margin: 0 0 22px;
}
.bm-login-field { margin-bottom: 14px; }
.bm-login-field label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--text-mute); margin-bottom: 6px;
}
.bm-login-field input {
  width: 100%; box-sizing: border-box;
  background: var(--bg-elev, rgba(127,127,127,.06));
  border: 1px solid var(--border-soft);
  color: var(--text);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 14px; font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.bm-login-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,119,255,.15);
}
.bm-login-row {
  display: flex; justify-content: space-between; align-items: center;
  margin: -2px 0 16px;
}
.bm-login-check {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-mute); cursor: pointer;
}
.bm-login-check input { accent-color: var(--accent); }
.bm-login-link {
  color: var(--accent); font-size: 13px; text-decoration: none;
  font-weight: 600;
}
.bm-login-link:hover { text-decoration: underline; }
.bm-login-btn {
  width: 100%;
  background: var(--accent); color: #fff;
  border: 0; border-radius: 10px;
  padding: 13px;
  font-size: 14.5px; font-weight: 600; font-family: inherit;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.bm-login-btn:hover { background: #0066dd; }
.bm-login-btn:active { transform: scale(.98); }
.bm-login-btn[disabled] { opacity: .6; cursor: not-allowed; }
.bm-login-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-mute); font-size: 12px;
  text-transform: uppercase; letter-spacing: .05em;
  margin: 20px 0 14px;
}
.bm-login-divider::before, .bm-login-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border-soft);
}
/* (Removed a stale .bm-login-oauth button style here — it used to be a single
   OAuth button with a blue border. It's now a container holding the
   "or continue with" divider + the Google/Discord buttons, styled lower down
   (.bm-login-oauth / .bm-login-or / .bm-login-oauth-btns). The old rule forced
   the divider and buttons side-by-side inside a blue box.) */
.bm-login-foot {
  text-align: center; margin-top: 18px;
  font-size: 13px; color: var(--text-mute);
}
.bm-login-foot a { margin-left: 4px; }

body:not(.theme-light) .bm-login-card {
  background: #1a1d23;
  border-color: rgba(255,255,255,.10);
}
body:not(.theme-light) .bm-login-tabs { background: rgba(255,255,255,.04); }
body:not(.theme-light) .bm-login-tab.active { background: #2a2e36; }
body:not(.theme-light) .bm-login-field input {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
  color: #fff;
}
body:not(.theme-light) .bm-login-field input::placeholder { color: #6b7280; }

/* ============================================================
   2FA Verification modal (uses .bm-login-overlay backdrop)
   ============================================================ */
.bm-2fa-card {
  background: #ffffff;
  color: #0a0a0a;
  width: 100%; max-width: 380px;
  border-radius: 14px;
  padding: 28px 30px 24px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.bm-2fa-title {
  font-size: 18px; font-weight: 700; margin: 0 0 8px; color: #0a0a0a;
}
.bm-2fa-sub {
  color: #6b7280; font-size: 13px; line-height: 1.55;
  margin: 0 0 18px;
}
.bm-2fa-label {
  display: block; color: #0a0a0a; font-size: 13px;
  font-weight: 600; margin-bottom: 8px;
}
.bm-2fa-req { color: #ef4444; }
.bm-2fa-input {
  width: 100%; box-sizing: border-box;
  background: #ffffff; border: 1px solid #d1d5db; color: #0a0a0a;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px; font-family: inherit;
  outline: none; margin-bottom: 18px;
  letter-spacing: 1.5px;
}
.bm-2fa-input::placeholder { color: #9ca3af; letter-spacing: 0; }
.bm-2fa-input:focus {
  border-color: #0077ff;
  box-shadow: 0 0 0 3px rgba(0,119,255,.15);
}
.bm-2fa-input:disabled { opacity: .5; cursor: not-allowed; }
.bm-2fa-btn {
  width: 100%; background: #0077ff; color: #ffffff;
  border: 0; border-radius: 8px;
  padding: 12px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background .15s;
}
.bm-2fa-btn:hover { background: #0066dd; }
.bm-2fa-btn:disabled { background: #d1d5db; color: #9ca3af; cursor: not-allowed; }
.bm-2fa-resend {
  width: 100%; background: transparent; color: #0077ff;
  border: 0; padding: 10px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer;
  margin-top: 6px;
}
.bm-2fa-resend:hover { text-decoration: underline; }
body:not(.theme-light) .bm-2fa-card {
  background: #1a1d23;
  color: #e5e7eb;
  border: 1px solid rgba(255,255,255,.10);
}
body:not(.theme-light) .bm-2fa-title { color: #ffffff; }
body:not(.theme-light) .bm-2fa-sub { color: #9aa0a8; }
body:not(.theme-light) .bm-2fa-label { color: #e5e7eb; }
body:not(.theme-light) .bm-2fa-input {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
  color: #ffffff;
}
body:not(.theme-light) .bm-2fa-input::placeholder { color: #6b7280; }
body:not(.theme-light) .bm-2fa-btn:disabled {
  background: rgba(255,255,255,.10);
  color: #6b7280;
}

/* =========================================================
   Site-wide micro-animations / polish
   ========================================================= */
html { scroll-behavior: smooth; }

/* Buttons: gentle press + lift (opt-in — exclude FAQ accordions etc.) */
.btn-login, .add-balance-btn, .balance-pill, .account-btn,
.sset-edit-btn, .sset-purple-btn, .sset-green-update,
.adm-btn, .gc-btn, .mk-buy-btn, .wm-btn, .set-save-btn {
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-login:active, .add-balance-btn:active, .balance-pill:active,
.account-btn:active, .sset-edit-btn:active, .adm-btn:active, .gc-btn:active,
.mk-buy-btn:active, .wm-btn:active, .set-save-btn:active {
  transform: scale(.97);
}
.add-balance-btn:hover, .account-btn:hover, .balance-pill:hover {
  transform: translateY(-1px);
}

/* Sidebar/topbar links: subtle slide on hover */
.side-link, .top-menu a {
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.side-link:hover { transform: translateX(2px); }
.top-menu a:hover { transform: translateY(-1px); }

/* Card thumbnails: gentle zoom on hover */
.mk-card-thumb { overflow: hidden; }
.mk-card-thumb img,
.mk-card-thumb .mk-emoji {
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.mk-card:hover .mk-card-thumb img,
.mk-card:hover .mk-card-thumb .mk-emoji {
  transform: scale(1.06);
}

/* Card action icons (price-notifier bell): pop in */
.mk-card-action {
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.mk-card-action:hover { transform: scale(1.12); }
.mk-card-action:active { transform: scale(.92); }

/* Filter pills / dropdown triggers */
.flt-pill, .flt-btn, .tx-tab, .sset-link, .adm-side-link {
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.flt-pill:hover, .flt-btn:hover, .tx-tab:hover { transform: translateY(-1px); }
.flt-pill:active, .flt-btn:active, .tx-tab:active { transform: translateY(0); }

/* Inputs: glow on focus */
.wm-input, .sset-row input, .set-row-input input,
.adm-num-input, .gc-amt-input, input[type="text"], input[type="email"],
input[type="password"], input[type="number"], input[type="tel"], textarea, select {
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(0,119,255,.18);
}

/* Page content fade-up on first paint */
.app-main > main, .app-main > #shopPage, .app-main > #settingsRoot,
.app-main > #adminRoot, .app-main > .gc-page {
  animation: bmPageIn .28s ease-out both;
}
@keyframes bmPageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger marketplace cards as they enter */
.mk-grid > .mk-card {
  animation: bmCardIn .35s ease-out both;
}
.mk-grid > .mk-card:nth-child(1)  { animation-delay: 0ms; }
.mk-grid > .mk-card:nth-child(2)  { animation-delay: 30ms; }
.mk-grid > .mk-card:nth-child(3)  { animation-delay: 60ms; }
.mk-grid > .mk-card:nth-child(4)  { animation-delay: 90ms; }
.mk-grid > .mk-card:nth-child(5)  { animation-delay: 120ms; }
.mk-grid > .mk-card:nth-child(6)  { animation-delay: 150ms; }
.mk-grid > .mk-card:nth-child(7)  { animation-delay: 180ms; }
.mk-grid > .mk-card:nth-child(8)  { animation-delay: 210ms; }
.mk-grid > .mk-card:nth-child(n+9) { animation-delay: 240ms; }
@keyframes bmCardIn {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* Toggle / checkbox flip */
.sset-toggle, .sset-checkbox, .adm-flag {
  transition: background .18s ease, border-color .18s ease, transform .12s ease;
}
.sset-toggle:active, .sset-checkbox:active, .adm-flag:active { transform: scale(.94); }

/* Popups (account / notifications): slide-down */
.ro-popup {
  animation: bmPopupIn .16s ease-out both;
  transform-origin: top right;
}
@keyframes bmPopupIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Loading shimmer (for any element you give .skeleton to) */
.skeleton {
  background: linear-gradient(90deg,
    rgba(127,127,127,.10) 25%,
    rgba(127,127,127,.20) 37%,
    rgba(127,127,127,.10) 63%);
  background-size: 400% 100%;
  animation: bmShimmer 1.2s linear infinite;
  border-radius: 8px;
}
@keyframes bmShimmer {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}

/* Honour reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body:not(.theme-light) .wm-picker-row {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
}
body:not(.theme-light) .wm-picker.open .wm-picker-row { border-color: #4ea1ff; }
body:not(.theme-light) .wm-coin-sym { color: #ffffff; }
body:not(.theme-light) .wm-picker-menu {
  background: #1f2123;
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
}
body:not(.theme-light) .wm-picker-opt:hover { background: rgba(255,255,255,.06); }
body:not(.theme-light) .wm-picker-opt.selected { background: rgba(78,161,255,.14); }
body:not(.theme-light) .wm-btn.disabled,
body:not(.theme-light) .wm-btn[disabled] {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.35);
}

/* ===== Dark theme overrides for the Buy flow modal ===== */
body:not(.theme-light) .buy-card {
  background: #16181a;
  color: #f5f7fa;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
body:not(.theme-light) .buy-close,
body:not(.theme-light) .buy-back {
  border-color: rgba(255,255,255,.12);
  color: #9aa0a8;
}
body:not(.theme-light) .buy-close:hover,
body:not(.theme-light) .buy-back:hover { background: rgba(255,255,255,.06); color: #ffffff; }
body:not(.theme-light) .buy-step .num {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.18);
  color: #6b7280;
}
body:not(.theme-light) .buy-step.active .num,
body:not(.theme-light) .buy-step.done .num {
  background: #4ea1ff;
  border-color: #4ea1ff;
  color: #ffffff;
}
body:not(.theme-light) .buy-step .lbl { color: #6b7280; }
body:not(.theme-light) .buy-step.active .lbl,
body:not(.theme-light) .buy-step.done .lbl { color: #4ea1ff; }
body:not(.theme-light) .buy-step-line { background: rgba(255,255,255,.18); }
body:not(.theme-light) .buy-step.done + .buy-step-line { background: #4ea1ff; }
body:not(.theme-light) .buy-item-head { border-bottom-color: rgba(255,255,255,.08); }
body:not(.theme-light) .buy-item-thumb { background: rgba(255,255,255,.04); }
body:not(.theme-light) .buy-item-meta h3 { color: #ffffff; }
body:not(.theme-light) .buy-item-meta .meta-row { color: #9aa0a8; }
body:not(.theme-light) .buy-item-meta .meta-row strong { color: #ffffff; }
body:not(.theme-light) .buy-item-right .lbl { color: #9aa0a8; }
body:not(.theme-light) .buy-item-right .price { color: #4ea1ff; }
body:not(.theme-light) .buy-item-right .value-row { color: #9aa0a8; }
body:not(.theme-light) .buy-item-right .value-row strong { color: #ffffff; }
body:not(.theme-light) .buy-h2 { color: #ffffff; }
body:not(.theme-light) .buy-search input {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
  color: #ffffff;
}
body:not(.theme-light) .buy-search input::placeholder { color: #6b7280; }
body:not(.theme-light) .buy-check-item { color: #f5f7fa; }
body:not(.theme-light) .buy-acct-tile:hover { background: rgba(255,255,255,.05); }
body:not(.theme-light) .buy-acct-tile.selected {
  background: rgba(78,161,255,.10);
  border-color: #4ea1ff;
}
body:not(.theme-light) .buy-acct-name { color: #f5f7fa; }
body:not(.theme-light) .buy-search-hint { color: #6b7280; }
body:not(.theme-light) .buy-saved-acct {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
}
body:not(.theme-light) .buy-saved-acct .name { color: #ffffff; }
body:not(.theme-light) .buy-validation-icon {
  border-color: rgba(255,255,255,.20);
  color: rgba(255,255,255,.55);
}
body:not(.theme-light) .buy-validation h3 { color: #ffffff; }
body:not(.theme-light) .buy-validation p  { color: #9aa0a8; }
body:not(.theme-light) .buy-trade-item .thumb { background: rgba(255,255,255,.04); }
body:not(.theme-light) .buy-trade-item .meta .name { color: #ffffff; }
body:not(.theme-light) .buy-trade-item .meta .val { color: #9aa0a8; }
body:not(.theme-light) .buy-trade-item .meta .val strong { color: #ffffff; }
body:not(.theme-light) .buy-btn-secondary {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
  color: #ffffff;
}
body:not(.theme-light) .buy-btn-secondary:hover { background: rgba(255,255,255,.08); }
body:not(.theme-light) .buy-mini-head { border-bottom-color: rgba(255,255,255,.08); }
body:not(.theme-light) .buy-pay-h    { color: #ffffff; }
body:not(.theme-light) .buy-pay-row,
body:not(.theme-light) .buy-pay-row .r,
body:not(.theme-light) .buy-pay-total .l,
body:not(.theme-light) .buy-pay-total .r { color: #ffffff; }
body:not(.theme-light) .buy-pay-row .l { color: #9aa0a8; }
body:not(.theme-light) .buy-pay-total { border-top-color: rgba(255,255,255,.08); }
body:not(.theme-light) .buy-pay-legal { color: #6b7280; }
body:not(.theme-light) .buy-pay-divider { background: rgba(255,255,255,.08); }
body:not(.theme-light) .buy-pay-cc {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
}
body:not(.theme-light) .buy-pay-cc label { color: #9aa0a8; }
body:not(.theme-light) .buy-rs { background: rgba(255,255,255,.10); }

/* ===================================================================
   Buy modal (4-step purchase flow) — always light-themed
   =================================================================== */
.buy-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
  overflow-y: auto;
}
.buy-overlay.open { display: flex; }
.buy-card {
  background: #ffffff;
  color: #0a0a0a;
  width: 100%;
  max-width: 720px;
  border-radius: 14px;
  padding: 36px 44px 32px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  max-height: 92vh;
  overflow-y: auto;
}
.buy-close, .buy-back {
  position: absolute;
  top: 18px;
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.buy-close { right: 18px; }
.buy-back  { left: 18px; }
.buy-close:hover, .buy-back:hover { background: #f3f4f6; color: #0a0a0a; }

/* Stepper */
.buy-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 0 30px;
  gap: 0;
}
.buy-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.buy-step .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.buy-step .lbl {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
}
.buy-step.active .num,
.buy-step.done .num {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.buy-step.active .lbl,
.buy-step.done .lbl {
  color: var(--accent);
  font-weight: 600;
}
.buy-step-line {
  flex: 1;
  height: 1px;
  background: #d1d5db;
  margin: 14px 10px 0;
  align-self: flex-start;
}
.buy-step.done + .buy-step-line { background: var(--accent); }

/* Item header (item being purchased) */
.buy-item-head {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 8px 0 24px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 26px;
}
.buy-item-thumb {
  width: 64px; height: 64px;
  background: #f7f7f7;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  overflow: hidden;
}
.buy-item-thumb img { width: 80%; height: 80%; object-fit: contain; }
.buy-item-meta h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 8px;
}
.buy-item-meta .meta-row {
  display: flex; align-items: center; gap: 6px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}
.buy-item-meta .meta-row strong {
  color: #0a0a0a;
  font-weight: 600;
  margin-left: 4px;
}
.buy-rs {
  display: inline-flex; align-items: center;
  background: #0a0a0a;
  color: #ffffff;
  width: 18px; height: 18px;
  border-radius: 4px;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.buy-item-right {
  text-align: right;
}
.buy-item-right .lbl { color: #6b7280; font-size: 13px; margin-bottom: 4px; }
.buy-item-right .price {
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
}
.buy-item-right .value-row {
  display: inline-flex; align-items: center; gap: 6px;
  color: #6b7280;
  font-size: 13px;
}
.buy-item-right .value-row strong { color: #0a0a0a; font-weight: 600; }

/* Generic centered headers */
.buy-h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 18px;
  text-align: center;
}

/* Step 2: Select account + checklist */
.buy-search {
  position: relative;
  margin-bottom: 32px;
}
.buy-search svg {
  position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}
.buy-search input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #0a0a0a;
  padding: 14px 18px 14px 46px;
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.buy-search input:focus { border-color: var(--accent); }
.buy-checklist {
  display: flex;
  justify-content: space-around;
  gap: 18px;
  padding: 6px 0 4px;
}
.buy-check-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 500;
}
.buy-check-emoji {
  font-size: 44px;
  line-height: 1;
}
.buy-check-item .info-q {
  color: var(--accent);
  font-weight: 600;
  cursor: help;
}

/* Step 1: Seller picker — pick which seller to buy this item from */
/* Grouped vendor picker (Crypto / Balance / Wallet) — collapsible */
.buy-group {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #ffffff;
  overflow: hidden;
}
.buy-group-head {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  font-family: inherit;
  font-weight: 700; font-size: 15px; color: #0a0a0a;
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
}
.buy-group-head:hover { background: rgba(0,0,0,.02); }
.buy-group-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(247,147,26,.14); color: #f7931a;
  flex-shrink: 0;
}
.buy-group-title { flex: 1; }
.buy-group-from {
  font-weight: 500; color: #6b7280; font-size: 14px;
}
.buy-group-from strong { color: #0a0a0a; font-weight: 700; margin-left: 8px; }
.buy-group-usd { color: #9ca3af; font-size: 11px; font-weight: 600; margin-left: 4px; }
.buy-group-chev {
  color: #9ca3af;
  transition: transform .2s ease;
  flex-shrink: 0;
  margin-left: 4px;
}
.buy-group.open .buy-group-chev { transform: rotate(90deg); }
.buy-group-body {
  display: none;
  padding: 0 16px 8px;
  border-top: 1px solid #e5e7eb;
}
.buy-group.open .buy-group-body { display: block; }
.buy-group-cols {
  display: grid;
  grid-template-columns: 18px 1fr 90px 110px;
  gap: 14px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .4px;
  color: #9ca3af; padding: 0 4px 6px;
  border-bottom: 1px dashed #e5e7eb;
}
.buy-group-cols span:nth-child(2) { padding-left: 4px; }
.buy-group-cols span:nth-child(3) { text-align: center; }
.buy-group-cols span:nth-child(4) { text-align: right; }
.buy-sellers {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 8px;
  padding-right: 0;
}
.buy-seller-row {
  display: grid;
  grid-template-columns: 18px 1fr 90px 110px;
  gap: 14px;
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 10px 4px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.buy-seller-row:hover { background: #f9fafb; }
.buy-seller-row.selected { background: rgba(239,68,68,.08); }
.buy-seller-radio {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #d1d5db; box-sizing: border-box;
}
.buy-seller-row.selected .buy-seller-radio {
  border-color: #ef4444;
  background: radial-gradient(circle, #ef4444 0 4px, transparent 5px);
}
.buy-seller-sales { color: #6b7280; font-size: 13px; text-align: center; }
.buy-seller-ccy { color: #9ca3af; font-size: 11px; font-weight: 600; margin-left: 4px; }
.buy-seller-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #6b7280;
  color: white;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  text-transform: uppercase;
}
.buy-seller-meta {
  display: flex; flex-direction: column; gap: 4px;
  line-height: 1.1;
  min-width: 0;
}
.buy-seller-name {
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.buy-seller-name .buy-seller-visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 4px;
  background: var(--bg-elev);
  color: var(--text-mute);
  text-decoration: none;
  margin-left: 2px;
  transition: background .12s, color .12s;
}
.buy-seller-name .buy-seller-visit:hover { background: var(--accent-tint); color: var(--accent); }
body:not(.theme-light) .buy-seller-name .buy-seller-visit { background: rgba(255,255,255,.06); color: #9aa0a8; }
body:not(.theme-light) .buy-seller-name .buy-seller-visit:hover { background: rgba(78,161,255,.18); color: #4ea1ff; }

.buy-seller-name .vchk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #0077ff;
  color: white;
}
.buy-seller-pay {
  color: #6b7280;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.buy-seller-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}
.buy-seller-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent;
}
.buy-seller-row.selected .buy-seller-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
body:not(.theme-light) .buy-group {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.10);
}
body:not(.theme-light) .buy-group-head:hover { background: rgba(255,255,255,.04); }
body:not(.theme-light) .buy-group-body { border-top-color: rgba(255,255,255,.08); }
body:not(.theme-light) .buy-group-head { color: #ffffff; }
body:not(.theme-light) .buy-group-from { color: #9aa0a8; }
body:not(.theme-light) .buy-group-from strong { color: #ffffff; }
body:not(.theme-light) .buy-group-cols { color: #6b7280; border-bottom-color: rgba(255,255,255,.08); }
body:not(.theme-light) .buy-seller-row { background: transparent; border: none; }
body:not(.theme-light) .buy-seller-row:hover { background: rgba(255,255,255,.05); border-color: transparent; }
body:not(.theme-light) .buy-seller-row.selected {
  background: rgba(239,68,68,.12);
  border-color: transparent;
}
body:not(.theme-light) .buy-seller-name { color: #ffffff; }
body:not(.theme-light) .buy-seller-sales { color: #9aa0a8; }
body:not(.theme-light) .buy-seller-ccy { color: #6b7280; }

/* Verified checkmark badge — used on cards, modal header, and admin tables */
.verified-chk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #0077ff;
  color: #ffffff;
  vertical-align: middle;
  margin-left: 4px;
}

/* Step 2: Account picker grid */
.buy-accounts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 18px;
}
.buy-acct-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 6px;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
}
.buy-acct-tile:hover { background: #f7f7f7; }
.buy-acct-tile.selected { border-color: var(--accent); background: #eef5ff; }
.buy-acct-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  background: #6b7280;
  flex-shrink: 0;
  overflow: hidden;
}
.buy-acct-name {
  color: #0a0a0a;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  word-break: break-all;
  max-width: 100%;
}
.buy-search-hint {
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
  padding: 28px 12px 8px;
}

/* Saved account card */
.buy-saved-acct {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  max-width: 460px;
  margin: 0 auto;
}
.buy-saved-acct .name {
  color: #0a0a0a;
  font-size: 16px;
  font-weight: 600;
}

/* Buyer delivery-account username search (RO.Place-style avatar grid) */
.buy-user-search { position: relative; max-width: 560px; margin: 0 auto; }
.buy-user-search-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-mute); pointer-events: none; display: flex;
}
.buy-user-search .buy-user-input { padding-left: 44px; }

.buy-user-state { min-height: 4px; }
.buy-user-loading { display: flex; justify-content: center; padding: 38px 0; }
.buy-user-spin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(128,128,128,.25); border-top-color: var(--accent, #0a84ff);
  animation: buy-user-spin .7s linear infinite;
}
@keyframes buy-user-spin { to { transform: rotate(360deg); } }
.buy-user-empty, .buy-user-err { text-align: center; padding: 30px 0; color: var(--text-mute); font-size: 14px; }
.buy-user-err { color: #dc2626; }

.buy-user-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 18px 8px; margin-top: 18px; max-height: 300px; overflow-y: auto; padding: 2px;
}
.buy-user-cell {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: none; border: 0; cursor: pointer; padding: 8px 2px; border-radius: 10px;
  color: var(--text);
}
.buy-user-cell:hover { background: rgba(128,128,128,.12); }
.buy-user-av { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.buy-user-av img { width: 100%; height: 100%; object-fit: contain; }
.buy-user-nm { font-size: 12px; line-height: 1.25; text-align: center; word-break: break-word; max-width: 92px; }

.buy-use-different {
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin: 18px auto 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-family: inherit;
}
.buy-use-different:hover { text-decoration: underline; }

/* Validation error */
.buy-validation {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 20px 16px;
}
.buy-validation-icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 3px solid #9ca3af;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.buy-validation h3 {
  font-size: 22px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 12px;
}
.buy-validation p {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
  max-width: 360px;
  line-height: 1.55;
}

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

/* Step 3: Trade question */
.buy-trade-row {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 16px;
  align-items: center;
  padding: 24px 0 32px;
}
.buy-trade-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.buy-trade-item.right { flex-direction: row-reverse; text-align: right; }
.buy-trade-item .thumb {
  width: 52px; height: 52px;
  background: #f7f7f7;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  overflow: hidden;
}
.buy-trade-item .thumb img { width: 100%; height: 100%; object-fit: contain; }
body:not(.theme-light) .buy-trade-item .thumb img { mix-blend-mode: normal; }
.buy-trade-item .meta .name {
  color: #0a0a0a;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.buy-trade-item .meta .val {
  color: #6b7280;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.buy-trade-item.right .meta .val { justify-content: flex-end; }
.buy-trade-item .meta .val strong { color: #0a0a0a; font-weight: 600; }
.buy-trade-arrow {
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}

/* Trade-offer picker (step 3) */
.buy-trade-q { font-size: 24px; font-weight: 700; color: #c4c8cf; }
body:not(.theme-light) .buy-trade-q { color: #5b626b; }
.buy-trade-pick-h {
  font-size: 13px; font-weight: 600; color: #6b7280;
  margin: 4px 0 10px; display: flex; gap: 6px; align-items: baseline;
}
.buy-trade-pick-h span { font-weight: 500; color: #9aa0a8; }
body:not(.theme-light) .buy-trade-pick-h { color: #c8ccd2; }
.buy-trade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  max-height: 280px; overflow-y: auto;
  padding: 2px; margin-bottom: 20px;
}
.buy-trade-cell {
  position: relative;
  border: 1.5px solid var(--border, #e6e7ea);
  background: var(--bg-elev, #fff);
  border-radius: 12px;
  padding: 10px 8px 8px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: border-color .12s, background .12s, transform .06s;
}
.buy-trade-cell:hover { border-color: var(--accent); }
.buy-trade-cell:active { transform: scale(.97); }
.buy-trade-cell.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
body:not(.theme-light) .buy-trade-cell { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.buy-trade-cell-thumb {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; overflow: hidden; border-radius: 8px;
}
.buy-trade-cell-thumb img { width: 100%; height: 100%; object-fit: contain; }
.buy-trade-cell-nm {
  font-size: 12px; font-weight: 600; line-height: 1.25;
  color: var(--text, #0a0a0a);
  text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.buy-trade-cell-rap { font-size: 11px; color: #6b7280; display: flex; align-items: center; gap: 3px; }
.buy-trade-cell-check {
  position: absolute; top: 6px; right: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: none; align-items: center; justify-content: center;
}
.buy-trade-cell.sel .buy-trade-cell-check { display: flex; }
.buy-trade-loading { display: flex; justify-content: center; padding: 36px 0; }
.buy-trade-loading .buy-user-spin { width: 30px; height: 30px; }
.buy-trade-none {
  text-align: center; color: #6b7280; font-size: 13px; line-height: 1.55;
  padding: 22px 10px; margin-bottom: 8px;
}
.buy-trade-none strong { color: var(--text, #0a0a0a); }
.buy-mini-head--solo { justify-content: center; }
.buy-mini-head--solo .buy-trade-item { justify-content: center; }
.buy-btn:disabled, .buy-btn.is-disabled { opacity: .45; cursor: not-allowed; }

/* Buttons */
.buy-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 10px;
}
.buy-btn-primary { background: var(--accent); color: #ffffff; }
.buy-btn-primary:hover { background: var(--accent-hover); }
.buy-btn-secondary {
  background: #ffffff;
  color: #0a0a0a;
  border: 1px solid #e5e7eb;
}
.buy-btn-secondary:hover { background: #f9fafb; }
.buy-btn-crypto {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
}
.buy-btn-crypto:hover { opacity: .92; }

/* Step 4: Payment overview */
.buy-pay-h {
  font-size: 22px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 18px 0 22px;
  text-align: center;
}
.buy-pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: #0a0a0a;
  font-size: 15px;
}
.buy-pay-row .l { color: #4b5563; font-weight: 500; }
.buy-pay-row .r { color: #0a0a0a; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.buy-pay-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid #e5e7eb;
  margin-top: 8px;
}
.buy-pay-total .l { font-size: 18px; font-weight: 600; color: #0a0a0a; }
.buy-pay-total .r { font-size: 26px; font-weight: 700; color: #0a0a0a; }
.buy-pay-legal {
  color: #6b7280;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
  padding: 16px 0 8px;
}
.buy-pay-legal a { color: var(--accent); text-decoration: none; }
.buy-pay-legal a:hover { text-decoration: underline; }
.buy-pay-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 22px 0;
}
.buy-pay-cc {
  display: flex; align-items: center; gap: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  position: relative;
}
.buy-pay-cc .chev { margin-left: auto; color: #6b7280; }
.buy-pay-cc label { color: #6b7280; font-size: 13px; font-weight: 500; }
/* "Select Cryptocurrency" heading sits OUTSIDE .buy-pay-cc, so it needs its own
   theme-aware colour — it previously had an inline #0a0a0a that was invisible on
   the dark card. */
.buy-cc-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: #6b7280; }
body:not(.theme-light) .buy-cc-label { color: #9aa0a8; }
/* "Add funds with crypto" hint under Pay With Wallet — crypto funds the wallet,
   it isn't a per-order payment. */
.buy-pay-topup { margin: 14px 0 0; text-align: center; font-size: 12.5px; line-height: 1.5; color: #6b7280; }
body:not(.theme-light) .buy-pay-topup { color: #9aa0a8; }
.buy-pay-topup a { color: var(--accent); text-decoration: none; font-weight: 500; }
.buy-pay-topup a:hover { text-decoration: underline; }

/* Mini item header (used at top of overview step) */
.buy-mini-head {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 16px;
  align-items: center;
  padding: 4px 0 22px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .buy-card { padding: 28px 22px; }
  .buy-step .lbl { font-size: 12px; }
  .buy-step-line { margin: 14px 6px 0; }
  .buy-item-head { grid-template-columns: 48px 1fr; row-gap: 12px; }
  .buy-item-thumb { width: 48px; height: 48px; }
  .buy-item-right { grid-column: 1 / -1; text-align: left; }
  .buy-trade-row, .buy-mini-head { grid-template-columns: 1fr 40px 1fr; }
  .buy-checklist { gap: 8px; }
  .buy-check-emoji { font-size: 36px; }
}

/* ===================================================================
   SELLER PAGES — dashboard / transactions / my-shop / price-notifier
   =================================================================== */
.dash-page { padding: 24px 32px 60px; max-width: 1400px; margin: 0 auto; }
.dash-h1 {
  font-size: 44px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 28px;
  letter-spacing: -.5px;
}
.dash-h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -.3px;
}
.dash-h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 16px;
}
.dash-overview {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 24px;
}
.dash-overview b, .dash-overview strong { color: var(--text); }
.dash-overview .num { color: #16a34a; font-weight: 600; }
.dash-graph-note {
  color: var(--text-mute);
  font-size: 14px;
  margin: 0 0 32px;
}

/* Horizontal tab bar (Transaction Center) */
.tx-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border-radius: 10px 10px 0 0;
  padding: 0 6px;
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.tx-tab {
  flex: 1;
  text-align: center;
  background: transparent;
  border: 0;
  color: var(--text-mute);
  padding: 18px 10px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .8px;
  font-family: inherit;
  cursor: pointer;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  min-width: 160px;
}
.tx-tab:hover { color: var(--text); }
.tx-tab.active { color: var(--accent); border-bottom-color: var(--accent); background: var(--bg-card); }
body.theme-light .tx-tabs { background: #ffffff; border-bottom-color: #e5e7eb; }
body.theme-light .tx-tab.active { background: #ffffff; }

/* Data table (transactions / orders / withdrawals) */
.dt-wrap { background: var(--bg-card); border-radius: 0 0 10px 10px; padding: 0 6px 6px; }
body.theme-light .dt-wrap { background: transparent; padding: 0; }
.dt {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.dt th {
  text-align: left;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 18px 20px;
  background: transparent;
  border-bottom: 1px solid var(--border-soft);
}
.dt td {
  color: var(--text);
  padding: 22px 20px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.dt tr:last-child td { border-bottom: 0; }
.dt .dt-img {
  width: 64px;
  height: 64px;
  background: #0a0a0a;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
body.theme-light .dt .dt-img { background: #0a0a0a; }
.dt .dt-itemname { color: #16a34a; font-weight: 500; }
.dt .dt-itemsub { color: var(--text); font-size: 13px; margin-top: 2px; }
.dt .dt-gross { color: #16a34a; font-weight: 500; }
.dt .dt-fee { color: #dc2626; font-weight: 500; }
.dt .dt-profit { color: #16a34a; font-weight: 500; }
.dt .dt-buyer-name { color: var(--accent); font-weight: 500; }
.dt .dt-buyer-meta { color: var(--text-dim); font-size: 13px; margin-top: 2px; }
.dt .dt-time { color: var(--text-dim); font-size: 13px; white-space: nowrap; }

/* My Shop page */
.shop-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--border-soft);
}
.shop-head h1 { font-size: 30px; font-weight: 700; color: var(--text); margin: 0; }
.shop-stocked {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 22px 0 6px;
}
.shop-stocked .robux { color: #16a34a; }
.shop-stats {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.9;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 24px;
}
.shop-stats b { color: var(--text); }
.shop-filter-row {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1fr 1fr auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}
.shop-filter-field { display: flex; flex-direction: column; gap: 6px; }
.shop-filter-field label {
  color: var(--text-mute);
  font-size: 12.5px;
  font-weight: 500;
}
.shop-filter-field select,
.shop-filter-field input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 6px 20px 6px 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.shop-filter-field select {
  /* Custom chevron — the default native one is hidden by `appearance: none`. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14' fill='none' stroke='%239ca3af' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
.shop-filter-field select option {
  background: var(--bg-card);
  color: var(--text);
}
.shop-filter-field select:focus,
.shop-filter-field input:focus { border-bottom-color: var(--accent); }
.shop-filter-check {
  display: flex; align-items: center; gap: 8px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  padding-bottom: 4px;
}
.shop-filter-check input { display: none; }
.shop-filter-check .cbox {
  width: 22px; height: 22px;
  background: #16a34a;
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
}
.shop-filter-check input:not(:checked) + .cbox { background: transparent; border: 2px solid var(--border-soft); }
.shop-filter-check input:not(:checked) + .cbox svg { display: none; }
.shop-search {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  margin-bottom: 28px;
}
.shop-search:focus { border-color: var(--accent); }
.shop-empty {
  text-align: center;
  padding: 40px 20px 80px;
}
.shop-empty-art {
  max-width: 520px;
  margin: 0 auto;
  color: var(--text);
}
.shop-empty-msg {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-top: 8px;
}

/* Price Notifier page */
.pn-page { padding: 24px 32px 60px; max-width: 1400px; margin: 0 auto; }
.pn-h1 {
  font-size: 44px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: -.5px;
  line-height: 1.05;
}
.pn-sub { color: var(--text-dim); font-size: 15px; margin: 0 0 26px; line-height: 1.5; }
.pn-search {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.pn-empty {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  padding: 200px 0;
}

/* ===== Seller Settings (vertical sub-nav + tabbed content) ===== */
.sset-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  padding: 24px 32px 60px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}
.sset-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border-soft);
  padding-right: 24px;
}
.sset-link {
  text-align: right;
  background: transparent;
  border: 0;
  color: var(--text-mute);
  font-size: 22px;
  font-weight: 600;
  font-family: inherit;
  padding: 10px 18px 10px 0;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  display: block;
}
.sset-link:hover { color: var(--text); }
.sset-link.active {
  color: var(--accent);
}
.sset-link.active::after {
  content: '';
  position: absolute;
  right: -25px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.sset-body { min-width: 0; }
.sset-h1 { font-size: 28px; font-weight: 700; color: var(--text); margin: 0 0 22px; }
.sset-row {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.sset-row-label {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  flex-shrink: 0;
}
.sset-row-spacer { flex: 1; }
.sset-row-value {
  color: var(--text-dim);
  font-size: 14px;
}
.sset-edit-btn {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.sset-edit-btn:hover { background: var(--accent-hover); }
.sset-edit-btn.disabled { background: var(--bg-elev); color: var(--text-mute); cursor: not-allowed; }
.sset-toggle {
  position: relative;
  width: 44px; height: 24px;
  background: var(--bg-elev);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s;
}
.sset-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform .15s;
}
.sset-toggle.on { background: var(--accent); }
.sset-toggle.on::after { transform: translateX(20px); }
.sset-bal-sub {
  color: var(--text-mute);
  font-size: 12px;
  margin-top: 4px;
  text-align: right;
}

/* Shop tab */
.sset-shop-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}
.sset-shop-row:last-of-type { border-bottom: 0; }
.sset-shop-row h3 { color: var(--text); font-size: 17px; font-weight: 700; margin: 0 0 4px; display: flex; align-items: center; gap: 6px; }
.sset-shop-row p { color: var(--text-dim); font-size: 14px; margin: 0; }
.sset-shop-row .info-i {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.sset-checkbox {
  width: 22px; height: 22px;
  border: 2px solid var(--border-soft);
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
}
.sset-checkbox.checked { background: #16a34a; border-color: #16a34a; color: white; }
.sset-checkbox.checked::after { content: '✓'; font-weight: 700; font-size: 14px; }
.sset-purple-btn {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  color: white;
  border: 0;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.sset-purple-btn:hover { opacity: .92; }
.sset-green-update {
  width: 100%;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border: 0;
  padding: 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 22px;
  box-shadow: 0 4px 12px rgba(34,197,94,.25);
}
.sset-green-update:hover { opacity: .95; }
.sset-itemprice-dd {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 24px 6px 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  position: relative;
}

/* Accounts tab */
.sset-warn {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-radius: 10px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.sset-warn-bolt {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
}
.sset-acc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sset-acc-card,
.sset-acc-add {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 16px 18px;
}
.sset-acc-card {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sset-acc-avatar {
  width: 44px; height: 44px;
  background: var(--bg-elev);
  border-radius: 50%;
  font-size: 11px;
  color: var(--text-mute);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  flex-shrink: 0;
}
.sset-acc-info { flex: 1; min-width: 0; }
.sset-acc-name { color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.sset-acc-flags { display: flex; gap: 14px; }
.sset-acc-flag { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 13px; }
.sset-acc-actions { display: flex; gap: 10px; align-items: center; }
.sset-acc-actions a { display: inline-flex; }
.sset-acc-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.sset-acc-add:hover { background: var(--bg-elev); }

@media (max-width: 800px) {
  .sset-shell { grid-template-columns: 1fr; }
  .sset-side { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--border-soft); padding-right: 0; padding-bottom: 12px; }
  .sset-link { text-align: left; padding: 8px 14px; font-size: 16px; }
  .sset-link.active::after { display: none; }
  .shop-filter-row { grid-template-columns: 1fr 1fr; }
  .sset-acc-grid { grid-template-columns: 1fr; }
  /* Stack each row: label on its own line, controls beneath it — left-aligned.
     The flex:1 spacer otherwise shoves controls to the far edge, leaving a big
     empty gap (most obvious on the Profile Picture / Email rows). */
  .sset-row { flex-wrap: wrap; row-gap: 10px; }
  .sset-row > .sset-row-label { flex-basis: 100%; }
  .sset-row-spacer { display: none; }
}

/* ============================================================
   Page navigation transition.
   Opacity-only fade on load, plus a quick fade-out on link click
   (layout.js adds `.bm-page-leaving`).
   IMPORTANT: do NOT animate `transform` on <body>. Any non-none
   transform on body creates a new containing block, which makes
   `position: fixed; inset: 0` modals size to body height instead
   of viewport height — centered modal cards then land off-screen
   on long pages. Stick to opacity here.
   ============================================================ */
@keyframes bmPageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body {
  animation: bmPageIn .15s ease-out both;
}
body.bm-page-leaving {
  opacity: 0;
  transition: opacity .09s ease-in;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  body.bm-page-leaving { transition: none; opacity: 1; }
}

/* ============================================================
   Order history table (history.html)
   ============================================================ */
.hist-table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: 14px; }
.hist-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hist-table thead th {
  text-align: left; padding: 14px 16px; font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-mute); border-bottom: 1px solid var(--border-soft);
  background: var(--bg-card);
}
.hist-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border-soft); color: var(--text); }
.hist-table tbody tr:last-child td { border-bottom: 0; }
.hist-table tbody tr:hover { background: var(--bg-card); }
.hist-id { font-family: Consolas, monospace; font-size: 12.5px; color: var(--text-mute); }
.hist-item { display: flex; align-items: center; gap: 10px; }
.hist-thumb { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; border-radius: 8px; background: var(--bg-elev); overflow: hidden; }
.hist-thumb img { width: 100%; height: 100%; object-fit: contain; }
.hist-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.hist-ok      { background: rgba(22,163,74,.14);  color: #16a34a; }
.hist-pending { background: rgba(0,119,255,.12);   color: #4ea1ff; }
.hist-warn    { background: rgba(245,158,11,.14);  color: #f59e0b; }
.hist-bad     { background: rgba(220,38,38,.14);   color: #dc2626; }

/* ============================================================
   Create-listing modal (my-shop.html)
   ============================================================ */
.list-results { max-height: 220px; overflow-y: auto; margin-top: 6px; border-radius: 10px; }
.list-result {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
  background: transparent; border: 0; border-radius: 8px; cursor: pointer; color: var(--text); font-size: 14px;
}
.list-result:hover { background: var(--bg-elev); }
.list-chosen-row { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--bg-elev); border-radius: 10px; }
.list-chosen-thumb { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; border-radius: 8px; background: var(--bg-card); overflow: hidden; flex-shrink: 0; }
.list-chosen-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* ============================================================
   Social login buttons (login modal)
   ============================================================ */
.bm-login-oauth { margin-top: 16px; }
.bm-login-or { display: flex; align-items: center; gap: 12px; color: var(--text-mute); font-size: 12.5px; margin-bottom: 12px; }
.bm-login-or::before, .bm-login-or::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }
.bm-login-oauth-btns { display: flex; gap: 10px; }
.bm-oauth-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border: 1px solid var(--border-soft); border-radius: 10px;
  background: var(--bg-card); color: var(--text); font-weight: 600; font-size: 14px;
  cursor: pointer; text-decoration: none; transition: border-color .15s, background .15s;
}
.bm-oauth-btn:hover { border-color: var(--accent); background: var(--bg-elev); }

/* ============================================================
   Admin "Add limited" modal
   ============================================================ */
.adm-modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.55);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.adm-modal-overlay.open { display: flex; }
.adm-modal {
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 14px;
  width: 100%; max-width: 440px; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.adm-modal h2 { margin: 0 0 16px; font-size: 19px; color: var(--text); }
.adm-modal-label { display: block; font-size: 12.5px; color: var(--text-mute); margin: 12px 0 5px; font-weight: 600; }
.adm-modal-input {
  width: 100%; box-sizing: border-box; background: var(--bg-elev);
  border: 1px solid var(--border-soft); border-radius: 9px; padding: 9px 12px;
  color: var(--text); font-size: 14px; font-family: inherit; outline: none;
}
.adm-modal-input:focus { border-color: var(--accent); }

/* ============================================================
   Themed confirm / prompt dialog (window.bmConfirm / bmPrompt)
   ============================================================ */
.bm-dialog-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: bmDialogFade .12s ease;
}
@keyframes bmDialogFade { from { opacity: 0; } to { opacity: 1; } }
.bm-dialog {
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: 14px; width: 100%; max-width: 400px; padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.bm-dialog-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--text); }
.bm-dialog-msg { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-mute); white-space: pre-line; }
.bm-dialog-input {
  width: 100%; box-sizing: border-box; margin-top: 14px;
  background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: 9px;
  padding: 10px 12px; color: var(--text); font-size: 14px; font-family: inherit; outline: none;
}
.bm-dialog-input:focus { border-color: var(--accent); }
.bm-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.bm-dialog-btn {
  padding: 9px 18px; border-radius: 9px; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, border-color .15s, opacity .15s;
}
.bm-dialog-btn.cancel { background: transparent; border-color: var(--border-soft); color: var(--text); }
.bm-dialog-btn.cancel:hover { background: var(--bg-elev); }
.bm-dialog-btn.ok { background: var(--accent); color: #fff; }
.bm-dialog-btn.ok:hover { background: var(--accent-hover); }
.bm-dialog-btn.danger { background: #dc2626; color: #fff; }
.bm-dialog-btn.danger:hover { background: #b91c1c; }

/* ============================================================
   Global mobile polish (phones). Scales oversized headings,
   tightens spacing, and keeps wide content from overflowing.
   ============================================================ */
@media (max-width: 600px) {
  /* Big display headings → readable on a phone. */
  .history-h1, .set-head h1, .sset-h1, .dash-h1, .doc-h1,
  .page-h1-xl, .page-title, .lp-hero-left h1, .hero-text h1, body.landing .hero-text h1 {
    font-size: 28px !important;
    line-height: 1.18 !important;
    letter-spacing: -.5px;
  }
  .page-subtitle, .history-sub, .doc-lead { font-size: 14px; }

  /* Limiteds blue hero banner — was 36px with 44px side padding, far too
     cramped on a phone (lines overlapped). Scale it down + breathe. */
  .buy-banner { padding: 22px 18px; }
  .buy-banner h1 { font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
  .buy-banner p { font-size: 14px; line-height: 1.5; }

  /* Discord promo: the fixed top-center pill overlapped the hero. Drop it
     into normal document flow so it sits cleanly above the content. */
  .promo-drop {
    position: static !important;
    transform: none !important;
    left: auto; top: auto;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 16px;
    justify-content: center;
  }

  /* Page section padding */
  .history-page, .dash-page, .doc-wrap, .support-head { padding-left: 16px; padding-right: 16px; }

  /* Tables that aren't already wrapped: let them scroll horizontally
     instead of stretching the page. */
  .dt-wrap, .adm-table-wrap, .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .adm-table, .dt, .data-table { min-width: 560px; }

  /* Modals: use the full width minus the overlay padding. */
  .wm-card, .bm-login-card, .bm-2fa-card, .bm-notice-card, .ro-popup {
    max-width: 100%;
  }

  /* Tighter card grids so single-column cards aren't oversized. */
  .mk-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .item-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }

  /* Account/popup menus shouldn't exceed the screen. */
  .ro-popup { max-width: calc(100vw - 16px); }

  /* Landing hero: tighter spacing; the CTA stays a centered pill (RO.Place
     style) — the .lp-hero text-align:center handles the centering. */
  .lp-hero-left p { margin-bottom: 22px; font-size: 15px; }
}
