/* CardRush.bid UI layouts (vendored from Downloads/UI mockups). No Tailwind CDN.
   Breakpoints: desk 800px, lg 1100px, xl 1440px, 2xl 1920px. */

:root {
  --cr-desk: 800px;
  --cr-lg: 1100px;
  --cr-xl: 1440px;
  --cr-2xl: 1920px;
  --cr-grad-hover: linear-gradient(90deg, #c026d3, #06b6d4);
  --cr-header-h: 64px;
}

@media (min-width: 800px) {
  :root { --cr-header-h: 80px; }
}

html { scrollbar-color: #3b1c6b #05020a; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #05020a; }
::-webkit-scrollbar-thumb { background: #3b1c6b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #d946ef; }

.cr-no-scroll::-webkit-scrollbar { display: none; }
.cr-no-scroll { -ms-overflow-style: none; scrollbar-width: none; }

.neon-glow-purple { box-shadow: 0 0 15px rgba(217, 70, 239, 0.45); }
.neon-glow-cyan { box-shadow: 0 0 12px rgba(34, 211, 238, 0.4); }
.neon-text-cyan { text-shadow: 0 0 8px rgba(34, 211, 238, 0.6); }

.icon-filter-primary {
  filter: brightness(0) saturate(100%) invert(35%) sepia(91%) saturate(3015%) hue-rotate(279deg) brightness(98%) contrast(97%);
}
.icon-filter-white { filter: brightness(0) invert(1); }
.active-glow { filter: drop-shadow(0 0 8px rgba(217, 70, 239, 0.9)); }

@media (min-width: 800px) {
  body.cr-body.cr-has-nav {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
}

/* ===== Shared header ===== */
.cr-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: var(--cr-header-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: rgba(19, 7, 34, 0.9);
  border-bottom: 1px solid var(--cr-border);
  backdrop-filter: blur(16px);
}
@media (min-width: 800px) {
  .cr-topbar { padding: 0 24px; }
}
.cr-topbar-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.cr-topbar .cr-wordmark { flex-shrink: 0; margin-right: 8px; }
.cr-topbar .cr-logo {
  height: 24px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(217, 70, 239, 0.6));
}
@media (min-width: 800px) {
  .cr-topbar .cr-logo { height: 28px; }
}
@media (min-width: 1100px) {
  .cr-topbar .cr-logo { height: 32px; }
}

.cr-desk-search {
  display: none;
  flex: 1;
  min-width: 0;
  margin-left: auto;
  margin-right: 8px;
  max-width: 720px;
}
@media (min-width: 800px) {
  .cr-desk-search { display: block; }
}
@media (min-width: 1920px) {
  .cr-desk-search { flex: none; width: 50%; max-width: none; }
}
.cr-desk-search-wrap { position: relative; width: 100%; }
.cr-desk-search input[type="search"],
.cr-desk-search input[type="text"] {
  width: 100%;
  background: var(--cr-dark);
  border: 2px solid var(--cr-border);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8125rem;
  padding: 8px 88px 8px 44px;
  outline: none;
}
.cr-desk-search input:focus {
  border-color: var(--cr-primary);
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.3);
}
.cr-desk-search .cr-search-ico {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.5;
  pointer-events: none;
}
.cr-desk-search button[type="submit"] {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: var(--cr-grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 16px;
  cursor: pointer;
}
.cr-desk-search button[type="submit"]:hover { transform: translateY(-50%) scale(1.05); }

.cr-desk-links {
  display: none;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: 8px;
}
@media (min-width: 800px) {
  .cr-desk-links { display: flex; }
}
@media (min-width: 1100px) {
  .cr-desk-links { gap: 24px; }
}
.cr-publish-btn {
  background: var(--cr-grad);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.35);
  white-space: nowrap;
}
.cr-publish-btn:hover { color: #fff !important; transform: scale(1.04); }
.cr-publish-btn .cr-pub-ico {
  position: relative;
  width: 14px;
  height: 14px;
  display: inline-flex;
}
.cr-publish-btn .cr-pub-ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cr-publish-btn .cr-pub-ping {
  position: absolute;
  inset: 0;
  animation: crPing 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.cr-desk-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--cr-muted);
  text-decoration: none;
  position: relative;
  min-width: 44px;
  transition: color 0.2s, transform 0.2s;
}
.cr-desk-link:hover { color: #fff; transform: translateY(-2px); }
.cr-desk-link.is-on { color: var(--cr-primary); }
.cr-desk-link.is-on img {
  filter: brightness(0) saturate(100%) invert(35%) sepia(91%) saturate(3015%) hue-rotate(279deg) brightness(98%) contrast(97%) drop-shadow(0 0 8px rgba(217, 70, 239, 0.9));
  opacity: 1;
}
.cr-desk-link:hover:not(.is-on) img { filter: brightness(0) invert(1); opacity: 1; }
.cr-desk-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.7;
  margin-bottom: 2px;
}
@media (min-width: 1100px) {
  .cr-desk-link img { width: 24px; height: 24px; }
}
.cr-desk-link span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
@media (min-width: 1100px) {
  .cr-desk-link span { font-size: 10px; }
}
.cr-desk-link .cr-nav-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--cr-red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  min-width: 16px;
  text-align: center;
}

.cr-mob-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
@media (min-width: 800px) {
  .cr-mob-tools { display: none; }
}
.cr-topbar.is-find .cr-wordmark { display: none; }
.cr-topbar.is-find .cr-mob-search-form { display: flex; flex: 1; }
.cr-topbar.is-find [data-search-toggle] { display: none; }
.cr-mob-search-form {
  display: none;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  background: var(--cr-dark);
  border: 2px solid var(--cr-border);
  border-radius: 999px;
  padding: 4px 12px;
}
.cr-mob-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  outline: none;
  font-size: 0.9rem;
}

/* ===== Bottom nav (mobile < 800px) ===== */
.cr-nav {
  height: auto;
  min-height: 72px;
  padding: 6px 8px calc(10px + env(safe-area-inset-bottom, 0));
  background: rgba(19, 7, 34, 0.95);
  backdrop-filter: blur(16px);
}
@media (min-width: 800px) {
  .cr-nav { display: none !important; }
}
@media (min-width: 992px) {
  .cr-nav { display: none !important; }
}
.cr-nav-plus {
  background: var(--cr-primary);
  border: 4px solid var(--cr-card);
  box-shadow: 0 0 18px rgba(217, 70, 239, 0.55);
}
.cr-nav-item.is-on { color: var(--cr-primary); }
.cr-nav-item.is-on .cr-png-nav { filter: brightness(0) saturate(100%) invert(35%) sepia(91%) saturate(3015%) hue-rotate(279deg) brightness(98%) contrast(97%) drop-shadow(0 0 8px rgba(217, 70, 239, 0.9)); }
.cr-nav-plus .cr-png-plus { filter: brightness(0) invert(1); }

/* ===== Chips / page shell ===== */
.cr-page {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  min-width: 0;
}
@media (min-width: 1920px) {
  .cr-page { padding-left: 40px; padding-right: 40px; }
}
.cr-chip-row {
  position: sticky;
  top: var(--cr-header-h);
  z-index: 40;
  background: rgba(5, 2, 10, 0.8);
  backdrop-filter: blur(12px);
}
@media (min-width: 800px) {
  .cr-chip-row.cr-chips-home { display: none; }
}

/* ===== Explore sidebar + main ===== */
.cr-shell {
  display: flex;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  min-width: 0;
}
.cr-explore {
  display: none;
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid rgba(59, 28, 107, 0.5);
  background: rgba(5, 2, 10, 0.3);
  padding: 24px 16px;
  position: sticky;
  top: var(--cr-header-h);
  align-self: flex-start;
  max-height: calc(100dvh - var(--cr-header-h));
  overflow-y: auto;
}
@media (min-width: 800px) {
  .cr-explore { display: block; }
}
@media (min-width: 1100px) { .cr-explore { width: 240px; padding: 24px; } }
@media (min-width: 1440px) { .cr-explore { width: 260px; } }
.cr-explore-kicker {
  font-size: 10px;
  font-weight: 800;
  color: var(--cr-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
@media (min-width: 800px) { .cr-explore-kicker { font-size: 12px; } }
.cr-explore h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}
.cr-explore h3::before {
  content: "";
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: var(--cr-primary);
}
.cr-explore h3.is-cyan::before { background: var(--cr-secondary); }
.cr-explore-block { margin-bottom: 24px; }
.cr-explore label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--cr-muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.cr-explore label:hover { color: #fff; }
.cr-explore input[type="checkbox"] {
  accent-color: var(--cr-primary);
  width: 16px;
  height: 16px;
}
.cr-explore-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-explore-pill {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 2px solid var(--cr-border);
  background: var(--cr-card);
  color: var(--cr-muted);
  text-decoration: none;
}
.cr-explore-pill:hover { border-color: var(--cr-secondary); color: #fff; }
.cr-explore-pill.is-on {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--cr-secondary);
  color: var(--cr-secondary);
}
.cr-mode-toggle {
  display: flex;
  background: var(--cr-card);
  border: 2px solid var(--cr-border);
  border-radius: 10px;
  padding: 4px;
}
.cr-mode-toggle a {
  flex: 1;
  text-align: center;
  font-size: 11px;
  padding: 6px 4px;
  border-radius: 6px;
  color: var(--cr-muted);
  text-decoration: none;
  font-weight: 700;
}
.cr-mode-toggle a.is-on {
  background: var(--cr-primary);
  color: #fff;
}

.cr-main {
  flex: 1;
  min-width: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 800px) { .cr-main { padding: 24px; } }
@media (min-width: 1440px) { .cr-main { padding: 32px; } }

/* ===== Home banner ===== */
.cr-banner {
  position: relative;
  width: 100%;
  height: 128px;
  border-radius: 16px;
  border: 2px solid var(--cr-border);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.12);
}
@media (min-width: 800px) {
  .cr-banner { height: 160px; border-radius: 24px; margin-bottom: 32px; }
}
.cr-banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}
.cr-banner-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  overflow: hidden;
}
@media (min-width: 800px) {
  .cr-banner-slide { padding: 0 40px; }
}
.cr-banner-slide.is-a { background: linear-gradient(90deg, #1f0d36, #0d0620); }
.cr-banner-slide.is-b { background: linear-gradient(90deg, #0a1a2f, #061018); }
.cr-banner-slide.is-c { background: linear-gradient(90deg, #1b0a2e, #0a0618); }
.cr-banner-slide.is-d { background: linear-gradient(90deg, #180525, #0a0414); }
.cr-banner-slide.is-e { background: linear-gradient(90deg, #1f0d36, #14081f); }
.cr-banner-kicker {
  display: inline-block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
@media (min-width: 800px) { .cr-banner-kicker { font-size: 12px; padding: 4px 8px; } }
.cr-banner-kicker.is-cyan { background: var(--cr-secondary); color: var(--cr-dark); }
.cr-banner-kicker.is-pink { background: var(--cr-primary); color: #fff; }
.cr-banner-kicker.is-orange { background: #f97316; color: #fff; }
.cr-banner h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
}
@media (min-width: 800px) { .cr-banner h2 { font-size: 1.75rem; margin-bottom: 8px; } }
.cr-banner p {
  margin: 0;
  font-size: 10px;
  color: var(--cr-muted);
  max-width: 200px;
}
@media (min-width: 800px) { .cr-banner p { font-size: 0.9rem; max-width: none; } }
.cr-banner-orb {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 128px;
  height: 128px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(36px);
}
@media (min-width: 800px) {
  .cr-banner-orb { width: 256px; height: 256px; right: 40px; filter: blur(50px); }
}
.cr-banner-orb.is-pink { background: rgba(217, 70, 239, 0.22); }
.cr-banner-orb.is-cyan { background: rgba(34, 211, 238, 0.2); }
.cr-banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(19, 7, 34, 0.6);
  color: #fff;
  z-index: 3;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
@media (min-width: 800px) { .cr-banner-nav { width: 32px; height: 32px; } }
.cr-banner-nav:hover { background: rgba(217, 70, 239, 0.8); }
.cr-banner-nav.is-prev { left: 12px; }
.cr-banner-nav.is-next { right: 12px; }
.cr-banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
  background: rgba(5, 2, 10, 0.45);
  padding: 4px 10px;
  border-radius: 999px;
}
.cr-banner-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
}
.cr-banner-dots button.is-on {
  background: var(--cr-primary);
  box-shadow: 0 0 6px #d946ef;
  width: 8px;
  height: 8px;
}

/* ===== Section head / tile grid ===== */
.cr-sec-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 800px) {
  .cr-sec-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
  }
}
.cr-sec-head h2,
.cr-sec-head h1 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 800px) {
  .cr-sec-head h2, .cr-sec-head h1 { font-size: 1.5rem; }
}
.cr-sec-head .cr-all-link {
  font-size: 12px;
  color: var(--cr-secondary);
}
@media (min-width: 800px) {
  .cr-sec-head .cr-all-link.cr-mob-only { display: none; }
}
.cr-sort {
  display: none;
  background: var(--cr-card);
  border: 2px solid var(--cr-border);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  padding: 6px 12px;
}
@media (min-width: 800px) { .cr-sort { display: block; } }

.cr-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
@media (min-width: 800px) { .cr-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1100px) { .cr-tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .cr-tile-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1920px) { .cr-tile-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

/* Override legacy bootstrap-col tiles */
.cr-tile-grid > .col-6,
.cr-tile-grid > [class*="col-"] {
  width: auto;
  max-width: none;
  padding: 0;
}

.cr-tile {
  background: var(--cr-card);
  border: 2px solid var(--cr-border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
@media (min-width: 800px) { .cr-tile { border-radius: 20px; } }
a.cr-tile, .cr-tile-link { color: inherit; }
.cr-tile:hover, a.cr-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(217, 70, 239, 0.2);
  border-color: var(--cr-primary);
  color: inherit;
}
.cr-tile.is-hot { border-color: rgba(217, 70, 239, 0.5); }
.cr-tile .cr-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
@media (min-width: 800px) {
  .cr-tile .cr-heart { top: 12px; right: 12px; }
}
.cr-tile .cr-heart img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(35%) sepia(91%) saturate(3015%) hue-rotate(279deg) brightness(98%) contrast(97%);
  drop-shadow: 0 2px 4px #000;
}
@media (min-width: 800px) {
  .cr-tile .cr-heart img { width: 24px; height: 24px; }
}
.cr-tile .cr-heart[aria-pressed="false"] img { opacity: 0.55; filter: brightness(0) invert(1); }
.cr-tile .cr-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--cr-primary);
  color: var(--cr-dark);
}
@media (min-width: 800px) {
  .cr-tile .cr-badge { top: 12px; left: 12px; font-size: 10px; }
}
.cr-tile .cr-badge.bin {
  background: var(--cr-secondary);
  color: var(--cr-dark);
}
.cr-tile .cr-badge.sold,
.cr-tile .cr-badge.done { background: #4b5563; color: #fff; }
.cr-tile-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111827;
  position: relative;
  overflow: hidden;
}
.cr-tile-art > img.cr-tile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}
.cr-tile-art .cr-ph {
  position: absolute;
  inset: 8px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(59, 28, 107, 0.6);
  border-radius: 8px;
  color: var(--cr-muted);
  font-size: 12px;
}
.cr-tile .cr-timer {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  background: #4b5563;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}
.cr-tile .cr-timer.is-live {
  background: var(--cr-red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cr-tile-body { padding: 12px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
@media (min-width: 800px) { .cr-tile-body { padding: 16px; } }
.cr-tile-set {
  font-size: 10px;
  color: var(--cr-muted);
  font-weight: 800;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cr-tile-name {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}
@media (min-width: 800px) {
  .cr-tile-set { font-size: 12px; }
  .cr-tile-name { font-size: 14px; }
}
.cr-price-lbl { font-size: 9px; color: var(--cr-muted); margin: 0 0 2px; }
@media (min-width: 800px) { .cr-price-lbl { font-size: 10px; } }
.cr-tile .cr-price {
  font-size: 14px;
  font-weight: 900;
  margin: 0;
  background: var(--cr-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (min-width: 800px) { .cr-tile .cr-price { font-size: 18px; } }
.cr-tile .cr-price.plain { background: none; color: #fff; }

.cr-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--cr-muted);
}

/* ===== Listing details ===== */
.cr-detail {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 800px) {
  .cr-detail {
    max-width: 950px;
    flex-direction: row;
    gap: 24px;
    padding: 24px 16px 40px;
    align-items: flex-start;
  }
}
@media (min-width: 1100px) { .cr-detail { max-width: 1100px; } }
@media (min-width: 1440px) { .cr-detail { max-width: 1400px; } }
@media (min-width: 1920px) { .cr-detail { max-width: 1600px; } }

.cr-detail-media,
.cr-listing-col {
  width: 100%;
  background: var(--cr-card);
  border-bottom: 1px solid var(--cr-border);
}
@media (min-width: 800px) {
  .cr-detail-media,
  .cr-listing-col {
    width: 50%;
    border: 1px solid var(--cr-border);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  }
}
.cr-detail-hero {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  background: var(--cr-dark);
  position: relative;
}
.cr-detail-hero > img,
.cr-detail-hero img[data-cr-hero-main] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 8px;
  background: #05020a;
}
.cr-detail-tools {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  padding: 16px;
}
.cr-detail-tags {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 10;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cr-detail-tags .cr-pill {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  color: #fff;
}
.cr-detail-tags .cr-pill.is-cyan {
  background: rgba(0,0,0,0.5);
  border-color: rgba(34, 211, 238, 0.5);
  color: var(--cr-secondary);
}
.cr-detail-thumbs {
  width: 100%;
  padding: 8px;
  background: var(--cr-card);
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
@media (min-width: 800px) {
  .cr-detail-thumbs { padding: 16px 24px 24px; }
}
.cr-detail-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 2px solid transparent;
  overflow: hidden;
  background: #111;
}
@media (min-width: 800px) {
  .cr-detail-thumb { width: 80px; height: 80px; }
}
.cr-detail-thumb.is-on,
.cr-detail-thumb[aria-selected="true"] {
  border-color: var(--cr-primary);
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.3);
}
.cr-detail-thumb img { object-fit: cover; }
.cr-listing-col { display: flex; flex-direction: column; position: relative; }
@media (min-width: 800px) {
  .cr-listing-col { max-height: calc(100dvh - 48px); overflow-y: auto; padding-bottom: 0; }
}
.cr-listing-col h1 {
  font-size: clamp(1.1rem, 1.3vw, 1.3rem);
  font-weight: 800;
  color: #fff;
}
.cr-live-panel { background: #180a2b; position: relative; overflow: hidden; }
.cr-live-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cr-grad);
}

/* ===== Search meta ===== */
.cr-results-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--cr-muted);
  font-size: 13px;
}
.cr-results-meta strong { color: #fff; }
.cr-results-meta em { color: var(--cr-primary); font-style: normal; }

/* ===== Filter page ===== */
.cr-filter-page .cr-head,
.cr-filter-page .cr-head-filter { position: sticky; top: 0; z-index: 20; }

/* ===== Chat split ===== */
@media (min-width: 800px) {
  .cr-inbox-page,
  .cr-chat-split {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    min-height: calc(100dvh - var(--cr-header-h) - 80px);
    max-width: 1600px;
    margin: 0 auto;
  }
  .cr-chat-page { min-height: calc(100dvh - var(--cr-header-h)); display: flex; flex-direction: column; }
  .cr-chat-split .cr-chat-page { min-height: 0; height: calc(100dvh - var(--cr-header-h)); }
}
.cr-chat-list { min-width: 0; border-right: 1px solid rgba(59, 28, 107, 0.5); }
.cr-chat-empty-desk {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--cr-muted);
  padding: 48px 16px;
}
@media (min-width: 800px) {
  .cr-inbox-page .cr-chat-empty-desk { display: flex; }
  .cr-chat-split .cr-mob-back { display: none; }
}
.cr-bubble-me {
  position: relative;
  background: var(--cr-primary);
  color: #fff;
  border-radius: 16px 4px 16px 16px;
  padding: 10px 14px;
  max-width: 80%;
}
.cr-bubble-them {
  position: relative;
  background: var(--cr-card);
  border: 1px solid var(--cr-border);
  border-radius: 4px 16px 16px 16px;
  padding: 10px 14px;
  max-width: 80%;
}

/* ===== Notifications / profile / watchlist ===== */
.cr-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--cr-border);
  background: rgba(19, 7, 34, 0.95);
  position: sticky;
  top: var(--cr-header-h);
  z-index: 20;
  backdrop-filter: blur(12px);
}
.cr-page-head h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.cr-note {
  display: block;
  padding: 16px;
  border-bottom: 1px solid rgba(59, 28, 107, 0.5);
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: background 0.15s, opacity 0.15s;
}
.cr-note:hover { background: rgba(5, 2, 10, 0.5); color: inherit; }
.cr-note.unread { background: rgba(127, 29, 29, 0.1); }
.cr-note.unread.is-win { background: rgba(34, 211, 238, 0.05); }
.cr-note.dim { opacity: 0.75; }
.cr-note.unread::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--cr-red);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}
.cr-note.unread.is-win::before {
  background: var(--cr-secondary);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}
.cr-note-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.2);
  color: var(--cr-red);
  text-decoration: none;
}
.cr-note-cta.is-cyan {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.2);
  color: var(--cr-secondary);
}

.cr-account {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cr-user {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--cr-border);
  background: var(--cr-card);
}
.cr-user::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 128px; height: 128px;
  background: rgba(217, 70, 239, 0.12);
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
}
.cr-menu {
  border: 1px solid var(--cr-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--cr-card);
}
.cr-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 14px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 28, 107, 0.5);
  font-size: 14px;
  font-weight: 600;
}
.cr-menu a:last-child { border-bottom: 0; }
.cr-menu a:hover { background: rgba(5, 2, 10, 0.45); color: #fff; }

/* ===== Sell ===== */
.cr-sell { max-width: 560px; margin: 0 auto; }
.cr-sell-hero h1 {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 4px 0 0;
}
.cr-viewfinder {
  position: relative;
  margin: 16px;
  min-height: 280px;
  border-radius: 24px;
  border: 1px solid rgba(59, 28, 107, 0.4);
  background: rgba(19, 7, 34, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cr-viewfinder .cr-sell-preview,
.cr-viewfinder [data-shot="front"] {
  width: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
}
.cr-viewfinder img[data-preview] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  z-index: 2;
}
.scanner-corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border-color: var(--cr-secondary);
  z-index: 3;
  pointer-events: none;
}
.scanner-corner.is-tl { top: 24px; left: 24px; border-top: 4px solid; border-left: 4px solid; border-radius: 12px 0 0 0; }
.scanner-corner.is-tr { top: 24px; right: 24px; border-top: 4px solid; border-right: 4px solid; border-radius: 0 12px 0 0; }
.scanner-corner.is-bl { bottom: 24px; left: 24px; border-bottom: 4px solid; border-left: 4px solid; border-radius: 0 0 0 12px; }
.scanner-corner.is-br { bottom: 24px; right: 24px; border-bottom: 4px solid; border-right: 4px solid; border-radius: 0 0 12px 0; }
.cr-sell-actions {
  background: var(--cr-card);
  border-top: 1px solid var(--cr-border);
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 20px;
  box-shadow: 0 -10px 30px rgba(217, 70, 239, 0.05);
}
.cr-sell-shot-btns { display: flex; gap: 12px; margin-bottom: 12px; }
.cr-sell-shot-btns .btn,
.cr-sell-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 8px;
  border-radius: 16px;
  background: var(--cr-dark);
  font-weight: 800;
  font-size: 12px;
}
.cr-sell-btn.is-cam { border: 1px solid rgba(34, 211, 238, 0.5); color: var(--cr-secondary); box-shadow: 0 0 15px rgba(34, 211, 238, 0.15); }
.cr-sell-btn.is-file { border: 1px solid rgba(217, 70, 239, 0.5); color: var(--cr-primary); box-shadow: 0 0 15px rgba(217, 70, 239, 0.15); }
.cr-sell-submit,
button.cr-sell-submit {
  width: 100%;
  background: var(--cr-grad);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.45);
}
.cr-ai-banner {
  background: rgba(217, 70, 239, 0.1);
  border: 1px solid rgba(217, 70, 239, 0.3);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 12px;
  font-size: 12px;
}
.cr-ai-banner strong { color: var(--cr-primary); display: block; margin-bottom: 2px; }
.scanline {
  width: 100%;
  height: 2px;
  background: #22d3ee;
  box-shadow: 0 0 10px #22d3ee, 0 0 20px #22d3ee;
  position: absolute;
  top: 0;
  left: 0;
  animation: crScan 2.5s infinite linear;
  pointer-events: none;
  z-index: 3;
}
@keyframes crScan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ===== Pricing (full-width carousel, no phone bezel) ===== */
.cr-pricing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 0 40px;
}
.cr-pricing h1 {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 900;
  margin: 8px 16px 8px;
}
.cr-pricing-intro { text-align: center; }
@media (min-width: 800px) {
  .cr-price-carousel { justify-content: center; }
  .cr-price-card { flex-basis: 320px; max-width: 340px; }
}

/* ===== Footer ===== */
.cr-site-foot {
  border-top: 1px solid rgba(59, 28, 107, 0.5);
  margin-top: 16px;
  background: rgba(5, 2, 10, 0.6);
}
@media (min-width: 800px) {
  body.cr-has-nav .cr-site-foot { margin-bottom: 0; }
}

/* Bootstrap form controls on dark UI */
.cr-field,
.cr-body .form-control,
.cr-body .form-select {
  background: var(--cr-dark);
  border-color: var(--cr-border);
  color: #fff;
}
.cr-body .form-control:focus,
.cr-body .form-select:focus {
  background: var(--cr-dark);
  border-color: var(--cr-primary);
  color: #fff;
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.3);
}

/* Hide legacy desktop-only topnav if any leftover */
.cr-topnav { display: none !important; }

@media (min-width: 800px) {
  .cr-desk-only { display: block !important; }
}
@media (max-width: 799.98px) {
  .cr-desk-only { display: none !important; }
}
.cr-row.is-on { background: rgba(217, 70, 239, 0.08); border-left: 3px solid var(--cr-primary); }
.cr-icon-btn.cr-bell-wrap { position: relative; }

/* ===== UI update: inner pages, filters, sell steps ===== */
@media (max-width: 799.98px) {
  body.cr-bar-desk { --cr-header-h: 0px; }
  body.cr-bar-desk .cr-topbar { display: none; }
}
body.cr-adv-lock { overflow: hidden; }

@media (min-width: 800px) {
  .cr-mob-only { display: none !important; }
  .cr-desk-only.cr-sec-head { display: flex !important; }
}
.cr-nav-item { position: relative; }
.cr-nav-item .cr-nav-badge {
  position: absolute;
  top: 0;
  right: 6px;
  background: var(--cr-red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  padding: 1px 4px;
  border-radius: 999px;
  min-width: 16px;
  text-align: center;
}

.cr-site-foot {
  text-align: center;
  padding: 28px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
.cr-site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 0 0 8px;
}
.cr-site-links a {
  color: var(--cr-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.cr-site-links a:hover { color: #fff; }
.cr-site-copy { margin: 0; color: var(--cr-muted); font-size: 12px; }

.cr-mob-find {
  display: flex;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: var(--cr-header-h);
  z-index: 40;
  padding: 10px 12px;
  background: rgba(19, 7, 34, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cr-border);
}
@media (min-width: 800px) { .cr-mob-find { display: none; } }
.cr-mob-find > a {
  color: #fff;
  text-decoration: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 18px;
}
.cr-mob-find form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  background: var(--cr-dark);
  border: 2px solid var(--cr-border);
  border-radius: 999px;
  padding: 6px 12px;
}
.cr-mob-find input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  outline: none;
  font-size: 0.9rem;
}
.cr-mob-find [data-clear-q] {
  border: 0;
  background: transparent;
  color: var(--cr-muted);
  padding: 0 2px;
}
.cr-mob-filter {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--cr-border);
  background: var(--cr-card);
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
}
.cr-mob-filter.is-on {
  border-color: var(--cr-primary);
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.45);
}

.cr-shell-results { align-items: flex-start; }
.cr-adv-sheet { margin: 0; }
.cr-adv-scroll { overflow-y: auto; flex: 1; min-height: 0; padding: 8px 16px 16px; }
.cr-adv-bar,
.cr-adv-deskhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cr-adv-bar { padding: 14px 16px 8px; }
.cr-adv-bar h2,
.cr-adv-deskhead h3 { margin: 0; font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.cr-adv-bar a,
.cr-adv-deskhead a { color: var(--cr-secondary); font-size: 13px; font-weight: 800; text-decoration: none; }
.cr-adv-x {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 16px;
}
.cr-adv-sec { margin: 0 0 16px; }
.cr-adv-sec h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}
.cr-adv-sec h4 i {
  width: 4px;
  height: 12px;
  border-radius: 99px;
  background: var(--cr-primary);
  display: inline-block;
}
.cr-adv-sec h4.is-cyan i { background: var(--cr-secondary); }
.cr-adv-stack { display: flex; flex-direction: column; gap: 8px; }
.cr-adv-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cr-adv-modes .is-wide { grid-column: 1 / -1; }
.cr-adv-modes .cr-check { width: 100%; justify-content: center; }
.cr-adv-stack .cr-check { width: 100%; }
.cr-adv-pills,
.cr-rarity-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-rarity-tags { margin-top: 8px; }
.cr-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.cr-check input { accent-color: var(--cr-primary); }
.cr-check.cyan input { accent-color: var(--cr-secondary); }
.cr-check.pill,
.cr-rarity-tags button,
.cr-adv-modes .cr-check {
  border: 1px solid var(--cr-border);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--cr-dark);
}
.cr-check.pill:has(input:checked),
.cr-adv-modes .cr-check:has(input:checked) {
  border-color: var(--cr-primary);
  color: #fff;
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.3);
}
.cr-check.cyan:has(input:checked) {
  border-color: var(--cr-secondary);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.28);
}
.cr-rarity-tags button {
  color: var(--cr-muted);
  font-size: 12px;
  font-weight: 700;
}
.cr-adv-range { display: flex; align-items: center; gap: 8px; }
.cr-adv-range input,
.cr-adv-rarity {
  width: 100%;
  background: var(--cr-dark);
  border: 1px solid var(--cr-border);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
}
.cr-adv-range input { min-width: 0; }
.cr-adv-apply { padding: 12px 16px 16px; }
.cr-adv-apply button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  background: var(--cr-grad);
  color: #fff;
  font-weight: 800;
}
@media (min-width: 800px) {
  .cr-shell-results .cr-adv {
    display: block;
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: var(--cr-header-h);
    align-self: flex-start;
    height: calc(100dvh - var(--cr-header-h));
    max-height: calc(100dvh - var(--cr-header-h));
    border-right: 1px solid rgba(59, 28, 107, 0.5);
    background: rgba(5, 2, 10, 0.35);
  }
  .cr-adv-sheet {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
  }
  .cr-adv-bar { display: none; }
  .cr-adv-deskhead { padding: 16px 16px 0; }
}
@media (max-width: 799.98px) {
  .cr-adv {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0, 0, 0, 0.62);
  }
  .cr-adv.is-open { display: block; }
  .cr-adv-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: min(88dvh, 760px);
    max-height: min(88dvh, 760px);
    display: flex;
    flex-direction: column;
    background: var(--cr-card);
    border: 1px solid var(--cr-border);
    border-radius: 24px 24px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .cr-adv-deskhead { display: none; }
}

.cr-results-bar { width: 100%; align-items: flex-start; }
.cr-results-sort { margin-left: auto; }
.cr-results-sort .cr-sort { display: block; }
.cr-sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: transparent;
  color: var(--cr-secondary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
}
.cr-sub-btn:disabled { opacity: 0.7; }

.cr-tile-grid-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 800px) { .cr-tile-grid-results { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cr-tile-grid-results { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .cr-tile-grid-results { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1920px) { .cr-tile-grid-results { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.cr-tile-grid-results .cr-tile-art { aspect-ratio: 4 / 3; }
@media (min-width: 800px) { .cr-tile-grid-results .cr-tile-art { aspect-ratio: 1 / 1; } }
.cr-tile-grid > .cr-empty { grid-column: 1 / -1; }
.cr-tile.is-done { filter: grayscale(1); opacity: 0.75; }
.cr-tile.is-done:hover { transform: none; box-shadow: none; }
.cr-tile-cta {
  display: block;
  margin: 0 12px 12px;
  text-align: center;
  background: var(--cr-grad);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.cr-tile-cta:hover { color: #fff; filter: brightness(1.05); }

.cr-work {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  min-width: 0;
  align-items: stretch;
}
.cr-work-main { flex: 1; min-width: 0; padding: 16px 16px 32px; }
.cr-side { width: 100%; padding: 16px; }
@media (max-width: 799.98px) {
  .cr-work > .cr-side:not(.cr-account-side) { display: none; }
}
@media (min-width: 800px) {
  .cr-work { flex-direction: row; align-items: flex-start; }
  .cr-side {
    display: block;
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: var(--cr-header-h);
    align-self: flex-start;
    max-height: calc(100dvh - var(--cr-header-h));
    overflow-y: auto;
    padding: 24px 20px 32px;
    border-right: 1px solid rgba(59, 28, 107, 0.5);
    background: rgba(5, 2, 10, 0.3);
  }
  .cr-work-main { padding: 24px 28px 48px; }
}
.cr-side-head h2,
.cr-side-head h3 { margin: 0 0 12px; font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.cr-side-sec h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.cr-side-sec h4 i { width: 4px; height: 12px; border-radius: 99px; background: var(--cr-primary); display: inline-block; }
.cr-side-radio {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  margin: 0 0 6px;
}
.cr-side-radio.is-on { background: rgba(217, 70, 239, 0.14); border-color: rgba(217, 70, 239, 0.45); color: #fff; }
.cr-side-radio.is-hot { color: #fca5a5; }
.cr-side-note { color: var(--cr-muted); font-size: 12px; margin: 12px 0; }
.cr-side-push,
.cr-side-link { display: inline-block; color: var(--cr-secondary); font-weight: 800; font-size: 13px; text-decoration: none; }
.cr-side-nav { display: flex; flex-direction: column; gap: 4px; }
.cr-side-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 700;
}
.cr-side-nav a.is-on { background: rgba(217, 70, 239, 0.14); color: #fff; }
.cr-side-nav em {
  font-style: normal;
  background: var(--cr-red);
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  font-size: 11px;
  padding: 1px 6px;
}
.cr-side-read { margin-top: 16px; }
.cr-side-read button {
  width: 100%;
  border: 1px solid var(--cr-border);
  background: transparent;
  color: #fff;
  border-radius: 12px;
  padding: 10px;
  font-weight: 800;
}
.cr-side-kicker { font-size: 11px; letter-spacing: 0.06em; color: var(--cr-muted); margin: 16px 0 8px; }
.cr-account-side .cr-menu { margin-top: 4px; }
.cr-menu em { margin-left: auto; font-style: normal; color: var(--cr-primary); font-weight: 800; font-size: 12px; }
.cr-logout {
  display: block;
  margin-top: 16px;
  text-align: center;
  color: var(--cr-red);
  font-weight: 800;
  text-decoration: none;
  padding: 10px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 12px;
}
.cr-user-ava { position: relative; }
.cr-user-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cr-green);
  border: 2px solid var(--cr-card);
}
.cr-plan-badge.is-free { color: var(--cr-muted); border-color: var(--cr-border); background: transparent; }
.cr-account-block {
  background: rgba(19, 7, 34, 0.65);
  border: 1px solid var(--cr-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}
.cr-account-block h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.cr-saved { margin: 8px 0 20px; }
.cr-saved-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; margin-bottom: 12px; }
.cr-saved-head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.cr-saved-head p { margin: 4px 0 0; color: var(--cr-muted); font-size: 12px; }
.cr-saved-head > span { color: var(--cr-muted); font-size: 12px; white-space: nowrap; }
.cr-saved-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 800px) { .cr-saved-grid { grid-template-columns: 1fr 1fr; } }
.cr-saved-card,
.cr-saved-add {
  border: 1px solid var(--cr-border);
  border-radius: 16px;
  background: var(--cr-card);
  padding: 14px;
}
.cr-saved-card h4 { margin: 0 0 4px; font-size: 1rem; }
.cr-saved-card p { margin: 0; color: var(--cr-muted); font-size: 12px; }
.cr-saved-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.cr-saved-foot a { color: var(--cr-secondary); font-weight: 800; font-size: 13px; text-decoration: none; }
.cr-saved-foot button { background: transparent; border: 0; color: var(--cr-red); font-weight: 700; padding: 0; }
.cr-saved-add {
  display: grid;
  place-items: center;
  min-height: 110px;
  color: var(--cr-primary);
  font-weight: 800;
  text-decoration: none;
  border-style: dashed;
}
.cr-note-col .cr-list { border: 1px solid rgba(59, 28, 107, 0.45); border-radius: 16px; overflow: hidden; }

@media (max-width: 799.98px) {
  .cr-detail-media {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: var(--cr-card);
  }
  .cr-detail-hero { flex: 1; min-width: 0; aspect-ratio: 1 / 1; }
  .cr-detail-thumbs {
    width: 72px;
    flex: 0 0 72px;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 6px;
  }
  .cr-detail-thumb { width: 56px; height: 56px; }
}
@media (min-width: 800px) {
  .cr-detail-media {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 16px;
    align-self: flex-start;
    max-height: 85vh;
  }
  .cr-detail-thumbs { flex-direction: row; overflow-x: auto; }
}
.cr-detail-thumb-lbl { display: none; }
.cr-countdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(5, 2, 10, 0.55);
  border: 1px solid rgba(217, 70, 239, 0.35);
}
.cr-countdown span { display: block; font-size: 11px; color: var(--cr-muted); font-weight: 700; }
.cr-countdown strong {
  font-size: 1.35rem;
  font-weight: 900;
  background: var(--cr-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cr-countdown em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: var(--cr-secondary);
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 999px;
  padding: 4px 8px;
}

.cr-pricing-hero { text-align: center; padding: 8px 16px 0; }
.cr-pricing-hero h2 { margin: 0 0 6px; font-weight: 900; font-size: 1.35rem; }
.cr-pricing-hero p { margin: 0; color: var(--cr-muted); font-size: 13px; }
@media (max-width: 799.98px) {
  .cr-price-carousel { padding-bottom: 96px; }
}
@media (min-width: 800px) {
  .cr-pricing-hero h2 { font-size: 1.75rem; }
  .cr-price-carousel { align-items: center; }
  .cr-price-card.is-premium { transform: scale(1.06); z-index: 1; }
}

.cr-publish {
  max-width: 760px;
  margin: 12px auto 32px;
  background: rgba(19, 7, 34, 0.72);
  border: 1px solid var(--cr-border);
  border-radius: 24px;
}
.cr-publish-top { display: none; }
@media (min-width: 800px) {
  .cr-publish-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--cr-border);
  }
  .cr-publish-top h2 { margin: 0; font-size: 1.1rem; font-weight: 800; }
  .cr-publish-top a { color: var(--cr-muted); text-decoration: none; font-size: 18px; }
}
.cr-publish[data-sell-step="1"] [data-sell-panel="2"] { display: none; }
.cr-publish[data-sell-step="2"] [data-sell-panel="1"] { display: none; }
.cr-sell-lead { color: var(--cr-muted); font-size: 13px; margin: 0; }
.cr-sell-switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cr-sell-switch h2 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.cr-sell-switch button {
  border: 1px solid var(--cr-border);
  background: transparent;
  color: var(--cr-secondary);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 12px;
}
@media (min-width: 800px) {
  .cr-sell-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
}

.cr-chat-split .cr-row.is-on,
.cr-inbox-page .cr-row.is-on {
  background: linear-gradient(90deg, rgba(217, 70, 239, 0.2), transparent 72%);
}
.cr-bubble-me::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 12px;
  border: 6px solid transparent;
  border-left-color: var(--cr-primary);
}
.cr-bubble-them::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 12px;
  border: 6px solid transparent;
  border-right-color: var(--cr-card);
}
