/* ===========================
   TOC — DoubleGGSubs Neon UI
=========================== */

:root {
  --tocMaxWidth: 1160px;

  /* Site palette */
  --toc-bg-dark: #070d23;
  --toc-bg-card: #0d1332;
  --toc-text: #ffffff;
  --toc-muted: #9ea9c9;

  /* Accents */
  --toc-cyan: #4df3ff;
  --toc-orange: #ff622e;
  --toc-yellow: #ffc34d;
}


/* Wrapper */
.toc {
  background: transparent;
}

.toc.wrapper {
  width: min(var(--tocMaxWidth), 92vw);
  margin-inline: auto;
  margin-top: 10px;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.toc .swiper {
  padding: 0 14px 14px !important;
}

.toc .swiper-wrapper {
  padding-top: 14px;
  padding-bottom: 18px;
  justify-content: flex-start;
}

.toc .swiper-slide {
  width: fit-content;
}


/* ===========================
   NEON PILLS
=========================== */

.toc a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 44px;
  padding: 10px 22px;

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.22);

  background: linear-gradient(180deg, #0a1030, #0f1638);

  color: var(--toc-text);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 10px 28px rgba(0,0,0,.45);

  transition:
    background .22s ease,
    border-color .22s ease,
    transform .16s ease,
    box-shadow .22s ease,
    opacity .18s ease;
}


/* Hover — мягкий glow */
.toc a:hover {
  border-color: rgba(255,255,255,.45);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.24),
    0 18px 40px rgba(0,0,0,.6);
}


/* ===========================
   ACTIVE (как Market Cards)
=========================== */

.toc a.is-active {
  border: 1px solid transparent;
  transform: translateY(-2px);

  background: linear-gradient(90deg,
      var(--toc-cyan),
      var(--toc-orange),
      var(--toc-yellow)
  );

  color: #050a1f;
  font-weight: 900;

  box-shadow:
    0 10px 38px rgba(0,0,0,.65),
    inset 0 0 0 1px rgba(255,255,255,.55);
}

/* Cyan variant if нужен */
.toc a.is-active--cyan {
  background: linear-gradient(120deg, #2bc7ff, #4df3ff);
  color: #050a1f;
}


/* ===========================
   SCROLLBAR
=========================== */

.toc-swiper {
  max-width: var(--tocMaxWidth);
  margin-inline: auto;
}

.toc-swiper .swiper-scrollbar {
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.toc-swiper .swiper-scrollbar-drag {
  background: linear-gradient(90deg,#4df3ff,#ff622e,#ffc34d);
  border-radius: 999px;
}

.swiper-horizontal>.swiper-scrollbar,
.swiper-scrollbar.swiper-scrollbar-horizontal {
  left:0 !important;
  right:0 !important;
  width:100% !important;
}


/* ===========================
   MOBILE
=========================== */

@media (max-width: 750px) {

  .toc.wrapper {
    width: min(96vw, 100%);
  }

  .swiper-horizontal>.swiper-scrollbar,
  .swiper-scrollbar.swiper-scrollbar-horizontal {
    width: 92% !important;
    margin-inline: auto;
  }

  .toc .swiper-wrapper {
    padding-top: 10px;
    padding-bottom: 14px;
  }

  .toc a {
    height: 40px;
    padding: 9px 18px;
    font-size: 10.5px;
    border-radius: 14px;
  }
}
