:root {
  --catalog-bg: #050914;
  --catalog-panel: rgba(18, 25, 43, .64);
  --catalog-blue: #5d8fff;
  --catalog-blue-bright: #759eff;
  --catalog-text: #f5f7ff;
  --catalog-muted: rgba(232, 236, 255, .66);
  --catalog-line: rgba(255, 255, 255, .1);
}

* { box-sizing: border-box; }

html { background: var(--catalog-bg); }

body.category-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 21%, rgba(40, 72, 155, .16), transparent 34%),
    linear-gradient(135deg, #050914 0%, #091126 49%, #050914 100%);
  color: var(--catalog-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.category-page a { color: inherit; text-decoration: none; }
.category-page button,
.category-page input { font: inherit; }
.category-page svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-skip {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #050914 !important;
  transform: translateY(-150%);
}
.category-skip:focus { transform: translateY(0); }

/* Currency animation sits below all content and mirrors the provided reference. */
.currency-rain {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: flex;
  justify-content: space-around;
  overflow: hidden;
  pointer-events: none;
  opacity: .3;
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}

.currency-column {
  position: relative;
  flex: 0 0 auto;
  height: max-content;
  color: rgba(255, 255, 255, .15);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: var(--currency-size);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .5em;
  opacity: var(--currency-opacity);
  text-orientation: upright;
  white-space: nowrap;
  writing-mode: vertical-rl;
  will-change: transform;
  animation: currency-fall var(--currency-speed) linear infinite;
  animation-delay: var(--currency-delay);
}

@keyframes currency-fall {
  from { transform: translate3d(0, -105%, 0); }
  to { transform: translate3d(0, 105vh, 0); }
}

.category-ambient {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(117, 158, 255, .055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

/* Compact navigation from the supplied category concept. */
.catalog-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 80px;
  border-bottom: 1px solid var(--catalog-line);
  background: rgba(5, 9, 20, .82);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.catalog-nav {
  width: min(100%, 1280px);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto minmax(220px, 360px) minmax(430px, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.catalog-search {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  border: 1px solid var(--catalog-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.catalog-search:focus-within {
  border-color: rgba(93, 143, 255, .78);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 3px rgba(93, 143, 255, .12);
}

.catalog-search svg { width: 19px; height: 19px; flex: 0 0 auto; color: rgba(255, 255, 255, .5); }
.catalog-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; }
.catalog-search input::placeholder { color: rgba(255, 255, 255, .48); opacity: 1; }

.catalog-links,
.catalog-actions { display: flex; align-items: center; }
.catalog-links { justify-content: center; gap: 5px; white-space: nowrap; }
.catalog-links a {
  position: relative;
  padding: 12px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .67);
  font-size: 14px;
  transition: color .2s ease, background .2s ease;
}
.catalog-links a:hover,
.catalog-links a:focus-visible { color: #fff; background: rgba(255, 255, 255, .045); outline: none; }
.catalog-links a.active { color: var(--catalog-blue); font-weight: 700; }
.catalog-links a.active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 2px;
  left: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--catalog-blue);
  box-shadow: 0 0 10px rgba(93, 143, 255, .55);
}

.catalog-actions { justify-content: flex-end; gap: 4px; }
.catalog-language {
  height: 34px;
  margin-inline-end: 6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--catalog-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  direction: ltr;
}
.catalog-language a {
  min-width: 35px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .58);
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.catalog-language a:hover,
.catalog-language a:focus-visible { color: #fff; outline: none; }
.catalog-language a.active {
  background: var(--catalog-blue);
  color: #050914;
  box-shadow: 0 0 12px rgba(93, 143, 255, .25);
}
.catalog-actions button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, .68);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.catalog-actions button:hover,
.catalog-actions button:focus-visible { color: #fff; background: rgba(255, 255, 255, .055); outline: none; transform: translateY(-1px); }
.catalog-actions button svg { width: 20px; height: 20px; }
.catalog-signin {
  min-width: 76px;
  height: 38px;
  margin-inline-start: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--catalog-blue);
  color: #050914 !important;
  font-size: 13px;
  font-weight: 800;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.catalog-signin:hover,
.catalog-signin:focus-visible { background: var(--catalog-blue-bright); box-shadow: 0 0 20px rgba(93, 143, 255, .28); outline: none; transform: translateY(-1px); }

/* Main category grid. */
.category-main {
  position: relative;
  z-index: 2;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.category-intro { margin-bottom: 46px; text-align: start; }
.category-intro h1 {
  margin: 0 0 12px;
  color: #fff;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.045em;
}
.category-intro h1 span {
  color: var(--catalog-blue-bright);
  background: linear-gradient(90deg, #c9d6ff 0%, var(--catalog-blue-bright) 72%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.category-intro p {
  max-width: 680px;
  margin: 0;
  color: var(--catalog-muted);
  font-size: 18px;
  line-height: 1.6;
}

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

.catalog-card {
  position: relative;
  min-width: 0;
  min-height: 454px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--catalog-line);
  border-radius: 16px;
  background: var(--catalog-panel);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.catalog-card:hover,
.catalog-card:focus-within {
  border-color: rgba(93, 143, 255, .34);
  box-shadow: 0 0 24px rgba(87, 140, 255, .17), 0 18px 40px rgba(0, 0, 0, .14);
  transform: translateY(-4px);
}

.catalog-card-content {
  position: relative;
  z-index: 2;
  min-height: 294px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
}

.catalog-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin-bottom: 23px;
  border: 1px solid rgba(93, 143, 255, .32);
  border-radius: 12px;
  background: rgba(93, 143, 255, .18);
  color: var(--catalog-blue);
  transition: color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.catalog-icon svg { width: 28px; height: 28px; }
.catalog-card:hover .catalog-icon { color: #8cacff; background: rgba(93, 143, 255, .24); box-shadow: 0 0 18px rgba(93, 143, 255, .15); transform: translateY(-1px); }

.catalog-card h2 {
  margin: 0 0 13px;
  color: #fff;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.025em;
  transition: color .25s ease;
}
.catalog-card:hover h2 { color: var(--catalog-blue-bright); }

.catalog-card ul { width: 100%; margin: 0 0 24px; padding: 0; list-style: none; }
.catalog-card li + li { margin-top: 8px; }
.catalog-card li a {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
  transition: color .2s ease, transform .2s ease;
}
.catalog-card li a::before { content: "→"; flex: 0 0 auto; color: var(--catalog-blue); font-size: 15px; }
.catalog-card li a:hover,
.catalog-card li a:focus-visible { color: #fff; outline: none; transform: translateX(2px); }
.catalog-empty-items { margin: 0 0 24px; color: rgba(255,255,255,.52); font-size: 14px; line-height: 1.55; }

.catalog-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--catalog-blue) !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .045em;
  transition: color .2s ease, gap .2s ease;
}
.catalog-cta::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
}
.catalog-cta svg { width: 17px; height: 17px; }
.catalog-cta:hover,
.catalog-cta:focus-visible { gap: 12px; color: #8cacff !important; outline: none; }

.catalog-image { position: relative; height: 160px; flex: 0 0 160px; overflow: hidden; background: #0d1425; }
.catalog-image::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 25, 43, .88), transparent 72%);
  pointer-events: none;
}
.catalog-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: .42;
  filter: saturate(.65) contrast(1.08);
  mix-blend-mode: luminosity;
  transition: opacity .45s ease, transform .7s ease, filter .45s ease;
}
.catalog-image .catalog-image-light { display: none; }
.catalog-card:hover .catalog-image img { opacity: .58; filter: saturate(.9) contrast(1.08); transform: scale(1.08); }
.catalog-image-empty { display: grid; place-items: center; background: radial-gradient(circle at 50% 35%,rgba(93,143,255,.16),transparent 56%),#0d1425; }
.catalog-image-placeholder { width: 58px; height: 58px; color: rgba(127,157,235,.38); }

.catalog-footer {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width:none;
  min-height: 112px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 30px max(24px,calc((100% - 1232px)/2));
  border-top: 1px solid var(--catalog-line);
  color: rgba(255, 255, 255, .55);
}
.catalog-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.catalog-footer nav a { color: rgba(255, 255, 255, .67); font-size: 14px; transition: color .2s ease; }
.catalog-footer nav a:hover,
.catalog-footer nav a:focus-visible { color: #fff; outline: none; }
.catalog-footer p { margin: 0; font-size: 13px; white-space: nowrap; }

[dir="rtl"] .catalog-card-content { align-items: flex-start; }
[dir="rtl"] .catalog-card li a::before { content: "←"; }
[dir="rtl"] .catalog-card li a:hover,
[dir="rtl"] .catalog-card li a:focus-visible { transform: translateX(-2px); }
[dir="rtl"] .catalog-cta svg { transform: scaleX(-1); }

@media (max-width: 1180px) {
  .catalog-nav { grid-template-columns: auto minmax(210px, 1fr) auto; gap: 18px; }
  .catalog-links { display: none; }
}

@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-actions button { display: none; }
  .catalog-nav { grid-template-columns: auto minmax(180px, 1fr) auto; }
}

@media (max-width: 680px) {
  .catalog-header { height: 68px; }
  .catalog-nav { display: flex; justify-content: space-between; gap: 14px; padding: 0 16px; }
  .catalog-search { display: none; }
  .catalog-signin { min-width: 0; height: 36px; padding: 0 13px; }
  .catalog-language { margin-inline-end: 0; }
  .category-main { padding: 46px 16px 60px; }
  .category-intro { margin-bottom: 32px; }
  .category-intro h1 { font-size: 34px; }
  .category-intro p { font-size: 16px; line-height: 1.55; }
  .catalog-grid { grid-template-columns: 1fr; gap: 18px; }
  .catalog-card { min-height: 430px; }
  .catalog-card-content { min-height: 270px; padding: 26px; }
  .catalog-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .catalog-footer nav { gap: 13px 20px; }
}

@media (max-width: 420px) {
  .catalog-signin { display: none; }
  .catalog-card h2 { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .currency-column { animation-play-state: paused; }
  .catalog-card,
  .catalog-icon,
  .catalog-image img,
  .catalog-card a { transition: none; }
}
