/* Student profile shell: one canonical mobile surface for every main section. */
.rb-shell.rb-student-app {
  padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  gap: 0;
}

/* Admin catalog */
.rb-marketplace-admin {
  display: grid;
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto;
  color: #f7f7f7;
}

.rb-marketplace-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, auto) minmax(170px, auto) minmax(150px, auto) auto auto auto;
  gap: 10px;
  align-items: center;
}

.rb-marketplace-input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  background: #101010;
  font: 700 14px/1.25 Arial, sans-serif;
}

.rb-marketplace-input:focus-visible,
.rb-marketplace-primary:focus-visible,
.rb-marketplace-secondary:focus-visible,
.rb-marketplace-success:focus-visible,
.rb-marketplace-danger:focus-visible,
.rb-marketplace-admin-card:focus-visible,
.rb-marketplace-editor-close:focus-visible,
.rb-marketplace-variant-remove:focus-visible {
  outline: 3px solid rgba(39, 214, 255, 0.72);
  outline-offset: 2px;
}

.rb-marketplace-primary,
.rb-marketplace-secondary,
.rb-marketplace-success,
.rb-marketplace-danger {
  min-height: 44px;
  border-radius: 10px;
  padding: 10px 16px;
  font: 900 13px/1 Arial, sans-serif;
  cursor: pointer;
}

.rb-marketplace-primary {
  border: 1px solid #ff3047;
  color: #fff;
  background: linear-gradient(135deg, #d90f2b, #ff3047);
  box-shadow: 0 0 20px rgba(255, 48, 71, 0.2);
}

.rb-marketplace-secondary {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  background: #171717;
}

.rb-marketplace-success {
  border: 1px solid #63e6a6;
  color: #06150e;
  background: #63e6a6;
}

.rb-marketplace-danger {
  border: 1px solid #ff6578;
  color: #ffbdc6;
  background: rgba(255, 48, 71, 0.11);
}

.rb-marketplace-primary:disabled,
.rb-marketplace-secondary:disabled,
.rb-marketplace-success:disabled,
.rb-marketplace-danger:disabled {
  cursor: wait;
  opacity: 0.55;
}

.rb-marketplace-admin-notice,
.rb-marketplace-editor-status {
  min-height: 20px;
  margin: 0;
  color: #a6a6a6;
  font: 700 13px/1.4 Arial, sans-serif;
}

.rb-marketplace-admin-notice[data-kind="error"],
.rb-marketplace-editor-status[data-kind="error"],
.rb-marketplace-upload-status[data-kind="error"] {
  color: #ff8998;
}

.rb-marketplace-admin-notice[data-kind="success"],
.rb-marketplace-editor-status[data-kind="success"] {
  color: #7df0b8;
}

.rb-marketplace-admin-list {
  display: grid;
  gap: 10px;
}

.rb-marketplace-admin-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 10px;
  color: inherit;
  text-align: left;
  background: linear-gradient(110deg, #0b0b0b, #131313);
  cursor: pointer;
}

.rb-marketplace-admin-card:hover {
  border-color: rgba(255, 48, 71, 0.68);
  transform: translateY(-1px);
}

.rb-marketplace-admin-thumb {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  object-fit: cover;
  background: #050505;
}

.rb-marketplace-admin-card-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rb-marketplace-admin-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.rb-marketplace-status,
.rb-marketplace-type {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 5px 8px;
  color: #bdbdbd;
  font: 900 10px/1 Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rb-marketplace-status.is-published {
  border-color: rgba(99, 230, 166, 0.52);
  color: #78efb6;
}

.rb-marketplace-status.is-draft {
  border-color: rgba(255, 207, 74, 0.48);
  color: #ffdc77;
}

.rb-marketplace-admin-card-title {
  overflow: hidden;
  color: #fff;
  font: 900 19px/1.15 Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rb-marketplace-admin-card-price {
  color: #d7ff68;
  font: 900 15px/1.2 Arial, sans-serif;
}

.rb-marketplace-admin-stock {
  color: #a7a7a7;
  font: 700 12px/1.2 Arial, sans-serif;
}

.rb-marketplace-admin-stock.is-empty {
  color: #ff8998;
}

.rb-marketplace-admin-open {
  padding-right: 10px;
  color: #d1d1d1;
  font: 900 12px/1 Arial, sans-serif;
  text-transform: uppercase;
}

.rb-marketplace-editor-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.rb-marketplace-editor {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(980px, 100%);
  max-height: calc(100dvh - 40px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background: #090909;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 40px rgba(255, 48, 71, 0.1);
}

.rb-marketplace-editor-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 20px;
}

.rb-marketplace-editor-heading h2 {
  margin: 5px 0 0;
  font: 900 clamp(22px, 4vw, 34px)/1 Arial, sans-serif;
}

.rb-marketplace-editor-kicker {
  color: #ff5064;
  font: 900 11px/1 Arial, sans-serif;
  letter-spacing: 0.12em;
}

.rb-marketplace-editor-close,
.rb-marketplace-variant-remove {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: #fff;
  background: #171717;
  font: 900 24px/1 Arial, sans-serif;
  cursor: pointer;
}

.rb-marketplace-editor-form {
  display: grid;
  gap: 20px;
  padding: 20px;
  overflow: auto;
}

.rb-marketplace-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.rb-marketplace-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.rb-marketplace-field.is-wide,
.rb-marketplace-image-block {
  grid-column: 1 / -1;
}

.rb-marketplace-field-label {
  color: #b7b7b7;
  font: 800 12px/1.2 Arial, sans-serif;
}

.rb-marketplace-textarea {
  min-height: 100px;
  resize: vertical;
}

.rb-marketplace-image-block {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
}

.rb-marketplace-editor-preview {
  grid-row: span 2;
  width: 128px;
  height: 128px;
  border-radius: 10px;
  object-fit: cover;
  background: #050505;
}

.rb-marketplace-file {
  padding: 8px;
}

.rb-marketplace-gallery-block {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
}

.rb-marketplace-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rb-marketplace-gallery:empty {
  display: none;
}

.rb-marketplace-gallery-item {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: #050505;
}

.rb-marketplace-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.rb-marketplace-gallery-remove,
.rb-marketplace-gallery-cover {
  position: absolute;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.rb-marketplace-gallery-remove {
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font: 800 14px/1 Arial, sans-serif;
}

.rb-marketplace-gallery-cover {
  left: 4px;
  right: 4px;
  bottom: 4px;
  padding: 3px 0;
  border-radius: 6px;
  font: 700 10px/1.2 Arial, sans-serif;
}

.rb-marketplace-upload-status {
  color: #aaa;
  font: 700 12px/1.3 Arial, sans-serif;
}

.rb-marketplace-editor-form.is-digital .rb-physical-field {
  display: none;
}

.rb-marketplace-type-block {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

.rb-marketplace-variants-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #fff;
  font: 900 18px/1.2 Arial, sans-serif;
}

.rb-marketplace-variants {
  display: grid;
  gap: 10px;
}

.rb-marketplace-variant-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.3fr) minmax(120px, 1fr) 110px 120px 44px;
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: #0e0e0e;
}

.rb-marketplace-storefront-editor {
  width: min(1120px, 100%);
}

.rb-marketplace-storefront-block {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px;
  background: #0e0e0e;
}

.rb-marketplace-storefront-heading {
  margin: 0;
  color: #fff;
  font: 900 18px/1.2 Arial, sans-serif;
}

.rb-marketplace-storefront-list {
  display: grid;
  gap: 10px;
}

.rb-marketplace-storefront-row {
  grid-template-columns: 110px minmax(180px, 1fr) 150px 100px;
}

.rb-marketplace-storefront-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px minmax(150px, 1fr);
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: #0b0b0b;
}

.rb-marketplace-storefront-feature .is-wide {
  grid-column: 1 / -1;
}

.rb-marketplace-storefront-feature-key {
  color: #ff5064;
  font: 900 12px/1 Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rb-marketplace-editor-actions {
  position: sticky;
  bottom: -20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin: 0 -20px -20px;
  padding: 14px 20px max(14px, env(safe-area-inset-bottom));
  background: rgba(9, 9, 9, 0.96);
  backdrop-filter: blur(12px);
}

@media (max-width: 760px) {
  .rb-marketplace-admin-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .rb-marketplace-admin-toolbar > :first-child,
  .rb-marketplace-admin-toolbar > :last-child {
    grid-column: 1 / -1;
  }

  .rb-marketplace-admin-card {
    grid-template-columns: 74px minmax(0, 1fr);
    min-height: 96px;
  }

  .rb-marketplace-admin-thumb {
    width: 74px;
    height: 74px;
  }

  .rb-marketplace-admin-open {
    display: none;
  }

  .rb-marketplace-editor-overlay {
    padding: 0;
  }

  .rb-marketplace-editor {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .rb-marketplace-editor-grid,
  .rb-marketplace-variant-row,
  .rb-marketplace-storefront-row,
  .rb-marketplace-storefront-feature {
    grid-template-columns: 1fr;
  }

  .rb-marketplace-variant-remove {
    justify-self: end;
  }

  .rb-marketplace-image-block {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .rb-marketplace-editor-preview {
    width: 90px;
    height: 90px;
  }
}

.rb-shell.rb-student-app.is-stats-view {
  min-height: calc(100vh - 78px);
  min-height: calc(100dvh - 78px);
  padding: 12px 16px max(12px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.rb-shell.rb-student-app.is-stats-view:not(.has-open-stat-panel) {
  height: calc(100vh - 78px);
  height: calc(100dvh - 78px);
  overflow: hidden;
}

.rb-student-content {
  width: 100%;
  max-width: 420px;
  outline: none;
}

.rb-student-content > .rb-profile-card { max-width: none; }

.rb-student-app.is-stats-view .rb-student-content > .rb-profile-card {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.rb-student-app.is-stats-view:not(.has-open-stat-panel) .rb-student-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.rb-student-app.is-stats-view:not(.has-open-stat-panel) .rb-profile-card {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.rb-student-app.is-stats-view:not(.has-open-stat-panel) .rb-profile-card > :not(.rb-profile-photo) {
  flex-shrink: 0;
}

.rb-student-app.is-stats-view:not(.has-open-stat-panel) .rb-profile-photo {
  min-height: 150px;
  flex: 1 1 auto;
  aspect-ratio: auto;
}

.rb-student-nav {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  width: min(calc(100% - 24px), 420px);
  min-height: 88px;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #363636;
  border-radius: 12px;
  background: rgba(5, 5, 5, .97);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .78), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.rb-student-app.is-stats-view .rb-student-nav {
  position: static;
  width: 100%;
  max-width: 420px;
  margin-top: -1px;
  border-top-color: rgba(255, 255, 255, .08);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  transform: none;
  flex: none;
}

.rb-student-nav-item {
  --student-tab-accent: #ff3c49;
  --student-tab-glow: rgba(255, 60, 73, .5);
  min-width: 0;
  min-height: 72px;
  padding: 7px 2px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  color: #d8d8d8;
  background: transparent;
  font-family: var(--font-mono);
  cursor: pointer;
}

.rb-student-nav-item[data-student-tab="stats"] {
  --student-tab-accent: #43d8ff;
  --student-tab-glow: rgba(67, 216, 255, .52);
}

.rb-student-nav-item[data-student-tab="ranking"] {
  --student-tab-accent: #ffd34d;
  --student-tab-glow: rgba(255, 211, 77, .5);
}

.rb-student-nav-item[data-student-tab="mentors"],
.rb-student-nav-item[data-student-tab="missions"] {
  --student-tab-accent: #b98cff;
  --student-tab-glow: rgba(185, 140, 255, .52);
}

.rb-student-nav-item.on {
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--student-tab-accent) 20%, transparent), rgba(255, 255, 255, .025));
  box-shadow: 0 0 20px color-mix(in srgb, var(--student-tab-accent) 18%, transparent) inset;
}

.rb-student-nav-item:disabled { opacity: .42; cursor: default; }

.rb-student-nav-item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.rb-student-nav-icon {
  width: 36px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--student-tab-accent);
  filter: drop-shadow(0 0 5px var(--student-tab-glow));
  transition: filter .18s ease, transform .18s ease;
}

.rb-student-nav-icon svg {
  width: 32px;
  height: 32px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rb-student-nav-item.on .rb-student-nav-icon {
  filter: drop-shadow(0 0 4px var(--student-tab-accent)) drop-shadow(0 0 10px var(--student-tab-glow));
  transform: translateY(-1px) scale(1.06);
}

.rb-student-nav-label {
  overflow: hidden;
  max-width: 100%;
  color: #e8e8e8;
  font: 800 12px/1.05 Arial, sans-serif;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 4px #000;
}

.rb-student-nav-item.on .rb-student-nav-label {
  color: #fff;
  text-shadow: 0 0 7px var(--student-tab-glow), 0 1px 3px #000;
}

/* Магазин: витрина и нижняя панель — один блок. На узком экране он идёт
   во всю ширину без полей, панель прижата к нижнему краю и продолжает
   витрину, а не плавает над ней отдельной плашкой. */
.rb-shell.rb-student-app.is-store-view {
  padding: 0 0 calc(88px + env(safe-area-inset-bottom, 0px));
}

/* Контейнер вкладки и есть .rb-marketplace (mount(content, athlete)). */
.rb-student-app.is-store-view .rb-student-content.rb-marketplace {
  flex: 1 0 auto;
  max-width: 560px;
  border-width: 0 1px;
  border-radius: 0;
}

.rb-student-app.is-store-view .rb-student-nav {
  bottom: 0;
  width: min(100%, 560px);
  padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px));
  border-color: var(--line);
  border-top-color: rgba(255, 255, 255, .08);
  border-bottom: 0;
  border-radius: 0;
  box-shadow: 0 -14px 30px rgba(0, 0, 0, .55);
}

@media (max-width: 560px) {
  .rb-student-app.is-store-view .rb-student-content.rb-marketplace { border-width: 0; }
  .rb-student-app.is-store-view .rb-student-nav { border-right: 0; border-left: 0; }
}

/* Marketplace surfaces inherit the canonical Ranked Battles student card. */
.rb-marketplace {
  width: 100%;
  max-width: 420px;
  min-height: 640px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.rb-marketplace *, .rb-marketplace *::before, .rb-marketplace *::after { box-sizing: border-box; }
.rb-marketplace button, .rb-marketplace input { font-family: inherit; }
.rb-marketplace button { cursor: pointer; }
.rb-marketplace button:focus-visible, .rb-marketplace input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.rb-shop-header {
  min-height: 96px;
  padding: 20px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background:
    radial-gradient(circle at 78% 0%, rgba(var(--shop-accent-rgb, 239, 43, 50), .22), transparent 55%),
    #070707;
}
.rb-shop-header h1 { margin: 6px 0 0; font: 900 36px/1 Arial, sans-serif; letter-spacing: -.01em; }
.rb-shop-kicker, .rb-shop-label { color: var(--shop-accent, #ef2b32); font: 800 9px/1.2 var(--font-mono); letter-spacing: .14em; }
.rb-shop-header .rb-shop-kicker { font-size: 11px; letter-spacing: .32em; }
.rb-shop-wallet {
  flex: none;
  min-height: 56px;
  padding: 9px 10px 9px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: #fff;
  background: rgba(16, 16, 16, .92);
  text-align: left;
}
.rb-shop-wallet-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c8ff3d;
  box-shadow: 0 0 10px rgba(200, 255, 61, .7);
}
.rb-shop-wallet-copy { display: grid; gap: 4px; }
.rb-shop-wallet-copy span { color: var(--muted); font: 700 9px/1 var(--font-mono); letter-spacing: .14em; }
.rb-shop-wallet-copy strong { font: 800 16px/1 Arial, sans-serif; white-space: nowrap; }
.rb-shop-wallet-chevron { width: 14px; height: 14px; color: var(--muted); }
.rb-shop-wallet-chevron svg, .rb-shop-icon svg, .rb-shop-feature-icon svg, .rb-shop-feature-go svg { display: block; width: 100%; height: 100%; }
.rb-shop-local-notice {
  margin: 0;
  padding: 8px 12px;
  color: #c8ff3d;
  background: #151515;
  border-bottom: 1px solid var(--line);
  font: 700 8px/1.35 var(--font-mono);
  letter-spacing: .07em;
  text-align: center;
}
.rb-shop-nav {
  margin: 0 12px;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0b0b;
}
.rb-shop-nav-item {
  position: relative;
  min-width: 0;
  min-height: 50px;
  padding: 6px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 9px;
  color: #cfcaca;
  background: transparent;
  font: 700 11px/1.1 Arial, sans-serif;
}
.rb-shop-nav-item + .rb-shop-nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--line);
}
.rb-shop-nav-item .rb-shop-icon { flex: none; width: 18px; height: 18px; color: #bdb7b7; }
.rb-shop-nav-item.on {
  color: #fff;
  background: linear-gradient(180deg, rgba(var(--shop-accent-rgb, 239, 43, 50), .38), rgba(var(--shop-accent-deep-rgb, 120, 10, 16), .55));
  box-shadow: inset 0 0 0 1px rgba(var(--shop-accent-rgb, 239, 43, 50), .55), 0 6px 18px rgba(var(--shop-accent-rgb, 239, 43, 50), .25);
}
.rb-shop-nav-item.on::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: var(--shop-accent, #ef2b32);
  box-shadow: 0 0 10px var(--shop-accent, #ef2b32);
}
.rb-shop-nav-item.on::before, .rb-shop-nav-item.on + .rb-shop-nav-item::before { display: none; }
.rb-shop-nav-item.on .rb-shop-icon { color: var(--shop-accent-bright, #ff3b42); }
.rb-shop-content { padding: 14px 12px 26px; }

.rb-shop-hero {
  min-height: 330px;
  padding: 26px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(4, 4, 4, .92) 0%, rgba(4, 4, 4, .55) 55%, rgba(4, 4, 4, .1) 100%),
    radial-gradient(circle at 20% 10%, rgba(var(--shop-accent-rgb, 239, 43, 50), .35), transparent 50%),
    url("images/about-gloves.jpg") 62% center / cover;
  overflow: hidden;
}
.rb-shop-hero .rb-shop-kicker { font-size: 10px; letter-spacing: .3em; }
.rb-shop-hero h2 { max-width: 270px; margin: 0; font: 900 34px/1 Arial, sans-serif; letter-spacing: -.01em; }
.rb-shop-hero p { max-width: 250px; margin: 0; color: #d7d2cd; font-size: 12px; line-height: 1.45; }
.rb-shop-cta {
  min-height: 44px;
  margin-top: 6px;
  padding: 0 18px 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #ff3a41, #c3141b);
  box-shadow: 0 8px 22px rgba(var(--shop-accent-rgb, 239, 43, 50), .4);
  font: 800 12px/1 Arial, sans-serif;
  letter-spacing: .04em;
}
.rb-shop-cta .rb-shop-icon { width: 14px; height: 14px; }

/* Карточки-переходы витрины: картинка справа уходит в темноту слева. */
.rb-shop-feature {
  position: relative;
  width: 100%;
  min-height: 132px;
  margin-top: 12px;
  padding: 18px 58px 18px 16px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: var(--text);
  background: #0c0c0c;
  text-align: left;
  overflow: hidden;
}
.rb-shop-feature-art {
  position: absolute;
  inset: 0 0 0 30%;
  background-size: cover;
  background-position: 70% center;
  opacity: .85;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.rb-shop-feature.is-goal .rb-shop-feature-art { background-image: url("images/marketplace/showcase-goal.jpg"); }
.rb-shop-feature.is-realty .rb-shop-feature-art { background-image: url("images/marketplace/showcase-realty.jpg"); }
.rb-shop-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 10, 10, .96) 0%, rgba(10, 10, 10, .72) 55%, rgba(10, 10, 10, .1) 100%);
}
.rb-shop-feature-icon, .rb-shop-feature-copy { position: relative; z-index: 2; }
.rb-shop-feature-icon {
  width: 48px;
  height: 48px;
  padding: 11px;
  border-radius: 12px;
  color: var(--shop-accent-bright, #ff3b42);
  background: linear-gradient(180deg, rgba(var(--shop-accent-rgb, 239, 43, 50), .28), rgba(var(--shop-accent-deep-rgb, 90, 8, 12), .45));
  box-shadow: inset 0 0 0 1px rgba(var(--shop-accent-rgb, 239, 43, 50), .35);
}
.rb-shop-feature-copy { min-width: 0; display: grid; gap: 7px; }
.rb-shop-feature-copy .rb-shop-label { letter-spacing: .24em; }
.rb-shop-feature-copy strong { font: 800 18px/1.15 Arial, sans-serif; }
.rb-shop-feature-text { color: #b9b3ae; font-size: 11.5px; line-height: 1.45; }
.rb-shop-feature-go {
  position: absolute;
  z-index: 2;
  right: 14px;
  top: 50%;
  width: 36px;
  height: 36px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  transform: translateY(-50%);
}

.rb-shop-section-head { margin: 24px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rb-shop-section-head .rb-shop-section-title { margin: 0; font: 900 22px/1.1 Arial, sans-serif; }
.rb-shop-all {
  min-height: 36px;
  padding: 0 12px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: #fff;
  background: #0c0c0c;
  font: 700 11px/1 Arial, sans-serif;
}
.rb-shop-all .rb-shop-icon { width: 12px; height: 12px; }
.rb-shop-picks {
  margin: 0 -12px;
  padding: 0 12px 6px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 44px) / 3);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 12px;
  scrollbar-width: none;
}
.rb-shop-picks::-webkit-scrollbar { display: none; }
.rb-shop-pick {
  position: relative;
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  background: #0b0b0b;
  text-align: left;
  overflow: hidden;
  scroll-snap-align: start;
}
.rb-shop-pick-media { aspect-ratio: 1 / 1; background: #111; overflow: hidden; }
.rb-shop-pick-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.rb-shop-pick-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 5px 8px;
  border-radius: 7px;
  color: #fff;
  background: rgba(40, 40, 40, .88);
  font: 800 8px/1 Arial, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rb-shop-pick:first-child .rb-shop-pick-badge { background: #d91a22; }
.rb-shop-pick-body { padding: 9px 9px 11px; display: grid; gap: 6px; }
.rb-shop-pick-title { font: 700 11px/1.2 Arial, sans-serif; overflow-wrap: anywhere; }
.rb-shop-pick-price { color: #fff; font: 800 10px/1.25 var(--font-mono); }

.rb-shop-link, .rb-shop-back {
  min-height: 44px;
  padding: 9px 0;
  border: 0;
  color: #fff;
  background: transparent;
  font: 800 10px/1.2 var(--font-mono);
  letter-spacing: .05em;
}
.rb-shop-link { border-bottom: 2px solid var(--shop-accent, #ef2b32); }
.rb-shop-goal {
  margin-top: 12px;
  padding: 16px;
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101010;
}
.rb-shop-goal strong { font: 800 17px/1.15 var(--font-mono); }
.rb-shop-goal p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.rb-shop-section-title, .rb-shop-page-title { margin: 22px 0 12px; font: 900 20px/1.1 var(--font-mono); }
.rb-shop-page-title { margin-top: 4px; font-size: 24px; }
.rb-shop-list { display: grid; gap: 10px; }
.rb-shop-card {
  width: 100%;
  min-height: 130px;
  padding: 0;
  display: grid;
  grid-template-columns: 38% 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #090909;
  text-align: left;
  overflow: hidden;
}
.rb-shop-card-media { min-height: 130px; background: #111; overflow: hidden; }
.rb-shop-card-media img, .rb-shop-detail-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.rb-shop-card-body { min-width: 0; padding: 13px; display: flex; flex-direction: column; align-items: flex-start; }
.rb-shop-card-title { margin-top: 8px; font: 800 16px/1.12 var(--font-mono); }
.rb-shop-card-price { margin-top: auto; padding-top: 12px; color: #fff; font: 900 14px/1.2 var(--font-mono); }
.rb-shop-stock-empty { margin-top: 5px; color: #ff8794; font: 800 10px/1.2 var(--font-mono); }
.rb-shop-search {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  background: #070707;
}
.rb-shop-filters { margin: 10px 0 14px; display: flex; gap: 6px; overflow-x: auto; padding: 2px 1px 5px; }
.rb-shop-filter, .rb-shop-variant {
  flex: none;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: 700 9px/1 var(--font-mono);
  text-transform: uppercase;
}
.rb-shop-filter.on, .rb-shop-variant.on { color: #fff; border-color: var(--shop-accent, #ef2b32); background: rgba(var(--shop-accent-rgb, 239, 43, 50), .14); }
.rb-shop-empty { margin: 0; padding: 22px 12px; color: var(--muted); text-align: center; }
.rb-shop-detail-media { height: 300px; border: 1px solid var(--line); border-radius: var(--radius); background: #111; overflow: hidden; }
.rb-shop-gallery { position: relative; }
.rb-shop-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.rb-shop-gallery-track::-webkit-scrollbar { display: none; }
.rb-shop-gallery-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.rb-shop-gallery-slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.rb-shop-gallery-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .62);
  font: 800 10px/1 var(--font-mono);
  pointer-events: none;
}
.rb-shop-gallery-thumbs { margin-top: 8px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.rb-shop-gallery-thumbs::-webkit-scrollbar { display: none; }
.rb-shop-gallery-thumb {
  flex: 0 0 56px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  overflow: hidden;
  opacity: .55;
  cursor: pointer;
}
.rb-shop-gallery-thumb.on { border-color: var(--shop-accent, #ef2b32); opacity: 1; }
.rb-shop-gallery-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.rb-shop-detail { padding-top: 17px; }
.rb-shop-detail h2 { margin: 7px 0 9px; font: 900 27px/1 var(--font-mono); }
.rb-shop-detail > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.rb-shop-detail-label { display: block; margin-top: 18px; font: 800 9px/1 var(--font-mono); letter-spacing: .12em; }
.rb-shop-variants { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 7px; }
.rb-shop-reward { margin-top: 16px !important; padding: 12px; color: #fff !important; border-left: 2px solid #c8ff3d; background: #101510; }
.rb-shop-explain { margin: 16px 0 !important; padding: 13px; color: #c8c3be !important; border-left: 2px solid var(--shop-accent, #ef2b32); background: #111; font-size: 11px !important; line-height: 1.5 !important; }
.rb-shop-action { margin-top: 16px; display: grid; gap: 11px; }
.rb-shop-action > strong { font: 900 19px/1.15 var(--font-mono); }
.rb-shop-primary, .rb-shop-secondary {
  min-height: 48px;
  padding: 11px 15px;
  border-radius: var(--radius);
  font: 900 11px/1.2 var(--font-mono);
  letter-spacing: .05em;
}
.rb-shop-primary { border: 1px solid var(--shop-accent, #ef2b32); color: #fff; background: var(--shop-accent-strong, #b61922); }
.rb-shop-primary:disabled { cursor: not-allowed; opacity: .5; }
.rb-shop-secondary { border: 1px solid var(--line-strong); color: #fff; background: transparent; }
.rb-shop-summary { padding: 17px; display: grid; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #090909; }
.rb-shop-summary-title { font: 900 20px/1.1 var(--font-mono); }
.rb-shop-summary-price { margin-top: 9px; font: 900 18px/1.1 var(--font-mono); }
.rb-shop-status { margin: 12px 0 0; padding: 12px; color: #fff; border: 1px solid var(--shop-accent, #ef2b32); background: rgba(var(--shop-accent-rgb, 239, 43, 50), .12); font-size: 11px; line-height: 1.45; }
.rb-shop-collection-list,
.rb-shop-purchase-list { display: grid; gap: 10px; }
.rb-shop-collection-card,
.rb-shop-purchase-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #090909;
  overflow: hidden;
}
.rb-shop-collection-card.is-new {
  border-color: #c8ff3d;
  animation: rb-shop-new-item 1.3s ease-out 2;
}
.rb-shop-collection-media,
.rb-shop-purchase-media { min-height: 112px; background: #111; overflow: hidden; }
.rb-shop-collection-media img,
.rb-shop-purchase-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.rb-shop-collection-body,
.rb-shop-purchase-body { min-width: 0; padding: 13px 10px; display: flex; flex-direction: column; align-items: flex-start; }
.rb-shop-collection-title,
.rb-shop-purchase-title { margin-top: 7px; font: 800 14px/1.15 var(--font-mono); }
.rb-shop-collection-date,
.rb-shop-purchase-date { margin-top: auto; padding-top: 8px; color: var(--muted); font: 700 8px/1.25 var(--font-mono); }
.rb-shop-collection-quantity,
.rb-shop-purchase-price {
  align-self: center;
  margin-right: 12px;
  color: #c8ff3d;
  font: 900 17px/1 var(--font-mono);
  white-space: nowrap;
}
.rb-shop-purchase-price { color: #fff; font-size: 12px; }
@keyframes rb-shop-new-item {
  0%, 100% { box-shadow: 0 0 0 rgba(200, 255, 61, 0); }
  50% { box-shadow: 0 0 22px rgba(200, 255, 61, .45); }
}
.rb-shop-empty-panel { min-height: 320px; padding: 35px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }
.rb-shop-empty-panel strong { max-width: 290px; font: 700 15px/1.4 var(--font-mono); }
.rb-shop-empty-mark { color: var(--shop-accent, #ef2b32); font-size: 40px; }

@media (max-width: 400px) {
  .rb-shop-nav-item { flex-direction: column; gap: 4px; font-size: 10px; }
}

@media (max-width: 360px) {
  .rb-shop-nav-item { font-size: 9px; }
  .rb-shop-header h1 { font-size: 30px; }
  .rb-shop-wallet-copy strong { font-size: 14px; }
  .rb-shop-header { padding-inline: 13px; }
  .rb-shop-content { padding-inline: 10px; }
  .rb-shop-hero h2 { font-size: 28px; }
  .rb-shop-collection-card,
  .rb-shop-purchase-card { grid-template-columns: 92px minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  .rb-shop-content { scroll-behavior: auto; }
  .rb-shop-collection-card.is-new { animation: none; }
}

/* «Недвижимость» — здания с карты (assets/ranked-realty.js). */
.rb-realty-note { display: block; margin: 14px 2px 0; color: var(--muted); font: 700 10px/1.4 var(--font-mono); }
.rb-realty-icon svg, .rb-realty-summary-icon svg, .rb-realty-card-go svg { display: block; width: 100%; height: 100%; }

/* Разделы каталога: «Экипировка | Цифровое | Недвижимость». */
.rb-shop-switch {
  margin-bottom: 12px;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0b0b;
}
.rb-shop-switch-item {
  position: relative;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 2px;
  border: 0;
  border-radius: 9px;
  color: #d5d0d0;
  background: transparent;
  font: 700 12px/1 Arial, sans-serif;
}
.rb-shop-switch-item .rb-shop-icon { flex: none; width: 20px; height: 20px; color: #bdb7b7; }
.rb-shop-switch-item.on {
  color: #fff;
  background: linear-gradient(180deg, rgba(var(--shop-accent-rgb, 239, 43, 50), .38), rgba(var(--shop-accent-deep-rgb, 120, 10, 16), .55));
  box-shadow: inset 0 0 0 1px rgba(var(--shop-accent-rgb, 239, 43, 50), .6), 0 6px 18px rgba(var(--shop-accent-rgb, 239, 43, 50), .25);
}
.rb-shop-switch-item.on::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: var(--shop-accent, #ef2b32);
  box-shadow: 0 0 10px var(--shop-accent, #ef2b32);
}
.rb-shop-switch-item.on .rb-shop-icon { color: var(--shop-accent-bright, #ff3b42); }

.rb-realty-search {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #080808;
}
.rb-realty-search .rb-realty-icon { flex: none; width: 20px; height: 20px; color: #cfcaca; }
.rb-realty-search input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
  font: 400 14px/1.2 Arial, sans-serif;
}
.rb-realty-search:focus-within { border-color: rgba(255, 255, 255, .55); }

.rb-realty-chips {
  margin: 12px -12px 0;
  padding: 2px 12px 4px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rb-realty-chips::-webkit-scrollbar { display: none; }
.rb-realty-chip {
  flex: none;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #d5d0d0;
  background: #0b0b0b;
  font: 700 12px/1 Arial, sans-serif;
}
.rb-realty-chip.on {
  color: #fff;
  border-color: var(--shop-accent, #ef2b32);
  background: rgba(var(--shop-accent-rgb, 239, 43, 50), .16);
  box-shadow: 0 0 14px rgba(var(--shop-accent-rgb, 239, 43, 50), .25);
}
.rb-realty-sectors { margin-top: 10px; }

.rb-realty-summary {
  margin-top: 12px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(var(--shop-accent-rgb, 239, 43, 50), .06), rgba(154, 212, 0, .05)), #0a0a0a;
}
.rb-realty-summary-owned { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rb-realty-summary-icon {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle, rgba(var(--shop-accent-rgb, 239, 43, 50), .55), rgba(var(--shop-accent-deep-rgb, 90, 8, 12), .6));
  box-shadow: 0 0 0 1px rgba(var(--shop-accent-rgb, 239, 43, 50), .45);
}
.rb-realty-summary strong { display: block; color: #fff; font: 800 14px/1.2 Arial, sans-serif; }
.rb-realty-summary span { display: block; margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.3; }
.rb-realty-summary-income { padding-left: 12px; border-left: 1px solid var(--line-strong); min-width: 0; }
.rb-realty-summary-income strong { color: #9be04a; }

.rb-realty-tools { margin-top: 12px; display: flex; gap: 8px; }
.rb-realty-sort, .rb-realty-filter-toggle {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: #fff;
  background: #0b0b0b;
  font: 700 12px/1 Arial, sans-serif;
}
.rb-realty-sort { flex: 1 1 auto; min-width: 0; }
.rb-realty-sort .rb-realty-icon, .rb-realty-filter-toggle .rb-realty-icon { flex: none; width: 18px; height: 18px; color: #cfcaca; }
.rb-realty-sort-term { flex: none; color: #bdb7b7; font-weight: 400; }
.rb-realty-sort select {
  min-width: 0;
  flex: 1 1 auto;
  height: 40px;
  border: 0;
  outline: none;
  color: #fff;
  background: transparent;
  font: 700 12px/1 Arial, sans-serif;
  cursor: pointer;
}
.rb-realty-sort select option { color: #fff; background: #111; }
.rb-realty-sort:focus-within { border-color: rgba(255, 255, 255, .55); }
.rb-realty-filter-toggle { flex: none; }
.rb-realty-filter-toggle.on { border-color: var(--shop-accent, #ef2b32); background: rgba(var(--shop-accent-rgb, 239, 43, 50), .14); }

.rb-realty-list { margin-top: 12px; display: grid; gap: 12px; }
.rb-realty-card {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--text);
  background: #0b0b0b;
  text-align: left;
  overflow: hidden;
}
.rb-realty-card:hover { border-color: rgba(255, 255, 255, .45); }
.rb-realty-card-media { position: relative; aspect-ratio: 16 / 7; overflow: hidden; }
.rb-realty-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.rb-realty-card-media::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, #0b0b0b);
  pointer-events: none;
}
.rb-realty-card-media .rb-realty-sigil { font-size: 46px; }
.rb-realty-badge {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  padding: 6px 11px 6px 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 8, 8, .78);
  font: 800 10px/1 Arial, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.rb-realty-badge i { width: 9px; height: 9px; border-radius: 50%; background: #9be04a; box-shadow: 0 0 8px #9be04a; }
.rb-realty-badge.is-taken i { background: #ff3040; box-shadow: 0 0 8px #ff3040; }
.rb-realty-badge.is-mine i { background: #43d8ff; box-shadow: 0 0 8px #43d8ff; }
.rb-realty-badge.is-reward i { background: #ffd34d; box-shadow: 0 0 8px #ffd34d; }
.rb-realty-card-body { position: relative; margin-top: -18px; padding: 0 12px 12px; display: grid; gap: 5px; }
.rb-realty-card-title { font: 800 17px/1.2 Arial, sans-serif; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.rb-realty-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 700 12px/1.2 Arial, sans-serif; }
.rb-realty-sector { color: #ff4450; }
.rb-realty-rarity::before { content: "•"; margin-right: 8px; color: #ff4450; }
.rb-realty-rarity { color: #bdb7b7; }
.rb-realty-rarity.is-node { color: #3d9bff; }
.rb-realty-rarity.is-core { color: #b98cff; }
.rb-realty-rarity.is-dominant { color: #ffd34d; }
.rb-realty-card-stats {
  margin-top: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) 52px;
  align-items: center;
  gap: 10px;
}
.rb-realty-stat { min-width: 0; display: flex; align-items: center; gap: 8px; }
.rb-realty-stat + .rb-realty-stat { padding-left: 10px; border-left: 1px solid var(--line-strong); }
.rb-realty-stat .rb-realty-icon { flex: none; width: 20px; height: 20px; color: #d5d0d0; }
.rb-realty-stat-copy { min-width: 0; display: grid; gap: 3px; }
.rb-realty-stat-copy span { color: var(--muted); font-size: 10.5px; }
.rb-realty-stat-copy b { color: #fff; font: 800 13px/1.15 Arial, sans-serif; }
.rb-realty-stat.is-income b { color: #9be04a; }
.rb-realty-card-go {
  width: 52px;
  height: 44px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 10px;
  color: #fff;
  background: #0b0b0b;
}
.rb-realty-card.is-free .rb-realty-card-go {
  border-color: var(--shop-accent, #ef2b32);
  background: linear-gradient(180deg, rgba(var(--shop-accent-rgb, 239, 43, 50), .4), rgba(var(--shop-accent-deep-rgb, 120, 10, 16), .55));
  box-shadow: 0 0 14px rgba(var(--shop-accent-rgb, 239, 43, 50), .35);
}
@media (max-width: 380px) {
  .rb-realty-card-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; }
  .rb-realty-card-go { width: 44px; padding-inline: 10px; }
  .rb-realty-stat + .rb-realty-stat { padding-left: 8px; }
  .rb-realty-sort-term { display: none; }
}
.rb-realty-media {
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08), transparent 65%), #101114;
}
.rb-realty-media.is-node { background-color: #0d1720; }
.rb-realty-media.is-core { background-color: #1a0f22; }
.rb-realty-media.is-dominant { background-color: #221a08; }
.rb-realty-sigil { color: rgba(255, 255, 255, 0.55); font-size: 40px; line-height: 1; }
/* Картинка здания в карточке — квадрат по центру, кадр по центру. */
.rb-shop-detail-media.rb-realty-media {
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.rb-realty-media img { object-position: center center; }
.rb-realty-owner { margin-top: 0; color: var(--muted); font: 700 10px/1.3 var(--font-mono); }
.rb-realty-more { margin-top: 12px; display: grid; }
.rb-realty-facts {
  margin: 12px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  font-size: 12px;
}
.rb-realty-facts dt { color: var(--muted); font: 700 10px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.rb-realty-facts dd { margin: 0; color: #fff; }
.rb-realty-forecast {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid rgba(154, 212, 0, 0.4);
  background: rgba(154, 212, 0, 0.06);
}
.rb-realty-forecast > strong { display: block; color: #d7ff5a; font: 800 13px/1.3 var(--font-mono); }
.rb-realty-rows { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.rb-realty-rows li { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--text); }
.rb-realty-rows li b { flex: none; font-family: var(--font-mono); }
.rb-realty-rows li.is-positive b { color: #d7ff5a; }
.rb-realty-rows li.is-negative b { color: #ff8794; }
.rb-realty-actions { display: grid; gap: 8px; margin-top: 14px; }
.rb-realty-actions .rb-shop-explain { margin: 0; }
.rb-realty-link { color: #d7ff5a; font: 800 11px/1.4 var(--font-mono); text-decoration: none; }
.rb-realty-message {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.4;
}
.rb-realty-message.is-success { color: #d7ff5a; border-color: rgba(154, 212, 0, 0.5); background: rgba(154, 212, 0, 0.06); }
.rb-realty-message.is-error { color: #ff8794; border-color: rgba(255, 66, 89, 0.5); background: rgba(255, 66, 89, 0.06); }
/* Цифровое → «Предметы» / «Недвижимость». */
.rb-shop-subnav {
  margin: -6px 0 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
}
.rb-shop-subnav-item {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 800 11px/1.1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.rb-shop-subnav-item.on { background: rgba(154, 212, 0, 0.14); color: #d7ff5a; }
/* Коллекция: купленные здания. */
.rb-realty-collection-summary { margin: -4px 0 10px; color: #d7ff5a; font: 800 12px/1.3 var(--font-mono); }
/* Фото здания — фоном всего блока, как у карточек топа игроков
   (forbaes-go.css, .forbaes-podium-card): затемнение слева направо держит
   текст читаемым. Блок ниже обычной карточки коллекции. */
.rb-realty-collection-card {
  position: relative;
  width: 100%;
  min-height: 84px;
  padding: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  isolation: isolate;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.rb-realty-collection-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 4, 4, 0.94) 0%, rgba(4, 4, 4, 0.74) 42%, rgba(4, 4, 4, 0.28) 100%),
    linear-gradient(180deg, rgba(4, 4, 4, 0.05) 30%, rgba(4, 4, 4, 0.7) 100%);
}
.rb-realty-collection-card .rb-shop-collection-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding-left: 25%;
}
.rb-realty-collection-card .rb-shop-collection-media img {
  position: absolute;
  inset: 0;
  object-position: center center;
}
/* Без фото фон — цвет редкости; знак не нужен, он спорит с названием. */
.rb-realty-collection-card .rb-realty-sigil { display: none; }
.rb-realty-collection-card .rb-shop-collection-body { padding: 11px 12px; }
.rb-realty-collection-card .rb-shop-collection-date { padding-top: 6px; color: #b9c0c4; }
.rb-realty-collection-card .rb-shop-collection-quantity { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.rb-realty-collection-card:hover { border-color: rgba(154, 212, 0, 0.5); }

/* Каталог товаров: поиск, инструменты и карточки экипировки. */
.rb-shop-searchbox {
  min-height: 48px;
  padding: 0 8px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #080808;
}
.rb-shop-searchbox:focus-within { border-color: rgba(255, 255, 255, .55); }
.rb-shop-searchbox > .rb-shop-icon { flex: none; width: 20px; height: 20px; color: #cfcaca; }
.rb-shop-searchbox input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
  font: 400 14px/1.2 Arial, sans-serif;
}
.rb-shop-searchbox input::-webkit-search-cancel-button { display: none; }
.rb-shop-search-clear {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .12);
}
.rb-shop-search-clear[hidden] { display: none; }
.rb-shop-search-clear .rb-shop-icon { display: block; width: 100%; height: 100%; }

.rb-shop-tools { margin-top: 10px; display: flex; gap: 8px; }
.rb-shop-sort, .rb-shop-filter-toggle {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: #fff;
  background: #0b0b0b;
  font: 700 12px/1 Arial, sans-serif;
}
.rb-shop-sort { flex: 1 1 auto; min-width: 0; }
.rb-shop-sort:focus-within { border-color: rgba(255, 255, 255, .55); }
.rb-shop-sort .rb-shop-icon, .rb-shop-filter-toggle .rb-shop-icon { flex: none; width: 18px; height: 18px; color: #cfcaca; }
.rb-shop-sort select {
  min-width: 0;
  flex: 1 1 auto;
  height: 40px;
  border: 0;
  outline: none;
  color: #fff;
  background: transparent;
  font: 700 12px/1 Arial, sans-serif;
  cursor: pointer;
}
.rb-shop-sort select option { color: #fff; background: #111; }
.rb-shop-filter-toggle { flex: none; }
.rb-shop-filter-toggle.on { border-color: var(--shop-accent, #ef2b32); background: rgba(var(--shop-accent-rgb, 239, 43, 50), .14); }

.rb-shop-chips { margin-top: 10px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.rb-shop-chips::-webkit-scrollbar { display: none; }
.rb-shop-chip {
  flex: none;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #d5d0d0;
  background: #0b0b0b;
  font: 700 12px/1 Arial, sans-serif;
}
.rb-shop-chip.on { color: #fff; border-color: var(--shop-accent, #ef2b32); background: rgba(var(--shop-accent-rgb, 239, 43, 50), .16); box-shadow: 0 0 14px rgba(var(--shop-accent-rgb, 239, 43, 50), .25); }

.rb-shop-items { margin-top: 12px; display: grid; gap: 12px; }
.rb-shop-item {
  width: 100%;
  min-height: 176px;
  padding: 0;
  display: grid;
  grid-template-columns: 36% minmax(0, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--text);
  background: linear-gradient(90deg, #0b0b0b, #101010);
  text-align: left;
  overflow: hidden;
}
.rb-shop-item:hover { border-color: rgba(255, 255, 255, .45); }
.rb-shop-item-media { position: relative; min-height: 100%; background: #111; overflow: hidden; }
.rb-shop-item-media img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.rb-shop-item.is-out .rb-shop-item-media img { filter: grayscale(.7) brightness(.7); }
.rb-shop-item-body { min-width: 0; padding: 12px 12px 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.rb-shop-item-body .rb-shop-label { letter-spacing: .2em; text-transform: uppercase; }
.rb-shop-item-title { font: 800 17px/1.15 Arial, sans-serif; }
.rb-shop-item-text {
  display: -webkit-box;
  overflow: hidden;
  color: #b9b3ae;
  font-size: 11.5px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.rb-shop-item-price { margin-top: 2px; color: #fff; font: 800 16px/1.2 Arial, sans-serif; }
.rb-shop-item-foot { margin-top: auto; padding-top: 4px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.rb-shop-item-facts { min-width: 0; display: grid; gap: 6px; }
.rb-shop-stock { display: inline-flex; align-items: center; gap: 7px; font: 700 11.5px/1.2 Arial, sans-serif; }
.rb-shop-stock i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.rb-shop-stock.is-in { color: #9be04a; }
.rb-shop-stock.is-in i { background: #9be04a; box-shadow: 0 0 8px #9be04a; }
.rb-shop-stock.is-low { color: #ffc93d; }
.rb-shop-stock.is-low i { background: #ffc93d; box-shadow: 0 0 8px #ffc93d; }
.rb-shop-stock.is-out { color: #ff6b76; }
.rb-shop-stock.is-out i { background: #ff3040; box-shadow: 0 0 8px #ff3040; }
.rb-shop-item-variants { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.rb-shop-item-variants-term { margin-right: 2px; color: var(--muted); font-size: 10px; }
.rb-shop-item-variant {
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: #d5d0d0;
  font: 700 10px/1 Arial, sans-serif;
}
.rb-shop-item-variant.is-out { color: #6f6a6a; text-decoration: line-through; }
.rb-shop-item-action {
  flex: none;
  min-height: 40px;
  padding: 0 12px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--shop-accent, #ef2b32);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(180deg, #ff3a41, #c3141b);
  box-shadow: 0 6px 16px rgba(var(--shop-accent-rgb, 239, 43, 50), .35);
  font: 800 12px/1 Arial, sans-serif;
}
.rb-shop-item-action .rb-shop-icon { width: 13px; height: 13px; }
.rb-shop-item.is-out .rb-shop-item-action { border-color: rgba(255, 255, 255, .4); background: #0b0b0b; box-shadow: none; }

@media (max-width: 400px) {
  .rb-shop-switch-item { flex-direction: column; gap: 4px; min-height: 52px; font-size: 11px; }
  .rb-shop-item { grid-template-columns: 34% minmax(0, 1fr); }
  .rb-shop-item-title { font-size: 15px; }
  .rb-shop-item-foot { flex-direction: column; align-items: stretch; }
  .rb-shop-item-action { justify-content: center; }
}

/* Карточка здания: фото на всю ширину с названием поверх, под ним статус,
   цена и доход, расшифровка дохода, описание и действия. */
.rb-estate { margin: -14px -12px 0; }
.rb-estate-hero {
  position: relative;
  min-height: 440px;
  padding: 16px 16px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #0d1016;
}
.rb-estate-media { position: absolute; inset: 0; }
.rb-estate-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.rb-estate-media .rb-realty-sigil { position: absolute; top: 45%; left: 50%; font-size: 90px; transform: translate(-50%, -50%); }
.rb-estate-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, .88) 0%, rgba(5, 7, 10, .45) 45%, rgba(5, 7, 10, 0) 75%),
    linear-gradient(180deg, rgba(5, 7, 10, .55) 0%, rgba(5, 7, 10, 0) 25%, rgba(5, 7, 10, 0) 60%, var(--panel) 100%);
  pointer-events: none;
}
.rb-estate-back, .rb-estate-head { position: relative; z-index: 1; }
.rb-estate-back {
  align-self: flex-start;
  min-height: 44px;
  padding: 0 18px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(var(--shop-accent-rgb, 239, 43, 50), .7);
  border-radius: 12px;
  color: #fff;
  background: rgba(20, 6, 8, .75);
  box-shadow: 0 0 16px rgba(var(--shop-accent-rgb, 239, 43, 50), .25);
  font: 800 13px/1 Arial, sans-serif;
  letter-spacing: .1em;
  backdrop-filter: blur(6px);
}
.rb-estate-back .rb-realty-icon { width: 18px; height: 18px; color: var(--shop-accent-bright, #ff3b42); }
.rb-estate-head { max-width: 72%; display: grid; gap: 10px; }
.rb-estate-kicker { display: flex; align-items: center; gap: 8px; color: #c9ccd3; font: 700 11px/1 var(--font-mono); letter-spacing: .16em; }
.rb-estate-kicker i { width: 26px; height: 2px; background: linear-gradient(90deg, transparent, var(--shop-accent, #ef2b32)); box-shadow: 0 0 6px var(--shop-accent, #ef2b32); }
.rb-estate-title {
  margin: 0;
  padding-bottom: 10px;
  color: #fff;
  font: 900 34px/1.02 Arial, sans-serif;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .7);
  background: linear-gradient(90deg, var(--shop-accent, #ef2b32), transparent) left bottom / 44px 2px no-repeat;
}
.rb-estate-tags { display: grid; gap: 6px; justify-items: start; }
.rb-estate-tag {
  padding: 7px 12px 7px 9px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  color: #e7e9ee;
  background: rgba(8, 10, 14, .7);
  font: 600 12.5px/1.2 Arial, sans-serif;
  backdrop-filter: blur(6px);
}
.rb-estate-tag .rb-realty-icon { flex: none; width: 18px; height: 18px; color: #ff4450; }
.rb-estate-tag.is-node .rb-realty-icon { color: #3d9bff; }
.rb-estate-tag.is-core .rb-realty-icon { color: #b98cff; }
.rb-estate-tag.is-dominant .rb-realty-icon { color: #ffd34d; }
.rb-estate-tag.is-point .rb-realty-icon { color: #bdb7b7; }

.rb-estate > :not(.rb-estate-hero) { margin-inline: 12px; }
.rb-estate-stats {
  position: relative;
  z-index: 1;
  margin-top: -14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 24, 32, .92), rgba(10, 12, 16, .96));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
}
.rb-estate-stat { min-width: 0; padding: 12px 10px 13px 12px; display: grid; gap: 9px; }
.rb-estate-stat + .rb-estate-stat { border-left: 1px solid rgba(255, 255, 255, .1); }
.rb-estate-stat-term { color: #8e949f; font: 700 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.rb-estate-stat-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rb-estate-stat-icon {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 1px solid rgba(255, 213, 77, .45);
  border-radius: 50%;
  color: #ffd34d;
  background: radial-gradient(circle, rgba(255, 211, 77, .22), rgba(60, 45, 5, .4));
}
.rb-estate-stat-icon svg, .rb-estate-map .rb-realty-icon svg { display: block; width: 100%; height: 100%; }
.rb-estate-stat-copy { min-width: 0; display: grid; gap: 2px; }
.rb-estate-stat-copy strong { color: #fff; font: 800 15px/1.15 Arial, sans-serif; overflow-wrap: normal; }
.rb-estate-stat-copy span { color: #aab0ba; font-size: 10.5px; }
.rb-estate-stat.is-status .rb-estate-stat-icon { border-radius: 10px; }
.rb-estate-stat.is-free .rb-estate-stat-icon { color: #4be38f; border-color: rgba(75, 227, 143, .5); background: rgba(75, 227, 143, .12); }
.rb-estate-stat.is-free strong { color: #4be38f; }
.rb-estate-stat.is-mine .rb-estate-stat-icon { color: #43d8ff; border-color: rgba(67, 216, 255, .5); background: rgba(67, 216, 255, .12); }
.rb-estate-stat.is-mine strong { color: #43d8ff; }
.rb-estate-stat.is-taken .rb-estate-stat-icon { color: #ff4450; border-color: rgba(255, 68, 80, .5); background: rgba(255, 68, 80, .12); }
.rb-estate-stat.is-taken strong { color: #ff6b76; }
.rb-estate-stat.is-reward .rb-estate-stat-icon { color: #ffd34d; }
.rb-estate-stat.is-reward strong { color: #ffd34d; }
.rb-estate-stat.is-income .rb-estate-stat-icon { color: #43b6ff; border-color: rgba(67, 182, 255, .5); background: rgba(67, 182, 255, .12); border-radius: 10px; }

.rb-estate-facts {
  margin-top: 10px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(14, 16, 20, .8);
}
.rb-estate-facts dt { color: #8e949f; font: 700 10px/1.6 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.rb-estate-facts dd { margin: 0; color: #fff; font: 700 12.5px/1.5 Arial, sans-serif; text-align: right; }

.rb-estate-panel {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 23, 29, .9), rgba(11, 12, 15, .95));
}
.rb-estate-panel-term { display: block; color: #9aa0aa; font: 800 11px/1 var(--font-mono); letter-spacing: .14em; }
.rb-estate-forecast-total { display: block; margin-top: 8px; color: #9be04a; font: 800 18px/1.2 Arial, sans-serif; }
.rb-estate-forecast .rb-realty-rows { margin-top: 10px; gap: 6px; }
.rb-estate-forecast .rb-realty-rows li { font-size: 12px; }
.rb-estate-forecast .rb-realty-note { margin: 10px 0 0; }

.rb-estate-about { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.rb-estate-about p { margin: 10px 0 0; color: #d9dce2; font-size: 12.5px; line-height: 1.55; }
.rb-estate-map {
  min-height: 46px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  color: #fff;
  background: rgba(8, 10, 14, .85);
  font: 700 10.5px/1.25 var(--font-mono);
  letter-spacing: .06em;
  text-decoration: none;
}
.rb-estate-map > span:nth-child(2) { max-width: 76px; }
.rb-estate-map .rb-realty-icon { flex: none; width: 20px; height: 20px; color: #cfd3da; }
.rb-estate-map .rb-realty-icon:last-child { width: 14px; height: 14px; }

.rb-estate-actions { margin-top: 12px; display: grid; gap: 8px; }
.rb-estate-cta {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 12px;
  font: 800 15px/1.2 Arial, sans-serif;
  letter-spacing: .04em;
}
.rb-estate-cta .rb-realty-icon { flex: none; width: 24px; height: 24px; }
.rb-estate-cta.rb-shop-primary {
  border: 1px solid #ff4a52;
  color: #fff;
  background: linear-gradient(180deg, #e0242c, #8e0f15);
  box-shadow: 0 0 24px rgba(var(--shop-accent-rgb, 239, 43, 50), .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.rb-estate-cta.rb-shop-primary .rb-realty-icon { color: #fff; }
.rb-estate-cta.rb-shop-secondary { border: 1px solid rgba(255, 255, 255, .3); color: #fff; background: #0e0f12; }
.rb-estate-cta:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.rb-estate-note { margin: 0; padding: 0 4px; color: #9aa0aa; font-size: 11px; line-height: 1.5; }

@media (max-width: 400px) {
  .rb-estate-hero { min-height: 400px; }
  .rb-estate-head { max-width: 88%; }
  .rb-estate-title { font-size: 29px; }
  .rb-estate-stat { padding-inline: 8px; }
  .rb-estate-stat-icon { width: 28px; height: 28px; padding: 5px; }
  .rb-estate-stat-copy strong { font-size: 13px; }
  .rb-estate-stat-row { flex-direction: column; align-items: flex-start; gap: 7px; }
  .rb-estate-about { grid-template-columns: 1fr; }
  .rb-estate-map { justify-self: start; }
}

/* Поля редактора, скрытые для текущего типа товара (недвижимость и т.п.). */
.rb-marketplace-field[hidden] { display: none; }

/* Заявка Маркетплейса Фигур — без изображения, две колонки: товар и статус. */
.rb-shop-purchase-card.is-request { grid-template-columns: minmax(0, 1fr) auto; }
