:root {
  --bg: #121929;
  --card: #161e30;
  --muted: #a9b0c0;
  --text: #f2f5ff;
  --accent: #ff8a26;
  --ring: rgba(138, 160, 255, 0.35);
  --border: rgba(255, 255, 255, 0.1);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image: url(/assets/img/gradient-back.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}
.wrap {
  max-width: 1666px;
  margin: 0 auto;
  padding: 26px 20px 64px;
}
.promo-lottie__inner.container {
  max-width: 100%;
}
img.svg-free-logo {
  opacity: 0.26;
  display: inline-block;
  max-width: 200px;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.06);
  margin-bottom: 2rem;
  border-radius: 16px;
}
header {
  text-align: center;
  padding: 0;
}
h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  font-size: 48px;
  line-height: 33px;
  letter-spacing: 1px;
}
h1 span {
  font-weight: 300;
  font-size: 26px;
  letter-spacing: 2px;
}
.muted {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}
p.muted {
  margin-top: 1.6rem;
  max-width: 100%;
  display: inline-block;
  font-size: 12px;
}


.search {
  position: sticky;
  top: 12px;
  z-index: 5;
  backdrop-filter: saturate(120%) blur(6px);
  margin-bottom: 12px;
}
.searchbar {
  display: inline-flex;
  min-width: 860px;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 2px solid #2e42a4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition: background 0.2s;
  margin-top: 2rem;
}

@media screen {
  @media (max-width: 1120px) {
    .searchbar {
      min-width: 100%;
    }
  }
}
.searchbar:hover {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid #344cc8;
}
.searchbar:focus {
  border: 2px solid #ff8a26;
}
.searchbar input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 18px;
  padding: 6px 4px;
}
.searchbar input::placeholder {
  color: #7f8797;
}
.searchbar .btn {
  border: 0;
  background: #203d95;
  color: #e9edff;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
#btnDownloadSel {
  display: none !important;
}
.searchbar .btn:hover {
  background: #1e52ec;
}
.filters {
  display: inline-flex;
  max-width: 1260px;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 29px;
  justify-content: space-evenly;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
    font-size: 13px;
    background: #151a27;
    color: #e8ecff;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}
.pill input[type="checkbox"]:checked {
  background: #FFF;
}
.pill input {
  accent-color: var(--accent);
}
.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  flex-wrap: wrap;
      background: RGBA(255, 255, 255, 0.06);
      padding: 10px 10px;
      border-radius: 16px;
}
.toolbar .left {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-ghost {
  background: #151a27;
  color: #e8ecff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 12px;
  cursor: pointer;
}
.btn-ghost[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.results {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.card {
  background: linear-gradient(
      180deg,
      rgba(71, 79, 194, 0.36),
      transparent 70%
    ),
    #1d263b;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svgbox {
  display: grid;
  place-items: center;
  height: 120px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #0c0f16;
  position: relative;
}
.svgbox img {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.2));
}
.selectbox {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.selectbox input {
  accent-color: var(--accent);
}
.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.name {
  font-size: 13px;
  color: #dde3ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 64%;
}
.set {
  font-size: 12px;
  color: #9aa6d1;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #0d1220;
}
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-sm {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
  background: #1544bd;
  color: #e8ecff;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-sm:hover {
  background: rgb(34, 63, 134);
}
@media(max-width:640px){
  .btn-sm {
    padding: 6px 8px;
    font-size: 11px;
  }
}
.row2 {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.row2-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.colorpick {
  width: 34px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  padding: 0;
}
.stroke-wrap {
  display: none !important;
  align-items: center;
  gap: 6px;
}
.stroke-wrap input {
  width: 110px;
}
.stroke-wrap .val {
  font-size: 12px;
  color: #aeb8d8;
  min-width: 34px;
  text-align: right;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 32px 10px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.badge {
  font-size: 12px;
  color: #aeb8d8;
}
select {
  -webkit-appearance: none;
  appearance: none;
  padding: 4px 34px 4px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0e111a;
  color: #e7ecff;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23cdd6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}
.notice {
  font-size: 12px;
  color: #93a1bd;
  margin-top: 8px;
}
.footer {
  margin-top: 22px;
  text-align: center;
  color: #7f889a;
  font-size: 12px;
}
.footer a {
  color: #aab7ff;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}
.kbd {
  background: #0e1322;
  border: 1px solid var(--border);
  padding: 6px 6px 9px 6px;
  border-radius: 6px;
  color: #c9d3ff;
}
.lic {
  font-size: 11px;
  color: #9fb1ff;
  margin-left: 6px;
}

@media screen and (max-width: 660px) {
  h1 span {
    font-size: 18px;
  }
  .search {
    position: relative;
    margin-bottom: 2rem;
  }
  .wrap {
    padding: 0px 20px 64px;
  }
  h1 {
    font-size: 32px;
    line-height: 1;
    line-height: 35px;
  }
}
.muted b {
  background: linear-gradient(90deg, #8226c0, #ad287a 45%, #422eb3);
  color: #FFF;
  padding: 0px 6px 3px 6px;
  border-radius: 26px;
}
/* --- Cards: selection & fade-in --- */
.results .card {
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease;
  animation: fadeIn 0.5s ease both;
}
.results .card:hover {
  transform: translateY(-2px);
}

.sel-box {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}
.sel-box input {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #888;
  border-radius: 3px;
}

.card.selected::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0px 0px 10px 2px RGBA(255, 255, 255, 0.6);
  border-radius: inherit;
  pointer-events: none;
}

.thumb {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #f6f7fb;
}

/* fade-in with slight stagger via inline delays */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- Modal --- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
}
.modal.is-open {
  display: block;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}
.modal__dialog {
  position: relative;
  margin: 4vh auto;
  width: min(1200px, 96vw);
  max-height: 92vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: 4px 44px 8px 8px;
  display: flex;
  flex-direction: column;
  max-width: 600px;
}
.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: #151a27;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}
.modal__close:hover {
  background: #2a3e70;
}
.modal__content {
  overflow: auto;
  padding: 8px;
  text-align: center;
}
.modal__content svg {
  width: 100%;
  height: auto;
  display: block;
  color: #151a27;
  max-width: 460px;
  display: inline-block;
}
.modal__content .svg-loading {
  padding: 24px;
  text-align: center;
  color: #666;
}

/* row with prefix select */
.filters-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
      margin: 0.8rem 0 0rem;
}
.filters-row__label {
  font-size: 0.9rem;
  color: #FFF;
  opacity: 0.3;
}


.filters-row__select:focus {
    border: 1px solid RGBA(255,255,255,0.3);
}

/* modal toolbar */
.modal__toolbar {
  display: flex;
  gap: 8px;
  padding: 4px 8px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 8px;
}

/* small util for disabled state consistency (your theme likely has it already) */
.btn-sm[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.searchbar svg {
  width: 25px;
  height: 25px;
}
.btn-sm .btn-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right:6px;
  line-height:0;
}
.btn-sm .btn-ico svg{
  width:1em; height:1em;
  vertical-align:-0.125em; /* чуть опустить для красоты */
}

/* левый значок внутри маленьких кнопок */
.btn-sm .btn-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right:3px;
  line-height:0;
}
.btn-sm .btn-ico svg{
  width:1.2em; height:1.2em;
  vertical-align:-0.125em; /* чуть опустить для красоты */
  position: relative;
  top: 3px;
}










/* A11y helper */
.sr-only {
  position:absolute !important;
  width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.related-compact {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-chips .tag {
  display:inline-block;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:999px;
  font-size:14px;
  line-height:1;
  opacity:.9;
  text-decoration:none;
  transition:background .2s ease, border-color .2s ease, opacity .2s ease;
}
.related-chips .tag:hover { opacity:1; border-color:rgba(255,255,255,0.25); }

.related-combobox.index-related {
  margin-top: 1rem;
}

.related-combobox {
  position: relative;
  max-width: 520px;
}
.related-combobox input[type="search"]{
  width:100%;
  height:40px;
  padding:0 12px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.04);
  color:inherit;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.related-combobox input[type="search"]:focus{
  border-color: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08) inset;
}
.related-combobox input[type="search"]:hover{
  background:rgba(255,255,255,0.09);
}

.related-dropdown{
  position:absolute;
  top:calc(100% + 6px);
  left:0; right:0;
  max-height: 360px;
  overflow:auto;
  background: rgba(20,20,24,0.98);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:10px;
  padding:6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  animation: rd-fade .2s ease;
  z-index: 100;
}
@keyframes rd-fade { from { opacity:0; transform:translateY(-2px);} to {opacity:1; transform:translateY(0);} }

.related-item{
  display:flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:8px;
  text-decoration:none;
  color:inherit;
}
.related-item:hover, .related-item[aria-selected="true"]{
  background: rgba(255,255,255,0.06);
}
.related-item__title{
  flex:1;
  font-size:14px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.related-item__slug{
  opacity:.65; font-size:12px;
}

.related-fallback{
  margin: 2px 0 0 0;
  font-size: 13px; opacity:.75;
}



.promo-lottie{
  max-width: 860px;
  display: inline-block;
  position: relative;
  margin-top: 24px;
  border: 1px solid rgba(151,72,110,1);
  border-radius: 16px;
  background:
    radial-gradient(1200px 400px at -10% -50%, rgba(139,92,246,.25), transparent 60%),
    radial-gradient(900px 300px at 120% 120%, rgba(6,182,212,.18), transparent 60%),
    rgba(18,20,26,.7);
  overflow: hidden;
  box-shadow: 0px 3px 6px 3px rgba(166, 46, 206, 0.36);
}
.promo-lottie__inner{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  padding: 16px;
  align-items: center;
}

.promo-lottie__copy{
  display:flex; flex-direction:column; gap:6px;
}
.promo-lottie__logo{
  display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:12px;
  position: absolute;
  top: 16px;
}
.promo-lottie__title{
  margin:4px 0 0; font-size:22px; line-height:1.15; font-weight:700;
}
.promo-lottie__subtitle{
  margin:0; opacity:.85; font-size:14.5px; line-height:1.6;
}
.promo-lottie__cta{
  margin-top: 6px;
  display:inline-flex; align-items:center; justify-content:center;
  height:40px; padding:0 16px; border-radius:10px;
  background-color: #1e52ec;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.9;
  color: #fff;
}
.promo-lottie__cta:hover{
  background-color: #FFF;
  color: #1e52ec;
}

.promo-lottie__stage-wrap{
  position:relative;
  min-height: 139px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  border-radius: 14px;
  overflow: hidden;
}
.promo-lottie__stage{
  position:relative; width:100%; height:100%;
  max-height: 139px;
  display:grid; place-items:center;
}
.promo-lottie__stage canvas, .promo-lottie__stage svg{
  max-width: 75%;
  max-height: 75%;
}

/* Fade between slides */
.promo-lottie__stage.is-fading{ animation: lottie-fade .35s ease; }
@keyframes lottie-fade{
  from{ opacity: .3; transform: translateY(4px); }
  to  { opacity: 1;  transform: translateY(0); }
}

/* Dots */
.promo-lottie__dots{
  position:absolute; bottom:-1px; left:50%; transform:translateX(-50%);
  display:flex; gap:8px; padding:6px 8px;
  background: rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
}
.promo-lottie__dot{
  width:8px; height:8px; border-radius:50%;
  background: rgba(255,255,255,.35);
  border: none; padding:0; cursor: pointer;
}
.promo-lottie__dot[aria-selected="true"]{
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.18);
}

@media (max-width: 512px) {

.promo-lottie__logo {
  display: none;
}
.promo-lottie__subtitle {
  display: none;
}
}

#popularLottie .popular__grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}









.filters-row__select {
  padding: 8px 10px;
    font-size: 13px;
    background: #151a27;
    color: #e8ecff;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    max-width: 300px;
      -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
   background-repeat: no-repeat;
  background-position: right .6rem center;
  background-size: 16px 16px;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='white' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
<polyline points='6 9 12 15 18 9'/></svg>");
}
.filters-row__select::-ms-expand { display: none; }

.sel-box input:checked {
  background-color: #0e111a;
  border-color: #0e111a;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'>\
  <polyline points='2,6 5,9 10,3' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px; /* подгони при желании */
}