@font-face {
  font-family: "Poppins";
  src: url("/Poppins.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/Manrope.ttf") format("truetype");
  font-display: swap;
}

:root {
  /* === Active Theme: Crimson Syndicate === */
  /* Swap this block for Cyan (#00a6fa / #0074d9 / #5fc3ff / 0,166,250 / none) or Emerald (#10b981 / #059669 / #6ee7b7) */
  --stg-bg: #0b090a;
  --stg-footer: #0d0a0b;
  --stg-card-solid: #151012;
  --stg-nav-top: #1b1316;
  --stg-nav-bot: #120d0f;
  --stg-accent: #ef4444;
  --stg-accent-deep: #b91c1c;
  --stg-accent-sky: #fca5a5;
  --stg-accent-rgb: 239, 68, 68;
  --stg-accent-deep-rgb: 185, 28, 28;
  --stg-logo-filter: drop-shadow(0 4px 14px rgba(239, 68, 68, 0.28));
}

html {
  background: transparent;
  scroll-behavior: smooth;
}

body {
  background-color: var(--stg-bg);
  color: #ffffff;
  font-family: "Poppins", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/bg.png") !important;
  z-index: -2 !important;
  pointer-events: none;
}

#stg-root, #stg-header, #stg-view, #stg-footer {
  display: contents;
}

.main {
  position: relative !important;
  overflow-x: clip !important;
  background: transparent !important;
  min-height: 100vh;
}

.header {
  position: sticky !important;
  top: 52px !important;
  z-index: 900 !important;
}

::selection {
  background: var(--stg-accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--stg-accent);
  outline-offset: 2px;
}

/* Crimson Syndicate Surface & Logo Harmonization */
.nav-float {
  background: linear-gradient(180deg, var(--stg-nav-top) 0%, var(--stg-nav-bot) 100%) !important;
}
.nav .logo,
.mobile-logo img,
.mobile-menu-brand img {
  filter: var(--stg-logo-filter);
}
.nav .nav-links a.active .nav-badge-new {
  background: #0b090a !important;
  color: var(--stg-accent-sky) !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.ft-card {
  background: var(--stg-card-solid) !important;
}
.hh-btn-ghost {
  background: var(--stg-nav-top) !important;
}
.t-card,
.features-card {
  background: linear-gradient(180deg, rgba(28, 20, 23, 0.58), rgba(18, 13, 15, 0.58)) !important;
}
.footer {
  background: var(--stg-footer) !important;
}

@media (min-width: 1024px) {
  .footer {
    grid-template-columns: 1.8fr 1fr 1fr 1fr auto !important;
    gap: 40px !important;
  }
}

/* Header nav & promo strip adjustments */
.header .promo-strip {
  cursor: pointer;
}
.nav .lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 195px;
  max-height: 300px;
  overflow-y: auto;
  background: #101318;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  z-index: 90;
  display: grid;
  gap: 2px;
}
.nav .lang-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: 0;
  color: #dbe4ef;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
}
.nav .lang-opt:hover, .nav .lang-opt.active {
  background: rgba(var(--stg-accent-rgb), 0.16);
  color: #fff;
}

/* Anchored sections clearance under sticky promo + floating nav */
#featured, #popular, .achievements, .testimonials, .features, .questions, .uifr-row {
  scroll-margin-top: 138px;
}

/* Marquee animation helpers & pause-on-hover */
.ls-stage:hover .ls-track,
.t-stage:hover .t-track {
  animation-play-state: paused !important;
}
.ls-track .item {
  width: 345px;
  min-width: 345px;
  flex-shrink: 0;
}

/* Product Card & Catalog Grid Exact Parity (/fivem-scripts, /open-source, /bundles, /ui-pack) */
.products {
  padding-top: 90px;
}
.products.latest-scripts {
  padding-top: 0;
}
.uip-card.item {
  overflow: visible !important;
  padding-bottom: 0 !important;
}
.uipc-pill-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--stg-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(var(--stg-accent-rgb), 0.35);
}
.product .right .btn.docs,
.product .right .btn.gift {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 99px !important;
  height: 46px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.6px;
}
.product .right .btn.docs:hover,
.product .right .btn.gift:hover {
  border-color: rgba(var(--stg-accent-rgb), 0.5) !important;
  background: rgba(var(--stg-accent-rgb), 0.08) !important;
}
.products .script-wrapper:not(.ls-track) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 26px;
}
@media (max-width: 1020px) {
  .products .script-wrapper:not(.ls-track) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .products .script-wrapper:not(.ls-track) { grid-template-columns: 1fr; }
}
.products .item {
  position: relative;
  display: flex !important;
  flex-direction: column;
  background: rgba(28, 29, 34, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px !important;
  padding: 0 0 20px !important;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.products .item:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--stg-accent-rgb), 0.35) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.products .item .item-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  aspect-ratio: 16 / 9;
  background: #0d1014;
}
.products .item .image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.products .item .image.card-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.products .item:hover .image.card-frame {
  opacity: 1;
}
.products .item .image-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.products .item .image-hover-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  color: #fff;
  font-family: Poppins, Manrope, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.products .item:hover .image-hover-overlay,
.products .item:hover .image-hover-label {
  opacity: 1;
}
.products .item .description-wrapper {
  padding: 0 20px;
  flex: 1;
}
.products .item .product-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: #9ba5b4;
  font-size: 13.5px;
  line-height: 1.55;
}
.products .item .card-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 40px);
  height: 40px;
  margin: 18px 20px 0;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--stg-accent), var(--stg-accent-deep));
  box-shadow: rgba(var(--stg-accent-rgb), 0.2) 0px 2px 10px;
  color: #fff;
  font-family: "Google Sans", Manrope, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.products .item .card-add-btn:hover {
  filter: brightness(1.08);
}
.products .item .card-add-btn.free-btn {
  background: linear-gradient(135deg, var(--stg-accent), var(--stg-accent-deep));
}
.products .item .new {
  display: none;
  position: absolute;
  top: 16px;
  left: -34px;
  width: 120px;
  height: 26px;
  background: var(--stg-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
  z-index: 4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.products .item.new .new {
  display: flex;
}
.search-box {
  position: relative;
  margin-top: 26px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.search-box i {
  position: absolute;
  top: 14px;
  left: 18px;
  color: #fff;
  font-size: 17px;
  pointer-events: none;
}
.title-52 {
  color: #fff;
  font-size: 40px;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  text-align: center;
  margin-top: 40px;
}
.seo-subtitle {
  font-family: Manrope, sans-serif;
  text-align: center;
  margin: 10px auto 22px;
  color: rgb(129, 137, 141);
  font-size: 16px;
  max-width: 900px;
  padding: 0 20px;
}
.stg-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.stg-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--stg-accent) 0%, var(--stg-accent-deep) 100%);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stg-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(var(--stg-accent-rgb), 0.35);
}
.stg-free-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.stg-free-btn:hover {
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

/* FAQ smooth open/close */
.questions .item .asked {
  cursor: pointer;
}
.questions .item .asked h3 {
  color: #aeb8bd !important;
}
.questions .item.active .asked h3,
.questions .item[data-open="true"] .asked h3 {
  color: #ffffff !important;
}
.questions .item .answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}
.questions .item.active .answer,
.questions .item[data-open="true"] .answer {
  max-height: 280px;
  opacity: 1;
}
.questions .item.active .asked-chevron,
.questions .item[data-open="true"] .asked-chevron {
  transform: rotate(180deg);
}

/* Catalog / Subpages layout */
.stg-page {
  width: min(1320px, 94vw);
  margin: 0 auto;
  padding: 132px 0 80px;
}
.stg-page-head {
  text-align: center;
  margin-bottom: 36px;
}
.stg-page-head h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.stg-page-head p {
  max-width: 66ch;
  margin: 0 auto;
  color: #9ba5b4;
  line-height: 1.6;
}
.stg-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 20, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 28px;
}
.stg-chip {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.stg-chip.active, .stg-chip:hover {
  background: var(--stg-accent);
  border-color: var(--stg-accent);
  color: #fff;
}
.stg-search-input, .stg-select {
  background: #0c0e12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  padding: 9px 14px;
  font-size: 0.85rem;
  outline: none;
}
.stg-search-input:focus {
  border-color: var(--stg-accent);
}
.stg-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.stg-catalog-grid .item {
  width: 100% !important;
  min-width: 0 !important;
  display: flex;
  flex-direction: column;
}

/* UI Pack Tiers */
.stg-uipack-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  margin: 32px 0 56px;
}
.stg-tier-card {
  position: relative;
  background: rgba(16, 19, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stg-tier-card.popular {
  border-color: var(--stg-accent);
  box-shadow: 0 18px 50px rgba(var(--stg-accent-rgb), 0.16);
}
.stg-tier-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--stg-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
}

/* Product Detail View */
.stg-pd-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b95a5;
  font-size: 0.85rem;
  margin-bottom: 22px;
}
.stg-pd-crumb a { color: #cbd5e1; text-decoration: none; }
.stg-pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 920px) {
  .stg-pd-grid { grid-template-columns: 1fr; }
}
.stg-pd-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d1014;
  aspect-ratio: 16 / 9;
}
.stg-pd-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stg-pd-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(12, 16, 22, 0.82);
  border: 2px solid var(--stg-accent);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.stg-pd-play:hover { transform: scale(1.08); background: var(--stg-accent); }
.stg-pd-side {
  background: rgba(16, 20, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stg-pd-features {
  margin-top: 40px;
}
.stg-feat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.stg-feat-mini {
  background: rgba(16, 19, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.stg-feat-mini:hover { border-color: var(--stg-accent); transform: translateY(-2px); }
.stg-feat-mini img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.stg-feat-mini-body { padding: 12px 14px; }

/* Floating basket & Drawer stacking order */
.floating-basket {
  z-index: 950 !important;
}
.basket-sidebar-overlay {
  z-index: 9990 !important;
}
.basket-sidebar {
  z-index: 9995 !important;
}

/* Modals & Toasts */
.stg-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050 !important;
  background: rgba(5, 7, 10, 0.84);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.stg-modal-card {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--stg-card-solid, #151012);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.78);
}
.stg-toasts {
  position: fixed;
  top: 96px;
  right: 22px;
  z-index: 10100 !important;
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.stg-toast {
  background: var(--stg-card-solid, #151012);
  border: 1px solid var(--stg-accent);
  color: #fff;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Basket sidebar open state */
.basket-sidebar-overlay.open, .basket-sidebar.open {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}
.basket-sidebar.open {
  transform: translateX(0) !important;
}
