/* Cardmarket — base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Helvetica Neue', Arial, 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  color: #333;
  background: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ═══════════════════════════════════════════
   NAVBAR — exact match
═══════════════════════════════════════════ */
.cm-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.cm-topbar { background: #1a2f6b; min-height: 42px; }
.cm-topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 12px;
  display: flex; align-items: center; gap: 12px; min-height: 42px;
}
.cm-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; margin-right: 4px; }
.cm-spacer { flex: 1; }

/* Game switcher */
.cm-game-wrap { position: relative; flex-shrink: 0; }
.cm-game-btn {
  display: flex; align-items: center; gap: 6px;
  color: white; font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
  padding: 6px 10px; border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent; cursor: pointer; transition: background 0.15s; white-space: nowrap;
}
.cm-game-btn:hover { background: rgba(255,255,255,0.1); }
.cm-game-dropdown {
  position: absolute; left: 0; top: calc(100% + 4px);
  background: white; border: 1px solid #ddd; border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  min-width: 240px; z-index: 200; padding: 4px 0;
  display: none;
}
.cm-game-wrap.open .cm-game-dropdown { display: block; }
.cm-game-item { display: flex; align-items: center; padding: 7px 14px; font-size: 13px; color: #333; cursor: pointer; transition: background 0.1s; }
.cm-game-item:hover { background: #f0f4ff; color: #1a2f6b; }
.cm-game-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; }

/* Inline login fields */
.cm-login-form { display: none; align-items: center; gap: 8px; }
@media (min-width: 1024px) { .cm-login-form { display: flex; } }
.cm-input-wrap {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px; padding: 0 8px; height: 30px; gap: 6px;
}
.cm-input-icon { color: rgba(255,255,255,0.6); flex-shrink: 0; }
.cm-input { background: transparent; border: none; outline: none; color: white; font-size: 12px; width: 110px; }
.cm-input::placeholder { color: rgba(255,255,255,0.55); }
.cm-forgot { color: #7ab3e0; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.cm-forgot:hover { color: white; text-decoration: underline; }

.cm-btn-login, .cm-btn-signup {
  font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 3px;
  cursor: pointer; letter-spacing: 0.04em; transition: background 0.15s; white-space: nowrap;
}
.cm-btn-login { background: transparent; border: 1px solid rgba(255,255,255,0.5); color: white; }
.cm-btn-login:hover { background: rgba(255,255,255,0.1); }
.cm-btn-signup { background: white; border: 1px solid white; color: #1a2f6b; }
.cm-btn-signup:hover { background: #e8f0ff; }

.cm-cart-btn { position: relative; color: white; padding: 6px 8px; display: flex; align-items: center; transition: color 0.15s; }
.cm-cart-btn:hover { color: #aac9ff; }
.cm-cart-badge {
  position: absolute; top: 0; right: 0;
  background: #e63946; color: white; font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.cm-hamburger { color: white; padding: 6px; display: flex; align-items: center; cursor: pointer; background: none; border: none; }

/* Secondary bar */
.cm-secbar { background: #142452; min-height: 36px; border-top: 1px solid rgba(255,255,255,0.08); }
.cm-secbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 12px;
  display: flex; align-items: center; gap: 0; min-height: 36px;
}
.cm-products-wrap { position: relative; }
.cm-products-btn {
  display: flex; align-items: center; gap: 6px;
  color: white; font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
  padding: 6px 14px 6px 10px;
  background: rgba(255,255,255,0.08); border: none;
  border-right: 1px solid rgba(255,255,255,0.12);
  cursor: pointer; height: 36px; white-space: nowrap; transition: background 0.15s;
}
.cm-products-btn:hover { background: rgba(255,255,255,0.15); }
.cm-products-icon { display: flex; flex-direction: column; margin-right: 4px; }
.cm-products-icon span { display: block; width: 12px; height: 2px; background: white; margin-bottom: 2px; }
.cm-products-icon span:last-child { margin-bottom: 0; }
.cm-products-menu {
  position: absolute; left: 0; top: 100%; margin-top: 4px;
  background: white; border: 1px solid #e5e7eb; border-radius: 3px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15); padding: 6px 0; min-width: 180px; z-index: 50;
  display: none;
}
.cm-products-wrap.open .cm-products-menu { display: block; }
.cm-products-menu a { display: block; padding: 9px 16px; font-size: 13px; color: #333; }
.cm-products-menu a:hover { background: #f0f4ff; color: #1a2f6b; }
.cm-products-menu a.first { font-weight: 700; }

.cm-search-form { flex: 1; display: flex; height: 28px; margin: 4px 10px; max-width: 900px; }
.cm-search-select {
  background: white; border: none; border-right: 1px solid #ccc;
  font-size: 12px; padding: 0 8px; border-radius: 3px 0 0 3px; color: #333; cursor: pointer; min-width: 60px; outline: none;
}
.cm-search-input { flex: 1; border: none; padding: 0 10px; font-size: 13px; color: #333; outline: none; background: white; }
.cm-search-input::placeholder { color: #999; }
.cm-search-btn { background: #e8e8e8; border: none; padding: 0 12px; cursor: pointer; border-radius: 0 3px 3px 0; color: #555; display: flex; align-items: center; transition: background 0.15s; }
.cm-search-btn:hover { background: #d0d0d0; }

/* ─── Mobile / small-screen navbar ─── */
@media (max-width: 640px) {
  .cm-topbar-inner { padding: 0 8px; gap: 6px; min-height: 48px; }
  .cm-topbar { min-height: 48px; }
  .cm-logo svg { width: 110px; height: 22px; }
  .cm-game-btn { padding: 5px 7px; font-size: 11px; max-width: 130px; overflow: hidden; }
  .cm-game-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cm-game-dropdown { left: 0; right: auto; min-width: 220px; max-width: calc(100vw - 16px); }
  .cm-spacer { flex: 1; min-width: 0; }
  .cm-cart-btn { padding: 6px 4px; }
  .cm-hamburger { padding: 6px 4px; }

  .cm-secbar-inner { padding: 0 8px; }
  .cm-products-btn { padding: 6px 10px; font-size: 11px; }
  .cm-products-btn span:not(.cm-products-icon) { display: none; } /* hide PRODUCTS text, keep icon + chevron */
  .cm-products-btn { padding: 6px 8px; }
  .cm-products-menu { min-width: 180px; max-width: calc(100vw - 16px); }
  .cm-search-form { margin: 4px 6px 4px 8px; height: 32px; }
  .cm-search-select { display: none; }
  .cm-search-input { font-size: 13px; padding: 0 8px; border-radius: 3px 0 0 3px; }
  .cm-search-btn { padding: 0 10px; }
}
@media (max-width: 380px) {
  .cm-game-btn { max-width: 100px; }
  .cm-logo svg { width: 96px; }
}

/* Prevent the page from ever overflowing horizontally on mobile */
html, body { overflow-x: hidden; }

/* Slide-out menu (works on all viewports) */
.cm-mobile { display: none; background: #1a2f6b; border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 20px 22px; color: white; }
.cm-mobile.open { display: block; }
.cm-mobile-row { display: flex; gap: 8px; margin-bottom: 14px; }
.cm-mobile-row a { flex: 1; text-align: center; padding: 9px; border-radius: 3px; font-size: 12px; font-weight: 700; text-decoration: none; }
.cm-mobile-row .login { border: 1px solid rgba(255,255,255,0.35); color: white; }
.cm-mobile-row .login:hover { background: rgba(255,255,255,0.08); }
.cm-mobile-row .signup { background: white; color: #1a2f6b; }
.cm-mobile-row .signup:hover { background: #e6e6e6; }
.cm-mobile-section { margin-top: 16px; }
.cm-mobile-section h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; color: #aac9ff; font-weight: 700; }
.cm-mobile-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.cm-mobile-links a { color: white; font-size: 13px; padding: 7px 8px; border-radius: 3px; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.cm-mobile-links a:hover { background: rgba(255,255,255,0.1); }
.cm-mobile-games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cm-game-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 6px; border-radius: 6px; text-decoration: none; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); transition: all 0.18s ease; }
.cm-game-tile:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.25); }
.cm-game-tile .thumb { width: 46px; height: 64px; border-radius: 5px; overflow: hidden; background: #0c1a3d; box-shadow: 0 3px 8px rgba(0,0,0,0.4); border: 2px solid; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.cm-game-tile .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-game-tile .label { color: #d8e6ff; font-size: 11px; font-weight: 600; text-align: center; line-height: 1.2; letter-spacing: 0.1px; }
.cm-game-tile:hover .label { color: white; }
@media (max-width: 720px) { .cm-mobile-games { grid-template-columns: repeat(3, 1fr); } .cm-mobile-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .cm-mobile-games { grid-template-columns: repeat(2, 1fr); } }

/* ═══════════════════════════════════════════
   CONDITION BADGES
═══════════════════════════════════════════ */
.cond-badge {
  display: inline-block; padding: 1px 5px; border-radius: 3px;
  font-size: 11px; font-weight: 700; color: white; letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════
   PAGE LAYOUT
═══════════════════════════════════════════ */
.cm-page { max-width: 1200px; margin: 0 auto; padding: 0 12px; }
.cm-py-3 { padding-top: 12px; padding-bottom: 12px; }
.cm-py-4 { padding-top: 16px; padding-bottom: 16px; }
.cm-py-5 { padding-top: 20px; padding-bottom: 20px; }
.cm-py-6 { padding-top: 24px; padding-bottom: 24px; }

.cm-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #666; padding: 10px 0; flex-wrap: wrap; }
.cm-breadcrumb a { color: #2979bd; }
.cm-breadcrumb a:hover { text-decoration: underline; }
.cm-breadcrumb .sep { color: #aaa; font-size: 10px; }
.cm-breadcrumb .here { font-weight: 500; color: #333; }

/* ═══════════════════════════════════════════
   CARDS / THUMBS
═══════════════════════════════════════════ */
/* Polished card thumbnail (used in Best Sellers / Best Bargains) */
.cm-card-thumb {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}
.cm-card-thumb-img { border-radius: 8px 8px 0 0; overflow: hidden; }
.cm-card-thumb-body {
  padding: 8px 10px 10px !important;
  border-top: 1px solid #f3f4f6;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}
.cm-card-thumb-title { font-size: 12px !important; }
.cm-card-thumb-price { font-size: 13px !important; color: #1a2f6b !important; }
.cm-card-thumb-img .trends-num,
.cm-card-thumb-img > div > .trends-num {
  background: rgba(26,47,107,0.92) !important;
  color: #fde047 !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 3px 7px !important;
  border-radius: 4px;
  font-size: 11px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Mobile carousel: horizontal scroll-snap with "peek" of next card */
@media (max-width: 720px) {
  .cm-trends-thumbs {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px !important;
    padding: 4px 16px 14px;
    margin: 0 -16px 8px !important;
    scroll-padding-left: 16px;
    scroll-behavior: smooth;
  }
  .cm-trends-thumbs::-webkit-scrollbar { display: none; }
  .cm-trends-thumbs > .cm-card-thumb {
    flex: 0 0 64%;       /* current card ~64%, leaves ~30% peek of next */
    max-width: 64%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .cm-trends-thumbs > .cm-card-thumb:active {
    transform: scale(0.98);
  }
  /* Subtle hint line between header and carousel */
  .cm-trends-h { padding: 0 16px; }
  .cm-trends-h::after {
    content: 'swipe →';
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  /* Keep numbered list flush with carousel padding */
  .cm-trends-list { margin: 0 16px; }
}

.cm-card-thumb {
  background: white; border: 1px solid #e5e7eb;
  overflow: hidden; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; cursor: pointer; display: block;
}
.cm-card-thumb:hover { box-shadow: 0 6px 20px rgba(26,47,107,0.18); transform: translateY(-3px); border-color: rgba(41,121,189,0.35); }
.cm-card-thumb-img { background: #f3f4f6; position: relative; }
.cm-card-thumb-img img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform 0.3s ease; }
.cm-card-thumb:hover .cm-card-thumb-img img { transform: scale(1.04); }
.cm-card-thumb-title { color: #2979bd; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.cm-card-thumb-price { font-weight: 700; margin-top: 2px; }

.trends-num {
  background: #1a2f6b; color: white; width: 24px; height: 24px;
  border-radius: 50%; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════════
   OFFERS / RESULT TABLES
═══════════════════════════════════════════ */
.cm-table { width: 100%; border-collapse: collapse; font-size: 13px; background: white; }
.cm-table th { background: #1a2f6b; color: white; text-align: left; padding: 7px 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.cm-table td { padding: 6px 10px; border-bottom: 1px solid #eee; vertical-align: middle; }
.cm-table tr:last-child td { border-bottom: none; }
.cm-table tr:hover td { background: #f5f8ff; }
.cm-table .seller-link { color: #2979bd; font-weight: 600; }
.cm-table .seller-link:hover { text-decoration: underline; }
.cm-table .price { font-weight: 700; color: #333; }
.cart-btn {
  background: #1a2f6b; color: white; border: none; border-radius: 3px;
  padding: 4px 8px; cursor: pointer; font-size: 12px;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; transition: background 0.15s;
}
.cart-btn:hover { background: #2979bd; }
.cart-btn-icon {
  width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px;
}

.cm-row-thumb { width: 32px; height: 44px; object-fit: cover; border-radius: 3px; }
.cm-list-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background 0.1s;
}
.cm-list-row:last-child { border-bottom: none; }
.cm-list-row:hover { background: #f0f4ff; }
.cm-list-row .num { color: #999; font-weight: 700; font-size: 14px; width: 16px; flex-shrink: 0; }
.cm-list-row .name { flex: 1; color: #2979bd; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-list-row .name:hover { text-decoration: underline; }
.cm-list-row .price { color: #333; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.cm-list-row .icon-muted { color: #cbd5e1; flex-shrink: 0; }

/* Section heads */
.cm-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cm-section-title { font-size: 18px; font-weight: 700; color: #1a2f6b; display: flex; align-items: center; gap: 8px; }
.cm-section-btn {
  background: #1a2f6b; color: white; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 3px; border: none; cursor: pointer;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center;
}
.cm-section-btn:hover { background: #2243a0; }

/* ═══════════════════════════════════════════
   HOMEPAGE / GAME PAGE
═══════════════════════════════════════════ */
.cm-hero { position: relative; overflow: hidden; height: 280px; color: white; margin-top: 16px; border-radius: 8px; max-width: 1240px; margin-left: auto; margin-right: auto; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
@media (max-width: 1280px) { .cm-hero { max-width: none; margin-left: 12px; margin-right: 12px; border-radius: 6px; } }
.cm-hero-art { position: absolute; right: 0; top: 0; width: 60%; height: 100%; }
.cm-hero-art img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; display: block; }
.cm-hero-fade { position: absolute; inset: 0; }
.cm-hero-text { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.cm-hero-eyebrow { color: #fde047; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; margin: 0 0 8px; }
.cm-hero-title { font-size: 36px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; margin: 0 0 8px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.cm-hero-sub { color: rgba(255,255,255,0.85); font-size: 15px; margin: 0 0 18px; max-width: 28em; }
.cm-hero-btn {
  display: inline-block; background: #1a2f6b; color: white; font-weight: 700;
  padding: 10px 26px; border-radius: 3px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
  border: none; cursor: pointer; transition: background 0.15s; box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.cm-hero-btn:hover { background: #2243a0; }
.cm-hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.7); font-size: 30px; font-weight: 700;
  background: rgba(0,0,0,0.15); width: 32px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; cursor: pointer; z-index: 3; border: none;
}
.cm-hero-arrow:hover { color: white; background: rgba(0,0,0,0.3); }
.cm-hero-arrow.left { left: 12px; }
.cm-hero-arrow.right { right: 12px; }
.cm-hero-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.cm-hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; }
.cm-hero-dot.active { background: white; }

/* Trends grid */
.cm-trends { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
@media (min-width: 1024px) { .cm-trends { grid-template-columns: 1fr 1fr; } }
.cm-trends-h { font-weight: 700; color: #1a2f6b; font-size: 13px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.cm-trends-help {
  color: #9ca3af; font-weight: 400; font-size: 11px;
  border: 1px solid #e5e7eb; border-radius: 50%; width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center; cursor: help;
}
.cm-trends-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.cm-trends-list { background: white; border: 1px solid #e5e7eb; border-radius: 4px; }

/* All games grid */
.cm-games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
@media (min-width: 640px) { .cm-games-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .cm-games-grid { grid-template-columns: repeat(6, 1fr); } }
.cm-game-card {
  background: white; border: 1px solid #e5e7eb; border-radius: 4px;
  padding: 12px; text-align: center; transition: box-shadow 0.15s, border-color 0.15s; cursor: pointer; display: block;
}
.cm-game-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: rgba(41,121,189,0.3); }
.cm-game-card { padding: 12px 8px; }
.cm-game-card-icon { width: 72px; height: 96px; border-radius: 6px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid transparent; }
.cm-game-card-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-game-card-name { font-size: 11px; font-weight: 600; color: #1a2f6b; line-height: 1.2; }
.cm-game-card:hover .cm-game-card-name { color: #2979bd; }

/* Recent price changes */
.cm-recent-card { background: white; border: 1px solid #e5e7eb; border-radius: 4px; overflow: hidden; margin-bottom: 24px; }
.cm-recent-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #e5e7eb; background: #f9fafb; }
.cm-recent-head h3 { margin: 0; font-size: 14px; font-weight: 700; color: #1a2f6b; }
.cm-recent-head a { color: #2979bd; font-size: 12px; font-weight: 600; }
.cm-recent-head a:hover { text-decoration: underline; }
.cm-recent-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  border-bottom: 1px solid #f3f4f6; cursor: pointer; transition: background 0.1s;
}
.cm-recent-row:last-child { border-bottom: none; }
.cm-recent-row:hover { background: #f0f4ff; }
.cm-recent-row img { width: 28px; height: 40px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.cm-recent-row .name { flex: 1; color: #2979bd; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-recent-row .name:hover { text-decoration: underline; }
.cm-recent-row .setcode { font-size: 11px; color: #6b7280; }
@media (max-width: 639px) { .cm-recent-row .setcode { display: none; } }
.cm-recent-row .price { font-size: 14px; font-weight: 700; color: #333; }
.cm-recent-row .delta { display: flex; align-items: center; gap: 4px; width: 56px; justify-content: flex-end; font-size: 12px; font-weight: 600; }
.cm-recent-row .delta.up { color: #16a34a; }
.cm-recent-row .delta.down { color: #ef4444; }

/* ═══════════════════════════════════════════
   GAME PAGE — pills, filters
═══════════════════════════════════════════ */
.cm-game-banner { position: relative; overflow: hidden; min-height: 200px; color: white; }
.cm-game-banner-bg { position: absolute; inset: 0; }
.cm-game-banner-art { position: absolute; right: 0; top: 0; height: 100%; width: 55%; }
.cm-game-banner-art img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; display: block; }
.cm-game-banner-text { position: relative; z-index: 2; padding-top: 24px; padding-bottom: 24px; }
.cm-game-banner-bcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.75); margin-bottom: 14px; flex-wrap: wrap; }
.cm-game-banner-bcrumb a { color: rgba(255,255,255,0.85); }
.cm-game-banner-bcrumb a:hover { color: white; }
.cm-game-banner-bcrumb .sep { color: rgba(255,255,255,0.4); }
.cm-game-banner-h1 { font-size: 28px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 4px; }
.cm-game-banner-sub { color: rgba(255,255,255,0.75); font-size: 13px; margin: 0 0 16px; }
.cm-tab-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.cm-tab-pill {
  padding: 6px 22px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: transparent; color: white; border: 1px solid rgba(255,255,255,0.5);
  cursor: pointer; transition: background 0.15s;
}
.cm-tab-pill.active { background: white; color: #1a2f6b; border-color: white; }
.cm-tab-pill:hover:not(.active) { background: rgba(255,255,255,0.1); }

/* Sidebar filter */
.cm-filter-side { width: 192px; flex-shrink: 0; }
@media (max-width: 767px) { .cm-filter-side { display: none; } }
.cm-filter-card { background: white; border: 1px solid #e5e7eb; border-radius: 4px; overflow: hidden; }
.cm-filter-h { background: #1a2f6b; color: white; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 12px; }
.cm-filter-body { padding: 12px; }
.cm-filter-body .label { font-size: 10px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 6px; }
.cm-filter-body button {
  display: block; width: 100%; text-align: left; padding: 6px 8px; border-radius: 3px;
  font-size: 13px; margin-bottom: 2px; background: transparent; border: none; color: #374151; cursor: pointer;
}
.cm-filter-body button.active { background: #2979bd; color: white; font-weight: 600; }
.cm-filter-body button:hover:not(.active) { background: #f3f4f6; }

/* ═══════════════════════════════════════════
   CARD DETAIL — chart, filter icons
═══════════════════════════════════════════ */
.cm-detail-3col { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) { .cm-detail-3col { flex-direction: row; } }
.cm-detail-img-wrap { width: 200px; flex-shrink: 0; }
.cm-detail-img-wrap > div { background: white; border: 1px solid #e5e7eb; border-radius: 4px; padding: 10px; }
.cm-detail-img-wrap img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display: block; }
.cm-detail-info { flex: 1; min-width: 0; background: white; border: 1px solid #e5e7eb; border-radius: 4px; padding: 12px; }
.cm-detail-info .head { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; color: #2979bd; font-size: 13px; font-weight: 700; }
.cm-detail-info table { width: 100%; font-size: 13px; }
.cm-detail-info td { padding: 6px 0; border-bottom: 1px solid #f3f4f6; }
.cm-detail-info td:first-child { color: #6b7280; padding-right: 16px; width: 160px; }
.cm-detail-info tr:last-child td { border-bottom: none; }
.cm-detail-info a { color: #2979bd; }
.cm-detail-info a:hover { text-decoration: underline; }
.cm-detail-side { width: 380px; flex-shrink: 0; }
@media (max-width: 1023px) { .cm-detail-img-wrap, .cm-detail-side { width: 100%; } }
.cm-chart { background: white; border: 1px solid #e5e7eb; border-radius: 4px; padding: 12px; }
.cm-chart .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cm-chart .head .lbl { font-size: 12px; color: #6b7280; font-weight: 600; }
.cm-chart .legend { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 8px; border-top: 1px solid #f3f4f6; }
.cm-chart .legend .swatch { width: 32px; height: 4px; background: #1a2f6b; border-radius: 2px; }
.cm-chart .legend .lbl { font-size: 11px; color: #6b7280; }

.cm-share { display: flex; gap: 8px; margin-top: 12px; }
.cm-share a { width: 32px; height: 32px; border-radius: 3px; display: flex; align-items: center; justify-content: center; color: white; transition: opacity 0.15s; }
.cm-share a:hover { opacity: 0.85; }

/* Filter icon sidebar */
.cm-detail-offers { margin-top: 20px; display: flex; gap: 0; }
.cm-filter-icons { display: none; flex-direction: column; background: white; border: 1px solid #e5e7eb; border-right: 0; border-radius: 4px 0 0 4px; align-self: flex-start; overflow: hidden; flex-shrink: 0; }
@media (min-width: 768px) { .cm-filter-icons { display: flex; } }
.cm-filter-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #f3f4f6; color: #1a2f6b; background: transparent; border-left: none; border-right: none; border-top: none; cursor: pointer; transition: background 0.15s; }
.cm-filter-icon:last-child { border-bottom: none; }
.cm-filter-icon.active { background: #1a2f6b; color: white; }
.cm-filter-icon:hover:not(.active) { background: #f0f4ff; }

.cm-offers-pane { flex: 1; min-width: 0; }
.cm-offers-bar { background: white; border: 1px solid #e5e7eb; border-bottom: 0; border-radius: 0 4px 0 0; padding: 12px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cm-offers-bar select { border: 1px solid #d1d5db; border-radius: 3px; padding: 6px 8px; font-size: 13px; background: white; outline: none; }
.cm-offers-bar select:focus { border-color: #2979bd; }
.cm-offers-bar .count { font-size: 11px; color: #6b7280; margin-left: auto; }
.cm-offers-table-wrap { background: white; border: 1px solid #e5e7eb; border-radius: 0 0 4px 4px; overflow: hidden; }

.cm-buyer-protect {
  margin-top: 16px; border: 1px solid #bfdbfe; background: #eff6ff; border-radius: 4px;
  padding: 10px 16px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #1e40af;
}

/* Login / Signup */
.cm-auth-bg {
  min-height: 100vh; background-color: #0d2060;
  background-image: linear-gradient(rgba(10,30,90,0.62), rgba(10,30,90,0.62)), url('/assets/mkm_bg.png');
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
}
.cm-auth-logo { margin-bottom: 24px; }
.cm-auth-card { background: white; border-radius: 6px; box-shadow: 0 8px 40px rgba(0,0,0,0.3); width: 100%; max-width: 480px; padding: 32px; }
.cm-auth-card.tabbed { padding: 0; overflow: hidden; }
.cm-auth-tabs { display: flex; border-bottom: 1px solid #e5e7eb; }
.cm-auth-tab { flex: 1; padding: 12px; font-size: 13px; font-weight: 600; background: #f9fafb; color: #6b7280; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.15s; }
.cm-auth-tab + .cm-auth-tab { border-left: 1px solid #e5e7eb; }
.cm-auth-tab.active { background: white; color: #1a2f6b; border-bottom: 2px solid #1a2f6b; }
.cm-auth-tab:hover:not(.active) { background: #f3f4f6; }
.cm-auth-body { padding: 32px; }
.cm-auth-title { font-size: 24px; font-weight: 700; color: #1a2f6b; text-align: center; margin: 0 0 4px; }
.cm-auth-sub { font-size: 13px; color: #6b7280; text-align: center; margin: 0 0 20px; }
.cm-auth-rule { border: 0; border-top: 1px solid #e5e7eb; margin: 16px 0; }
.cm-auth-required { text-align: right; font-size: 11px; color: #ef4444; margin: 0 0 12px; }
.cm-auth-field { display: flex; align-items: center; border: 1px solid #d1d5db; border-radius: 4px; overflow: hidden; margin-bottom: 12px; background: white; }
.cm-auth-field:focus-within { border-color: #2979bd; box-shadow: 0 0 0 2px rgba(41,121,189,0.2); }
.cm-auth-field-icon { background: #f5f5f5; border-right: 1px solid #e5e7eb; padding: 10px 12px; display: flex; align-items: center; color: #888; }
.cm-auth-field input { flex: 1; border: none; outline: none; padding: 10px 12px; font-size: 14px; color: #333; background: transparent; font-family: inherit; }
.cm-auth-field-forgot { padding: 0 12px; color: #2979bd; font-size: 11px; font-weight: 700; white-space: nowrap; text-transform: uppercase; }
.cm-auth-field-forgot:hover { text-decoration: underline; }
.cm-auth-submit { width: 100%; background: #1a2f6b; color: white; border: none; padding: 12px; border-radius: 4px; font-size: 14px; font-weight: 700; letter-spacing: 0.05em; cursor: pointer; transition: background 0.15s; margin-top: 8px; text-transform: uppercase; }
.cm-auth-submit:hover { background: #2243a0; }
.cm-auth-altline { text-align: center; font-size: 13px; color: #6b7280; margin: 12px 0 0; }
.cm-auth-altline a { color: #2979bd; font-weight: 600; }
.cm-auth-altline a:hover { text-decoration: underline; }
.cm-auth-footer { margin-top: 14px; display: flex; justify-content: space-between; font-size: 12px; color: #6b7280; gap: 8px; flex-wrap: wrap; }
.cm-auth-footer a { color: #2979bd; }
.cm-auth-footer a:hover { text-decoration: underline; }
.cm-auth-links { display: flex; justify-content: center; gap: 24px; margin-top: 16px; font-size: 12px; color: rgba(255,255,255,0.8); flex-wrap: wrap; }
.cm-auth-links a { color: rgba(255,255,255,0.85); }
.cm-auth-links a:hover { color: white; text-decoration: underline; }
.cm-auth-copy { text-align: center; color: rgba(255,255,255,0.55); font-size: 11px; margin-top: 10px; }

/* Footer */
/* ─── Footer (Light VIP / luxury elegant theme) ─── */
.cm-footer { background: linear-gradient(180deg, #fafbfc 0%, #f3f5f8 100%); color: #4b5563; font-size: 13px; margin-top: 56px; border-top: 1px solid #e5e7eb; position: relative; }
.cm-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent 0%, #d4af37 30%, #f4d27a 50%, #d4af37 70%, transparent 100%); opacity: 0.55; }
.cm-footer-inner { max-width: 1200px; margin: 0 auto; padding: 48px 16px 0; }

/* Payment marquee */
.cm-pay-marquee { background: #ffffff; border-bottom: 1px solid #e5e7eb; overflow: hidden; padding: 16px 0; position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); }
.cm-pay-marquee::before, .cm-pay-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 100px; pointer-events: none; z-index: 2; }
.cm-pay-marquee::before { left: 0; background: linear-gradient(to right, #ffffff, rgba(255,255,255,0)); }
.cm-pay-marquee::after  { right: 0; background: linear-gradient(to left,  #ffffff, rgba(255,255,255,0)); }
.cm-pay-track { display: inline-flex; gap: 28px; white-space: nowrap; align-items: center; animation: cm-pay-scroll 40s linear infinite; padding-left: 28px; will-change: transform; }
.cm-pay-marquee:hover .cm-pay-track { animation-play-state: paused; }
@keyframes cm-pay-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.cm-pay-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 999px; color: #1f2937; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; transition: background .2s, transform .2s, border-color .2s, box-shadow .2s; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.cm-pay-chip:hover { background: #f9fafb; border-color: #cbd5e1; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.06); }
.cm-pay-chip svg { flex-shrink: 0; opacity: 0.85; color: #374151; }
.cm-pay-chip.hl { background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%); border-color: #f4d27a; color: #92400e; box-shadow: 0 2px 8px rgba(212,175,55,0.25); }
.cm-pay-chip.hl svg { color: #b45309; opacity: 1; }
.cm-pay-chip.hl:hover { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }

/* Footer columns */
.cm-footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 36px; }
@media (max-width: 900px) { .cm-footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; } .cm-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 540px) { .cm-footer-cols { grid-template-columns: 1fr; gap: 24px; } }

.cm-footer-col h4 { color: #0f172a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid #e5e7eb; position: relative; }
.cm-footer-col h4::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 28px; height: 2px; background: linear-gradient(90deg, #d4af37, #f4d27a); border-radius: 2px; }
.cm-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cm-footer-col ul a { color: #4b5563; font-size: 13px; transition: color .15s, transform .15s, padding-left .15s; display: inline-block; }
.cm-footer-col ul a:hover { color: #0a3680; transform: translateX(2px); }

/* Brand block */
.cm-footer-brand { padding-right: 24px; }
.cm-footer-logo { display: flex; align-items: baseline; gap: 4px; margin-bottom: 14px; }
.cm-footer-mark { font-family: 'Lobster', 'Brush Script MT', cursive; font-size: 32px; background: linear-gradient(135deg, #0a3680 0%, #1a2f6b 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 0.5px; }
.cm-footer-logo sup { color: #94a3b8; font-size: 12px; }
.cm-footer-tag { color: #6b7280; font-size: 13px; line-height: 1.65; margin: 0 0 20px; max-width: 380px; }

.cm-footer-contact { display: flex; flex-direction: column; gap: 12px; }
.cm-footer-phone { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; color: #0f172a; transition: background .2s, transform .2s, box-shadow .2s, border-color .2s; align-self: flex-start; box-shadow: 0 2px 6px rgba(0,0,0,0.04); text-decoration: none; }
.cm-footer-phone:hover { background: #ffffff; color: #0f172a; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10,54,128,0.14); border-color: #c7d2fe; }
.cm-footer-phone svg { color: #16a34a; flex-shrink: 0; }
.cm-footer-phone-text { display: flex; flex-direction: column; line-height: 1.2; }
.cm-footer-phone-text small { font-size: 10px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; font-weight: 600; }
.cm-footer-phone-text strong { font-size: 15px; font-weight: 700; color: #0f172a; letter-spacing: 0.02em; }
.cm-footer-phone-alt svg { color: #25d366; }
.cm-footer-mail { display: inline-flex; align-items: center; gap: 8px; color: #4b5563; font-size: 13px; align-self: flex-start; padding: 4px 0; }
.cm-footer-mail:hover { color: #0a3680; }
.cm-footer-mail svg { opacity: 0.7; }

/* US HQ address */
.cm-footer-address { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; margin: 0 0 16px; max-width: 380px; font-size: 12px; line-height: 1.6; color: #4b5563; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.cm-footer-address svg { color: #ef4444; flex-shrink: 0; margin-top: 2px; }
.cm-footer-address strong { color: #0f172a; font-size: 13px; font-weight: 700; display: inline-block; margin-bottom: 3px; letter-spacing: 0.01em; }

/* Full-width USA coverage map */
.cm-footer-usmap { margin: 8px 0 28px; padding: 28px; background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%); border: 1px solid #e5e7eb; border-radius: 18px; box-shadow: 0 10px 30px rgba(15,23,42,0.06), 0 1px 0 rgba(255,255,255,0.8) inset; }
.cm-footer-usmap-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.cm-footer-usmap-head h4 { color: #0f172a; font-size: 19px; font-weight: 700; margin: 0 0 6px; letter-spacing: 0.01em; text-transform: none; padding: 0; border: 0; }
.cm-footer-usmap-head h4::after { display: none; }
.cm-footer-usmap-head p { color: #6b7280; font-size: 13px; margin: 0; }
.cm-footer-usmap-cities { display: flex; flex-wrap: wrap; gap: 6px 8px; max-width: 60%; justify-content: flex-end; }
.cm-footer-usmap-cities span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 999px; color: #374151; font-size: 11px; font-weight: 600; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.cm-footer-usmap-frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid #e5e7eb; box-shadow: 0 6px 24px rgba(15,23,42,0.08); background: #f3f5f8; }
.cm-footer-usmap-frame iframe { display: block; width: 100%; height: 460px; border: 0; filter: saturate(0.95); }
.cm-footer-usmap-link { display: inline-flex; margin-top: 14px; padding: 11px 18px; background: linear-gradient(135deg, #0a3680 0%, #1a2f6b 100%); border: 0; border-radius: 12px; color: #ffffff; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; transition: transform .2s, box-shadow .2s, background .2s; box-shadow: 0 4px 12px rgba(10,54,128,0.25); text-decoration: none; }
.cm-footer-usmap-link:hover { background: linear-gradient(135deg, #1a2f6b 0%, #0a3680 100%); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(10,54,128,0.32); color: #ffffff; }
@media (max-width: 720px) {
  .cm-footer-usmap { padding: 18px; }
  .cm-footer-usmap-head { flex-direction: column; }
  .cm-footer-usmap-cities { max-width: 100%; justify-content: flex-start; }
  .cm-footer-usmap-frame iframe { height: 320px; }
  .cm-footer-usmap-head h4 { font-size: 16px; }
}

/* Footer bottom bar */
.cm-footer-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 22px 0 26px; border-top: 1px solid #e5e7eb; margin-top: 8px; }
.cm-footer-copy { color: #000000; font-size: 12px; margin: 0; letter-spacing: 0.02em; font-weight: 600; }
.cm-footer-lang { color: #000000; font-size: 12px; padding: 6px 12px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 999px; font-weight: 700; }
.cm-footer-social { display: inline-flex; gap: 8px; }
.cm-footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #ffffff; border: 1px solid #e5e7eb; color: #000000; transition: background .2s, color .2s, transform .2s, box-shadow .2s, border-color .2s; }
.cm-footer-bar, .cm-footer-bar * { color: #000000; }
.cm-footer-social a:hover { color: #ffffff; }
.cm-footer-social a:hover { background: linear-gradient(135deg, #0a3680 0%, #1a2f6b 100%); color: #ffffff; border-color: #0a3680; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(10,54,128,0.25); }
@media (max-width: 540px) {
  .cm-footer-bar { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 0 22px; }
}


/* ═══════════════════════════════════════════
   FLOATING LIVE CHAT + WHATSAPP WIDGET
   Stays fixed bottom-right on every page
═══════════════════════════════════════════ */
.cm-fc { position: fixed; right: 20px; bottom: 20px; z-index: 9999; font-family: inherit; right: max(20px, env(safe-area-inset-right, 20px)); bottom: max(20px, env(safe-area-inset-bottom, 20px)); }
.cm-fc-badge[hidden] { display: none !important; }
.cm-fc-panel[hidden] { display: none !important; }
.cm-fc-bubble a { color: inherit; text-decoration: underline; word-break: break-all; }
.cm-fc-msg-admin .cm-fc-bubble a { color: #0a3680; }
.cm-fc-tick { display: inline-block; margin-left: 4px; opacity: 0.8; font-size: 10px; }
.cm-fc-msg-me .cm-fc-meta { color: #6b7280; }
.cm-fc-typing { align-self: flex-start; padding: 10px 14px; background: white; border: 1px solid #e5e7eb; border-radius: 14px; border-bottom-left-radius: 4px; display: inline-flex; gap: 4px; align-items: center; }
.cm-fc-typing span { width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; animation: cm-fc-typing 1.2s infinite ease-in-out; }
.cm-fc-typing span:nth-child(2) { animation-delay: 0.15s; }
.cm-fc-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes cm-fc-typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.cm-fc-nudge { position: absolute; right: 0; bottom: 100%; margin-bottom: 14px; background: white; padding: 10px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); font-size: 13px; color: #111827; max-width: 240px; line-height: 1.4; animation: cm-fc-nudge-in .4s ease-out; }
.cm-fc-nudge::after { content: ''; position: absolute; right: 28px; top: 100%; width: 0; height: 0; border: 7px solid transparent; border-top-color: white; }
.cm-fc-nudge strong { display: block; color: #0a3680; margin-bottom: 2px; }
.cm-fc-nudge-close { position: absolute; top: 4px; right: 6px; background: none; border: 0; color: #94a3b8; font-size: 16px; cursor: pointer; line-height: 1; }
@keyframes cm-fc-nudge-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.cm-fc-orig { position: fixed; right: 20px; bottom: 20px; z-index: 9999; }
.cm-fc-fab { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.cm-fc-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 999px; border: 0; color: white; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.2); transition: transform .2s, box-shadow .2s, background .2s; text-decoration: none; }
.cm-fc-btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 30px rgba(0,0,0,0.35); color: white; }
.cm-fc-btn svg { display: block; }
.cm-fc-btn-label { white-space: nowrap; }
.cm-fc-wa { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); }
.cm-fc-chat { background: linear-gradient(135deg, #0a3680 0%, #142452 100%); }
.cm-fc-badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; background: #ef4444; color: white; border-radius: 999px; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid white; box-shadow: 0 2px 6px rgba(239,68,68,0.5); animation: cm-fc-pulse 1.6s ease-in-out infinite; }
@keyframes cm-fc-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* Chat panel */
.cm-fc-panel { position: absolute; right: 0; bottom: 100%; margin-bottom: 14px; width: 360px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 120px); background: white; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.15); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(20px) scale(0.96); transform-origin: bottom right; transition: opacity .2s, transform .2s; }
.cm-fc-panel.open { opacity: 1; transform: translateY(0) scale(1); }
.cm-fc-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, #0a3680 0%, #142452 100%); color: white; }
.cm-fc-head-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.18); border: 2px solid rgba(255,255,255,0.3); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.cm-fc-head-text { flex: 1; min-width: 0; line-height: 1.3; }
.cm-fc-head-text strong { display: block; font-size: 14px; font-weight: 700; }
.cm-fc-head-text span { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,0.75); margin-top: 2px; }
.cm-fc-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 2px rgba(74,222,128,0.3); animation: cm-fc-pulse 1.6s ease-in-out infinite; }
.cm-fc-close { background: rgba(255,255,255,0.15); border: 0; color: white; width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; transition: background .15s; }
.cm-fc-close:hover { background: rgba(255,255,255,0.28); }

/* Stream */
.cm-fc-stream { flex: 1; overflow-y: auto; padding: 16px; background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%); display: flex; flex-direction: column; gap: 10px; }
.cm-fc-welcome { background: white; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; font-size: 13px; line-height: 1.55; color: #374151; }
.cm-fc-welcome strong { display: block; color: #111827; margin-bottom: 4px; font-size: 14px; }
.cm-fc-welcome p { margin: 0; }
.cm-fc-welcome p + p { margin-top: 6px; color: #6b7280; }
.cm-fc-msg { display: flex; flex-direction: column; max-width: 84%; }
.cm-fc-msg-me { align-self: flex-end; align-items: flex-end; }
.cm-fc-msg-admin { align-self: flex-start; align-items: flex-start; }
.cm-fc-bubble { padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; word-wrap: break-word; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.cm-fc-msg-me .cm-fc-bubble { background: linear-gradient(135deg, #0a3680 0%, #1a4cb0 100%); color: white; border-bottom-right-radius: 4px; }
.cm-fc-msg-admin .cm-fc-bubble { background: white; color: #111827; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; }
.cm-fc-meta { font-size: 10px; color: #9ca3af; margin-top: 3px; padding: 0 4px; }

/* Quick actions */
.cm-fc-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; background: white; border-top: 1px solid #f1f5f9; }
.cm-fc-quickbtn { padding: 6px 11px; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 999px; color: #1e293b; font-size: 12px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.cm-fc-quickbtn:hover { background: #e0e7ff; border-color: #c7d2fe; color: #1e3a8a; transform: translateY(-1px); }

/* Guest start form */
.cm-fc-guest-form { padding: 12px 14px; background: #fffbeb; border-top: 1px solid #fde68a; }
.cm-fc-guest-hint { margin: 0 0 8px; font-size: 12px; color: #78350f; font-weight: 600; }
.cm-fc-guest-row { display: flex; gap: 6px; }
.cm-fc-guest-row input { flex: 1; padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; }
.cm-fc-guest-row input:focus { outline: none; border-color: #0a3680; box-shadow: 0 0 0 3px rgba(10,54,128,0.12); }
.cm-fc-guest-row button { padding: 9px 14px; background: #0a3680; color: white; border: 0; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s; }
.cm-fc-guest-row button:hover { background: #1a4cb0; }
.cm-fc-guest-or { margin: 8px 0 0; font-size: 11px; color: #92400e; }
.cm-fc-guest-or a { color: #0a3680; font-weight: 600; }

/* Compose */
.cm-fc-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; background: white; border-top: 1px solid #f1f5f9; }
.cm-fc-compose textarea { flex: 1; resize: none; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 13.5px; line-height: 1.4; font-family: inherit; max-height: 110px; min-height: 38px; }
.cm-fc-compose textarea:focus { outline: none; border-color: #0a3680; box-shadow: 0 0 0 3px rgba(10,54,128,0.12); }
.cm-fc-compose button { width: 38px; height: 38px; padding: 0; background: linear-gradient(135deg, #0a3680 0%, #1a4cb0 100%); color: white; border: 0; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .15s, box-shadow .15s; }
.cm-fc-compose button:hover { transform: scale(1.06); box-shadow: 0 4px 12px rgba(10,54,128,0.35); }

.cm-fc-foot { margin: 0; padding: 8px 14px 10px; background: white; font-size: 10.5px; color: #9ca3af; text-align: center; border-top: 1px solid #f1f5f9; }
.cm-fc-foot a { color: #0a3680; font-weight: 600; }

/* Mobile sizing */
@media (max-width: 480px) {
  .cm-fc { right: 12px; bottom: 12px; }
  .cm-fc-btn-label { display: none; }
  .cm-fc-btn { padding: 14px; }
  .cm-fc-panel { width: calc(100vw - 24px); height: calc(100vh - 130px); right: -4px; }
}

/* Bottom bar */
.cm-footer-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.cm-footer-copy { margin: 0; font-size: 12px; color: rgba(255,255,255,0.55); }
.cm-footer-lang { font-size: 12px; color: rgba(255,255,255,0.6); }
.cm-footer-social { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 540px) { .cm-footer-social { margin-left: 0; } }
.cm-footer-social a { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: rgba(255,255,255,0.75); transition: all .2s; }
.cm-footer-social a:hover { background: white; color: #142452; border-color: white; transform: translateY(-1px); }

/* ═══════════════════════════════════════════
   CART PAGE
═══════════════════════════════════════════ */
.cart-page { max-width: 1200px; margin: 0 auto; padding: 32px 16px; }
.cart-empty { text-align: center; padding: 80px 16px; }
.cart-empty .icon { color: #e5e7eb; margin: 0 auto 24px; display: block; }
.cart-empty h1 { font-size: 22px; font-weight: 700; color: #374151; margin: 0 0 12px; }
.cart-empty p { color: #9ca3af; margin: 0 0 32px; }
.cart-empty .btn { display: inline-block; background: #2563eb; color: white; font-weight: 600; padding: 12px 32px; border-radius: 8px; text-decoration: none; }
.cart-empty .btn:hover { background: #1d4ed8; }

.cart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.cart-head h1 { font-size: 22px; font-weight: 900; color: #111827; margin: 0; }
.cart-head .count { color: #9ca3af; font-weight: 400; font-size: 16px; margin-left: 4px; }
.cart-clear { background: none; border: none; cursor: pointer; color: #ef4444; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; }
.cart-clear:hover { color: #b91c1c; }

.cart-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .cart-grid { grid-template-columns: 2fr 1fr; } }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { background: white; border-radius: 12px; border: 1px solid #e5e7eb; box-shadow: 0 1px 2px rgba(0,0,0,0.04); padding: 16px; display: flex; gap: 16px; }
.cart-item img { width: 64px; height: 88px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #f3f4f6; }
.cart-item .body { flex: 1; min-width: 0; }
.cart-item .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cart-item h3 { margin: 0; font-size: 14px; font-weight: 700; color: #111827; }
.cart-item h3:hover { color: #1d4ed8; }
.cart-item .meta { color: #6b7280; font-size: 12px; margin: 2px 0 0; }
.cart-item .remove { background: none; border: none; color: #d1d5db; cursor: pointer; padding: 4px; }
.cart-item .remove:hover { color: #ef4444; }
.cart-item .badges { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; font-size: 11px; }
.cart-item .badge { padding: 2px 8px; background: #f3f4f6; color: #4b5563; border-radius: 3px; font-weight: 500; }
.cart-item .badge.foil { background: #f3e8ff; color: #6d28d9; }
.cart-item .seller { color: #9ca3af; }
.cart-item .seller a { color: #2563eb; }
.cart-item .bottom { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cart-item .qty { display: flex; align-items: center; gap: 6px; }
.cart-item .qty button { width: 28px; height: 28px; border: 1px solid #d1d5db; background: white; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #374151; }
.cart-item .qty button:hover { background: #f3f4f6; }
.cart-item .qty button:disabled { opacity: 0.5; cursor: not-allowed; }
.cart-item .qty input { width: 36px; height: 28px; text-align: center; border: 1px solid #d1d5db; border-radius: 4px; font-weight: 600; font-size: 14px; }
.cart-item .qty .max { color: #9ca3af; font-size: 11px; }
.cart-item .price { text-align: right; }
.cart-item .price .total { font-weight: 900; color: #111827; font-size: 18px; }
.cart-item .price .each { color: #9ca3af; font-size: 11px; }

.cart-summary { background: white; border-radius: 12px; border: 1px solid #e5e7eb; box-shadow: 0 1px 2px rgba(0,0,0,0.04); padding: 24px; position: sticky; top: 96px; }
.cart-summary h2 { margin: 0 0 16px; font-size: 16px; font-weight: 700; color: #111827; }
.cart-summary .row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; color: #4b5563; }
.cart-summary .row .free { color: #16a34a; font-weight: 600; }
.cart-summary .info { font-size: 12px; color: #2563eb; margin: 4px 0 12px; }
.cart-summary .total { border-top: 1px solid #e5e7eb; padding-top: 16px; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.cart-summary .total span:first-child { font-weight: 700; color: #111827; }
.cart-summary .total span:last-child { font-size: 22px; font-weight: 900; color: #111827; }
.cart-summary .coupon { display: flex; gap: 8px; margin: 16px 0; }
.cart-summary .coupon input { flex: 1; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; outline: none; }
.cart-summary .coupon input:focus { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,0.2); }
.cart-summary .coupon button { padding: 8px 12px; border: 1px solid #d1d5db; background: white; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; }
.cart-summary .checkout { width: 100%; background: #2563eb; color: white; font-weight: 700; padding: 12px; border-radius: 8px; text-align: center; border: none; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.cart-summary .checkout:hover { background: #1d4ed8; }
.cart-summary .login-cta { display: block; width: 100%; margin-top: 12px; padding: 10px; border: 1px solid #d1d5db; color: #374151; background: white; border-radius: 8px; text-align: center; font-size: 13px; font-weight: 500; cursor: pointer; }
.cart-summary .login-cta:hover { background: #f9fafb; }
.cart-summary .protect { margin-top: 20px; padding-top: 16px; border-top: 1px solid #f3f4f6; }
.cart-summary .protect .row { font-size: 12px; color: #6b7280; align-items: center; gap: 8px; justify-content: flex-start; margin: 0 0 8px; }
.cart-summary .protect p { font-size: 11px; color: #9ca3af; margin: 0; }

.cart-back { display: block; margin-top: 16px; text-align: center; color: #2563eb; font-size: 13px; }
.cart-back:hover { color: #1d4ed8; }

/* ═══════════════════════════════════════════
   SELLER PROFILE
═══════════════════════════════════════════ */
.seller-page { max-width: 1200px; margin: 0 auto; padding: 32px 16px; }
.seller-bcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #6b7280; margin-bottom: 24px; }
.seller-bcrumb a:hover { color: #2563eb; }
.seller-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .seller-grid { grid-template-columns: 1fr 2fr; } }
.seller-card { background: white; border-radius: 12px; border: 1px solid #e5e7eb; overflow: hidden; }
.seller-card .banner { height: 80px; background: linear-gradient(to right, #1e3a8a, #1d4ed8); }
.seller-card .body { padding: 0 24px 24px; margin-top: -32px; }
.seller-card .avatar { width: 64px; height: 64px; border-radius: 50%; background: #2563eb; color: white; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 26px; border: 4px solid white; box-shadow: 0 2px 6px rgba(0,0,0,0.1); margin-bottom: 12px; }
.seller-card h1 { font-size: 20px; font-weight: 900; color: #111827; margin: 0; }
.seller-card .country { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: #6b7280; }
.seller-card .country .flag { font-size: 18px; }
.seller-card .level { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid; }
.seller-card .level.power { background: #fef9c3; color: #854d0e; border-color: #fde047; }
.seller-card .level.pro { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.seller-card .level.private { background: #f3f4f6; color: #4b5563; border-color: #d1d5db; }
.seller-card .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.seller-card .stats .stat { background: #f9fafb; border-radius: 8px; padding: 12px; text-align: center; }
.seller-card .stats .stat .v { font-size: 20px; font-weight: 900; color: #111827; }
.seller-card .stats .stat .l { font-size: 11px; color: #6b7280; }
.seller-card .ratebar { margin-top: 16px; }
.seller-card .ratebar .head { display: flex; justify-content: space-between; font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.seller-card .ratebar .head .pct { color: #ca8a04; font-weight: 500; }
.seller-card .ratebar .track { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.seller-card .ratebar .fill { height: 100%; background: #22c55e; border-radius: 4px; }
.seller-card .stars { margin-top: 12px; display: flex; align-items: center; gap: 4px; font-size: 13px; color: #6b7280; }
.seller-card .star { color: #facc15; }
.seller-card .star.empty { color: #d1d5db; }
.seller-card .actions { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.seller-card .actions button { padding: 10px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid; }
.seller-card .actions .contact { background: #2563eb; color: white; border-color: #2563eb; }
.seller-card .actions .contact:hover { background: #1d4ed8; }
.seller-card .actions .report { background: white; color: #6b7280; border-color: #d1d5db; }
.seller-card .actions .report:hover { background: #f9fafb; }
.seller-card .trust { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f3f4f6; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b7280; }
.seller-card .trust svg { color: #16a34a; }

.seller-list-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.seller-list-h h2 { font-size: 18px; font-weight: 700; color: #111827; margin: 0; display: flex; align-items: center; gap: 8px; }
.seller-list-h h2 svg { color: #2563eb; }
.seller-list-h .count { font-size: 13px; color: #6b7280; }
.seller-list { background: white; border-radius: 12px; border: 1px solid #e5e7eb; overflow: hidden; }
.seller-list .head { display: none; grid-template-columns: 3fr 2fr 2fr 1fr 2fr; padding: 8px 16px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; }
@media (min-width: 768px) { .seller-list .head { display: grid; } }
.seller-list .row { display: grid; grid-template-columns: 1fr; padding: 12px 16px; border-bottom: 1px solid #f3f4f6; }
@media (min-width: 768px) { .seller-list .row { grid-template-columns: 3fr 2fr 2fr 1fr 2fr; align-items: center; } }
.seller-list .row:last-child { border-bottom: none; }
.seller-list .row:hover { background: #eff6ff80; }
.seller-list .name { color: #1d4ed8; font-size: 13px; font-weight: 600; }
.seller-list .name:hover { color: #1e3a8a; }
.seller-list .setname { color: #9ca3af; font-size: 11px; }
.seller-list .qty { text-align: center; color: #374151; font-size: 13px; }
.seller-list .price { text-align: right; font-weight: 700; color: #111827; }
.seller-list .lang { color: #4b5563; font-size: 13px; }
.condition-badge { display: inline-block; padding: 2px 8px; border-radius: 3px; color: white; font-weight: 700; font-size: 11px; letter-spacing: 0.03em; }

/* Search results */
.search-page { max-width: 1200px; margin: 0 auto; padding: 32px 16px; }
.search-page h1 { font-size: 22px; font-weight: 700; color: #111827; margin: 0 0 4px; }
.search-page .sub { color: #6b7280; font-size: 13px; margin: 0 0 24px; }
.search-empty { background: white; border-radius: 12px; border: 1px solid #e5e7eb; padding: 64px 16px; text-align: center; }
.search-empty svg { color: #e5e7eb; margin: 0 auto 16px; display: block; }
.search-empty h3 { font-size: 18px; color: #4b5563; font-weight: 600; margin: 0 0 8px; }
.search-empty p { color: #9ca3af; margin: 0 0 24px; }
.search-empty .btn { display: inline-block; background: #2563eb; color: white; padding: 10px 24px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.search-empty .btn:hover { background: #1d4ed8; }
.search-list { background: white; border-radius: 12px; border: 1px solid #e5e7eb; overflow: hidden; }
.search-list .head { display: none; grid-template-columns: 4fr 2fr 2fr 2fr 2fr; font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; padding: 8px 16px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
@media (min-width: 768px) { .search-list .head { display: grid; } }
.search-list .row { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 16px; border-bottom: 1px solid #f3f4f6; align-items: center; gap: 8px; cursor: pointer; }
@media (min-width: 768px) { .search-list .row { grid-template-columns: 4fr 2fr 2fr 2fr 2fr; gap: 0; } }
.search-list .row:hover { background: #eff6ff80; }
.search-list .name { font-weight: 600; color: #111827; font-size: 13px; }
.search-list .setn { font-size: 11px; color: #9ca3af; }
.search-list .game { font-size: 13px; color: #4b5563; text-transform: capitalize; }
@media (max-width: 767px) { .search-list .game { display: none; } }
.search-list .rare { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 500; background: #eff6ff; color: #1d4ed8; display: inline-block; }
@media (max-width: 767px) { .search-list .rare-cell { display: none; } }
.search-list .from { text-align: right; font-weight: 700; color: #111827; }
.search-list .delta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 12px; font-weight: 600; }
@media (max-width: 767px) { .search-list .delta { display: none; } }
.search-list .delta.up { color: #16a34a; }
.search-list .delta.down { color: #ef4444; }

/* Misc utility */
.cm-singles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .cm-singles-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .cm-singles-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .cm-singles-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1280px) { .cm-singles-grid { grid-template-columns: repeat(6, 1fr); } }

.cm-singles-row {
  display: grid; grid-template-columns: 32px 4fr 2fr 2fr 1fr 2fr; align-items: center;
  padding: 8px 12px; border-bottom: 1px solid #f3f4f6; font-size: 12px;
}
.cm-singles-row:last-child { border-bottom: none; }
.cm-singles-row:hover { background: #f0f4ff; }
.cm-singles-row img { width: 32px; height: 44px; object-fit: cover; border-radius: 3px; }
.cm-singles-row .name { color: #2979bd; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-singles-row .name:hover { text-decoration: underline; }
.cm-singles-row .setname { color: #6b7280; font-size: 11px; }
.cm-singles-row .price { text-align: right; font-weight: 700; color: #333; }
.cm-singles-row .avail { text-align: right; color: #6b7280; font-size: 11px; }
.cm-singles-row .rare {
  font-size: 10px; padding: 2px 6px; border-radius: 3px; border: 1px solid; font-weight: 500;
}

/* Search bar / form on Singles page */
.cm-singles-form { background: white; border: 1px solid #e5e7eb; border-radius: 4px; padding: 16px; margin-bottom: 16px; }
.cm-singles-form-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.cm-singles-form .field { display: flex; flex-direction: column; gap: 4px; }
.cm-singles-form .field.flex1 { flex: 1; min-width: 180px; }
.cm-singles-form label { font-size: 11px; font-weight: 600; color: #4b5563; }
.cm-singles-form select, .cm-singles-form input[type="text"] {
  border: 1px solid #d1d5db; border-radius: 3px; padding: 8px 12px; font-size: 13px; background: white; outline: none; min-width: 160px;
}
.cm-singles-form select:focus, .cm-singles-form input[type="text"]:focus { border-color: #2979bd; }
.cm-singles-form .checks { display: flex; gap: 16px; align-items: center; }
.cm-singles-form .checks label { font-size: 13px; color: #374151; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cm-singles-form .submit {
  background: #1a2f6b; color: white; border: none;
  padding: 8px 24px; border-radius: 3px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: background 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.cm-singles-form .submit:hover { background: #2243a0; }
.cm-singles-results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.cm-singles-results-bar .hits { font-size: 13px; color: #4b5563; }
.cm-singles-results-bar .hits strong { color: #111827; }
.cm-singles-results-bar .hits a { color: #2979bd; }
.cm-singles-results-bar .hits a:hover { text-decoration: underline; }
.cm-singles-results-bar .right { display: flex; align-items: center; gap: 12px; }
.cm-singles-results-bar select { border: 1px solid #d1d5db; border-radius: 3px; padding: 6px 8px; font-size: 13px; background: white; outline: none; cursor: pointer; }
.cm-view-toggle { display: flex; border: 1px solid #d1d5db; border-radius: 3px; overflow: hidden; }
.cm-view-toggle a { padding: 6px 12px; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 6px; color: #4b5563; background: white; }
.cm-view-toggle a + a { border-left: 1px solid #d1d5db; }
.cm-view-toggle a.active { background: #1a2f6b; color: white; }
.cm-view-toggle a:hover:not(.active) { background: #f9fafb; }

/* 404 */
.cm-404 { text-align: center; padding: 80px 16px; max-width: 600px; margin: 0 auto; }
.cm-404 h1 { font-size: 64px; font-weight: 900; color: #1a2f6b; margin: 0 0 12px; }
.cm-404 p { color: #6b7280; margin: 0 0 24px; font-size: 14px; }
.cm-404 a { display: inline-block; background: #1a2f6b; color: white; padding: 10px 24px; border-radius: 3px; font-weight: 600; }
.cm-404 a:hover { background: #2243a0; }

/* Misc helper utility classes ported from JSX */
.text-right { text-align: right; }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.flex-wrap { flex-wrap: wrap; }
.no-wrap { white-space: nowrap; }

/* ═══════════════════════════════════════════
   INFO / STATIC PAGES
═══════════════════════════════════════════ */
.cm-info-page { background: #f4f6f9; min-height: calc(100vh - 200px); padding: 28px 16px 64px; }
.cm-info-inner { max-width: 980px; margin: 0 auto; background: white; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 36px 44px; }
.cm-crumbs { font-size: 12px; color: #6b7280; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.cm-crumbs a { color: #2979bd; text-decoration: none; }
.cm-crumbs .sep { color: #9ca3af; }
.cm-info-title { font-size: 30px; margin: 0 0 8px; color: #1a2f6b; font-weight: 700; }
.cm-info-subtitle { font-size: 15px; color: #4b5563; margin: 0 0 28px; }
.cm-info-body section { margin-bottom: 28px; }
.cm-info-body h2 { font-size: 18px; color: #1a2f6b; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid #e5e7eb; }
.cm-info-body p { font-size: 14px; line-height: 1.65; color: #374151; margin: 0 0 10px; }
.cm-info-body p.lead { font-size: 15px; color: #1f2937; }
.cm-info-body a { color: #2979bd; text-decoration: none; }
.cm-info-body a:hover { text-decoration: underline; }
.cm-info-body ul { margin: 8px 0 12px; padding-left: 22px; font-size: 14px; line-height: 1.8; color: #374151; }
.cm-info-body strong { color: #111827; }

.cm-jobs-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.cm-jobs-table th { background: #f4f6f9; text-align: left; padding: 10px 12px; font-weight: 700; color: #1a2f6b; border-bottom: 2px solid #e5e7eb; }
.cm-jobs-table td { padding: 10px 12px; border-bottom: 1px solid #eef0f3; color: #374151; }
.cm-jobs-table tr:hover td { background: #fafbfc; }

.cm-faq { border: 1px solid #e5e7eb; border-radius: 4px; padding: 12px 14px; margin-bottom: 8px; background: #fafbfc; }
.cm-faq summary { cursor: pointer; font-weight: 600; font-size: 14px; color: #1a2f6b; outline: none; list-style: none; position: relative; padding-right: 24px; }
.cm-faq summary::-webkit-details-marker { display: none; }
.cm-faq summary::after { content: '+'; position: absolute; right: 4px; top: -2px; font-size: 18px; color: #6b7280; transition: transform 0.15s; }
.cm-faq[open] summary::after { content: '–'; }
.cm-faq[open] { background: white; }
.cm-faq > div { margin-top: 10px; font-size: 13px; line-height: 1.65; color: #374151; }

.cm-feedback-form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.cm-feedback-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: #374151; text-transform: uppercase; letter-spacing: 0.4px; }
.cm-feedback-form input, .cm-feedback-form select, .cm-feedback-form textarea { padding: 9px 11px; border: 1px solid #d1d5db; border-radius: 3px; font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.15s; }
.cm-feedback-form input:focus, .cm-feedback-form select:focus, .cm-feedback-form textarea:focus { border-color: #2979bd; }
.cm-feedback-form textarea { resize: vertical; min-height: 110px; }
.cm-feedback-form button { background: #1a2f6b; color: white; border: none; padding: 11px 22px; font-weight: 700; font-size: 13px; border-radius: 3px; cursor: pointer; align-self: flex-start; letter-spacing: 0.4px; }
.cm-feedback-form button:hover { background: #142452; }

.cm-contact-box { margin-top: 28px; padding: 18px 20px; background: linear-gradient(135deg, #1a2f6b 0%, #2979bd 100%); border-radius: 6px; color: white; }
.cm-contact-box h3 { margin: 0 0 6px; font-size: 16px; }
.cm-contact-box p { margin: 0; color: rgba(255,255,255,0.92); font-size: 14px; }
.cm-contact-box a { color: white; font-weight: 700; text-decoration: underline; }

/* Account page grid */
.cm-account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 8px; }
.cm-account-card { display: block; padding: 18px 16px; background: white; border: 1px solid #e5e7eb; border-radius: 6px; text-decoration: none; transition: all 0.15s; }
.cm-account-card:hover { border-color: #2979bd; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(41,121,189,0.15); }
.cm-account-card .ic { font-size: 28px; margin-bottom: 8px; }
.cm-account-card h3 { margin: 0 0 4px; font-size: 15px; color: #1a2f6b; font-weight: 700; }
.cm-account-card p { margin: 0; font-size: 12px; color: #6b7280; line-height: 1.4; }
.cm-account-card.danger:hover { border-color: #dc2626; box-shadow: 0 4px 12px rgba(220,38,38,0.15); }
.cm-account-card.danger h3 { color: #dc2626; }

@media (max-width: 720px) {
  .cm-info-inner { padding: 22px 18px; }
  .cm-info-title { font-size: 22px; }
}
.cm-flash { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; padding: 10px 14px; border-radius: 4px; font-size: 13px; margin-bottom: 16px; font-weight: 600; }

/* ─── User pill (logged-in greeting) ─── */
.cm-userpill { display: inline-flex; align-items: center; gap: 6px; color: white; text-decoration: none; font-size: 12px; font-weight: 600; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(255,255,255,0.08); transition: background 0.15s; max-width: 220px; }
.cm-userpill:hover { background: rgba(255,255,255,0.18); }
.cm-userpill-avatar { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #f59e0b; color: #1a1a1a; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.cm-userpill-greet { opacity: 0.85; }
.cm-userpill-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
@media (max-width: 1023px) {
  .cm-userpill-greet { display: none; }
  .cm-userpill-name { max-width: 90px; }
  .cm-logout-desktop { display: none !important; }
}
@media (max-width: 640px) {
  .cm-userpill { padding: 2px; background: transparent; max-width: none; }
  .cm-userpill-name { display: none; }
  .cm-userpill-avatar { width: 28px; height: 28px; font-size: 13px; }
}

/* ─── Maintenance mode banner ─── */
.cm-maintenance-banner { background: #fef3c7; color: #92400e; border-bottom: 1px solid #fcd34d; padding: 8px 16px; font-size: 13px; text-align: center; line-height: 1.4; }
.cm-maintenance-banner strong { color: #78350f; margin-right: 4px; }

/* ─── Cart additions: flash + coupon-applied + login-cta ─── */
.cart-flash { max-width:1200px; margin:16px auto 0; padding:10px 14px; background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46; border-radius:8px; font-size:14px; }
.cart-summary .coupon-applied { font-size:12px; color:#065f46; margin:6px 0 0; }
.cart-summary .coupon-applied a { color:#dc2626; margin-left:6px; text-decoration:underline; }
.cart-summary .login-cta { width:100%; margin-top:8px; padding:10px; border-radius:8px; border:1px solid #e5e7eb; background:white; cursor:pointer; font-weight:500; color:#374151; }
.cart-summary .login-cta:hover { background:#f9fafb; }

/* ─── Checkout page ─── */
.checkout-page { max-width:1200px; margin:0 auto; padding:32px 16px; }
.checkout-grid { display:grid; grid-template-columns:1fr; gap:24px; }
@media (min-width:1024px) { .checkout-grid { grid-template-columns:2fr 1fr; align-items:start; } }
.checkout-main { display:flex; flex-direction:column; gap:16px; }
.checkout-card { background:white; border:1px solid #e5e7eb; border-radius:12px; padding:20px; box-shadow:0 1px 2px rgba(0,0,0,0.04); }
.checkout-card h2 { font-size:16px; font-weight:700; color:#111827; margin:0 0 14px; }
.checkout-card label { display:flex; flex-direction:column; gap:6px; font-size:13px; color:#374151; font-weight:500; margin-bottom:12px; }
.checkout-card input[type=text], .checkout-card input[type=email], .checkout-card select { padding:10px 12px; border:1px solid #d1d5db; border-radius:8px; font-size:14px; background:white; color:#111827; }
.checkout-card input:focus, .checkout-card select:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,0.1); }
.checkout-row { display:grid; gap:12px; }
.checkout-row.two   { grid-template-columns:1fr 1fr; }
.checkout-row.three { grid-template-columns:2fr 1fr 1.5fr; }
@media (max-width:640px) { .checkout-row.two, .checkout-row.three { grid-template-columns:1fr; } }
.checkout-note { font-size:12px; color:#6b7280; margin:6px 0 0; }

.pay-methods { display:flex; flex-direction:column; gap:8px; }
.pay-opt { display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid #e5e7eb; border-radius:8px; cursor:pointer; transition:all 0.15s; }
.pay-opt:hover { border-color:#9ca3af; background:#f9fafb; }
.pay-opt.selected { border-color:#2563eb; background:#eff6ff; }
.pay-opt input[type=radio] { margin:0; }
.pay-label { display:flex; flex-direction:column; }
.pay-label strong { font-size:14px; color:#111827; }
.pay-label small { font-size:12px; color:#6b7280; margin-top:2px; }

.checkout-items { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.checkout-items li { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #f3f4f6; }
.checkout-items li:last-child { border-bottom:none; }
.checkout-items img { width:40px; height:56px; object-fit:cover; border-radius:4px; background:#f3f4f6; }
.checkout-items .info { flex:1; display:flex; flex-direction:column; gap:2px; }
.checkout-items .info strong { font-size:14px; color:#111827; }
.checkout-items .info small { font-size:12px; color:#6b7280; }
.checkout-items .qprice { display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.checkout-items .qprice .q { font-size:12px; color:#6b7280; }
.checkout-items .qprice .p { font-size:14px; font-weight:700; color:#111827; }

.checkout-summary { background:white; border:1px solid #e5e7eb; border-radius:12px; padding:20px; box-shadow:0 1px 2px rgba(0,0,0,0.04); position:sticky; top:88px; }
.checkout-summary h2 { font-size:16px; font-weight:700; color:#111827; margin:0 0 14px; }
.checkout-summary .row { display:flex; justify-content:space-between; padding:6px 0; font-size:14px; color:#6b7280; }
.checkout-summary .row .free { color:#16a34a; font-weight:600; }
.checkout-summary .total { display:flex; justify-content:space-between; padding:12px 0 16px; margin-top:8px; border-top:1px solid #e5e7eb; font-size:18px; font-weight:800; color:#111827; }
.checkout-summary button.checkout { width:100%; background:#2563eb; color:white; border:none; padding:14px; border-radius:8px; font-size:15px; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; transition:background 0.15s; }
.checkout-summary button.checkout:hover { background:#1d4ed8; }

/* ─── Order confirmation ─── */
.order-confirm { max-width:1100px; margin:0 auto; padding:32px 16px; }
.confirm-hero { text-align:center; padding:32px 16px; background:white; border:1px solid #e5e7eb; border-radius:12px; margin-bottom:24px; }
.confirm-hero .check { display:inline-flex; align-items:center; justify-content:center; width:72px; height:72px; border-radius:50%; background:#dcfce7; color:#16a34a; margin-bottom:16px; }
.confirm-hero h1 { font-size:24px; font-weight:800; color:#111827; margin:0 0 8px; }
.confirm-hero p { color:#374151; margin:6px 0; font-size:15px; }
.confirm-hero p.muted { color:#6b7280; font-size:13px; }
.confirm-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:24px; }
.confirm-grid .span2 { grid-column:1 / -1; }
@media (max-width:768px) { .confirm-grid { grid-template-columns:1fr; } .confirm-grid .span2 { grid-column:auto; } }
.confirm-dl { display:grid; grid-template-columns:auto 1fr; gap:8px 16px; margin:0; font-size:14px; }
.confirm-dl dt { color:#6b7280; font-weight:500; }
.confirm-dl dd { margin:0; color:#111827; font-weight:500; }
.status-pill { display:inline-block; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:600; text-transform:capitalize; }
.status-paid      { background:#dbeafe; color:#1e40af; }
.status-pending   { background:#fef3c7; color:#92400e; }
.status-shipped   { background:#e0e7ff; color:#3730a3; }
.status-delivered { background:#dcfce7; color:#166534; }
.status-refunded  { background:#fee2e2; color:#991b1b; }
.confirm-actions { text-align:center; }
.confirm-actions .btn-primary { display:inline-block; background:#2563eb; color:white; padding:12px 32px; border-radius:8px; font-weight:600; text-decoration:none; }
.confirm-actions .btn-primary:hover { background:#1d4ed8; }

/* ─── Trust strip ─── */
.cm-trust-strip { background: linear-gradient(90deg, #f8fafc, #eef2ff, #f8fafc); border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; padding: 18px 0; }
.cm-trust-inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; text-align: center; }
.cm-trust-item { display: flex; flex-direction: column; gap: 2px; }
.cm-trust-item strong { font-size: 22px; color: #1a2f6b; font-weight: 800; letter-spacing: -0.02em; }
.cm-trust-item span { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
@media (max-width: 760px) { .cm-trust-inner { grid-template-columns: repeat(2, 1fr); } .cm-trust-item:last-child { grid-column: 1 / -1; } }

/* ─── Section sub ─── */
.cm-section-sub { color: #64748b; font-size: 12px; }

/* ─── How It Works steps ─── */
.cm-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 820px) { .cm-steps { grid-template-columns: 1fr; } }
.cm-step { position: relative; background: white; border: 1px solid #e5e7eb; border-radius: 14px; padding: 24px 20px 20px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cm-step:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(26,47,107,0.08); border-color: #c7d2fe; }
.cm-step-num { position: absolute; top: -10px; left: 20px; background: #1a2f6b; color: white; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.08em; }
.cm-step-icon { width: 52px; height: 52px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.cm-step h3 { margin: 0 0 8px; font-size: 16px; color: #1a2f6b; font-weight: 700; }
.cm-step p { margin: 0 0 12px; font-size: 13px; color: #475569; line-height: 1.55; }
.cm-step p strong { color: #1a2f6b; }
.cm-step-link { display: inline-block; font-size: 12px; font-weight: 700; color: #2563eb; letter-spacing: 0.02em; }
.cm-step-link:hover { color: #1d4ed8; text-decoration: underline; }

/* ─── Live activity ─── */
.cm-live-dot { display: inline-block; width: 10px; height: 10px; background: #22c55e; border-radius: 50%; margin-right: 4px; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: cm-pulse 1.6s ease-out infinite; }
@keyframes cm-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.cm-activity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 720px) { .cm-activity-grid { grid-template-columns: 1fr; } }
.cm-activity { display: flex; align-items: center; gap: 12px; background: white; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; transition: background .15s, border-color .15s; }
.cm-activity:hover { background: #f8fafc; border-color: #c7d2fe; }
.cm-activity > img { width: 36px; height: 50px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.cm-activity-body { flex: 1; min-width: 0; }
.cm-activity-line { margin: 0 0 2px; font-size: 13px; color: #1f2937; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-activity-line strong { color: #1a2f6b; }
.cm-activity-line a { color: #2563eb; }
.cm-activity-meta { margin: 0; font-size: 11px; color: #64748b; }
.cm-activity-amt { color: #16a34a; font-weight: 700; }
.cm-activity-badge { background: #dcfce7; color: #15803d; font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 4px; letter-spacing: 0.06em; }

/* ─── Featured sellers ─── */
.cm-sellers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .cm-sellers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cm-sellers-grid { grid-template-columns: 1fr; } }
.cm-seller-card { display: flex; gap: 12px; align-items: center; background: white; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cm-seller-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,47,107,0.08); border-color: #c7d2fe; }
.cm-seller-avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.cm-seller-body { flex: 1; min-width: 0; }
.cm-seller-top { display: flex; align-items: center; gap: 6px; }
.cm-seller-top strong { color: #1a2f6b; font-size: 14px; }
.cm-seller-pro { background: linear-gradient(135deg, #f59e0b, #f97316); color: white; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 3px; letter-spacing: 0.06em; }
.cm-seller-meta { margin: 2px 0 4px; font-size: 11px; color: #64748b; }
.cm-seller-stats { display: flex; gap: 10px; font-size: 11px; color: #475569; font-weight: 600; }
.cm-seller-stats span:first-child { color: #f59e0b; }

/* WhatsApp variant phone */
.cm-footer-phone-alt { background: rgba(37,211,102,0.12); border-color: rgba(37,211,102,0.4); }
.cm-footer-phone-alt:hover { background: rgba(37,211,102,0.22); box-shadow: 0 4px 14px rgba(37,211,102,0.3); }
.cm-footer-phone-alt svg { color: #25d366; }

/* ─── Header messages bell ─── */
.cm-msg-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: white; border-radius: 8px; transition: background .15s; }
.cm-msg-btn:hover { background: rgba(255,255,255,0.1); color: white; }

/* ─── Messenger (buyer) ─── */
.cm-msg-shell { display: grid; grid-template-columns: 320px 1fr; gap: 16px; height: calc(100vh - 220px); min-height: 560px; max-height: 820px; }
@media (max-width: 820px) { .cm-msg-shell { grid-template-columns: 1fr; height: auto; min-height: 0; } .cm-msg-side { display: none; } }

.cm-msg-side { background: white; border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.cm-msg-side-head { display: flex; align-items: center; justify-content: space-between; }
.cm-msg-side-head h2 { margin: 0; font-size: 15px; color: #1a2f6b; font-weight: 700; }
.cm-msg-live { font-size: 11px; color: #16a34a; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }

.cm-msg-thread-card { display: flex; align-items: center; gap: 10px; padding: 10px; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 10px; cursor: pointer; }
.cm-msg-thread-card.active { background: linear-gradient(135deg, #eef2ff, #ede9fe); border-color: #a5b4fc; }
.cm-msg-thread-avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.cm-msg-avatar-admin { background: linear-gradient(135deg, #1a2f6b, #2563eb); }
.cm-msg-thread-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cm-msg-thread-body strong { color: #1a2f6b; font-size: 13px; }
.cm-msg-thread-body span { font-size: 11px; color: #64748b; }
.cm-msg-thread-pin { background: linear-gradient(135deg, #f59e0b, #f97316); color: white; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px; letter-spacing: 0.06em; }

.cm-msg-side-info { margin-top: auto; padding: 12px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; }
.cm-msg-side-info p { margin: 0 0 8px; font-size: 12px; color: #475569; }
.cm-msg-side-info p strong { color: #1a2f6b; }
.cm-msg-wa { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; background: #25d366; color: white; border-radius: 8px; font-size: 12px; font-weight: 700; transition: background .15s; }
.cm-msg-wa:hover { background: #1ebe57; color: white; }
.cm-msg-tel { margin: 8px 0 0; font-size: 12px; }
.cm-msg-tel a { color: #1a2f6b; font-weight: 700; }

.cm-msg-main { background: white; border: 1px solid #e5e7eb; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.cm-msg-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #e5e7eb; background: linear-gradient(180deg, #f8fafc, white); }
.cm-msg-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cm-msg-head-text strong { color: #1a2f6b; font-size: 15px; }
.cm-msg-head-text span { font-size: 11px; color: #64748b; display: inline-flex; align-items: center; gap: 4px; }
.cm-msg-verified { color: #2563eb; }
.cm-msg-head-actions { display: flex; gap: 4px; }
.cm-msg-icon-btn { width: 36px; height: 36px; background: transparent; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; transition: background .15s; font-size: 14px; }
.cm-msg-icon-btn:hover { background: #f1f5f9; }

.cm-msg-stream { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, #f8fafc, #fff); scroll-behavior: smooth; }
.cm-msg-empty { margin: auto; text-align: center; max-width: 320px; color: #64748b; }
.cm-msg-empty-illu { font-size: 48px; margin-bottom: 8px; }
.cm-msg-empty h3 { margin: 0 0 6px; color: #1a2f6b; }
.cm-msg-empty p { margin: 0; font-size: 13px; }

.cm-msg-day { text-align: center; margin: 8px 0; }
.cm-msg-day span { display: inline-block; padding: 3px 10px; background: #e5e7eb; color: #475569; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border-radius: 999px; }

.cm-msg-row { display: flex; align-items: flex-end; gap: 8px; max-width: 76%; }
.cm-msg-row.mine { margin-left: auto; flex-direction: row-reverse; }
.cm-msg-avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 11px; flex-shrink: 0; }
.cm-msg-bubble { background: white; border: 1px solid #e5e7eb; padding: 10px 14px; border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.cm-msg-row.theirs .cm-msg-bubble { border-bottom-left-radius: 4px; }
.cm-msg-row.mine .cm-msg-bubble { background: linear-gradient(135deg, #2563eb, #1a2f6b); color: white; border-color: transparent; border-bottom-right-radius: 4px; }
.cm-msg-bubble p { margin: 0 0 4px; font-size: 14px; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; }
.cm-msg-meta { font-size: 10px; color: rgba(100,116,139,0.85); }
.cm-msg-row.mine .cm-msg-meta { color: rgba(255,255,255,0.75); }

.cm-msg-composer { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid #e5e7eb; background: white; }
.cm-msg-composer textarea { flex: 1; resize: none; border: 1px solid #e5e7eb; border-radius: 18px; padding: 10px 16px; font-size: 14px; font-family: inherit; line-height: 1.4; max-height: 140px; outline: none; transition: border-color .15s, box-shadow .15s; }
.cm-msg-composer textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.cm-msg-send { background: linear-gradient(135deg, #2563eb, #1a2f6b); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s, box-shadow .15s; }
.cm-msg-send:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(37,99,235,0.35); }


/* === Cinematic hero (Poke Vault Warehouse Osaka inspired) === */
.cm-hero-cine { position: relative; overflow: hidden; min-height: 520px; color: #fff; margin: 0; background: #0a0a0a; }
.cm-hero-cine-stage { position: absolute; inset: 0; }
.cm-hero-cine-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease-in-out, visibility 1.1s ease-in-out; }
.cm-hero-cine-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.cm-hero-cine-bg { position: absolute; inset: 0; overflow: hidden; }
.cm-hero-cine-bg img { width: 110%; height: 110%; object-fit: cover; opacity: 0.95; filter: saturate(1.05) contrast(1.05); transform-origin: center; }
.cm-hero-cine-slide.is-active .cm-hero-cine-bg img { animation: cmHeroKenBurns 14s ease-in-out forwards; }
@keyframes cmHeroKenBurns {
  0%   { transform: scale(1.04) translate3d(-1.5%, -1%, 0); }
  50%  { transform: scale(1.10) translate3d(1.5%, 1.2%, 0); }
  100% { transform: scale(1.06) translate3d(-1%, -0.5%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .cm-hero-cine-slide { transition: none; }
  .cm-hero-cine-slide.is-active .cm-hero-cine-bg img { animation: none; }
}
.cm-hero-cine-overlay { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 25% 50%, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 35%, rgba(0,0,0,0.1) 65%, rgba(0,0,0,0.35) 100%),
  linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}
.cm-hero-cine-inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: 520px; padding: 60px 24px; }
.cm-hero-cine-text { max-width: 540px; }
.cm-hero-cine-eyebrow { color: #fff; font-size: 14px; font-weight: 800; font-style: italic; letter-spacing: 0.18em; margin: 0 0 14px; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.cm-hero-cine-title { font-size: 52px; line-height: 1.05; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 14px; text-shadow: 0 4px 16px rgba(0,0,0,0.7); }
.cm-hero-cine-sub { color: rgba(255,255,255,0.92); font-size: 16px; margin: 0 0 28px; max-width: 30em; text-shadow: 0 2px 6px rgba(0,0,0,0.5); }
.cm-hero-cine-spec { color: #fff; font-size: 13px; font-weight: 800; font-style: italic; letter-spacing: 0.15em; margin: 0 0 12px; text-transform: uppercase; }
.cm-hero-cine-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 8px; }
.cm-hero-cine-list li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.95); font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.cm-hero-cine-list .dot { width: 16px; height: 16px; border-radius: 999px; border: 2px solid #22d3ee; background: rgba(34,211,238,0.15); display: inline-block; flex-shrink: 0; box-shadow: 0 0 8px rgba(34,211,238,0.4); }
.cm-hero-cine-btn { display: inline-block; background: #ef4444; color: #fff; padding: 14px 32px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-decoration: none; border-radius: 4px; box-shadow: 0 6px 16px rgba(239,68,68,0.4); transition: background 0.15s, transform 0.15s; }
.cm-hero-cine-btn:hover { background: #dc2626; transform: translateY(-1px); }
.cm-hero-cine-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; color: rgba(255,255,255,0.7); background: rgba(0,0,0,0.35); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 28px; text-decoration: none; line-height: 1; backdrop-filter: blur(4px); }
.cm-hero-cine-arrow:hover { color: #fff; background: rgba(0,0,0,0.6); }
.cm-hero-cine-arrow.left { left: 16px; }
.cm-hero-cine-arrow.right { right: 16px; }
.cm-hero-cine-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.cm-hero-cine-dot { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,0.4); display: block; }
.cm-hero-cine-dot.active { background: #fff; width: 22px; }
@media (max-width: 720px) {
  .cm-hero-cine { min-height: 360px; }
  .cm-hero-cine-inner { min-height: 360px; padding: 22px 16px 38px; align-items: flex-start; }
  .cm-hero-cine-eyebrow { font-size: 11px; letter-spacing: 0.16em; margin: 0 0 6px; }
  .cm-hero-cine-title { font-size: 24px; line-height: 1.05; margin: 0 0 6px; }
  .cm-hero-cine-sub { font-size: 12px; margin: 0 0 12px; }
  .cm-hero-cine-spec { font-size: 10px; letter-spacing: 0.14em; margin: 0 0 6px; }
  .cm-hero-cine-list { gap: 4px; margin: 0 0 14px; }
  .cm-hero-cine-list li { font-size: 12px; gap: 8px; }
  .cm-hero-cine-list .dot { width: 11px; height: 11px; border-width: 2px; }
  .cm-hero-cine-btn { padding: 9px 22px; font-size: 11px; letter-spacing: 0.1em; }
  .cm-hero-cine-arrow { width: 30px; height: 30px; font-size: 18px; }
  .cm-hero-cine-arrow.left { left: 6px; }
  .cm-hero-cine-arrow.right { right: 6px; }
  .cm-hero-cine-dots { bottom: 10px; }
  .cm-hero-cine-dot { width: 7px; height: 7px; }
  .cm-hero-cine-dot.active { width: 18px; }
}
@media (max-width: 380px) {
  .cm-hero-cine { min-height: 330px; }
  .cm-hero-cine-inner { min-height: 330px; padding: 18px 14px 34px; }
  .cm-hero-cine-title { font-size: 21px; }
}

/* === Per-category 4-card showcase rows === */
.cm-cat-row { margin: 0 0 28px; }
.cm-cat-row-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; gap: 12px; flex-wrap: wrap; }
.cm-cat-row-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: #1a2f6b; margin: 0; text-transform: uppercase; letter-spacing: 0.02em; }
.cm-cat-row-bar { display: inline-block; width: 4px; height: 22px; border-radius: 2px; }
.cm-cat-row-link { font-size: 13px; font-weight: 700; color: #2979bd; text-decoration: none; letter-spacing: 0.04em; }
.cm-cat-row-link:hover { color: #1a2f6b; text-decoration: underline; }
.cm-cat-row-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cm-cat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.cm-cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(26,47,107,0.15); border-color: #2979bd; }
.cm-cat-card-img { aspect-ratio: 3 / 4; background: #f8fafc; display: flex; align-items: center; justify-content: center; padding: 10px; }
.cm-cat-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cm-cat-card-body { padding: 10px 12px 12px; }
.cm-cat-card-name { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: #1a2f6b; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 34px; }
.cm-cat-card-price { margin: 0; font-size: 13px; font-weight: 700; color: #ef4444; }
@media (max-width: 900px) { .cm-cat-row-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cm-cat-row-grid { gap: 10px; } .cm-cat-card-body { padding: 8px; } .cm-cat-card-name { font-size: 12px; } }

/* === How It Works — compact above-footer variant === */
.cm-howit-mini { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 18px 22px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.cm-howit-mini-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cm-howit-mini-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: #1a2f6b; text-transform: uppercase; letter-spacing: 0.04em; }
.cm-howit-mini-head span { color: #64748b; font-size: 13px; }
.cm-howit-mini-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cm-howit-mini-grid li { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; padding: 10px 12px; background: #f8fafc; border-radius: 6px; border: 1px solid #eef2f7; }
.cm-howit-mini-grid .n { width: 22px; height: 22px; border-radius: 999px; background: #1a2f6b; color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cm-howit-mini-grid .ic { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cm-howit-mini-grid .tx { display: flex; flex-direction: column; min-width: 0; }
.cm-howit-mini-grid .tx strong { font-size: 13px; color: #1a2f6b; font-weight: 700; }
.cm-howit-mini-grid .tx span { font-size: 12px; color: #64748b; line-height: 1.4; }
@media (max-width: 820px) { .cm-howit-mini-grid { grid-template-columns: 1fr; } }

/* === Dark shop band — DEPRECATED (kept for backward compat, not applied) === */
.cm-dark-shop--legacy-disabled {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(196,30,58,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(34,211,238,0.08) 0%, transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #111418 50%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
}
.cm-dark-shop::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 22px 22px, 36px 36px;
  background-position: 0 0, 11px 11px;
  pointer-events: none;
  opacity: 0.7;
}
.cm-dark-shop-inner { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 48px; }
@media (max-width: 720px) { .cm-dark-shop-inner { padding-top: 28px; padding-bottom: 28px; } }

.cm-cat-row--dark { margin-bottom: 36px; }
.cm-cat-row--dark .cm-cat-row-head { margin-bottom: 18px; }
.cm-cat-row--dark .cm-cat-row-title {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  gap: 12px;
}
.cm-cat-row--dark .cm-cat-row-bar { width: 5px; height: 28px; border-radius: 2px; box-shadow: 0 0 12px currentColor; }
.cm-cat-row--dark .cm-cat-row-link {
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 14px;
  border-radius: 4px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-transform: uppercase;
}
.cm-cat-row--dark .cm-cat-row-link:hover { background: #ef4444; border-color: #ef4444; color: #fff; text-decoration: none; }

.cm-cat-row--dark .cm-cat-card {
  background: linear-gradient(180deg, #1c2128 0%, #14171c 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cm-cat-row--dark .cm-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(239,68,68,0.25), 0 4px 12px rgba(0,0,0,0.5);
  border-color: rgba(239,68,68,0.6);
}
.cm-cat-row--dark .cm-cat-card-img {
  background: radial-gradient(ellipse at center, #1f242b 0%, #0e1115 100%);
  padding: 14px;
}
.cm-cat-row--dark .cm-cat-card-body { padding: 12px 14px 14px; }
.cm-cat-row--dark .cm-cat-card-name { color: #f1f5f9; font-weight: 600; font-size: 13px; }
.cm-cat-row--dark .cm-cat-card-price { color: #fca5a5; font-weight: 800; font-size: 13px; }

@media (max-width: 720px) {
  .cm-cat-row--dark { margin-bottom: 28px; }
  .cm-cat-row--dark .cm-cat-row-title { font-size: 18px; gap: 10px; }
  .cm-cat-row--dark .cm-cat-row-bar { height: 20px; width: 4px; }
  .cm-cat-row--dark .cm-cat-row-link { padding: 6px 10px; font-size: 11px; letter-spacing: 0.04em; }
}

/* === Cinematic hero — compact / slim variants for inner pages === */
.cm-hero-cine--compact { min-height: 360px; }
.cm-hero-cine--compact .cm-hero-cine-inner { min-height: 360px; padding: 40px 24px; }
.cm-hero-cine--compact .cm-hero-cine-title { font-size: 42px; margin-bottom: 10px; }
.cm-hero-cine--compact .cm-hero-cine-sub { margin-bottom: 0; }

.cm-hero-cine--slim { min-height: 240px; }
.cm-hero-cine--slim .cm-hero-cine-inner { min-height: 240px; padding: 32px 24px; }
.cm-hero-cine--slim .cm-hero-cine-title { font-size: 34px; margin-bottom: 8px; }
.cm-hero-cine--slim .cm-hero-cine-sub { margin-bottom: 0; font-size: 14px; }

@media (max-width: 720px) {
  .cm-hero-cine--compact { min-height: 280px; }
  .cm-hero-cine--compact .cm-hero-cine-inner { min-height: 280px; padding: 28px 16px; }
  .cm-hero-cine--compact .cm-hero-cine-title { font-size: 26px; }
  .cm-hero-cine--slim { min-height: 180px; }
  .cm-hero-cine--slim .cm-hero-cine-inner { min-height: 180px; padding: 22px 16px; }
  .cm-hero-cine--slim .cm-hero-cine-title { font-size: 22px; }
}

/* Keep tab pills readable when overlaid on the cinematic hero */
.cm-hero-cine .cm-tab-pill {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
}
.cm-hero-cine .cm-tab-pill:hover { background: rgba(255,255,255,0.22); text-decoration: none; }
.cm-hero-cine .cm-tab-pill.active { background: #ef4444; border-color: #ef4444; color: #fff; }

/* === Live Activity — upgraded ticker === */
.cm-live-head .cm-section-title { display: flex; align-items: center; gap: 10px; }
.cm-live-counter {
  font-size: 11px; font-weight: 700; color: #16a34a;
  background: #dcfce7; padding: 3px 8px; border-radius: 999px;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid #86efac;
}
.cm-activity {
  display: flex; align-items: center; gap: 12px;
  background: white; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 12px 14px;
  transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  position: relative; overflow: hidden;
}
.cm-activity::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: #16a34a;
}
.cm-activity[data-pay="crypto"]::before { background: #f97316; }
.cm-activity[data-pay="apple"]::before  { background: #111827; }
.cm-activity[data-pay="zelle"]::before  { background: #7c3aed; }
.cm-activity[data-pay="cashapp"]::before { background: #00d54b; }
.cm-activity[data-pay="reserved"]::before { background: #2563eb; }
.cm-activity:hover {
  border-color: #c7d2fe;
  box-shadow: 0 6px 16px rgba(37,99,235,0.10);
  transform: translateY(-1px);
}
.cm-activity > img { width: 44px; height: 60px; object-fit: cover; border-radius: 5px; flex-shrink: 0; box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
.cm-activity-line { margin: 0 0 4px; font-size: 13px; color: #1f2937; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-activity-qty { font-size: 11px; font-weight: 700; color: #ef4444; background: #fee2e2; padding: 1px 5px; border-radius: 3px; margin-left: 4px; }
.cm-activity-meta { margin: 0; font-size: 11px; color: #64748b; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cm-activity-loc, .cm-activity-time { display: inline-flex; align-items: center; gap: 4px; }
.cm-activity-amt { color: #16a34a; font-weight: 800; font-size: 13px; margin-left: auto; }
.cm-activity-badge {
  font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 4px;
  letter-spacing: 0.06em; white-space: nowrap;
  background: #dcfce7; color: #15803d;
}
.cm-pay-crypto   { background: #ffedd5; color: #c2410c; }
.cm-pay-apple    { background: #1f2937; color: #fff; }
.cm-pay-zelle    { background: #ede9fe; color: #6d28d9; }
.cm-pay-cashapp  { background: #d1fae5; color: #047857; }
.cm-pay-reserved { background: #dbeafe; color: #1d4ed8; }

/* Slide-in animation when JS prepends a new item */
@keyframes cmActivityIn {
  0%   { opacity: 0; transform: translateY(-12px) scale(0.97); max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; }
  60%  { opacity: 1; max-height: 100px; padding-top: 12px; padding-bottom: 12px; }
  100% { opacity: 1; transform: translateY(0) scale(1); max-height: 100px; }
}
.cm-activity--new { animation: cmActivityIn .55s ease-out both; box-shadow: 0 0 0 2px rgba(22,163,74,0.35), 0 6px 16px rgba(22,163,74,0.18); border-color: #86efac; }

/* Pulsing live dot */
.cm-live-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,0.7);
  animation: cmLivePulse 1.6s infinite;
  margin-right: 4px;
}
@keyframes cmLivePulse {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
@media (prefers-reduced-motion: reduce) {
  .cm-live-dot, .cm-activity--new { animation: none; }
}

/* On wider screens, show 3 columns of activity for density */
@media (min-width: 1024px) {
  .cm-activity-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === VIP transparent navbar (home page hero overlay) === */
body.cm-has-hero { padding-top: 0; }
body.cm-has-hero .cm-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
body.cm-has-hero .cm-header .cm-topbar {
  background: linear-gradient(180deg, rgba(7,9,18,0.65) 0%, rgba(7,9,18,0.25) 100%);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body.cm-has-hero .cm-header .cm-secbar {
  background: linear-gradient(180deg, rgba(7,9,18,0.35) 0%, rgba(7,9,18,0) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
body.cm-has-hero .cm-header.cm-header--scrolled .cm-topbar {
  background: rgba(10, 14, 28, 0.92);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 6px 22px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.04) inset;
}
body.cm-has-hero .cm-header.cm-header--scrolled .cm-secbar {
  background: rgba(10, 14, 28, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
/* Hero starts at top of viewport behind the transparent header */
body.cm-has-hero main > .cm-hero-cine:first-child,
body.cm-has-hero main:first-of-type .cm-hero-cine:first-child { margin-top: 0; }
body.cm-has-hero .cm-hero-cine:first-of-type { padding-top: 0; }
body.cm-has-hero .cm-hero-cine:first-of-type .cm-hero-cine-inner { padding-top: 130px; }
@media (max-width: 720px) {
  body.cm-has-hero .cm-hero-cine:first-of-type .cm-hero-cine-inner { padding-top: 110px; }
}

/* Subtle gold-trim VIP accent under the brand mark */
body.cm-has-hero .cm-logo svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.55)); }
body.cm-has-hero .cm-game-btn,
body.cm-has-hero .cm-products-btn,
body.cm-has-hero .cm-search-input,
body.cm-has-hero .cm-search-select {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.18) !important;
  color: #fff !important;
}
body.cm-has-hero .cm-search-input::placeholder { color: rgba(255,255,255,0.6); }
body.cm-has-hero .cm-input { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.18); }
body.cm-has-hero .cm-input::placeholder { color: rgba(255,255,255,0.6); }
body.cm-has-hero .cm-input-icon { color: rgba(255,255,255,0.7); }
body.cm-has-hero .cm-cart-btn,
body.cm-has-hero .cm-msg-btn,
body.cm-has-hero .cm-hamburger { color: #fff; }

/* Scroll-aware navbar JS hook is added inline via header script */

/* Per-slide fit modes for hero carousel */
.cm-hero-cine-slide--fit-contain .cm-hero-cine-bg img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}
.cm-hero-cine-slide--fit-contain .cm-hero-cine-overlay {
  background: linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.15) 65%, rgba(0,0,0,0.05) 100%) !important;
}
@media (max-width: 720px) {
  .cm-hero-cine-slide--fit-contain .cm-hero-cine-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.7) 100%) !important;
  }
}

/* === Live Activity head v2 — mobile-first VIP === */
.cm-live-head-v2 { margin: 8px 0 14px; }
.cm-live-head-v2__row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.cm-live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #b91c1c; font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; padding: 5px 10px; border-radius: 999px;
  border: 1px solid #fca5a5;
  box-shadow: 0 1px 3px rgba(239,68,68,0.18);
  text-transform: uppercase;
}
.cm-live-pill .cm-live-dot { margin: 0; width: 7px; height: 7px; background: #ef4444; }
.cm-live-title {
  font-size: 18px; font-weight: 800; color: #1a2f6b; margin: 0;
  letter-spacing: -0.01em;
}
.cm-live-counter-v2 {
  margin-left: auto;
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 800; color: #15803d;
  background: #dcfce7; padding: 5px 11px; border-radius: 999px;
  border: 1px solid #86efac; letter-spacing: 0.02em;
  white-space: nowrap;
}
.cm-live-sub {
  margin: 8px 0 0; color: #64748b; font-size: 13px; line-height: 1.45;
}

@media (max-width: 720px) {
  .cm-live-head-v2 {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 14px 12px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  }
  .cm-live-head-v2__row {
    gap: 8px;
  }
  .cm-live-title {
    font-size: 16px; flex: 1; min-width: 0;
  }
  .cm-live-counter-v2 {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 8px 12px;
    margin-top: 4px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  }
  .cm-live-counter-v2::before {
    content: "🔥"; margin-right: 6px; font-size: 14px;
  }
  .cm-live-sub {
    font-size: 12px; margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
  }

  /* Tighter activity cards on mobile */
  .cm-activity {
    padding: 10px 12px; gap: 10px;
    border-radius: 12px;
  }
  .cm-activity > img { width: 40px; height: 56px; }
  .cm-activity-line {
    font-size: 12.5px; white-space: normal; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
  }
  .cm-activity-meta {
    font-size: 11px; gap: 8px; margin-top: 2px;
  }
  .cm-activity-amt { font-size: 13px; }
  .cm-activity-badge {
    position: absolute; top: 8px; right: 8px;
    font-size: 9px; padding: 3px 6px;
  }
}

/* === VIP Buy Bar — compact, premium, sits below the card === */
.cm-buybox {
  position: relative;
  margin: 18px 0 22px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #0a1a3d 0%, #1a2f6b 55%, #142452 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(10,26,61,0.25);
  overflow: hidden;
}
.cm-buybox::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, #d4af37 20%, #f4d27a 50%, #d4af37 80%, transparent 100%);
}
.cm-buybox::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.45), transparent);
}
.cm-buybox__brand {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  background: linear-gradient(135deg, rgba(212,175,55,0.20), rgba(212,175,55,0.08));
  border: 1px solid rgba(212,175,55,0.55);
  border-radius: 999px;
  color: #f4d27a; font-size: 10px; font-weight: 800; letter-spacing: 0.14em;
}
.cm-buybox__crest { font-size: 11px; line-height: 1; color: #f4d27a; }
.cm-buybox__price {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.cm-buybox__amt {
  font-size: 22px; font-weight: 900; color: #ffffff; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.cm-buybox__ship {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #6ee7a3;
  background: rgba(34,197,94,0.14);
  border: 1px solid rgba(110,231,163,0.35);
  padding: 3px 7px; border-radius: 999px;
}
.cm-buybox__each {
  font-size: 10.5px; font-weight: 700; color: #d4af37;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.35);
  padding: 3px 7px; border-radius: 999px;
}
.cm-buybox__form {
  display: inline-flex; align-items: stretch; gap: 8px; margin-left: auto;
}
.cm-buybox__qty {
  display: inline-flex; align-items: stretch;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px; overflow: hidden;
  backdrop-filter: blur(4px);
}
.cm-buybox__step {
  width: 28px; border: 0; background: transparent; color: #f4d27a;
  font-size: 15px; font-weight: 800; cursor: pointer; line-height: 1;
  transition: background .15s, color .15s;
}
.cm-buybox__step:hover { background: rgba(212,175,55,0.18); color: #ffffff; }
.cm-buybox__qtyinput {
  width: 40px; border: 0; text-align: center;
  font-size: 13px; font-weight: 800;
  color: #ffffff; background: transparent;
  -moz-appearance: textfield;
}
.cm-buybox__qtyinput::-webkit-outer-spin-button,
.cm-buybox__qtyinput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cm-buybox__add {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 16px; min-height: 36px;
  background: linear-gradient(135deg, #f4d27a 0%, #d4af37 50%, #b8902c 100%);
  color: #1a1a1a; border: 0; border-radius: 8px;
  font-size: 11.5px; font-weight: 900; letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(212,175,55,0.35), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform .15s, box-shadow .15s, filter .15s;
  white-space: nowrap;
}
.cm-buybox__add:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212,175,55,0.45), inset 0 1px 0 rgba(255,255,255,0.5);
}
.cm-buybox__add svg { color: #1a1a1a; }
.cm-buybox__meta {
  width: 100%;
  margin: 6px 0 0;
  padding-top: 8px;
  border-top: 1px dashed rgba(212,175,55,0.25);
  font-size: 11px;
  color: rgba(255,255,255,0.72);
}
.cm-buybox__meta a { color: #f4d27a; font-weight: 700; }
.cm-buybox__meta a:hover { color: #ffffff; }
.cm-buybox__meta strong { color: #ffffff; font-weight: 700; }

@media (max-width: 720px) {
  .cm-buybox {
    padding: 10px 12px;
    gap: 8px;
    border-radius: 10px;
  }
  .cm-buybox__brand { font-size: 9px; padding: 3px 7px; }
  .cm-buybox__amt { font-size: 19px; }
  .cm-buybox__ship { font-size: 9.5px; padding: 2px 6px; }
  .cm-buybox__form { width: 100%; margin-left: 0; }
  .cm-buybox__add { flex: 1; min-height: 38px; font-size: 12px; }
  .cm-buybox__qty { flex-shrink: 0; }
  .cm-buybox__step { width: 32px; }
  .cm-buybox__qtyinput { width: 42px; }
}
