/* =========================================================
   Keepcase — Ricardo.ch structure & sizing + our style
   Metrics from Ricardo: max 1200/1484, bp 600/960,
   grid 1/2/3/4/5 cols, controls min-height 44px
   ========================================================= */

/* ========== THEMES ========== */
/* Default = light (marketplace trust) */
:root,
[data-theme="light"] {
  --bg: #f4f5f7;
  --bg-2: #ffffff;
  --bg-3: #eef0f3;
  --bg-4: #e5e8ed;
  --line: #dde1e6;
  --line-2: #e8ebef;
  --text: #121417;
  --text-2: #4a5160;
  --text-3: #7a8290;
  --lime: #6bbf1a;
  --lime-2: #5aab12;
  --lime-ink: #0a0a0a;
  --danger: #e03e3e;
  --search-bg: #ffffff;
  --search-text: #121417;
  --search-ph: #8a92a0;
  --header-bg: #ffffff;
  --topbar-bg: #ffffff;
  --footer-bg: #eef0f3;
  --card-img-bg: #e8ebef;
  --logo-cut: #ffffff;
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --gutter: 16px;
  --container: 1200px;
  --container-wide: 1484px;
  --sidebar: 280px;
  --sidebar-gap: 20px;
  --header-control: 48px;
  --search-h: 52px;
  --touch: 44px;
  --gap-card: 16px;
  --radius: 4px;
  --radius-lg: 8px;
  --radius-card: 12px;
  --card-img-ratio: 1 / 1;
  --header-stack-pad-y: 12px;
  --cats-h: 52px;
}

/* Dark = retro optional */
[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --bg-3: #1c1c1c;
  --bg-4: #242424;
  --line: #2c2c2c;
  --line-2: #222;
  --text: #f5f5f5;
  --text-2: #b3b3b3;
  --text-3: #888;
  --lime: #7ed321;
  --lime-2: #8fe02e;
  --lime-ink: #0a0a0a;
  --danger: #ff5252;
  --search-bg: #ffffff;
  --search-text: #121417;
  --search-ph: #888;
  --header-bg: #0a0a0a;
  --topbar-bg: #050505;
  --footer-bg: #050505;
  --card-img-bg: #121212;
  --logo-cut: #0a0a0a;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* footer sempre in basso, contenuto al centro */
body > main#app {
  flex: 1 0 auto;
  width: 100%;
}

body > .ric-footer {
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/*
  Layout column — THE alignment source of truth.
  Header shell + main pages + footer all use this.
  Centered with equal gutters. No overflow-x hacks.
*/
.ric-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 1484px) {
  .ric-container {
    max-width: var(--container-wide);
  }
}

main#app {
  display: block;
  width: 100%;
}

/* ========== TOP BAR (Ricardo height ~32–36px) ========== */
.ric-top {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
  min-height: 32px;
}

/* light: same white band as header */
[data-theme="light"] .ric-top {
  background: #ffffff;
}

.ric-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  gap: 12px;
}

.ric-top__left,
.ric-top__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ric-top__lang {
  cursor: default;
  opacity: 0.55;
}

.ric-top__lang.is-active {
  opacity: 1;
  color: var(--text);
  font-weight: 600;
}

.ric-top__right a:hover {
  color: var(--text);
}

.ric-top__muted {
  opacity: 0.7;
}

/* ========== HEADER ========== */
.ric-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

/* Unica colonna content: logo / search / catbar / mega
   — stesso padding laterale del main (.ric-container) */
.hdr-shell {
  padding-top: 12px;
  padding-bottom: 0;
}

/* Row 1 */
.hdr-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 48px;
  margin: 0;
  padding: 0;
}

.hdr-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  height: 40px;
  flex-shrink: 0;
}

/* Logo mark: solid lime + simple cutout (original shape, theme-aware fill) */
.hdr-logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--lime);
  flex-shrink: 0;
  position: relative;
}

.hdr-logo__mark::before {
  content: none;
}

.hdr-logo__mark::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 9px;
  bottom: 9px;
  border-radius: 2px;
  background: var(--logo-cut); /* white on light, dark on dark */
}

.hdr-logo__name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.hdr-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  height: 40px;
  flex-shrink: 0;
}

.hdr-link {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  color: var(--text-2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hdr-link:hover {
  color: var(--text);
  background: var(--bg-3);
}

.hdr-link__ico {
  font-size: 14px;
  line-height: 1;
  width: 18px;
  text-align: center;
}

.hdr-link__txt {
  line-height: 1;
}

.hdr-link__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* —— Menu account (stile Ricardo) —— */
.hdr-account {
  position: relative;
  display: flex;
  align-items: center;
}

.hdr-account__caret {
  font-size: 10px;
  opacity: 0.7;
  margin-left: 2px;
}

.hdr-account.is-open .hdr-account__caret {
  transform: rotate(180deg);
}

.hdr-account.is-logged .hdr-link {
  max-width: 160px;
}

.hdr-account__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: min(280px, calc(100vw - 24px));
  padding: 10px 0 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  box-sizing: border-box;
}

.hdr-account__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.hdr-account__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(107, 191, 26, 0.2);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.hdr-account__head strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  line-height: 1.2;
}

.hdr-account__head em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.3;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hdr-account__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.hdr-account__item:hover {
  background: rgba(107, 191, 26, 0.1);
}

.hdr-account__ico {
  width: 22px;
  text-align: center;
  font-size: 14px;
  opacity: 0.9;
  flex-shrink: 0;
}

.hdr-account__sep {
  height: 1px;
  margin: 6px 12px;
  background: var(--line);
}

.hdr-account__item--btn {
  color: var(--text-2);
}

/* —— Home recap loggato —— */
.home-recap {
  margin: 0 0 18px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(107, 191, 26, 0.12), transparent 55%),
    var(--bg-2);
  box-sizing: border-box;
}

.home-recap__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 14px;
}

.home-recap__kicker {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
}

.home-recap__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.home-recap__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-2);
  max-width: 42ch;
}

.home-recap__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-recap__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.home-recap__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 96px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.home-recap__card:hover {
  border-color: var(--lime);
  transform: translateY(-1px);
}

.home-recap__card--accent {
  background: rgba(107, 191, 26, 0.1);
}

.home-recap__ico {
  font-size: 14px;
  opacity: 0.85;
}

.home-recap__card strong {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.home-recap__card span:last-child {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.25;
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.account-tabs__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.account-tabs__link.is-on,
.account-tabs__link:hover {
  border-color: var(--lime);
  color: var(--text);
  background: rgba(107, 191, 26, 0.1);
}

.account-profile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.account-profile__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(107, 191, 26, 0.22);
  font-weight: 800;
  flex-shrink: 0;
}

.account-profile p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-2);
}

.account-profile p:last-child {
  margin-bottom: 0;
}

.account-list--settings li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

/* —— Metti in vendita (wizard multi-step, stile Ricardo) —— */
.sell-page {
  max-width: 920px;
}

.sell-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 8px;
}

.sell-hero__user {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}

.sell-steps {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.sell-steps__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-sizing: border-box;
}

.sell-steps__item.is-on {
  border-color: var(--lime);
  background: rgba(107, 191, 26, 0.12);
  box-shadow: 0 0 0 1px rgba(107, 191, 26, 0.25);
}

.sell-steps__item.is-done {
  border-color: rgba(107, 191, 26, 0.45);
}

.sell-steps__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text-2);
}

.sell-steps__item.is-on .sell-steps__num,
.sell-steps__item.is-done .sell-steps__num {
  background: var(--lime);
  border-color: var(--lime);
  color: #0b1205;
}

.sell-steps__txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sell-steps__txt strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.sell-steps__txt em {
  font-style: normal;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.2;
}

.sell-wizard {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.sell-panel {
  padding: 22px 24px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-sizing: border-box;
}

.sell-panel__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.sell-panel__lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}

.sell-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.sell-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.sell-mode__opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.sell-mode__opt:has(input:checked) {
  border-color: var(--text-2);
  background: var(--bg-3, var(--bg));
}

.sell-mode__opt input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--text);
}

.sell-mode__opt span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sell-mode__opt strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.sell-mode__opt em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.3;
}

/* campi asta: stesso stile del form, niente box verde */
.sell-panel .sell-auction-only.is-gone,
.sell-panel .is-gone {
  display: none !important;
}

@media (max-width: 800px) {
  .sell-mode {
    grid-template-columns: 1fr;
  }
}

.sell-field-full {
  grid-column: 1 / -1;
}

.sell-panel .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
}

.sell-panel .field input,
.sell-panel .field select,
.sell-panel .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  box-sizing: border-box;
}

.sell-panel .field textarea {
  min-height: 140px;
  resize: vertical;
}

.sell-panel .field-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.sell-panel .field-check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.sell-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sell-photo {
  cursor: pointer;
  margin: 0;
}

.sell-photo__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  border: 1.5px dashed var(--line);
  background: var(--bg);
  overflow: hidden;
  box-sizing: border-box;
}

.sell-photo:hover .sell-photo__box {
  border-color: var(--lime);
}

.sell-photo__box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sell-photo__plus {
  font-size: 28px;
  font-weight: 300;
  color: var(--text-3);
  line-height: 1;
}

.sell-photo__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  z-index: 1;
}

.sell-summary__card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.sell-summary__card img {
  width: 100px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-3);
}

.sell-summary__card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--text);
}

.sell-summary__card p {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}

.sell-summary__price {
  font-size: 18px !important;
  font-weight: 800;
  color: var(--text) !important;
}

.sell-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 4px;
}

.sell-nav__spacer {
  flex: 1;
  min-width: 8px;
}

/* .btn ha display:flex e sovrascrive [hidden] — usa is-gone */
.sell-nav__btn.is-gone,
.sell-nav .is-gone {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.sell-wizard__note {
  margin-top: 12px;
}

@media (max-width: 800px) {
  .sell-steps {
    grid-template-columns: 1fr 1fr;
  }

  .sell-steps__item:last-child {
    grid-column: 1 / -1;
  }

  .sell-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sell-mode {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  .sell-panel {
    padding: 16px 14px;
  }

  .sell-panel__grid {
    grid-template-columns: 1fr;
  }

  .sell-panel__title {
    font-size: 18px;
  }

  .sell-steps__txt em {
    display: none;
  }

  .sell-summary__card {
    grid-template-columns: 72px 1fr;
  }

  .sell-summary__card img {
    width: 72px;
    height: 96px;
  }

  .sell-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .sell-nav__spacer {
    display: none;
  }
}

@media (max-width: 900px) {
  .home-recap__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .home-recap {
    padding: 14px 12px 12px;
  }

  .home-recap__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-recap__title {
    font-size: 18px;
  }

  .hdr-account.is-logged .hdr-link__txt {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.hdr-sell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  margin-left: 4px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border-radius: 8px;
  white-space: nowrap;
}

.hdr-sell:hover {
  background: var(--lime-2);
}

.hdr-sell__short {
  display: none;
}

/* Live entry only in catbar + speech bubble */
.catbar__live-wrap {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 48px;
}

.catbar__live {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: var(--danger) !important;
}

.catbar__live:hover {
  background: rgba(224, 62, 62, 0.1) !important;
  color: var(--danger) !important;
}

.catbar__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(224, 62, 62, 0.5);
}

.catbar__live-wrap.is-open .catbar__live-dot {
  animation: livepulse 1.4s infinite;
}

.catbar__live-wrap.is-closed .catbar__live {
  color: var(--text-3) !important;
  opacity: 0.85;
}

.catbar__live-wrap.is-closed .catbar__live-dot {
  background: var(--text-3);
  box-shadow: none;
  animation: none;
}

/* Row 2 — search: full width of shell content box */
.hdr-search {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  height: 48px;
  margin: 12px 0 0;
  padding: 0;
  background: var(--search-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-sizing: border-box;
  box-shadow: var(--shadow-soft);
}

.hdr-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  margin: 0;
  padding: 0 16px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--search-text);
  background: transparent;
  outline: none;
}

.hdr-search input::placeholder {
  color: var(--search-ph);
}

.hdr-search__btn {
  flex: 0 0 auto;
  height: 100%;
  min-width: 88px;
  padding: 0 20px;
  border: 0;
  margin: 0;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.hdr-search__btn:hover {
  background: var(--lime-2);
}

/* Category row: Tutte le categorie | Sony ▾ | Nintendo ▾ | … */
.catbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 48px;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-2);
  box-sizing: border-box;
  gap: 0;
  position: relative;
  z-index: 30;
}

.catbar__all {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  height: 48px;
  margin: 0;
  padding: 0 14px 0 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.catbar__all:hover,
.catbar__all[aria-expanded="true"] {
  color: var(--lime);
}

.catbar__burger {
  width: 16px;
  height: 12px;
  flex-shrink: 0;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 5px / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 10px / 100% 2px no-repeat;
}

/* Brand row */
.catbar__brands {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  gap: 2px;
  margin: 0;
  padding: 0 0 0 10px;
  overflow: visible;
}

.catbar__dd {
  position: relative;
  flex: 0 0 auto;
  height: 48px;
  display: flex;
  align-items: center;
}

.catbar__brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.catbar__brand:hover,
.catbar__dd.is-open .catbar__brand,
.catbar__dd.has-active .catbar__brand {
  color: var(--text);
  background: var(--bg-3);
}

.catbar__dd.has-active .catbar__brand {
  color: var(--lime);
}

.catbar__caret {
  font-size: 10px;
  opacity: 0.7;
  line-height: 1;
}

/* Dropdown panel */
.catbar__menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  z-index: 80;
  min-width: 200px;
  max-width: 260px;
  margin: 0;
  padding: 8px 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.catbar__menu[hidden] {
  display: none !important;
}

.catbar__menu a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
}

.catbar__menu a:hover {
  background: var(--bg-3);
  color: var(--text);
}

.catbar__menu a.is-active {
  color: var(--lime);
  font-weight: 600;
  background: var(--bg-3);
}

.catbar__menu-sep {
  height: 1px;
  margin: 6px 12px;
  background: var(--line);
}

/* Plain links (Pokémon, Scambi) */
.catbar__item--plain {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.catbar__item--plain:hover {
  color: var(--text);
  background: var(--bg-3);
}

.catbar__item--plain.is-active {
  color: var(--lime-ink);
  background: var(--lime);
}

/* ========== MEGA: Tutte le categorie ========== */
.ric-mega {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 0 16px;
  box-sizing: border-box;
  border-top: 1px solid var(--line);
  background: transparent;
}

.ric-mega[hidden] {
  display: none !important;
}

.ric-mega__panel {
  margin-top: 12px;
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  box-sizing: border-box;
}

.ric-mega__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.ric-mega__head h2 {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.ric-mega__close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ric-mega__close:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.ric-mega__body {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 28px;
  margin: 0;
  padding: 0;
  align-items: start;
}

.ric-mega__col {
  min-width: 0;
}

.ric-mega__col h3 {
  margin: 0 0 10px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
  line-height: 1.2;
}

.ric-mega__col a {
  display: block;
  margin: 0;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-2);
  text-decoration: none;
}

.ric-mega__col a:last-child {
  border-bottom: 0;
}

.ric-mega__col a:hover {
  color: var(--lime);
}

@media (max-width: 959px) {
  .ric-mega__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
  }
}

@media (max-width: 599px) {
  .ric-mega__panel {
    padding: 14px;
  }

  .ric-mega__body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ========== RICARDO HOMEPAGE ========== */
.ric-page--home {
  padding-top: 16px;
}

/* Empty marketplace (no mock data) */
.empty-market {
  margin: 8px 0 28px;
  padding: 28px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(107, 191, 26, 0.12), transparent 55%),
    var(--bg-2);
  text-align: center;
}

.empty-market__title {
  margin: 12px 0 10px;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.empty-market__text {
  margin: 0 auto 18px;
  max-width: 480px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}

.empty-market__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}

.empty-market__hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-3);
}

/* Soft bar — beta tip without blocking the catalog */
.home-soft-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 13px;
}

.home-soft-bar__beta {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(107, 191, 26, 0.12);
  border: 1px solid rgba(107, 191, 26, 0.3);
}

.home-soft-bar__txt {
  flex: 1 1 auto;
  color: var(--text-2);
  min-width: 140px;
}

.home-soft-bar__link {
  font-weight: 700;
  color: var(--lime);
  text-decoration: none;
  white-space: nowrap;
}

.home-soft-bar__link:hover {
  text-decoration: underline;
}

.home-soft-bar__link--muted {
  color: var(--text-3);
  font-weight: 600;
}

/* Quick chips — Ricardo-style pills (entry into filtered list) */
.ric-home-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
}

.ric-home-chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ric-home-chip:hover {
  border-color: var(--lime);
  background: rgba(107, 191, 26, 0.08);
}

/* horizontal rails */
.ric-rail {
  margin: 0 0 28px;
  padding: 0;
}

.ric-rail:last-child {
  margin-bottom: 0;
}

/* Title left — arrows + “Mostra tutti” right (cards full-width below, aligned) */
.ric-rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  min-height: 36px;
}

.ric-rail__head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ric-rail__head-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ric-rail__more {
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
  white-space: nowrap;
  margin-left: 4px;
}

.ric-rail__more:hover {
  text-decoration: underline;
}

.ric-rail__arrow {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  user-select: none;
  padding: 0;
}

.ric-rail__arrow:hover:not(:disabled) {
  border-color: var(--lime);
  color: var(--lime);
}

.ric-rail__arrow:disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}

/* Track fills full width — cards share space (no empty gap on the right) */
.ric-rail__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 14px;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ric-rail__track::-webkit-scrollbar,
.ric-rail__track::-webkit-scrollbar-thumb,
.ric-rail__track::-webkit-scrollbar-track {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Equal flex share → continuous row, no dead space */
.ric-rail__track .ric-card {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: none;
}

.ric-rail__track .ric-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.ric-rail__track .ric-card__title {
  font-size: 13px;
}

.ric-rail__track .ric-card__price {
  font-size: 15px;
}

/* Tablet narrow: 2-ish cards; phones override below at 599 */
@media (max-width: 719px) and (min-width: 600px) {
  .ric-rail__track .ric-card {
    flex: 0 0 46%;
    min-width: 46%;
    max-width: 46%;
  }
}

@media (min-width: 720px) and (max-width: 959px) {
  .ric-rail__track .ric-card {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Auction badge on cover */
.ric-card__auction-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(224, 62, 62, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.detail-auction-badge {
  top: 10px;
  right: 10px;
  font-size: 11px;
  padding: 5px 10px;
}

.ric-card.is-auction {
  border-color: rgba(224, 62, 62, 0.28);
}

.ric-card__price--auction {
  color: var(--danger);
}

.ric-card__price-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin-bottom: 2px;
}

.ric-card__meta--auction {
  color: var(--danger) !important;
  font-weight: 600;
}

.ric-tag--auction {
  background: rgba(224, 62, 62, 0.12);
  color: var(--danger);
  border-color: rgba(224, 62, 62, 0.3);
}

.ric-buybox__price-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin-bottom: 4px;
}

.auction-bid-form {
  margin-bottom: 10px;
}

.auction-bid-form .field {
  margin-bottom: 10px;
}

.auction-history {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.auction-history h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text);
}

.auction-history ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--text-2);
}

.auction-history li {
  padding: 4px 0;
  border-bottom: 1px solid var(--line-2);
}

/* Green fire flame — small badge top-left on popular product covers (Ricardo-style) */
.ric-card__hot {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(107, 191, 26, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

[data-theme="dark"] .ric-card__hot {
  background: rgba(28, 30, 34, 0.9);
  border-color: rgba(107, 191, 26, 0.45);
}

.flame {
  position: relative;
  width: 22px;
  height: 28px;
  flex: 0 0 22px;
  filter: drop-shadow(0 0 4px rgba(107, 191, 26, 0.55));
}

.flame--sm {
  width: 12px;
  height: 15px;
  flex: 0 0 12px;
  filter: drop-shadow(0 0 2px rgba(107, 191, 26, 0.5));
}

.flame__core,
.flame__mid,
.flame__tip {
  position: absolute;
  left: 50%;
  bottom: 0;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: translateX(-50%);
  transform-origin: center bottom;
}

.flame__core {
  width: 12px;
  height: 18px;
  background: #e8ffb0;
  animation: flame-flicker 0.55s ease-in-out infinite alternate;
  z-index: 3;
}

.flame--sm .flame__core {
  width: 6px;
  height: 9px;
}

.flame__mid {
  width: 16px;
  height: 22px;
  background: linear-gradient(180deg, #c8ff4a 0%, #6bbf1a 70%, #3d8a0a 100%);
  animation: flame-flicker 0.7s ease-in-out infinite alternate-reverse;
  z-index: 2;
  opacity: 0.95;
}

.flame--sm .flame__mid {
  width: 9px;
  height: 12px;
}

.flame__tip {
  width: 20px;
  height: 26px;
  background: linear-gradient(180deg, rgba(180, 255, 80, 0.85) 0%, #5aab12 55%, transparent 100%);
  animation: flame-flicker 0.45s ease-in-out infinite alternate;
  animation-delay: 0.1s;
  z-index: 1;
  opacity: 0.75;
}

.flame--sm .flame__tip {
  width: 11px;
  height: 14px;
}

@keyframes flame-flicker {
  0% {
    transform: translateX(-50%) scaleY(1) scaleX(1) rotate(-2deg);
  }
  50% {
    transform: translateX(-48%) scaleY(1.08) scaleX(0.92) rotate(2deg);
  }
  100% {
    transform: translateX(-52%) scaleY(0.95) scaleX(1.05) rotate(-1deg);
  }
}

/* ========== PAGE SHELL ========== */
.ric-page {
  padding-top: 20px;
  padding-bottom: 48px;
  min-height: 50vh;
  /* left/right padding ONLY from .ric-container */
}

/* Promo strip (not centered hero — more like Ricardo banner slot) */
.ric-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 120% at 90% 50%, rgba(126, 211, 33, 0.14), transparent 55%),
    var(--bg-2);
}

.ric-banner h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ric-banner p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  max-width: 480px;
}

.ric-banner__covers {
  display: flex;
  gap: 8px;
}

.ric-banner__covers img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card-img-bg);
}

/* ========== SEARCH RESULTS LAYOUT ========== */
.ric-market {
  display: grid;
  gap: var(--sidebar-gap);
  align-items: start;
}

/* Sidebar filters — Ricardo ~260–300px */
.ric-sidebar {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.ric-sidebar h2 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.ric-filter {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}

.ric-filter:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.ric-filter__title {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ric-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}

.ric-filter label:hover {
  color: var(--text);
}

.ric-filter input[type="checkbox"],
.ric-filter input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--lime);
}

.ric-filter select {
  width: 100%;
  min-height: var(--touch);
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

/* Results column */
.ric-results__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.ric-results__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ric-results__count {
  color: var(--text-3);
  font-size: 13px;
}

.ric-results__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  min-height: 40px;
}

.ric-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
}

.ric-sort select {
  min-height: 36px;
  padding: 0 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Grid — Ricardo auto-fill: 99% / 48% / 31% / 23% / 18% */
.ric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  gap: var(--gap-card);
  margin: 0;
  padding: 0;
  align-items: stretch;
}

.ric-results {
  min-width: 0; /* prevent grid blowout */
}

@media (min-width: 480px) {
  .ric-grid {
    grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
  }
}

@media (min-width: 720px) {
  .ric-grid {
    grid-template-columns: repeat(auto-fill, minmax(31%, 1fr));
  }
}

@media (min-width: 960px) {
  .ric-grid {
    grid-template-columns: repeat(auto-fill, minmax(23%, 1fr));
  }
}

@media (min-width: 1280px) {
  .ric-grid {
    /* 5-col like Ricardo 18% */
    grid-template-columns: repeat(auto-fill, minmax(18%, 1fr));
  }
}

/* Product card — Ricardo: same image box + rounded corners */
.ric-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-sizing: border-box;
}

.ric-card:hover {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px rgba(107, 191, 26, 0.12);
}

.ric-card__img-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ric-card__title-link {
  color: inherit;
  text-decoration: none;
}

.ric-card__title-link:hover .ric-card__title {
  color: var(--lime);
}

/* Cover only — no dark badges/overlays on the image */
.ric-card__img {
  position: relative;
  width: 100%;
  aspect-ratio: var(--card-img-ratio);
  height: auto;
  flex: 0 0 auto;
  background: var(--card-img-bg);
  overflow: hidden;
  border-radius: 0;
  display: block;
}

.ric-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  padding: 0;
  display: block;
}

.ric-card__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}

.ric-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.ric-card__plat-inline {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  line-height: 1;
}

.ric-card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  color: var(--text);
}

.ric-card__price {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ric-card__meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-3);
}

.ric-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.ric-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--bg-4);
  color: var(--text-2);
}

.ric-tag--ok {
  color: var(--lime);
  background: rgba(126, 211, 33, 0.1);
}

.ric-tag--trade {
  color: #9ec9ff;
  background: rgba(100, 150, 200, 0.12);
}

/* Wish in card body — light, never over the cover */
.ric-wish {
  position: static;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-3);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
}

.ric-wish:hover {
  border-color: var(--lime);
  color: var(--danger);
  background: rgba(107, 191, 26, 0.08);
}

.ric-wish.is-on {
  color: var(--danger);
  border-color: rgba(224, 62, 62, 0.35);
  background: rgba(224, 62, 62, 0.08);
}

.empty {
  grid-column: 1 / -1;
  padding: 48px 16px;
  text-align: center;
  color: var(--text-3);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

/* ========== DETAIL (Ricardo product) ========== */
.ric-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-3);
}

.ric-crumb a:hover {
  color: var(--text);
  text-decoration: underline;
}

.ric-detail {
  display: grid;
  gap: 20px;
}

.ric-gallery {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.ric-gallery__main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  max-height: 560px;
  background: var(--card-img-bg);
  border-radius: var(--radius);
}

.ric-gallery__main img {
  max-height: 520px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.ric-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ric-gallery__thumbs button,
.ric-gallery__ph {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card-img-bg);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.ric-gallery__thumbs button.is-active {
  border-color: var(--lime);
}

.ric-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ric-gallery__ph {
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.2;
  border-style: dashed;
  cursor: default;
}

.ric-buybox {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  height: fit-content;
}

.ric-buybox h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ric-buybox__price {
  margin: 12px 0 4px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ric-buybox__fee {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-3);
}

.ric-buybox__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.btn-primary {
  background: var(--lime);
  color: var(--lime-ink);
}

.btn-primary:hover {
  background: var(--lime-2);
}

.btn-secondary {
  background: var(--bg-4);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: #444;
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--bg-3);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.ric-seller {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.ric-seller strong {
  display: block;
  font-size: 14px;
}

.ric-seller span {
  font-size: 12px;
  color: var(--text-3);
}

.ric-desc {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.ric-desc h2 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.ric-desc p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}

.ric-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.ric-specs div {
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}

.ric-specs dt {
  margin: 0 0 2px;
  font-size: 11px;
  color: var(--text-3);
}

.ric-specs dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-3);
}

/* Lists / forms / static */
.ric-page-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ric-page-lead {
  margin: 0 0 20px;
  color: var(--text-2);
  max-width: 560px;
  font-size: 14px;
}

.ric-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ric-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.ric-row:hover {
  border-color: #404040;
}

.ric-row img {
  width: 72px;
  height: 90px;
  object-fit: contain;
  background: var(--card-img-bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}

.ric-row strong {
  display: block;
  font-size: 14px;
}

.ric-row .meta {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.ric-row .wants {
  font-size: 12px;
  color: var(--lime);
  margin-top: 4px;
}

.ric-row .price {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.ric-form {
  max-width: 640px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.ric-form-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
}

.field input,
.field select,
.field textarea {
  min-height: var(--touch);
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  color: var(--text);
}

.field textarea {
  min-height: 100px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #555;
}

.field-check {
  flex-direction: row;
  align-items: center;
  min-height: var(--touch);
}

.field-check input {
  min-height: auto;
  width: 16px;
  height: 16px;
  accent-color: var(--lime);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.slot {
  min-height: 72px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-size: 12px;
  background: var(--bg);
}

.steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: s;
}

.steps li {
  counter-increment: s;
  position: relative;
  padding: 14px 14px 14px 48px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.steps li::before {
  content: counter(s);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps strong {
  display: block;
  margin-bottom: 2px;
}

.steps p {
  margin: 0;
  color: var(--text-3);
  font-size: 13px;
}

.fee-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.fee-card {
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.fee-card h3 {
  margin: 0;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
}

.fee-card .num {
  margin: 4px 0;
  font-size: 22px;
  font-weight: 700;
}

.fee-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}

.fee-card.hi {
  border-color: rgba(126, 211, 33, 0.35);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}

.table th {
  color: var(--text-3);
  font-weight: 600;
  font-size: 12px;
}

.checkout {
  max-width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.checkout-item {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.checkout-item img {
  width: 64px;
  height: 80px;
  object-fit: contain;
  background: var(--card-img-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.totals div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 13px;
}

.totals .sum {
  font-weight: 700;
  color: var(--text);
  border: 0;
  padding-top: 12px;
  font-size: 15px;
}

/* Footer — stesso asse .ric-container di header/main (stile Ricardo) */
.ric-footer {
  margin-top: auto;
  padding: 40px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  color: var(--text-3);
  font-size: 13px;
}

.ric-footer > .ric-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ric-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
  margin: 0;
  padding: 0 0 28px;
  align-items: start;
}

.ric-footer__col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* titolo colonna: stessa baseline su tutte le colonne */
.ric-footer__heading {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  min-height: 20px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.01em;
}

.ric-footer__brand.ric-footer__heading {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ric-footer__about {
  margin: 0;
  max-width: 260px;
  line-height: 1.5;
  color: var(--text-3);
  font-size: 13px;
}

.ric-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
}

.ric-footer a {
  display: block;
  width: 100%;
  margin: 0;
  padding: 5px 0;
  color: var(--text-3);
  line-height: 1.35;
  font-size: 13px;
  text-align: left;
}

.ric-footer a:hover {
  color: var(--text);
}

.ric-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-2);
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-3);
}

.ric-footer__bottom span {
  display: inline-block;
}

@media (max-width: 959px) {
  .ric-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 28px;
  }

  .ric-footer__col:first-child {
    grid-column: 1 / -1;
  }

  .ric-footer__about {
    max-width: 36rem;
  }
}

@media (max-width: 599px) {
  .ric-footer {
    padding: 32px 0 24px;
  }

  .ric-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ric-footer__col:first-child {
    grid-column: auto;
  }

  .ric-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.section-title {
  margin: 28px 0 12px;
  font-size: 16px;
  font-weight: 700;
}

/* ========== LIVE TRADING FEED ========== */
.scambi-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.live-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.live-top__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.live-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--danger);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(224, 62, 62, 0.5);
  animation: livepulse 1.4s infinite;
}

@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 62, 62, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(224, 62, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 62, 62, 0); }
}

.live-status {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.live-status.is-closed {
  background: var(--bg-3);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.live-status.is-go {
  border-color: rgba(107, 191, 26, 0.45);
  background: rgba(107, 191, 26, 0.1);
  color: var(--lime);
}

.live-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.live-filter {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.live-filter:hover {
  border-color: var(--lime);
  color: var(--text);
}

.live-filter.is-on {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
}

/* Feed list */
.live-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-room {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
  animation: room-in 0.45s ease both;
  animation-delay: calc(var(--i, 0) * 0.06s);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.live-room.is-fresh {
  border-color: rgba(107, 191, 26, 0.4);
}

.live-room.is-pulse {
  box-shadow: 0 0 0 3px rgba(107, 191, 26, 0.2);
}

@keyframes room-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.live-room__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.live-room__user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-room__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #6bbf1a, #3d7a0a);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.live-room__user strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.live-room__user span {
  font-size: 12px;
  color: var(--text-3);
}

.live-room__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-3);
  color: var(--text-2);
  border: 1px solid var(--line);
}

.live-badge--new {
  background: rgba(107, 191, 26, 0.12);
  border-color: rgba(107, 191, 26, 0.35);
  color: var(--lime);
}

.live-room__body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.live-room__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin-bottom: 6px;
}

.live-room__item {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.live-room__item img {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card-img-bg);
  flex-shrink: 0;
}

.live-room__item strong {
  display: block;
  font-size: 13px;
  color: var(--text);
  line-height: 1.25;
}

.live-room__item em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.live-room__price {
  color: var(--text-2) !important;
  font-weight: 600;
}

.live-room__swap {
  font-size: 20px;
  color: var(--lime);
  font-weight: 700;
  text-align: center;
}

.live-room__seeks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.live-room__seeks li {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(107, 191, 26, 0.08);
  border: 1px solid rgba(107, 191, 26, 0.18);
  line-height: 1.3;
}

.live-room__seeks--lg li {
  font-size: 14px;
  padding: 8px 12px;
}

.live-room__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}

.live-room__props {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}

/* —— Live room arena (full page, no popup) —— */
.live-arena {
  position: relative;
  min-height: calc(100vh - 180px);
  margin: 0 0 -40px;
  padding: 0 0 48px;
  overflow: hidden;
  animation: arena-in 0.5s ease both;
}

@keyframes arena-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.live-arena__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(107, 191, 26, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 70%, rgba(224, 62, 62, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 85% 60%, rgba(80, 140, 255, 0.08), transparent 50%);
  z-index: 0;
}

[data-theme="dark"] .live-arena__bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(107, 191, 26, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 70%, rgba(224, 62, 62, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 85% 60%, rgba(80, 140, 255, 0.1), transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 40%);
}

.live-arena__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: orb-drift 12s ease-in-out infinite alternate;
}

.live-arena__orb--a {
  width: 220px;
  height: 220px;
  top: 8%;
  left: 8%;
  background: rgba(107, 191, 26, 0.35);
}

.live-arena__orb--b {
  width: 260px;
  height: 260px;
  top: 20%;
  right: 6%;
  background: rgba(224, 62, 62, 0.22);
  animation-delay: -4s;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(18px, 24px) scale(1.08); }
}

.live-arena__grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--text) 1px, transparent 1px),
    linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.live-arena__shell {
  position: relative;
  z-index: 1;
  padding-top: 12px;
}

.live-arena__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.live-arena__back {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
}

.live-arena__back:hover {
  color: var(--lime);
}

.live-arena__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(224, 62, 62, 0.1);
  border: 1px solid rgba(224, 62, 62, 0.28);
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.live-arena__user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}

.live-arena__user-chip strong {
  color: var(--text);
}

.live-room__avatar--sm {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

/* Stage: dual game animation */
.live-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin: 0 0 28px;
  padding: 28px 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}

.live-stage__side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.live-stage__tag {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.live-stage__tag--want {
  color: var(--danger);
}

.live-card {
  position: relative;
  width: min(200px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.live-card__glow {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 70%;
  height: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(107, 191, 26, 0.35);
  filter: blur(28px);
  z-index: 0;
  animation: glow-pulse 2.8s ease-in-out infinite;
}

.live-card__glow--want {
  background: rgba(224, 62, 62, 0.28);
  animation-delay: -1.4s;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.12); }
}

.live-card__art {
  position: relative;
  z-index: 1;
  width: min(160px, 42vw);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(107, 191, 26, 0.25);
  background: var(--card-img-bg);
  animation: card-float 3.6s ease-in-out infinite;
}

.live-card--want .live-card__art {
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(224, 62, 62, 0.3);
  animation-delay: -1.8s;
}

.live-card__art--float {
  animation: card-float 3.6s ease-in-out infinite, card-tilt 5s ease-in-out infinite;
}

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes card-tilt {
  0%, 100% { rotate: -1.5deg; }
  50% { rotate: 1.5deg; }
}

.live-card__stack {
  position: relative;
  z-index: 1;
  width: min(160px, 42vw);
  aspect-ratio: 3 / 4;
}

.live-card__stack .live-card__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.live-card__ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.35;
  z-index: 0;
  filter: saturate(0.8);
}

.live-card__ghost--1 {
  transform: translate(10px, 8px) rotate(6deg) scale(0.94);
  animation: ghost-swap 4.5s ease-in-out infinite;
}

.live-card__ghost--2 {
  transform: translate(-12px, 10px) rotate(-7deg) scale(0.9);
  animation: ghost-swap 4.5s ease-in-out infinite reverse;
  animation-delay: -1s;
}

@keyframes ghost-swap {
  0%, 100% { opacity: 0.25; transform: translate(10px, 8px) rotate(6deg) scale(0.94); }
  50% { opacity: 0.45; transform: translate(14px, 4px) rotate(8deg) scale(0.96); }
}

.live-card__meta {
  text-align: center;
  width: 100%;
  max-width: 220px;
}

.live-card__meta strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 4px;
}

.live-card__meta span,
.live-card__meta em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--text-3);
}

.live-card__meta em {
  margin-top: 4px;
  font-weight: 600;
  color: var(--text-2);
}

.live-stage__seeks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.live-stage__seeks li {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(224, 62, 62, 0.08);
  border: 1px solid rgba(224, 62, 62, 0.16);
  line-height: 1.3;
}

.live-stage__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.live-swap {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.live-swap__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(107, 191, 26, 0.45);
  animation: swap-ring 2.2s ease-out infinite;
}

.live-swap__ring--2 {
  animation-delay: 1.1s;
  border-color: rgba(224, 62, 62, 0.4);
}

@keyframes swap-ring {
  0% { transform: scale(0.55); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.live-swap__icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--lime), #3d7a0a);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(107, 191, 26, 0.35);
  animation: swap-spin 3.2s ease-in-out infinite;
}

@keyframes swap-spin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  40% { transform: rotate(180deg) scale(1.06); }
  100% { transform: rotate(360deg) scale(1); }
}

.live-stage__vs {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.live-arena__panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.live-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  animation: room-in 0.5s ease both;
  animation-delay: 0.15s;
}

.live-panel:nth-child(2) {
  animation-delay: 0.25s;
}

.live-panel__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-panel__title em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(107, 191, 26, 0.12);
  color: var(--lime);
}

.live-panel__hint {
  margin: -4px 0 12px;
  font-size: 12px;
  color: var(--text-3);
}

.live-props {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-props--arena {
  max-height: 320px;
  overflow: auto;
}

.live-prop {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.live-prop img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--card-img-bg);
  flex-shrink: 0;
}

.live-prop__body {
  min-width: 0;
  font-size: 12px;
  color: var(--text-3);
}

.live-prop__body strong {
  color: var(--text);
}

.live-prop__body span {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin: 2px 0;
}

.live-prop__body em {
  display: block;
  font-style: normal;
}

.live-prop__note {
  margin-top: 4px !important;
  color: var(--text-2) !important;
}

.live-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.live-offer-grid--arena {
  grid-template-columns: repeat(3, 1fr);
}

.live-offer-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 8px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.live-offer-card:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
}

.live-offer-card.is-sent {
  border-color: var(--lime);
  opacity: 0.7;
  cursor: default;
  transform: none;
}

.live-offer-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: var(--card-img-bg);
  margin-bottom: 6px;
}

.live-offer-card span {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 860px) {
  .live-stage {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 14px;
  }

  .live-stage__mid {
    order: 0;
  }

  .live-arena__panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .live-room__body {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .live-room__swap {
    display: none;
  }

  .live-offer-grid,
  .live-offer-grid--arena {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* —— Account / auth / success flows —— */
.banner-soft {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(107, 191, 26, 0.35);
  background: rgba(107, 191, 26, 0.08);
  font-size: 13px;
  color: var(--text-2);
}

.banner-soft a {
  color: var(--lime);
  font-weight: 700;
}

/* Landing + Accedi: chrome marketplace sparisce */
body.is-auth-focus .ric-top,
body.is-auth-focus .ric-header,
body.is-auth-focus .ric-footer,
body.is-landing .ric-top,
body.is-landing .ric-header,
body.is-landing .ric-footer {
  display: none !important;
}

/* Metti in vendita: niente cerca né barre categorie */
body.is-sell .hdr-search,
body.is-sell .catbar,
body.is-sell #mega {
  display: none !important;
}

body.is-sell .ric-header {
  border-bottom: 1px solid var(--line);
}

body.is-sell .hdr-shell {
  padding-bottom: 10px;
}

body.is-landing #app {
  min-height: 100vh;
}

/* ========== WELCOME / MISSION ========== */
.welcome {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--text);
}

.welcome__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 50% at 50% -5%, rgba(107, 191, 26, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 20%, rgba(224, 62, 62, 0.08), transparent 50%),
    var(--bg);
}

.welcome__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: welcome-drift 14s ease-in-out infinite alternate;
}

.welcome__orb--a {
  width: 280px;
  height: 280px;
  top: 8%;
  left: -40px;
  background: rgba(107, 191, 26, 0.35);
}

.welcome__orb--b {
  width: 320px;
  height: 320px;
  top: 40%;
  right: -60px;
  background: rgba(80, 120, 255, 0.12);
  animation-delay: -5s;
}

@keyframes welcome-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(20px, 30px) scale(1.08); }
}

.welcome__grid {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(var(--text) 1px, transparent 1px),
    linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}

.welcome__nav,
.welcome__hero,
.welcome__strip,
.welcome__mission,
.welcome__story,
.welcome__stats,
.welcome__live,
.welcome__updates,
.welcome__close,
.welcome .landing__foot {
  position: relative;
  z-index: 1;
}

.welcome__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px var(--gutter, 20px) 8px;
}

.welcome__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.welcome__nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.welcome__badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(107, 191, 26, 0.14);
  border: 1px solid rgba(107, 191, 26, 0.35);
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.welcome__hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px var(--gutter, 20px) 28px;
  text-align: center;
}

.welcome__kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

.welcome__kicker--on-dark {
  color: #b8f06a;
}

.welcome__title {
  margin: 0 0 20px;
  font-size: clamp(30px, 5.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
}

.welcome__title-em {
  background: linear-gradient(120deg, var(--lime) 0%, #9ae63a 40%, var(--text) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="dark"] .welcome__title-em {
  background: linear-gradient(120deg, #9ae63a 0%, #6bbf1a 50%, #e8ffb0 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.welcome__lead {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  text-align: left;
}

.welcome__lead--soft {
  color: var(--text-3);
  font-size: 15px;
}

.welcome__lead--tight {
  margin-bottom: 10px;
  text-align: inherit;
  font-size: 15px;
}

.welcome__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

.welcome__cta {
  min-width: 168px;
}

.welcome__meta {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-3);
  font-weight: 600;
}

/* floating covers */
.welcome__strip {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 1080px;
  margin: 8px auto 40px;
  padding: 8px var(--gutter, 20px) 20px;
  overflow: hidden;
}

.welcome__strip-card {
  flex: 0 0 auto;
  width: 72px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  transform: rotate(calc((var(--i, 0) - 3.5) * 2.2deg)) translateY(calc((var(--i, 0) % 2) * 8px));
  animation: strip-float 4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.12s);
  background: var(--card-img-bg);
}

.welcome__strip-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes strip-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

.welcome__mission {
  max-width: 1080px;
  margin: 0 auto 36px;
  padding: 0 var(--gutter, 20px);
}

.welcome__mission-inner {
  padding: 28px 24px 32px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}

.welcome__mission-inner .welcome__h2 {
  text-align: center;
  margin-bottom: 22px;
}

.welcome__mission-inner .welcome__kicker {
  text-align: center;
}

.welcome__h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.welcome__h2--light {
  color: #f4f4f4;
}

.welcome__mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.welcome__mission-card {
  padding: 18px 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.welcome__mission-card:hover {
  border-color: rgba(107, 191, 26, 0.45);
  transform: translateY(-2px);
}

.welcome__num {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.welcome__mission-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text);
}

.welcome__mission-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

.welcome__story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto 36px;
  padding: 0 var(--gutter, 20px);
}

.welcome__story-panel {
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.welcome__story-panel--dark {
  background:
    linear-gradient(145deg, #1a1f16 0%, #0e100c 55%, #1c2418 100%);
  border-color: rgba(107, 191, 26, 0.25);
  color: #d8d8d8;
}

.welcome__story-panel--dark p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: #c8c8c8;
}

.welcome__story-panel--dark p:last-child {
  margin-bottom: 0;
}

.welcome__story-panel--dark strong {
  color: #e8ffb0;
}

.welcome__bullets {
  margin: 0 0 18px;
  padding: 0 0 0 18px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}

.welcome__bullets li {
  margin-bottom: 8px;
}

.welcome__bullets strong {
  color: var(--text);
}

.welcome__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 1080px;
  margin: 0 auto 36px;
  padding: 0 var(--gutter, 20px);
}

.welcome__stat {
  text-align: center;
  padding: 18px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.welcome__stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--lime);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.welcome__stat span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}

.welcome__live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto 40px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid rgba(224, 62, 62, 0.28);
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(224, 62, 62, 0.08), transparent 55%),
    var(--bg-2);
  box-sizing: border-box;
  width: calc(100% - 2 * var(--gutter, 20px));
}

.welcome__live-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.welcome__updates {
  max-width: 1080px;
  margin: 0 auto 40px;
  padding: 0 var(--gutter, 20px);
}

.welcome__updates-inner {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.welcome__updates-inner .welcome__lead {
  text-align: center;
}

.welcome__updates-inner .landing__form {
  text-align: left;
  margin-top: 16px;
}

.welcome__close {
  max-width: 640px;
  margin: 0 auto 48px;
  padding: 0 var(--gutter, 20px);
  text-align: center;
}

.welcome__close .welcome__lead {
  text-align: center;
  margin-bottom: 8px;
}

@media (max-width: 860px) {
  .welcome__mission-grid,
  .welcome__story,
  .welcome__stats {
    grid-template-columns: 1fr;
  }

  .welcome__strip-card {
    width: 56px;
    height: 76px;
  }

  .welcome__strip-card:nth-child(n + 6) {
    display: none;
  }

  .welcome__live-side {
    align-items: stretch;
    width: 100%;
  }

  .welcome__nav-actions .btn-ghost {
    display: none;
  }

  .welcome__lead {
    text-align: center;
  }
}

/* legacy landing bits still used by forms/foot */
.landing {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(107, 191, 26, 0.16), transparent 55%),
    var(--bg);
}

.landing__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px var(--gutter, 20px);
}

.landing__brand {
  margin: 0 !important;
  width: auto !important;
  justify-content: flex-start !important;
}

.landing__nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.landing__hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px var(--gutter, 20px) 40px;
  text-align: center;
}

.landing__eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
}

.landing__badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(107, 191, 26, 0.14);
  border: 1px solid rgba(107, 191, 26, 0.35);
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing__sub-soft {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-3);
}

.landing__form-note code {
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-3);
}

.landing__h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.landing__h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 750;
  color: var(--text);
}

.landing__sub {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
}

.landing__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}

.landing__cta {
  min-width: 160px;
}

.landing__meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}

.landing__values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto 36px;
  padding: 0 var(--gutter, 20px);
}

.landing__card {
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow-soft);
}

.landing__card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--text);
}

.landing__card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}

.landing__live-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto 40px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(224, 62, 62, 0.25);
  background: color-mix(in srgb, var(--bg-2) 90%, rgba(224, 62, 62, 0.06));
  box-sizing: border-box;
  width: calc(100% - 2 * var(--gutter, 20px));
}

.landing__countdown {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.landing__wait {
  max-width: 1080px;
  margin: 0 auto 48px;
  padding: 0 var(--gutter, 20px);
}

.landing__wait-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.landing__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-top: 16px;
}

.landing__form-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
}

.landing__steps {
  max-width: 640px;
  margin: 0 auto 48px;
  padding: 0 var(--gutter, 20px);
  text-align: center;
}

.landing__steps .steps {
  text-align: left;
  margin: 20px 0;
}

.landing__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  padding: 24px var(--gutter, 20px) 40px;
  font-size: 13px;
  color: var(--text-3);
  border-top: 1px solid var(--line);
}

.landing__foot a {
  color: var(--text-2);
  font-weight: 600;
  text-decoration: none;
}

.landing__foot a:hover {
  color: var(--lime);
}

.live-event-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.live-event-banner__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

@media (max-width: 800px) {
  .landing__values {
    grid-template-columns: 1fr;
  }

  .landing__nav-actions .btn-ghost {
    display: none;
  }

  .live-event-banner__side {
    align-items: stretch;
    width: 100%;
  }
}

/* Accedi: chrome sparisce, form al centro */

body.is-auth-focus {
  min-height: 100vh;
}

body.is-auth-focus #app {
  min-height: 100dvh;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* —— Auth page (login / registrati) —— */
.auth-screen {
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: safe center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(107, 191, 26, 0.12), transparent 55%),
    var(--bg);
}

.auth-card,
.auth-card--focus,
.auth-card--wide {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 24px 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
  box-sizing: border-box;
  overflow: hidden;
}

.auth-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  text-decoration: none;
  color: var(--text);
}

.auth-card__logo .hdr-logo__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Switch Accedi | Registrati — mai overflow */
.auth-mode-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 4px;
  box-sizing: border-box;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
}

.auth-mode-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 8px 6px;
  border-radius: 9px;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-mode-nav__link.is-on {
  background: var(--lime);
  color: #0b1205;
}

.auth-mode-nav__link:not(.is-on):hover {
  color: var(--text);
  background: rgba(107, 191, 26, 0.08);
}

.auth-card__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  text-align: center;
}

.auth-card__lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
  text-align: center;
}

/* Form dedicato: NO .ric-form (evita doppio box / overflow) */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-sizing: border-box;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

.auth-field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.auth-field__input,
.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="password"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* no iOS zoom */
  outline: none;
}

.auth-field__input:focus,
.auth-form input:focus {
  border-color: var(--lime);
}

.auth-pass {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}

.auth-pass .auth-field__input,
.auth-pass input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.auth-pass__toggle {
  flex: 0 0 auto;
  width: auto;
  max-width: 4.5rem;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--text-3);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
  cursor: pointer;
  white-space: nowrap;
}

.auth-pass__toggle:hover {
  color: var(--lime);
  background: rgba(107, 191, 26, 0.06);
}

.auth-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-2);
}

.auth-check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--lime);
}

.auth-check a {
  color: var(--lime);
  font-weight: 600;
  text-decoration: none;
}

.auth-check a:hover {
  text-decoration: underline;
}

.auth-form__submit {
  margin-top: 4px;
  width: 100%;
}

.auth-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.auth-card__back {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  text-decoration: none;
}

.auth-card__back:hover {
  color: var(--lime);
}

.auth-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  box-sizing: border-box;
  word-wrap: break-word;
}

.auth-note--err {
  background: rgba(220, 50, 50, 0.1);
  color: #b42318;
  border: 1px solid rgba(220, 50, 50, 0.2);
}

.auth-note--ok {
  background: rgba(107, 191, 26, 0.12);
  color: var(--text);
  border: 1px solid rgba(107, 191, 26, 0.35);
}

.auth-note--warn {
  background: rgba(234, 179, 8, 0.12);
  color: var(--text);
  border: 1px solid rgba(234, 179, 8, 0.35);
}

[data-theme="dark"] .auth-note--err {
  color: #fca5a5;
}

.auth-switch {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

.auth-switch a {
  margin-left: 4px;
  font-weight: 700;
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-switch a:hover {
  color: var(--text);
}

.success-block {
  max-width: 520px;
}

.account-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 24px;
}

.account-stat {
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  text-align: center;
}

.account-stat strong {
  display: block;
  font-size: 22px;
  color: var(--text);
}

.account-stat span {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
}

.account-section {
  margin: 0 0 28px;
}

.account-section h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.account-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.account-section__head h2 {
  margin: 0;
}

.account-list {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}

.account-list a {
  color: var(--lime);
  font-weight: 600;
}

.seller-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.ric-seller--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.ric-seller--link:hover {
  border-color: var(--lime);
}

.ric-gallery__main {
  position: relative;
}

.detail-hot {
  /* reuse card hot badge on detail */
}

.scambi-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ric-row--actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.ric-row__main {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.ric-row--actions > .btn {
  flex-shrink: 0;
  align-self: center;
}

.empty--cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 8px;
  grid-column: 1 / -1;
}

.empty--cta p {
  margin: 0;
}

.trade-pick {
  margin: 16px 0;
}

.hdr-link.is-nav-on .hdr-link__txt,
a.is-nav-on.catbar__item--plain,
a.is-nav-on.catbar__live {
  color: var(--lime);
}

@media (max-width: 640px) {
  .account-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.backend-pill {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 180;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.backend-pill.is-cloud {
  border-color: rgba(107, 191, 26, 0.4);
  color: var(--lime);
  background: rgba(107, 191, 26, 0.1);
}

.backend-pill.is-local {
  opacity: 0.85;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
}

.auth-tab {
  flex: 1;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-2);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.auth-tab.is-on {
  border-color: var(--lime);
  background: rgba(107, 191, 26, 0.12);
  color: var(--text);
}

.impressum-card {
  max-width: 560px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  line-height: 1.55;
  color: var(--text-2);
}

.impressum-card p {
  margin: 0 0 14px;
}

.impressum-card strong {
  color: var(--text);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.toast[hidden] {
  display: none;
}

/* ========== BREAKPOINTS (Ricardo 600 / 960) ========== */
@media (max-width: 959px) {
  .hdr-link__txt {
    display: none;
  }

  .hdr-logo__name {
    font-size: 18px;
  }

  .hdr-sell {
    padding: 0 12px;
    font-size: 13px;
  }
}

/* ========== MOBILE ≤599px (reset pulito) ========== */
@media (max-width: 599px) {
  :root {
    --gutter: 12px;
    --gap-card: 12px;
    --search-h: 44px;
  }

  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: clip;
  }

  .ric-container {
    width: 100%;
    max-width: 100%;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  /* Top bar */
  .ric-top__right a:not(:last-child) {
    display: none;
  }

  /* Header row */
  .hdr-shell {
    padding-top: 10px;
  }

  .hdr-top {
    height: auto;
    min-height: 44px;
    gap: 8px;
  }

  .hdr-logo {
    min-width: 0;
  }

  .hdr-logo__mark {
    width: 30px;
    height: 30px;
  }

  .hdr-logo__name {
    font-size: 15px;
  }

  .hdr-actions {
    gap: 4px;
    min-width: 0;
    flex-shrink: 1;
  }

  .hdr-link {
    height: 40px;
    width: 40px;
    min-width: 40px;
    padding: 0;
    justify-content: center;
  }

  .hdr-link__txt {
    display: none !important;
  }

  .hdr-link__badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 15px;
    height: 15px;
    font-size: 9px;
  }

  .hdr-sell {
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hdr-sell__long {
    display: none;
  }

  .hdr-sell__short {
    display: inline !important;
  }

  /* Search */
  .hdr-search {
    height: 44px;
    margin-top: 10px;
  }

  .hdr-search input,
  .hdr-search__btn {
    height: 44px;
    line-height: normal;
    font-size: 16px;
  }

  .hdr-search__btn {
    min-width: 64px;
    padding: 0 12px;
  }

  /* Catbar */
  .catbar {
    height: 44px;
    margin-top: 8px;
    gap: 0;
  }

  .catbar__all {
    height: 44px;
    font-size: 12px;
    padding-right: 8px;
    flex: 0 0 auto;
    max-width: none;
  }

  .catbar__all .catbar__burger + * ,
  .catbar__all {
    white-space: nowrap;
  }

  .catbar__brands {
    height: 44px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: none;
  }

  .catbar__brands::-webkit-scrollbar {
    display: none;
  }

  .catbar__dd,
  .catbar__live-wrap {
    height: 44px;
    flex: 0 0 auto;
  }

  .catbar__menu {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    max-width: none;
    z-index: 120;
  }

  /* Soft bar */
  .home-soft-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    font-size: 12px;
  }

  .home-soft-bar__txt {
    flex: 1 1 auto;
    min-width: 0;
    order: 0;
  }

  .home-soft-bar__link {
    font-size: 12px;
  }

  /* Chips: horizontal scroll, no wrap mess */
  .ric-home-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 0 14px;
    padding: 2px 0;
  }

  .ric-home-chips::-webkit-scrollbar {
    display: none;
  }

  .ric-home-chip {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  /* Rails */
  .ric-rail {
    margin-bottom: 20px;
  }

  .ric-rail__head {
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .ric-rail__head h2 {
    font-size: 16px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .ric-rail__head-actions {
    flex-shrink: 0;
  }

  .ric-rail__arrow {
    width: 34px;
    height: 34px;
  }

  .ric-rail__more {
    display: none;
  }

  /* Cards in rail: fixed width, no negative margins */
  .ric-rail__track {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0 2px 4px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ric-rail__track .ric-card {
    flex: 0 0 158px;
    width: 158px;
    min-width: 158px;
    max-width: 158px;
  }

  .ric-rail__track .ric-card__body {
    padding: 8px 10px 10px;
  }

  .ric-rail__track .ric-card__title {
    font-size: 12px;
    min-height: 2.6em;
  }

  .ric-rail__track .ric-card__price {
    font-size: 14px;
  }

  /* Product grid */
  .ric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .ric-card__body {
    padding: 8px 10px 10px;
  }

  .ric-card__title {
    font-size: 12px;
  }

  /* Market / list */
  .ric-market {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .ric-sidebar {
    order: 2;
  }

  .ric-results {
    order: 1;
  }

  .ric-page-title {
    font-size: 20px;
  }

  .ric-results__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ric-sort select {
    min-height: 44px;
    font-size: 16px;
  }

  /* Detail */
  .ric-detail {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .ric-buybox h1 {
    font-size: 18px;
  }

  .ric-buybox__price {
    font-size: 24px;
  }

  .ric-buybox__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .ric-buybox__actions .btn {
    width: 100%;
  }

  /* Scambi / rows */
  .scambi-head {
    flex-direction: column;
    align-items: stretch;
  }

  .scambi-head__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .scambi-head__actions .btn {
    width: 100%;
  }

  .ric-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 10px;
    align-items: center;
  }

  .ric-row img {
    width: 56px;
    height: 70px;
  }

  .ric-row--actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .ric-row__main {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 10px;
    width: 100%;
  }

  .ric-row--actions > .btn {
    width: 100%;
  }

  /* Live */
  .live-event-banner,
  .live-top {
    flex-direction: column;
  }

  .live-event-banner__side,
  .live-top__actions {
    width: 100%;
    align-items: stretch;
  }

  .live-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .live-filters::-webkit-scrollbar {
    display: none;
  }

  .live-filter {
    flex: 0 0 auto;
  }

  .live-room__body {
    grid-template-columns: 1fr !important;
  }

  .live-room__swap {
    display: none !important;
  }

  .live-stage {
    grid-template-columns: 1fr !important;
    padding: 14px 12px;
  }

  .live-stage__mid {
    order: -1;
  }

  .live-card__art,
  .live-card__stack {
    width: 120px !important;
  }

  .live-arena__panels {
    grid-template-columns: 1fr !important;
  }

  /* Kill decorative tilt/rotate on mobile (causes “storto”) */
  .welcome__strip-card,
  .live-card__art,
  .live-card__art--float,
  .live-card__ghost,
  .live-swap__icon {
    transform: none !important;
    animation: none !important;
    rotate: none !important;
  }

  .welcome__strip {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
  }

  .welcome__strip-card {
    width: 56px;
    height: 74px;
  }

  .welcome__hero {
    padding: 24px var(--gutter) 20px;
    text-align: center;
  }

  .welcome__title {
    font-size: 26px;
  }

  .welcome__lead {
    text-align: center;
    font-size: 14px;
  }

  .welcome__mission-grid,
  .welcome__story,
  .welcome__stats {
    grid-template-columns: 1fr !important;
  }

  .welcome__nav {
    padding: 14px var(--gutter);
  }

  .welcome__nav-actions .btn-ghost {
    display: none;
  }

  /* Auth — card centrata; se alta, scrolla ma resta centrata quando c’è spazio */
  .auth-screen {
    padding: 20px 12px;
    align-items: safe center;
    min-height: 100dvh;
  }

  .auth-card,
  .auth-card--focus,
  .auth-card--wide {
    width: 100%;
    max-width: 100%;
    padding: 20px 16px;
    margin: 0;
  }

  .auth-mode-nav__link {
    font-size: 13px;
    min-height: 40px;
  }

  .field input,
  .field select,
  .field textarea,
  .ric-form input,
  .ric-form select,
  .ric-form textarea,
  .hdr-search input {
    font-size: 16px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn,
  .btn-block {
    width: 100%;
  }

  /* Account */
  .account-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-head {
    flex-direction: column;
  }

  /* Toast / pills */
  .toast {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
    transform: none;
    border-radius: 12px;
    text-align: center;
  }

  .backend-pill {
    right: 10px;
    bottom: max(64px, calc(env(safe-area-inset-bottom, 0px) + 60px));
    font-size: 10px;
  }

  .ric-footer {
    padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
  }

  .ric-footer__grid {
    grid-template-columns: 1fr;
  }

  .fee-grid {
    grid-template-columns: 1fr 1fr;
  }

  .live-offer-grid,
  .live-offer-grid--arena {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 379px) {
  .hdr-logo__name {
    display: none;
  }

  .ric-rail__track .ric-card {
    flex: 0 0 140px;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
  }

  .catbar__all {
    font-size: 11px;
  }
}

@media (min-width: 720px) {
  .ric-home-cats__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ric-rail__head h2 {
    font-size: 22px;
  }

  .ric-form-grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .slots {
    grid-template-columns: repeat(4, 1fr);
  }

  .fee-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Grid results: force equal image height via square frame */
.ric-grid .ric-card__img {
  aspect-ratio: 1 / 1;
}

@media (min-width: 960px) {
  .ric-market {
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
    gap: var(--sidebar-gap);
    align-items: start;
  }

  .ric-sidebar {
    position: sticky;
    top: 180px; /* below sticky header stack */
    width: var(--sidebar);
    max-width: var(--sidebar);
  }

  .ric-detail {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 20px;
    align-items: start;
  }

  .ric-buybox {
    position: sticky;
    top: 180px;
  }

  .fee-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
