/* ============================================================
   Catalog background — animated aurora + grid + vignette
   Sits behind all content (z-index:-1), above the body fill.
   ============================================================ */

body.catalog {
  background: #090b10;
  min-height: 100vh;
}

.catalog-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Lift the real content above the aurora layer.
   (topbar is already sticky z-index:20 from styles.css; modal is z-index:40.) */
body.catalog main { position: relative; z-index: 10; }

/* Drifting colored light blobs */
.catalog-aurora .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.72;
  will-change: transform;
  transform: translateZ(0);
}
.catalog-aurora .b1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, #4f7bff 0%, #3b6bff 35%, transparent 70%);
  top: -180px; left: -80px;
  animation: drift1 22s ease-in-out infinite;
}
.catalog-aurora .b2 {
  width: 680px; height: 680px;
  background: radial-gradient(circle, #9a5bff 0%, #7b3ff0 35%, transparent 70%);
  top: -140px; right: -120px;
  animation: drift2 26s ease-in-out infinite;
}
.catalog-aurora .b3 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, #18d3c0 0%, #14b8a6 35%, transparent 70%);
  bottom: -220px; left: 22%;
  opacity: 0.5;
  animation: drift3 30s ease-in-out infinite;
}
.catalog-aurora .b4 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #ff5fa2 0%, #e4399a 35%, transparent 70%);
  top: 30%; right: -60px;
  opacity: 0.42;
  animation: drift1 28s ease-in-out infinite reverse;
}

/* Translate-only (no scale) so the blurred layer isn't re-rasterized each frame. */
@keyframes drift1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(90px, 70px, 0); }
}
@keyframes drift2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(-100px, 60px, 0); }
}
@keyframes drift3 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  33%      { transform: translate3d(70px, -50px, 0); }
  66%      { transform: translate3d(-60px, 40px, 0); }
}

/* Fine grid, faded toward the edges */
.catalog-aurora .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
}

/* Vignette to keep focus on the cards (kept light so the color reads) */
.catalog-aurora .vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 90% at 50% 10%, transparent 55%, rgba(7, 9, 14, 0.45) 100%),
    linear-gradient(180deg, transparent 70%, rgba(7, 9, 14, 0.6) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .catalog-aurora .blob { animation: none; }
}

/* ============================================================
   Request-to-Rent dialog
   ============================================================ */
.rent-modal { max-width: 480px; }

.rent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.rent-item img {
  width: 64px; height: 48px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}
.rent-item .ri-name { font-weight: 700; font-size: 14.5px; }
.rent-item .ri-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.rent-item .ri-price { margin-left: auto; font-weight: 800; font-size: 15px; white-space: nowrap; }

#rentMessage {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  outline: none;
  resize: vertical;
  width: 100%;
}
#rentMessage:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,140,255,0.15); }

.rent-hint { color: var(--muted); font-size: 12.5px; margin: 12px 0 14px; }

.rent-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rent-ch {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform 0.1s, filter 0.15s, box-shadow 0.15s;
}
.rent-ch span { font-size: 22px; }
.rent-ch:hover { transform: translateY(-2px); filter: brightness(1.08); }
.rent-ch:active { transform: translateY(0); }
.rent-ch.discord   { background: #5865f2; box-shadow: 0 6px 18px rgba(88,101,242,0.3); }
.rent-ch.telegram  { background: #229ed9; box-shadow: 0 6px 18px rgba(34,158,217,0.3); }
.rent-ch.instagram { background: linear-gradient(135deg, #feda75, #fa7e1e 25%, #d62976 60%, #962fbf 90%); box-shadow: 0 6px 18px rgba(214,41,118,0.3); }
.rent-ch.copied { filter: none; outline: 2px solid var(--green); outline-offset: 2px; }

@media (max-width: 460px) {
  .rent-channels { grid-template-columns: 1fr; }
  .rent-ch { flex-direction: row; justify-content: center; }
}
