:root {
  --color-text: #f6f2f1;
  --color-text-darker: #d9d1cf;
  --color-text-secondary: #b9aeab;
  --color-text-dark: #15090a;
  --color-bg: #070708;
  --color-bg-soft: #0d0d10;
  --color-brighter-bg: #151318;
  --color-panel: rgba(20, 16, 19, 0.92);
  --color-panel-strong: rgba(27, 18, 21, 0.96);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(191, 45, 50, 0.36);
  --color-primary: #b91920;
  --color-primary-strong: #d42b34;
  --color-primary-hover: #f2d8d9;
  --color-primary-text: #fff8f8;
  --color-primary-text-hover: #21090b;
  --color-secondary: #d7d0cf;
  --color-secondary-hover: #fff5f4;
  --color-secondary-text: #17090a;
  --color-secondary-text-hover: #17090a;
  --color-tertiary: transparent;
  --color-tertiary-hover: rgba(255, 255, 255, 0.12);
  --color-tertiary-text: var(--color-text);
  --color-tertiary-text-hover: var(--color-text);
  --color-removed: #f06b72;
  --color-sale-banner-bg: rgba(185, 25, 32, 0.96);
  --color-sale-banner-text: #fff8f8;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.32);
  --shadow-card: 0 24px 70px rgba(0, 0, 0, 0.4);
  --shadow-red: 0 18px 44px rgba(185, 25, 32, 0.24);
  --btn-size: 48px;
  --btn-icon-size: 18px;
  --btn-icon-gap: 8px;
  --widget-padding: 18px;
  --content-padding: var(--widget-padding);
  --content-inner-width: 1320px;
  --content-width: calc((var(--content-padding) * 2) + var(--content-inner-width));
  --sidebar-width: 312px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --tebex-footer-height: 35px;
  --page-transition-duration: 180ms;
}

@media (width > 640px) {
  :root {
    --widget-padding: 22px;
  }
}

@media (width > 960px) {
  :root {
    --widget-padding: 26px;
    --content-padding: calc(var(--widget-padding) * 2);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  vertical-align: baseline;
  color: inherit;
  background: transparent;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: 0;
}

html,
body {
  min-height: 100vh;
}

html {
  overflow: hidden scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-bg);
  scrollbar-gutter: stable;
}

html.no-scroll {
  overflow: hidden;
  overscroll-behavior-y: none;
}

body {
  position: relative;
  width: 100%;
  max-width: 100%;
  color: var(--color-text);
  background:
    radial-gradient(circle at 14% 10%, rgba(185, 25, 32, 0.17), transparent 25%),
    radial-gradient(circle at 84% 8%, rgba(255, 255, 255, 0.05), transparent 26%),
    linear-gradient(180deg, #0c0b0d 0%, #070708 36%, #050506 100%);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  width: 100%;
  height: min(720px, 78vh);
  background:
    linear-gradient(180deg, rgba(4, 4, 5, 0.18), rgba(4, 4, 5, 0.92)),
    var(--kms-hero-bg) center top / cover no-repeat;
  mask-image: linear-gradient(#000 0%, #000 56%, transparent 100%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.18;
  pointer-events: none;
}

strong,
b {
  font-weight: 800;
}

em,
i {
  font-style: italic;
}

img,
svg {
  display: block;
  max-width: 100%;
}

li {
  display: block;
}

button,
input[type=submit] {
  appearance: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

textarea {
  resize: vertical;
}

:root *[hidden] {
  display: none;
}

::placeholder {
  color: inherit;
  opacity: 0.8;
}

::selection {
  color: #fff;
  background: rgba(185, 25, 32, 0.94);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Rajdhani", "Manrope", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.text-content {
  line-height: 1.65;
  word-break: break-word;
}

.text-content h1,
.text-content h2,
.text-content h3,
.text-content h4,
.text-content h5,
.text-content h6 {
  margin-bottom: 16px;
}

.text-content h1 {
  font-size: 2.4rem;
}

.text-content h2 {
  font-size: 2rem;
}

.text-content h3 {
  font-size: 1.5rem;
}

.text-content p:not(:last-child),
.text-content ul:not(:last-child),
.text-content ol:not(:last-child) {
  margin-bottom: 14px;
}

.text-content ul,
.text-content ol {
  margin-left: 1.25rem;
}

.text-content li {
  display: list-item;
  margin-bottom: 0.45rem;
}

.link-text {
  color: #f0d6d7;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

.link-text:hover {
  color: #fff;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
  --btn-color-text: var(--color-text);
  --btn-color-bg: rgba(255, 255, 255, 0.06);
  --btn-color-text-hover: var(--btn-color-text);
  --btn-color-bg-hover: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: min-content;
  width: fit-content;
  height: var(--btn-size);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--btn-color-text);
  background: var(--btn-color-bg);
  font-size: 0.98rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.btn-primary {
  --btn-color-text: var(--color-primary-text);
  --btn-color-bg: linear-gradient(135deg, #d42b34, #8f1116);
  --btn-color-text-hover: var(--color-primary-text);
  --btn-color-bg-hover: linear-gradient(135deg, #eb4852, #a61319);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-red);
}

.btn-secondary {
  --btn-color-text: var(--color-secondary-text);
  --btn-color-bg: linear-gradient(135deg, #fffaf9, #e7dddc);
  --btn-color-text-hover: var(--color-secondary-text-hover);
  --btn-color-bg-hover: linear-gradient(135deg, #ffffff, #f3eded);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(255, 255, 255, 0.1), var(--shadow-soft);
}

.btn-tertiary {
  --btn-color-text: var(--color-tertiary-text);
  --btn-color-bg: rgba(255, 255, 255, 0.045);
  --btn-color-text-hover: var(--color-tertiary-text-hover);
  --btn-color-bg-hover: rgba(255, 255, 255, 0.12);
  border-color: var(--color-border);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-tertiary:hover,
.btn-tertiary:focus {
  transform: translateY(-1px);
  color: var(--btn-color-text-hover);
  background: var(--btn-color-bg-hover);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-tertiary:disabled,
a[disabled] {
  opacity: 0.48;
  pointer-events: none;
}

.kms-welcome-offer .btn-secondary,
.hero-actions .btn-secondary,
.widget-gift-card .check,
.product-actions .add,
.product-actions .open-basket-cta {
  color: #17090a;
  background: linear-gradient(135deg, #fffaf9, #e7dddc);
  border-color: rgba(255, 255, 255, 0.82);
  text-shadow: none;
}

.kms-welcome-offer .btn-secondary:hover,
.hero-actions .btn-secondary:hover,
.widget-gift-card .check:hover,
.product-actions .add:hover,
.product-actions .open-basket-cta:hover {
  color: #17090a;
  background: #fff;
  border-color: #fff;
}

.btn-icon,
.btn-glyph,
.btn-glyph-text,
.btn-icon-text {
  --btn-icon: url("https://template-assets.tebex.io/images/plus.svg");
}

.btn-icon,
.btn-glyph {
  flex: none;
  width: var(--btn-size);
  min-width: var(--btn-size);
  padding: 0;
}

.btn-icon {
  color: transparent;
  font-size: 0;
  background:
    var(--btn-color-bg),
    var(--btn-icon) center / var(--btn-icon-size) no-repeat;
}

.btn-glyph::before,
.btn-glyph-text::before {
  content: "";
  display: block;
  width: var(--btn-icon-size);
  height: var(--btn-icon-size);
  flex: none;
  background-color: currentColor;
  mask: var(--btn-icon) center / contain no-repeat;
}

.btn-glyph {
  position: relative;
  color: transparent;
  font-size: 0;
}

.btn-glyph::before {
  position: absolute;
  inset: 0;
  margin: auto;
  color: var(--btn-color-text);
  background-color: var(--btn-color-text);
}

.btn-glyph-text::before {
  margin-right: var(--btn-icon-gap);
}

.site {
  display: grid;
  grid-auto-rows: auto 1fr auto;
  gap: clamp(22px, 3vw, 44px);
  min-height: calc(100vh - var(--tebex-footer-height));
  padding-bottom: 30px;
}

.page-index .site {
  grid-auto-rows: auto;
}

.site-header,
.kms-welcome-offer,
.site-home-categories,
.site-content,
.site-footer-inner,
.kms-home-hero,
.kms-service-section,
.kms-stats-section {
  width: 100%;
  margin: 0 auto;
  padding-inline: var(--content-padding);
}

@media (width > 960px) {
  .site-header,
  .kms-welcome-offer,
  .site-home-categories,
  .site-content,
  .site-footer-inner,
  .kms-home-hero,
  .kms-service-section,
  .kms-stats-section {
    max-width: var(--content-width);
  }
}

.site-header {
  position: relative;
  z-index: 3;
}

.kms-announcement {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 10px 18px;
  overflow: hidden;
  border: 1px solid rgba(212, 43, 52, 0.28);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: rgba(7, 7, 8, 0.92);
  box-shadow: var(--shadow-soft);
}

.kms-announcement strong {
  flex: none;
  color: #fff;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.kms-announcement-track {
  display: flex;
  min-width: max-content;
  gap: 24px;
  color: var(--color-text-darker);
  animation: kms-marquee 26s linear infinite;
}

.kms-announcement-track span::before {
  content: "✦";
  margin-right: 8px;
  color: var(--color-primary-strong);
}

@keyframes kms-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.kms-welcome-offer {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(185, 25, 32, 0.28), rgba(255, 255, 255, 0.035)),
    rgba(13, 11, 13, 0.88);
  box-shadow: var(--shadow-red);
}

.kms-offer-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(185, 25, 32, 0.76);
  font-family: "Rajdhani", sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
}

.kms-welcome-offer div:not(.kms-offer-icon) {
  min-width: 0;
  flex: 1;
}

.kms-welcome-offer strong {
  display: block;
  color: #fff;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.65rem;
  text-transform: uppercase;
}

.kms-welcome-offer p {
  color: var(--color-text-darker);
}

.kms-welcome-offer span {
  display: inline-block;
  margin-inline: 4px;
  padding: 3px 8px;
  border: 1px solid rgba(212, 43, 52, 0.38);
  border-radius: 999px;
  color: #fff;
  background: rgba(185, 25, 32, 0.22);
  font-weight: 800;
}

.site-header-inner {
  position: relative;
  min-height: 390px;
  padding-top: 24px;
}

.site-header-inner .actions {
  position: absolute;
  top: 24px;
  left: 0;
}

.site-header-inner .toggle-navigation {
  --btn-icon: url("https://template-assets.tebex.io/images/burger.svg");
}

@media (width > 960px) {
  .site-header-inner .toggle-navigation {
    display: none;
  }
}

.site-header-inner .log-in,
.site-header-inner .user-actions {
  position: absolute;
  top: 24px;
  right: 0;
}

.site-header-inner .user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header-inner .open-basket {
  --btn-icon: url("https://template-assets.tebex.io/images/checkout.svg");
}

.site-header-inner .user-name {
  --btn-icon: url("https://template-assets.tebex.io/images/user.svg");
  overflow: hidden;
}

.site-header-inner .user-name .text,
.site-header-inner .user-name .text-hover {
  display: block;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.site-header-inner .user-name .text-hover {
  margin-top: calc(var(--btn-size) * -1);
}

.site-header-inner .user-name:not(:hover):not(:focus-within) .text-hover {
  opacity: 0;
  visibility: hidden;
}

.site-header-inner .user-name:hover .text,
.site-header-inner .user-name:focus-within .text {
  opacity: 0;
  visibility: hidden;
}

.site-title {
  position: absolute;
  inset: 96px 240px auto;
  margin: auto;
  width: fit-content;
  max-width: calc(100% - 480px);
  min-height: 132px;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  font-size: 4rem;
  line-height: 1;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.72));
}

.site-title img {
  max-height: 196px;
  width: auto;
  object-fit: contain;
}

.brand-kicker {
  position: absolute;
  inset: 300px 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #f0d6d7;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-kicker-mark {
  display: block;
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 43, 52, 0.95), transparent);
}

.site-header-inner .info {
  position: absolute;
  top: 128px;
  width: min(280px, 32%);
  min-height: 90px;
  padding: 18px 18px 18px 72px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.site-header-inner .info.server {
  left: 0;
}

.site-header-inner .info.discord {
  right: 0;
  left: auto;
  padding-right: 72px;
  padding-left: 18px;
  text-align: right;
}

.site-header-inner .info .image {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.site-header-inner .info.discord .image {
  right: 18px;
  left: auto;
  width: 42px;
  height: 42px;
}

.site-header-inner .info .title {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.1;
}

.site-header-inner .info .action {
  display: block;
  margin-top: 8px;
  color: #f4b9bc;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s ease;
}

.site-header-inner .info:hover .action {
  color: #fff;
}

.site-sale-banner {
  margin-top: 10px;
  margin-bottom: 12px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--color-sale-banner-text);
  background: linear-gradient(135deg, rgba(212, 43, 52, 0.96), rgba(116, 11, 16, 0.96));
  box-shadow: var(--shadow-red);
  text-align: center;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-navigation {
  position: relative;
}

.mobile-only {
  display: none;
}

@media (width <= 960px) {
  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .site-navigation {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(3, 3, 4, 0.84);
    opacity: 1;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  body:not(.show-navigation) .site-navigation {
    opacity: 0;
    visibility: hidden;
  }

  .site-navigation .close-navigation {
    --btn-icon: url("https://template-assets.tebex.io/images/close.svg");
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
  }

  .navigation-horizontal .menu,
  .navigation-vertical .menu {
    position: absolute;
    inset: 0 58px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
    padding: 82px 18px 24px;
    border-radius: 0;
    overflow: hidden auto;
    background: rgba(9, 8, 10, 0.98);
    transition: translate 0.22s ease;
  }

  body:not(.show-navigation) .navigation-horizontal .menu,
  body:not(.show-navigation) .navigation-vertical .menu {
    translate: -100% 0;
  }

  .navigation-horizontal > .menu > li,
  .navigation-vertical > .menu > li {
    width: 100%;
  }

  .navigation-horizontal > .menu > li > a,
  .navigation-vertical > .menu > li > a {
    width: 100%;
    border-radius: 12px;
    text-align: left;
  }

  .navigation-horizontal .has-children,
  .navigation-vertical .has-children {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
  }

  .navigation-horizontal .has-children > ul,
  .navigation-vertical .has-children > ul {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    padding: 8px 0 0 10px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }

  .navigation-horizontal .has-children:not(.expanded) > ul,
  .navigation-vertical .has-children:not(.expanded) > ul {
    display: none;
  }

  .navigation-horizontal .has-children > ul a,
  .navigation-vertical .has-children > ul a {
    padding: 10px 12px;
    border-radius: 10px;
  }

  .navigation-horizontal .log-out,
  .navigation-vertical .log-out {
    margin-top: auto;
  }
}

@media (width > 960px) {
  .navigation-horizontal .close-navigation {
    display: none;
  }
}

.navigation-horizontal .menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(18, 15, 18, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.navigation-horizontal > .menu > li {
  position: relative;
}

.navigation-horizontal > .menu > li > a {
  display: block;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--color-text-darker);
  font-family: "Rajdhani", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.navigation-horizontal > .menu > li > a:hover,
.navigation-horizontal > .menu > li > a.link-active {
  color: #fff;
  background: rgba(185, 25, 32, 0.28);
}

.navigation-horizontal .has-children {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navigation-horizontal .has-children .toggle {
  --btn-size: 34px;
  --btn-icon-size: 18px;
  --btn-icon: url("https://template-assets.tebex.io/images/chevron.svg");
}

.navigation-horizontal .has-children > ul {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 5;
  width: max-content;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(18, 15, 18, 0.98);
  box-shadow: var(--shadow-card);
  transition: opacity 0.18s ease, translate 0.18s ease, visibility 0.18s ease;
}

.navigation-horizontal .has-children:not(:hover) > ul {
  opacity: 0;
  visibility: hidden;
  translate: 0 -8px;
}

.navigation-horizontal .has-children > ul a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--color-text-secondary);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.navigation-horizontal .has-children > ul a:hover,
.navigation-horizontal .has-children > ul a.link-active {
  color: #fff;
  background: rgba(185, 25, 32, 0.24);
}

.kms-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: end;
  min-height: 340px;
  padding-top: 4px;
}

.kms-home-hero-copy {
  max-width: 760px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(15, 11, 14, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

.kms-home-hero .eyebrow {
  margin-bottom: 12px;
  color: #f1c8ca;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kms-home-hero h2 {
  margin-bottom: 12px;
  max-width: 12ch;
  font-size: clamp(3.1rem, 7vw, 5.9rem);
  line-height: 0.95;
}

.kms-home-hero .lead {
  max-width: 60ch;
  color: var(--color-text-darker);
  font-size: 1.22rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.kms-home-proof {
  display: grid;
  gap: 16px;
}

.proof-item {
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(15, 12, 15, 0.76);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.proof-item strong {
  display: block;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.7rem;
  text-transform: uppercase;
}

.proof-item span {
  display: block;
  color: var(--color-text-secondary);
}

.kms-section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.kms-section-heading p {
  color: #f1c8ca;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kms-section-heading h3 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.kms-service-section,
.kms-stats-section {
  display: grid;
  gap: 18px;
}

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

.kms-service-card,
.kms-stat {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(15, 12, 15, 0.86);
  box-shadow: var(--shadow-soft);
}

.kms-service-card::before,
.kms-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at 18% 0%, rgba(185, 25, 32, 0.18), transparent 42%);
  pointer-events: none;
}

.kms-service-card {
  min-height: 220px;
  padding: 24px;
}

.kms-service-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  border: 1px solid rgba(212, 43, 52, 0.44);
  border-radius: 50%;
  color: #fff;
  background: rgba(185, 25, 32, 0.22);
  font-family: "Rajdhani", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.kms-service-card h4 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
}

.kms-service-card p {
  color: var(--color-text-secondary);
  line-height: 1.62;
}

.kms-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kms-stat {
  min-height: 128px;
  padding: 22px;
}

.kms-stat strong {
  display: block;
  color: #fff;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.kms-stat span {
  display: block;
  margin-top: 12px;
  color: var(--color-text-secondary);
  font-weight: 700;
  text-transform: uppercase;
}

.site-home-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.site-home-categories .category {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-soft);
  color: #fff;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.site-home-categories .category:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
}

.site-home-categories .category .image {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.site-home-categories .category .image-default {
  position: relative;
  flex: none;
}

.site-home-categories .category .image-default::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.82);
  mask: url("https://template-assets.tebex.io/images/package-default.svg") center / contain no-repeat;
}

.site-content-widgets {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media (width > 960px) {
  .site-content-widgets {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 42px;
  }

  body.is-sidebar-right .site-content-widgets {
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  }

  .site-content-widgets .store-sidebar {
    order: -1;
  }

  body.is-sidebar-right .site-content-widgets .store-sidebar {
    order: 1;
  }
}

.store-text,
.category-description,
.store-category-tiered,
.store-product-full,
.store-quote {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.store-text,
.store-quote {
  padding: clamp(20px, 3vw, 34px);
}

.category-description {
  margin-bottom: 20px;
  padding: 22px;
  color: var(--color-text-darker);
}

.no-products {
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  color: var(--color-text-secondary);
  text-align: center;
}

.store-products-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.store-products-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.store-product {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(16, 13, 16, 0.96);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.store-product:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card);
}

.store-product .image-link {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 180px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 28%, rgba(185, 25, 32, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.store-product .image {
  max-height: 220px;
  object-fit: contain;
}

.store-product .image-default {
  position: relative;
  width: 128px;
  aspect-ratio: 1;
}

.store-product .image-default::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.72);
  mask: url("https://template-assets.tebex.io/images/package-default.svg") center / contain no-repeat;
}

.store-product .product-title {
  font-size: 1.7rem;
  line-height: 1;
}

.store-product .product-title a:hover {
  color: #fff;
}

.store-product .countdown {
  display: block;
  margin-top: 8px;
  color: var(--color-removed);
  font-size: 0.85rem;
}

.store-product .descr {
  color: var(--color-text-secondary);
}

.store-product .actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-product .actions.updating {
  pointer-events: none;
}

.store-product .actions.updating > * {
  opacity: 0.38;
}

.store-product .actions.updating::before,
.basket-popup-content.updating::before,
.store-product-options .actions.updating::before,
.gift-form-popup .popup-content .actions.updating::before,
.popup.popup-loading .popup-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 34px;
  height: 34px;
  margin: auto;
  background-color: #fff;
  mask: url("https://template-assets.tebex.io/images/loading.svg") center / contain no-repeat;
}

.store-product .price {
  width: 100%;
  color: #fff;
  font-size: 0.96rem;
}

.store-product .price strong {
  display: inline-block;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.8rem;
}

.store-product .discount {
  margin-right: 10px;
  color: var(--color-removed);
}

.store-product .half {
  flex: 1 1 calc(50% - 6px);
}

.store-product .wide {
  flex: 1 1 100%;
}

.store-product .gift {
  --btn-icon: url("https://template-assets.tebex.io/images/gift.svg");
}

.quantity-field {
  --btn-size: 42px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 180px;
  height: calc(var(--btn-size) + 2px);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.quantity-field input[type=number] {
  flex: none;
  min-width: 50px;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  appearance: textfield;
}

.quantity-field input[type=number]::-webkit-inner-spin-button,
.quantity-field input[type=number]::-webkit-outer-spin-button {
  appearance: none;
}

.quantity-field .adjust {
  --btn-icon-size: 12px;
  --btn-icon: url("https://template-assets.tebex.io/images/plus.svg");
  border-radius: 0;
}

.quantity-field .adjust.decrease {
  --btn-icon: url("https://template-assets.tebex.io/images/minus.svg");
}

.quantity-field .open-basket {
  padding-inline: 10px;
  color: #f2d6d8;
  font-weight: 800;
}

.store-product-full {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 3vw, 34px);
}

.store-product-full .product-title {
  font-size: 2.65rem;
}

.store-product-full .image,
.media-slider {
  width: 100%;
}

.store-product-full .actions {
  position: sticky;
  bottom: 16px;
  z-index: 3;
  align-items: center;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(16, 12, 15, 0.92);
  backdrop-filter: blur(12px);
}

.store-product-full .price {
  margin-right: auto;
}

.store-product-options .product-title {
  margin-bottom: 18px;
  font-size: 2rem;
}

.store-form {
  font-size: 1rem;
}

.store-form .field,
.store-form .field-inline,
.store-form .input-group {
  margin-bottom: 18px;
}

.store-form .field > p,
.store-form .field-inline > p,
.store-form .input-group > p {
  margin-bottom: 10px;
}

.store-form .field-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-form input[type=text],
.store-form input[type=password],
.store-form input[type=email],
.store-form input[type=number],
.store-form input[type=search],
.store-form input[type=url],
.store-form input[type=tel],
.store-form input[type=date],
.store-form input[type=time],
.store-form input[type=datetime-local],
.store-form input[type=file],
.store-form input[type=month],
.store-form input[type=week],
.store-form select,
.store-form textarea,
.widget-gift-card .gift-card-input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.045);
}

.store-form .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.store-product-options .actions {
  position: sticky;
  bottom: 12px;
  width: fit-content;
  max-width: 100%;
}

.store-sidebar {
  align-self: start;
}

.widget {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.widget + .widget {
  margin-top: 18px;
}

.widget-title {
  margin-bottom: 18px;
  font-size: 1.45rem;
  color: #fff;
}

.widget-featured .store-product {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.widget-gift-card,
.widget-community-goal .widget-content,
.widget-goal .widget-content,
.widget-server-status .widget-content,
.widget-top-donator {
  text-align: center;
}

.widget-gift-card .check {
  width: 100%;
}

.widget-recent .purchase {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.widget-recent .purchase:last-child {
  border-bottom: none;
}

.widget-recent .avatar,
.widget-top-donator .avatar {
  border-radius: 999px;
  object-fit: cover;
}

.widget-recent .avatar {
  width: 42px;
  height: 42px;
}

.widget-top-donator .avatar {
  margin: 0 auto 12px;
  width: 96px;
  height: 96px;
}

.widget-community-goal .progress,
.widget-goal .progress {
  height: 12px;
  margin: 14px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8d1117, #dc3440);
}

.widget-community-goal .goal-image {
  margin: 0 auto 14px;
  max-width: 110px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.badge-success {
  color: #dfffe5;
  background: rgba(59, 170, 91, 0.18);
}

.badge-danger {
  color: #ffd6d9;
  background: rgba(185, 25, 32, 0.22);
}

.site-footer {
  margin-top: 8px;
  border-top: 1px solid var(--color-border);
  background: rgba(7, 7, 8, 0.88);
}

.site-footer-inner {
  display: grid;
  gap: 18px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

@media (width > 960px) {
  .site-footer-inner {
    grid-template-columns: 1fr auto;
  }
}

.footer-brand {
  display: grid;
  gap: 4px;
}

.footer-brand strong {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.footer-brand span,
.copyright {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
}

.we-accept {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.we-accept img {
  max-width: 58px;
  max-height: 28px;
}

.copyright {
  grid-column: 1 / -1;
}

.popup {
  --fade-duration: 280ms;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden auto;
  background: rgba(3, 3, 4, 0.82);
  transition:
    opacity var(--fade-duration) ease,
    background-color var(--fade-duration) ease,
    display var(--fade-duration) allow-discrete;
}

.popup[hidden] {
  display: none;
  opacity: 0;
}

.popup-scroll-cont {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.popup-content {
  position: relative;
  width: min(100%, 760px);
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel-strong);
  box-shadow: var(--shadow-card);
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: transparent;
  font-size: 0;
  background: rgba(255, 255, 255, 0.06);
}

.popup-close::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  background-color: #fff;
  mask: url("https://template-assets.tebex.io/images/close.svg") center / contain no-repeat;
}

.basket-popup .popup-scroll-cont {
  justify-content: flex-end;
  padding: 0;
}

.basket-popup-content {
  display: flex;
  flex-direction: column;
  width: min(100%, 560px);
  min-height: 100vh;
  padding: 0;
  border-radius: 0;
  background: #0a090b;
}

.basket-empty {
  margin: auto;
  padding: 30px;
  color: var(--color-text-secondary);
  text-align: center;
  font-size: 1.1rem;
}

.basket .basket-header {
  padding: 28px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.04);
}

.basket .basket-title {
  font-size: 2rem;
}

.basket .basket-second-header,
.basket .basket-checkout {
  padding: 18px 28px;
  border-bottom: 1px solid var(--color-border);
}

.basket .basket-second-header {
  display: flex;
  justify-content: space-between;
  color: var(--color-text-secondary);
}

.basket .basket-content {
  flex: 1;
  overflow: auto;
}

.basket-items {
  display: grid;
  gap: 16px;
  padding: 22px 28px;
}

.basket-item {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.basket-item .info {
  flex: 1 1 220px;
}

.basket-item .title {
  font-size: 1.55rem;
}

.basket-item .options {
  margin: 10px 0;
  color: var(--color-text-secondary);
}

.basket-item .price strong,
.basket .basket-second-header strong,
.basket .basket-checkout strong {
  color: #fff;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.55rem;
}

.basket-item .remove {
  --btn-icon: url("https://template-assets.tebex.io/images/delete.svg");
}

.basket .basket-checkout {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  border-bottom: none;
}

.basket .basket-checkout h3 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 16px;
}

.basket .basket-checkout .checkout {
  width: 100%;
}

.toaster {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  width: min(calc(100% - 24px), 560px);
  margin: 0 auto;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 12px 12px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(18, 15, 18, 0.96);
  box-shadow: var(--shadow-card);
  pointer-events: auto;
}

.toast.toast-warning {
  background: rgba(144, 105, 8, 0.96);
}

.toast.toast-error {
  background: rgba(131, 18, 25, 0.96);
}

.toast.toast-success {
  background: rgba(32, 110, 56, 0.96);
}

.toast-close {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border-radius: 999px;
  color: transparent;
  font-size: 0;
  background: rgba(255, 255, 255, 0.08);
}

.toast-close::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  margin: auto;
  background-color: #fff;
  mask: url("https://template-assets.tebex.io/images/close.svg") center / contain no-repeat;
}

.media-slider {
  display: grid;
  gap: 14px;
}

.media-slider .slider,
.media-slider .thumb,
.popup.popup-media-slider .thumb {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.media-slider .slider {
  min-height: 280px;
  overflow: hidden;
}

.media-slider .slide-image,
.popup.popup-media-slider .slide-image {
  width: 100%;
  min-height: 260px;
  max-height: 620px;
  object-fit: contain;
}

.media-slider .slide-frame,
.popup.popup-media-slider .slide-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.media-slider .thumbs,
.popup.popup-media-slider .thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.media-slider .thumb,
.popup.popup-media-slider .thumb {
  width: 84px;
  height: 84px;
  padding: 8px;
  cursor: pointer;
}

.media-slider .thumb-image,
.media-slider .thumb-youtube,
.popup.popup-media-slider .thumb-image,
.popup.popup-media-slider .thumb-youtube {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-slider .open-lightbox {
  justify-self: end;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.popup.popup-media-slider {
  display: grid;
  place-items: center;
  padding: 18px;
}

.popup.popup-media-slider .slider {
  width: min(100%, 1200px);
}

.store-category-tiered {
  padding: clamp(20px, 3vw, 34px);
}

.store-category-tiered-header {
  margin-bottom: 24px;
}

.store-products-tiered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.store-product-tiered {
  display: grid;
  gap: 16px;
}

.store-product-tiered .descr {
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.store-quote {
  width: min(100%, 780px);
  margin-inline: auto;
}

.quote-actions {
  display: flex;
  gap: 12px;
}

.quote-actions .wide {
  flex: 1 1 50%;
}

@media (width <= 960px) {
  .text-content h1 {
    font-size: 2.15rem;
  }

  .text-content h2 {
    font-size: 1.8rem;
  }

  .site-title {
    font-size: 3.3rem;
  }

  .kms-home-hero h2 {
    font-size: 3.4rem;
  }

  .kms-home-hero .lead {
    font-size: 1.12rem;
  }

  .store-product-full .product-title {
    font-size: 2.25rem;
  }

  .site-header-inner {
    min-height: 430px;
  }

  .site-header-inner .actions {
    top: 18px;
  }

  .site-header-inner .log-in,
  .site-header-inner .user-actions {
    top: 18px;
  }

  .site-title {
    inset: 108px 0 auto;
    max-width: 100%;
    min-height: 150px;
    padding-inline: 32px;
  }

  .site-title img {
    max-height: 180px;
  }

  .brand-kicker {
    inset: 280px 0 auto;
  }

  .site-header-inner .info {
    top: 324px;
    width: calc(50% - 8px);
    min-height: 92px;
  }

  .site-header-inner .info.server {
    left: 0;
  }

  .site-header-inner .info.discord {
    right: 0;
  }

  .kms-home-hero {
    grid-template-columns: 1fr;
  }

  .kms-service-grid,
  .kms-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .navigation-horizontal .menu {
    border-radius: var(--radius-md);
    justify-content: flex-start;
  }

  .store-product-full .actions {
    position: static;
  }
}

@media (width <= 700px) {
  .text-content h1 {
    font-size: 1.95rem;
  }

  .text-content h2 {
    font-size: 1.6rem;
  }

  .site-title {
    font-size: 2.8rem;
  }

  .kms-home-hero h2 {
    font-size: 2.8rem;
  }

  .kms-home-hero .lead {
    font-size: 1.02rem;
  }

  .store-product-full .product-title {
    font-size: 2rem;
  }

  .site-header-inner {
    min-height: 520px;
  }

  .site-header-inner .user-actions {
    gap: 8px;
  }

  .site-header-inner .user-name {
    display: none;
  }

  .kms-announcement,
  .kms-welcome-offer {
    border-radius: var(--radius-md);
  }

  .kms-welcome-offer {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-kicker {
    inset: 286px 0 auto;
    font-size: 0.98rem;
  }

  .brand-kicker-mark {
    width: 28px;
  }

  .site-header-inner .info {
    top: 346px;
    width: 100%;
  }

  .site-header-inner .info.discord {
    top: 452px;
  }

  .site-home-categories {
    grid-template-columns: 1fr;
  }

  .site-home-categories .category {
    min-height: 108px;
  }

  .kms-service-grid,
  .kms-stats-grid {
    grid-template-columns: 1fr;
  }

  .kms-service-card {
    min-height: 0;
  }

  .store-products-images {
    grid-template-columns: 1fr;
  }

  .store-product .half,
  .quote-actions .wide {
    flex-basis: 100%;
  }

  .basket-popup-content {
    width: 100%;
  }

  .basket-item {
    align-items: stretch;
  }
}
