/*
 * Prism SMP store - layout & components.
 * Based on the "Atom" Tebex template by qSeek (https://qseek.org), licensed to Prism SMP,
 * ported from Tebex Twig/Bootstrap to the self-hosted headless store.
 */

/* ==========================================================================
   Base (replaces the Bootstrap 3 base the Tebex template relied on)
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  --spacing: 8px;
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.43;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

::selection {
  background: var(--main-color);
  color: var(--white);
}

img {
  max-width: 100%;
  vertical-align: middle;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--heading);
  line-height: 1.2;
}

p {
  line-height: 1.5;
  margin: 0 0 10px;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

small {
  font-size: 85%;
}

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

.container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
@media (min-width: 1200px) {
  .container {
    width: 1200px;
  }
}

#app {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--main-color);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}

.noscript {
  padding: 40px;
  text-align: center;
}

/* helpers (Atom) */
.ml-auto {
  margin-left: auto;
}
.d-flex {
  display: flex;
}
.gap-8 {
  gap: 8px;
}
.flex-1 {
  flex: 1;
}
.justify-center {
  justify-content: center;
}
.justify-end {
  justify-content: flex-end;
}
.flex-wrap {
  flex-wrap: wrap;
}
.align-center {
  align-items: center;
}
.d-none {
  display: none !important;
}
.only-mobile {
  display: none !important;
}
.muted {
  color: var(--text);
  opacity: 0.8;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Header background (blurred scene, like Atom's .headerbg)
   ========================================================================== */
.headerbg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  padding-top: min(56.25%, 820px);
  overflow: hidden;
  /* below the fixed seasonal layer (stars, moon, ghosts) */
  z-index: -1;
  pointer-events: none;
}
.headerbg > svg,
.headerbg > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.03);
}
.headerbg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    var(--background),
    var(--background) 10%,
    color-mix(in srgb, var(--background) 62%, transparent) 42%,
    color-mix(in srgb, var(--background) 20%, transparent) 100%
  );
}

/* ==========================================================================
   Buttons (Atom)
   ========================================================================== */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 8px;
  border: 0;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  text-decoration: none !important;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
  user-select: none;
}
.button:hover,
.button:focus {
  color: var(--white);
}
.button:active {
  transform: translateY(1px);
}
.button:disabled {
  opacity: 0.6;
  cursor: default;
}
.button > .mdi {
  font-size: 1.25em;
  line-height: 1;
}

.button--primary {
  background: var(--main-color);
  color: var(--white);
}
.button--primary:hover {
  background: var(--main-color-hover);
}
.button--success {
  background: var(--green);
  color: var(--white);
}
.button--success:hover {
  background: var(--green-hover);
}
.button--danger {
  background: var(--red);
  color: var(--white);
}
.button--danger:hover {
  background: var(--red-hover);
}
.button--select {
  background: var(--panel);
  color: var(--heading);
  outline: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 14px;
}
.button--icon {
  padding: 12px 16px;
}
.button--icon > .mdi {
  color: rgba(255, 255, 255, 0.85);
}
.button--square {
  width: 44px;
  padding: 12px 0;
}
.button-mw {
  display: flex;
  width: 100%;
  padding: 16px 0;
}
.button--checkout {
  background: var(--green);
  color: var(--white);
  font-weight: 700;
}
.button--checkout:hover {
  background: var(--green-hover);
}
.button--shopping {
  border: 1px solid var(--main-color);
  color: var(--main-color);
  font-weight: 700;
}
.button--shopping:hover {
  background: var(--main-color-hover);
  border-color: var(--main-color-hover);
}
.button--logout {
  background: var(--red);
  color: var(--white);
}
.button--logout:hover {
  background: var(--red-hover);
}
.button--header {
  background: var(--transparent);
  border-radius: 25px;
  color: var(--white);
  font-weight: 700;
  border: 1px solid var(--transparent);
  padding: 11px 20px;
}
[data-theme='light'] .button--header {
  color: var(--heading);
}
.button--header:hover {
  background: var(--transparent-hover);
  color: var(--white);
}
[data-theme='light'] .button--header:hover {
  color: var(--heading);
}
.button--block {
  width: 100%;
}
.button--round {
  width: 44px;
  height: 44px;
  padding: 0;
}
.button--sm {
  padding: 8px 14px;
  font-size: 0.9em;
}

.button.is-loading {
  color: transparent !important;
  pointer-events: none;
}
.button.is-loading > * {
  visibility: hidden;
}
.button.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.input {
  display: block;
  width: 100%;
  border-radius: 8px;
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--heading);
  margin: 0;
  padding: 12px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.input:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.input::placeholder {
  color: var(--text);
  opacity: 0.6;
}
.input--disabled,
.input:disabled {
  background: var(--border);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.link {
  color: var(--color-accent);
  font-weight: 600;
}

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing);
  margin: 24px 0;
  position: relative;
  z-index: 3;
}
.topbar::after {
  content: ' ';
  position: absolute;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  bottom: -24px;
}
.topbar__right,
.topbar__left {
  display: flex;
  gap: var(--spacing);
  align-items: center;
}

.profile {
  position: relative;
  background: var(--main-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 12px 24px;
  gap: var(--spacing);
  cursor: pointer;
  opacity: 0.85;
  user-select: none;
  transition:
    opacity 0.5s,
    box-shadow 0.2s;
}
.profile.logged,
.profile:hover {
  opacity: 1;
}
.profile.logged:hover {
  box-shadow: var(--main-color) 0 0 14px -6px;
}
.profile__data {
  text-align: center;
}
.profile__name {
  color: var(--white);
  font-weight: 700;
  font-size: 1.15em;
}
.profile__value {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}
.profile__avatar {
  height: 85px;
  overflow-y: clip;
  margin: -24px 0 -12px;
}
.profile__avatar > img {
  height: 125px;
  image-rendering: pixelated;
}
.profile__badge {
  position: absolute;
  top: -8px;
  left: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--red);
  color: #fff;
  font-size: 0.78em;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid var(--background);
}
.profile.pulse,
.button-basket.pulse {
  animation: pulse 0.6s ease;
}
@keyframes pulse {
  30% {
    transform: scale(1.06);
    box-shadow: 0 0 0 6px var(--accent-glow);
  }
}

/* dropdowns (theme switcher, quantity) */
.dropdown-list {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: var(--spacing);
  z-index: 40;
  background-color: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--spacing);
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  list-style: none;
}
.dropdown-list.open > .dropdown-menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing);
  width: 206px;
}
.dropdown-menu > li {
  flex: 45%;
}
.dropdown-menu > li > a,
.dropdown-menu > li > button {
  display: block;
  width: 100%;
  color: var(--text);
  border-radius: 8px;
  background: var(--border);
  padding: 12px 0;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > button:hover,
.dropdown-menu > li.active > button {
  background: var(--main-color);
  color: var(--white);
}

/* ==========================================================================
   Header: logo + statistics + announcement
   ========================================================================== */
.atomheader {
  position: relative;
  z-index: 2;
  display: flex;
  margin: 48px -7px 16px;
  gap: var(--spacing);
  align-items: center;
}
.header__logo {
  width: 33.333%;
  display: flex;
  justify-content: center;
}
.header__content {
  width: 66.667%;
}
.header-statistics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.server {
  display: flex;
  align-items: center;
  gap: var(--spacing);
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.server:hover {
  text-decoration: none;
}
.server__icon {
  color: var(--color-accent);
  font-size: 5em;
  line-height: 1;
}
.server__icon > span::before {
  text-shadow: 0 0 12px var(--accent-glow);
}
.server:hover .server__icon {
  animation: wobble 0.5s ease;
}
.server__name {
  color: var(--heading);
  font-weight: 700;
  font-size: 1.4em;
}
.server__online {
  color: var(--color-accent);
  font-weight: 700;
}
.server__online > .highlighted {
  background: var(--color-accent);
  border-radius: 25px;
  padding: 0 var(--spacing);
  color: var(--border);
}
.server__online > .highlighted--off {
  background: var(--red);
  color: #fff;
}

.socials {
  display: flex;
  gap: var(--spacing);
}
.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
}
.social__icon {
  color: var(--color-accent);
  font-size: 3.5em;
  line-height: 1.1;
  text-shadow: 0 0 10px var(--accent-glow);
  transition: transform 0.2s;
}
.social__icon svg {
  width: 0.78em;
  height: 0.78em;
  fill: currentColor;
  margin: 0.11em;
  vertical-align: middle;
  filter: drop-shadow(0 0 5px var(--accent-glow));
}
.social:hover .social__icon {
  transform: translateY(-3px);
}
.social__status {
  background: var(--transparent);
  border: 1px solid var(--transparent);
  border-radius: 25px;
  padding: 0 var(--spacing);
  color: var(--white);
  font-weight: 600;
  position: relative;
  width: 64px;
  height: 28px;
}
[data-theme='light'] .social__status {
  color: var(--heading);
}
.social__text {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  width: max-content;
  height: max-content;
  transition:
    visibility 0s,
    opacity 0.5s linear,
    transform 0.5s;
  transform: translateY(0);
}
.social__text--hover,
.social:hover .social__text {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-5px);
}
.social__text--hover {
  transform: translateY(5px);
}
.social:hover .social__text--hover {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.announcement {
  position: relative;
  background: var(--panel);
  border-radius: 8px;
  border: 1px solid var(--color-accent);
  display: flex;
  padding: 16px;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  box-shadow: 0 0 24px -10px var(--accent-glow);
  overflow: hidden;
}
.announcement::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.05) 45%, transparent 60%);
  transform: translateX(-100%);
  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  60%,
  100% {
    transform: translateX(100%);
  }
}
.announcement__icon {
  background: var(--color-accent);
  width: 48px;
  height: 48px;
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  font-size: 2em;
  border-radius: 25px;
}
[data-theme='halloween'] .announcement__icon {
  background: radial-gradient(circle at 50% 40%, #ffb347, #ee7a1f 70%);
  box-shadow: 0 0 18px rgba(255, 140, 40, 0.6);
  animation: flicker 3s infinite;
}
.announcement__title {
  color: var(--color-accent);
  font-weight: 700;
}
.announcement__title .atom-countdown {
  font-variant-numeric: tabular-nums;
}
.announcement__info {
  color: var(--heading);
  font-weight: 600;
  font-size: 1.2em;
}
.announcement__data {
  flex: 1;
}
.announcement__code {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 2px dashed var(--color-accent);
  color: var(--color-accent);
  font-weight: 800;
  letter-spacing: 0.08em;
}

@keyframes flicker {
  0%,
  100% {
    filter: brightness(1);
  }
  45% {
    filter: brightness(1.25);
  }
  50% {
    filter: brightness(0.85);
  }
  55% {
    filter: brightness(1.2);
  }
}
@keyframes wobble {
  25% {
    transform: rotate(-8deg);
  }
  75% {
    transform: rotate(8deg);
  }
}

/* ==========================================================================
   Logo (built-in text logo, used when no logo image is configured)
   ========================================================================== */
.logo {
  position: relative;
  display: inline-grid;
  justify-items: center;
  padding: 26px 0 6px;
  text-decoration: none !important;
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: rotate(-1deg) scale(1.03);
}
.logo--image {
  display: block;
  position: relative;
  transform: none;
  padding: 8px 0;
  width: 100%;
  max-width: 360px;
}
.logo--image:hover {
  transform: scale(1.03) rotate(-1deg);
}
.logo--image img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55));
}
.logo--image .logo__hat {
  top: -10px;
  left: -4px;
  width: 22%;
  margin-left: 0;
}
.logo__text {
  position: relative;
  font-family: var(--font-display);
  font-size: 4.9rem;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--logo-depth);
  -webkit-text-stroke: 2.5px var(--logo-stroke);
  transform: translateY(6px);
  filter: drop-shadow(0 0 18px var(--accent-glow)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
  z-index: 1;
}
.logo__text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: -6px;
  background: var(--logo-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--logo-stroke);
}
.logo__sub {
  margin-top: -2px;
  padding: 3px 16px 1px;
  border-radius: 8px;
  background: var(--logo-sub);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  border: 2.5px solid var(--logo-stroke);
  box-shadow: 0 4px 0 var(--logo-stroke);
  z-index: 2;
}
.logo__season {
  margin-top: 8px;
  font-family: var(--font-spooky);
  font-size: 1.45rem;
  color: var(--season);
  letter-spacing: 0.06em;
  text-shadow:
    0 0 14px var(--accent-glow),
    0 2px 0 rgba(0, 0, 0, 0.6);
}
.logo__hat {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 80px;
  margin-left: -158px;
  transform: rotate(-22deg);
  z-index: 3;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
  animation: hat-wobble 5s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.logo__hat svg {
  display: block;
  width: 100%;
}
@keyframes hat-wobble {
  0%,
  100% {
    transform: rotate(-22deg);
  }
  50% {
    transform: rotate(-15deg) translateY(-2px);
  }
}

/* ==========================================================================
   Body: sidebar + content
   ========================================================================== */
.body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 33.333% minmax(0, 1fr);
  margin: 0 -8px;
  padding-bottom: 48px;
  flex: 1;
}
.body .sidebar,
.body .content {
  padding-left: var(--spacing);
  padding-right: var(--spacing);
  min-width: 0;
}

.panel {
  position: relative;
  background-color: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.6);
}
.panel .panel-heading {
  padding: 14px 15px 4px;
  color: var(--main-color);
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.3em;
  letter-spacing: 0.02em;
}
.panel .panel-body {
  padding: 15px;
}

/* navigation */
.navigation__item {
  position: relative;
  margin: var(--spacing) 0;
  display: flow-root;
  border-radius: 6px;
  transition: background 0.2s;
}
.navigation__item:first-child {
  margin-top: 0;
}
.navigation__item:last-child {
  margin-bottom: 0;
}
.navigation__item a {
  color: var(--heading);
  font-weight: 700;
  font-size: 1.3em;
  text-decoration: none;
}
.navigation__item > a,
.navigation__item > .navigation__toggle {
  padding: 22px 16px;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 70px;
}
.navigation__item.active,
.navigation__item:hover,
.navigation__item.open {
  background: var(--border);
}
.navigation__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin: -44px 12px -44px 0;
  flex: none;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s ease;
}
.navigation__item:hover .navigation__icon {
  transform: rotate(-8deg) scale(1.1);
}
.navigation__toggle {
  color: var(--heading);
  font-weight: 700;
  font-size: 1.3em;
  text-align: left;
}
.navigation__toggle > .mdi {
  display: flex;
  background: var(--border);
  width: 24px;
  height: 24px;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  margin-left: auto;
  transition: transform 0.4s;
}
.navigation__item.open .navigation__toggle > .mdi {
  transform: rotate(-180deg);
  background: var(--panel);
}
.navigation-dropdown-menu {
  display: none;
  padding: 0 0 8px;
}
.navigation__item.open .navigation-dropdown-menu {
  display: block;
}
.navigation-dropdown-menu > div > a {
  padding: 6px 16px 6px 72px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05em;
  color: var(--text);
}
.navigation-dropdown-menu > div > a:hover,
.navigation-dropdown-menu > div > a.active {
  background: var(--background);
  color: var(--heading);
}
/* navigation tags ("LIMITED EDITION") */
.navigation__item--tagged {
  outline: 1px solid var(--main-color);
  outline-offset: -1px;
}
.navigation__tag {
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 3px 10px;
  border-radius: 0 6px 0 8px;
  background: var(--main-color);
  color: var(--white);
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.navigation__tag--hot {
  background: linear-gradient(90deg, #d43246, #ee7a1f);
  animation: tag-glow 2.2s ease-in-out infinite;
}
.navigation__tag--new {
  background: var(--secondary);
}
.navigation__tag--sale {
  background: var(--green);
}
@keyframes tag-glow {
  50% {
    box-shadow: 0 0 14px rgba(255, 90, 40, 0.8);
  }
}

/* mobile "start shopping" button */
.button-menu {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--main-color) 0%, var(--main-color) 50%, var(--main-color-hover) 50%, var(--main-color-hover) 100%);
  background-size: 200%;
  background-position-x: left;
  cursor: pointer;
  text-align: left;
  transition: background 0.4s;
}
.button-menu:hover {
  background-position-x: right;
}
.button-menu__icon img {
  width: 56px;
  height: 56px;
}
.button-menu__heading {
  font-weight: 700;
  color: var(--white);
  font-size: 1.4em;
}
.button-menu__subheading {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.05em;
  color: rgba(255, 255, 255, 0.8);
}
.button-menu__hamburger {
  font-size: 3em;
  color: var(--white);
  margin-left: auto;
}

/* ==========================================================================
   Sidebar modules
   ========================================================================== */
.panel-body__top-customer {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.top-customer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: -6px;
}
.top-customer__avatar {
  height: 100px;
  overflow-y: clip;
}
.top-customer__avatar > img {
  height: 140px;
  image-rendering: pixelated;
}
.top-donator__name {
  color: var(--heading);
  font-weight: 700;
  font-size: 1.2em;
}
.top-donator__name .mdi {
  color: #ffc933;
  filter: drop-shadow(0 0 6px rgba(255, 201, 51, 0.6));
}
.top-donator__amount {
  color: var(--main-color);
}
.attach-payments {
  background: var(--border);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.recent-payments {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing);
}
.recent-payments__user {
  position: relative;
  border-radius: 4px;
}
.recent-payments__user img {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  image-rendering: pixelated;
  display: block;
  transition: transform 0.2s;
}
.recent-payments__user:hover img {
  transform: translateY(-3px) scale(1.1);
}
.recent-payments__user .tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 200px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #000;
  color: #fff;
  font-size: 0.85em;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
  z-index: 10;
  pointer-events: none;
}
.recent-payments__user:hover .tip,
.recent-payments__user:focus .tip {
  opacity: 1;
  visibility: visible;
}
.recent-payments__heading {
  text-align: center;
  font-weight: 700;
  font-size: 0.9em;
  margin-top: var(--spacing);
}

.status {
  display: flex;
  align-items: center;
  gap: 12px;
}
.status > div {
  flex: 1;
  display: grid;
  line-height: 1.3;
}
.status strong {
  color: var(--heading);
}
.status__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text);
  flex: none;
}
.status.is-online .status__dot {
  background: var(--green);
  animation: ping 2s infinite;
}
.status.is-offline .status__dot {
  background: var(--red);
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(82, 180, 58, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
}

.goalbar {
  text-align: center;
}
.goalbar p {
  margin: 0 0 10px;
}
.progress {
  height: 30px;
  border-radius: 8px;
  background-color: var(--background);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background-color: var(--main-color);
  box-shadow: 0 0 14px var(--accent-glow);
}
.progress-striped .progress-bar {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-size: 40px 40px;
}
.progress.active .progress-bar {
  animation: progress-stripes 1s linear infinite;
}
@keyframes progress-stripes {
  from {
    background-position: 40px 0;
  }
  to {
    background-position: 0 0;
  }
}

/* ==========================================================================
   Content: home
   ========================================================================== */
.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.home-header__subheading {
  color: var(--heading);
  font-weight: 700;
  text-transform: uppercase;
}
.home-header__heading {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.6em;
}
.home-header__goal {
  display: flex;
  background: var(--border);
  margin-right: -16px;
  border-top-left-radius: 100px;
  border-bottom-left-radius: 100px;
  padding: 8px 16px 8px 8px;
  align-items: center;
  gap: var(--spacing);
}
.goal__progress {
  position: relative;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--color-accent) calc(var(--progress, 0) * 1%), var(--panel) 0);
  display: grid;
  place-items: center;
}
.goal__progress::after {
  content: attr(data-progress) '%';
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9em;
  color: var(--heading);
}
.goal__heading {
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8em;
}
.goal__subheading {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9em;
}
.content p,
.rich p {
  line-height: 1.8;
}
.payment-methods {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background: var(--border);
  padding: 16px;
  border-radius: 8px;
  gap: 12px;
  margin-top: 16px;
}
.paymethods {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.paymethod {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  white-space: nowrap;
  height: 30px;
  min-width: 48px;
  padding: 0 8px;
  border-radius: 5px;
  background: #fff;
  color: #1a1f71;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
  font-style: italic;
}
.paymethod--mc {
  font-style: normal;
  gap: 0;
}
.paymethod--mc i {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #eb001b;
}
.paymethod--mc i + i {
  background: #f79e1b;
  margin-left: -6px;
  mix-blend-mode: multiply;
}
.paymethod--paypal {
  color: #003087;
}
.paymethod--paypal span {
  color: #009cde;
}
.paymethod--apple {
  color: #000;
  font-style: normal;
}
.paymethod--gpay {
  color: #5f6368;
  font-style: normal;
}
.paymethod--psc {
  color: #fff;
  background: #008ac9;
  font-style: normal;
}

.steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: var(--border);
}
.steps li > span {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--main-color);
  color: var(--white);
  font-weight: 800;
}
.steps li > div {
  display: grid;
  line-height: 1.3;
}
.steps strong {
  color: var(--heading);
}
.steps small {
  font-size: 0.85em;
}

/* ==========================================================================
   Content: category
   ========================================================================== */
.category-title {
  position: relative;
  background: var(--main-color);
  border-radius: 8px;
  font-size: 1.4em;
  font-weight: 700;
  color: var(--white);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: var(--spacing);
  margin-bottom: var(--spacing);
  overflow: hidden;
}
.category-title > .mdi {
  color: rgba(255, 255, 255, 0.75);
}
.category-title--red {
  background: #d04c4c;
}
.category-title--green {
  background: #3fb35f;
}
.category-title--with-desc {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
}
.category-title .navigation__tag {
  position: static;
  border-radius: 6px;
  font-size: 0.5em;
  background: rgba(0, 0, 0, 0.25);
}
.category-title__more {
  margin-left: auto;
  font-size: 0.62em;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.category-title__more:hover {
  color: #fff;
}
.category-desc {
  background: var(--border);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 12px 16px;
  margin-bottom: var(--spacing);
}
.category-desc > :last-child,
.category-desc p:last-child {
  margin-bottom: 0;
}
.category {
  margin-top: 8px;
}
.subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.subcat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 8px;
  background: var(--border);
  color: var(--heading);
  font-weight: 700;
  text-decoration: none !important;
}
.subcat:hover {
  background: var(--main-color);
}
.subcat img {
  width: 28px;
  height: 28px;
}

/* --------------------------------------------------------------------------
   Package cards (grid)
   -------------------------------------------------------------------------- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 14px;
}
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 45%),
    var(--border);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 26px -22px rgba(0, 0, 0, 0.9);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  isolation: isolate;
}
.pcard:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--main-color) 55%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 26px 40px -24px var(--accent-glow),
    0 0 0 1px color-mix(in srgb, var(--main-color) 20%, transparent);
}
.pcard.is-owned {
  border-color: color-mix(in srgb, var(--green) 45%, transparent);
}
.pcard__media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 184px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background:
    radial-gradient(52% 48% at 50% 56%, color-mix(in srgb, var(--main-color) 24%, transparent) 0%, transparent 72%),
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 60%);
}
/* light rays behind the item on hover */
.pcard__media::before,
.pmodal__media::before {
  content: '';
  position: absolute;
  inset: -45%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--color-accent) 16%, transparent) 0deg 7deg, transparent 7deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.6) 18%, transparent 46%);
  mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.6) 18%, transparent 46%);
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: rays 18s linear infinite;
  pointer-events: none;
}
.pcard:hover .pcard__media::before {
  opacity: 1;
}
@keyframes rays {
  to {
    transform: rotate(360deg);
  }
}
/* soft floor shadow */
.pcard__media::after {
  content: '';
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: 26px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.45), transparent);
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.45s;
}
.pcard:hover .pcard__media::after {
  transform: scale(0.75);
  opacity: 0.55;
}
.pcard__lift {
  position: relative;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pcard:hover .pcard__lift {
  transform: translateY(-10px) scale(1.07);
}
.pcard__img {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.4));
}
.pcard:hover .pcard__img {
  animation: card-bob 2.6s ease-in-out infinite;
}
@keyframes card-bob {
  50% {
    transform: translateY(-6px) rotate(-2deg);
  }
}
.pcard__hint {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translate(-50%, 6px);
  transition:
    opacity 0.25s,
    transform 0.25s;
  white-space: nowrap;
}
.pcard:hover .pcard__hint,
.pcard__media:focus-visible .pcard__hint {
  opacity: 1;
  transform: translate(-50%, 0);
}
.pcard__tags {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}
.ptag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.74em;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}
.ptag .mdi {
  font-size: 1.15em;
  line-height: 1;
}
.ptag--sale {
  background: linear-gradient(180deg, #ef4b5d, var(--red));
}
.ptag--deal {
  background: linear-gradient(180deg, color-mix(in srgb, var(--green) 78%, #fff), var(--green));
}
.ptimer {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.74em;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}
.ptimer .mdi {
  color: var(--color-accent);
}
.pcard__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 2px 14px 14px;
  text-align: center;
  flex: 1;
}
.pcard__name {
  color: var(--heading);
  font-weight: 700;
  font-size: 1.08em;
  line-height: 1.3;
  transition: color 0.2s;
}
.pcard__name:hover {
  color: var(--color-accent);
}

/* prices */
.pprice {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 7px;
}
.pprice__now {
  color: var(--heading);
  font-weight: 800;
  font-size: 1.2em;
}
.pprice__now small {
  font-size: 0.6em;
  font-weight: 700;
  color: var(--text);
}
.pprice__was {
  color: var(--text);
  opacity: 0.65;
  text-decoration: line-through;
  font-size: 0.86em;
}
.pprice__was small {
  display: none;
}
.pprice__per {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.78em;
  font-weight: 600;
  opacity: 0.8;
}
.pprice--lg .pprice__now {
  font-size: 1.7em;
}
.approx {
  margin-right: 2px;
  opacity: 0.7;
  font-weight: 600;
  cursor: help;
}

/* buy area */
.pactions {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}
.cta {
  position: relative;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  background: linear-gradient(180deg, color-mix(in srgb, var(--green) 80%, #fff 20%), var(--green) 55%, color-mix(in srgb, var(--green) 86%, #000 14%));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 18px -10px color-mix(in srgb, var(--green) 85%, transparent);
  transition:
    transform 0.15s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}
.cta .mdi {
  font-size: 1.3em;
  line-height: 1;
}
.cta::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}
.cta:hover {
  filter: brightness(1.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 12px 24px -10px color-mix(in srgb, var(--green) 95%, transparent);
}
.cta:hover::after {
  left: 130%;
}
.cta:active {
  transform: scale(0.97);
}
.cta--alt {
  background: linear-gradient(180deg, color-mix(in srgb, var(--main-color) 80%, #fff 20%), var(--main-color) 55%, var(--main-color-hover));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 18px -10px var(--accent-glow);
}
.cta--sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.92em;
}
.cta.is-loading {
  color: transparent !important;
  pointer-events: none;
}
.cta.is-loading > * {
  visibility: hidden;
}
.cta.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: spin 0.7s linear infinite;
}
.incart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
  background: color-mix(in srgb, var(--green) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 35%, transparent);
}
.incart .mdi {
  font-size: 1.2em;
  line-height: 1;
}
.incart.cta--sm {
  min-height: 36px;
  flex: none;
}
.stepper {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 42px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.stepper.cta--sm {
  height: 36px;
  padding: 0;
}
.stepper button {
  width: 32px;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--heading);
  transition: background 0.2s;
}
.stepper button:hover {
  background: var(--main-color);
  color: #fff;
}
.stepper span,
.stepper input {
  width: 30px;
  text-align: center;
  font-weight: 800;
  color: var(--heading);
  border: 0;
  background: transparent;
  outline: none;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.stepper--input {
  height: 48px;
}
.stepper--input button {
  width: 40px;
}
.stepper--input input {
  width: 38px;
  font-size: 1.05em;
}
.iconbtn {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.2em;
  transition:
    background 0.2s,
    color 0.2s;
}
.iconbtn:hover {
  background: var(--red);
  border-color: transparent;
  color: #fff;
}
.iconbtn.cta--sm {
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
}

/* feedback after adding to the cart */
.is-added {
  animation: added-ring 0.9s ease-out;
}
@keyframes added-ring {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 70%, transparent);
  }
  100% {
    box-shadow: 0 0 0 16px transparent;
  }
}
.fly-item {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5));
}

/* cards slide in when a page opens */
.is-entering .pcard,
.is-entering .prow,
.is-entering .stack {
  animation: card-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(min(var(--i, 0), 12) * 55ms);
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
}

/* --------------------------------------------------------------------------
   Package rows (list)
   -------------------------------------------------------------------------- */
.packages-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prow {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 10px 16px 10px 10px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 60%),
    var(--border);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s,
    border-color 0.35s;
}
.prow:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--main-color) 50%, transparent);
  box-shadow: 0 18px 32px -22px var(--accent-glow);
}
.prow.is-owned {
  border-color: color-mix(in srgb, var(--green) 45%, transparent);
}
.prow__media {
  width: 104px;
  height: 104px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--main-color) 24%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.03);
}
.prow__media img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.prow:hover .prow__media img {
  transform: translateY(-5px) scale(1.07) rotate(-3deg);
}
.prow__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.prow__head .ptimer,
.prow__head .ptag {
  position: static;
}
.prow__name {
  color: var(--heading);
  font-weight: 700;
  font-size: 1.1em;
  text-align: left;
}
.prow__name:hover {
  color: var(--color-accent);
}
.prow__desc {
  margin: 4px 0 0;
  font-size: 0.92em;
  line-height: 1.55 !important;
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prow__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 180px;
}
.prow__side .pprice {
  justify-content: flex-end;
}
.prow__side .pactions {
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Stacked packages (x1 / x3 / x9)
   -------------------------------------------------------------------------- */
.stack + .stack {
  margin-top: 20px;
}
.stack__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 10px;
}
.stack__head h3 {
  font-size: 1.15em;
}
.stack__head .link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88em;
}
.stack__grid {
  display: grid;
  grid-template-columns: 150px repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}
.stack__media {
  display: grid;
  place-items: center;
  min-height: 150px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--main-color) 26%, transparent), transparent 70%),
    var(--border);
}
.stack__media img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45));
  animation: bob 4s ease-in-out infinite;
}
.stackcell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 150px;
  padding: 18px 8px 14px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 55%),
    var(--border);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s,
    box-shadow 0.3s,
    background 0.3s;
}
.stackcell:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--main-color) 60%, transparent);
  box-shadow: 0 18px 30px -20px var(--accent-glow);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--main-color) 16%, transparent), rgba(255, 255, 255, 0) 70%),
    var(--border);
}
.stackcell__qty {
  font-size: 2.1em;
  font-weight: 800;
  color: var(--heading);
  line-height: 1;
}
.stackcell .pprice__now {
  font-size: 1em;
}
.stackcell__cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8em;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: background 0.2s;
}
.stackcell:hover .stackcell__cta {
  background: var(--green-hover);
}
.stackcell__save {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72em;
  font-weight: 800;
  line-height: 1.5;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 16%, transparent);
}
.stackcell__save.is-empty {
  visibility: hidden;
}
.stackcell.is-best {
  padding-top: 26px;
  border-color: color-mix(in srgb, var(--main-color) 45%, transparent);
}
.stackcell.is-best::before {
  content: 'BEST VALUE';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 3px 0;
  font-size: 0.64em;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(90deg, var(--main-color), var(--color-accent));
}
.stackcell.is-owned {
  border-color: color-mix(in srgb, var(--green) 50%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--green) 14%, transparent), transparent 70%),
    var(--border);
}
.stackcell.is-owned .stackcell__cta {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 14%, transparent);
  box-shadow: none;
}
.stackcell .when-hover {
  display: none;
}
.stackcell.is-owned:hover .stackcell__cta {
  color: #fff;
  background: var(--red);
}
.stackcell.is-owned:hover .when-idle {
  display: none;
}
.stackcell.is-owned:hover .when-hover {
  display: inline;
}
.stackcell.is-loading {
  color: transparent !important;
  pointer-events: none;
}
.stackcell.is-loading > * {
  visibility: hidden;
}
.stackcell.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid var(--main-color);
  border-color: var(--main-color) transparent var(--main-color) transparent;
  animation: spin 0.7s linear infinite;
}

/* --------------------------------------------------------------------------
   Comparison table (like the Atom "Comparison Addon")
   -------------------------------------------------------------------------- */
.compare {
  overflow-x: auto;
  border-radius: 14px;
  background: var(--border);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 8px;
}
.compare table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
}
.compare th,
.compare td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.compare tbody tr:last-child > * {
  border-bottom: 0;
}
.compare thead th {
  vertical-align: bottom;
}
.compare__corner {
  text-align: center !important;
  vertical-align: middle !important;
  width: 26%;
  font-size: 0.85em;
  font-weight: 500;
}
.compare__corner .mdi {
  display: block;
  font-size: 2.2em;
  color: var(--main-color);
}
.compare__pkg {
  position: relative;
  transition: background 0.3s;
}
.compare__pkg:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--main-color) 12%, transparent), transparent);
}
.compare__pkg.is-owned {
  background: linear-gradient(180deg, color-mix(in srgb, var(--green) 12%, transparent), transparent);
}
.compare__media {
  display: block;
  margin: 0 auto 6px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 68%);
}
.compare__media img {
  width: 80px;
  height: 80px;
  margin: 10px auto 0;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.compare__pkg:hover .compare__media img {
  transform: translateY(-6px) scale(1.06);
}
.compare__name {
  display: block;
  color: var(--heading);
  font-weight: 700;
  font-size: 1.02em;
}
.compare__pkg .pprice {
  margin: 2px 0 10px;
}
.compare__pkg .pprice__now {
  font-size: 1em;
}
.compare__buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  max-width: 150px;
  margin: 0 auto;
}
.link--muted {
  color: var(--text);
  font-size: 0.82em;
  font-weight: 500;
  opacity: 0.8;
}
.link--muted:hover {
  color: var(--red);
}
.compare tbody th[scope='row'] {
  text-align: left;
  font-weight: 500;
  position: sticky;
  left: 0;
  background: var(--border);
  z-index: 1;
}
.compare tbody tr:hover > * {
  background: rgba(255, 255, 255, 0.03);
}
.compare__section th {
  text-align: left !important;
  font-size: 0.8em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--main-color);
  background: rgba(0, 0, 0, 0.12) !important;
  position: static !important;
}
.compare .yes {
  color: var(--green);
  font-size: 1.4em;
}
.compare .no {
  color: var(--text);
  opacity: 0.3;
  font-size: 1.2em;
}
.compare .val {
  color: var(--heading);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Package details modal
   -------------------------------------------------------------------------- */
.pmodal {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.pmodal__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  overflow: hidden;
  background:
    radial-gradient(58% 48% at 50% 54%, color-mix(in srgb, var(--main-color) 32%, transparent), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--border);
}
.pmodal__media::before {
  opacity: 0.9;
}
.pmodal__media img {
  position: relative;
  z-index: 1;
  width: 62%;
  max-width: 200px;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.5));
  animation: bob 4s ease-in-out infinite;
}
.pmodal__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 26px 26px 22px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
.pmodal__cat {
  font-size: 0.75em;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--main-color);
}
.pmodal__title {
  font-size: 1.7em;
  font-weight: 800;
  padding-right: 32px;
}
.pmodal__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pmodal__meta .ptimer {
  position: static;
}
.pmodal__meta .pprice {
  justify-content: flex-start;
}
.pmodal__desc {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pmodal .pactions {
  margin-top: 4px;
}
.pmodal .cta {
  min-height: 48px;
  font-size: 1.02em;
}
.pmodal .incart,
.pmodal .iconbtn,
.pmodal .stepper {
  min-height: 48px;
  height: 48px;
}
.pmodal__gift {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9em;
}
.pmodal .gift-fields .cta {
  flex: none;
}
.pmodal__note {
  margin: 4px 0 0;
  font-size: 0.82em;
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pmodal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3em;
  color: var(--heading);
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.2s;
}
.pmodal__close:hover {
  background: var(--red);
  color: #fff;
}

/* featured package module */
.featured-package {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.featured-package__media img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.featured-package__media:hover img {
  transform: translateY(-6px) scale(1.06);
}
.basket-note {
  margin: 8px 4px 0;
  font-size: 0.8em;
  opacity: 0.8;
}
.checkout-summary .estimate dt,
.checkout-summary .estimate dd {
  font-size: 0.9em;
  opacity: 0.75;
}

/* ==========================================================================
   Player basket (slide-in)
   ========================================================================== */
.player-basket {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-left: 1px solid var(--border);
  height: 100vh;
  height: 100dvh;
  padding: 16px;
  transform: translateX(100%);
  max-width: 90%;
  width: 450px;
  visibility: hidden;
  transition:
    transform 0.5s,
    visibility 0s 0.5s;
}
.player-basket.shown {
  transform: translateX(0);
  visibility: visible;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s;
}
.player-basket__info {
  display: flex;
  gap: var(--spacing);
  align-items: center;
  position: relative;
  margin-bottom: calc(30px + var(--spacing));
  flex: none;
}
.player-basket__info::after {
  content: ' ';
  height: 30px;
  width: calc(100% + 32px);
  position: absolute;
  background: var(--background);
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.player-basket__skin {
  height: 100px;
  overflow-y: hidden;
  flex: none;
}
.player-basket__skin > img {
  height: 140px;
  image-rendering: pixelated;
}
.player-basket__name {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--heading);
}
.player-basket__contents {
  font-weight: 700;
  font-size: 0.9em;
}
.player-basket__close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3em;
  color: var(--text);
}
.player-basket__close:hover {
  background: var(--border);
  color: var(--heading);
}
.basket-packages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing);
  overflow-y: auto;
  min-height: 0;
  padding-right: 2px;
}
.basket-item {
  background: var(--border);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px 12px 12px;
  flex: none;
}
.basket-item__img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: none;
}
.basket-item__main {
  flex: 1;
  min-width: 0;
}
.basket-item__name {
  color: var(--heading);
  font-weight: 700;
  font-size: 1.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.basket-item__meta {
  font-size: 0.82em;
  color: var(--color-accent);
}
.basket-item__qty {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.basket-item__qty button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--panel);
  color: var(--heading);
}
.basket-item__qty button:hover {
  background: var(--main-color);
}
.basket-item__qty span {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
  color: var(--heading);
}
.basket-item__remove {
  display: flex;
  background: var(--red);
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  border-radius: 25px;
  color: #fff;
  flex: none;
  transition: background 0.2s;
}
.basket-item__remove:hover {
  background: var(--red-hover);
}
.cart-empty {
  background: var(--border);
  text-align: center;
  font-weight: 700;
  color: var(--heading);
  font-size: 1.4em;
  border-radius: 8px;
  padding: 48px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cart-empty > small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
}
.cart-empty > .mdi {
  font-size: 2.8em;
  line-height: 1;
}
.cart-empty img {
  width: 72px;
  animation: bob 4s ease-in-out infinite;
}
.cart-empty .button {
  font-size: 12px;
  margin-top: 12px;
}
.basket-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 4px 0;
  color: var(--heading);
  font-weight: 700;
  font-size: 1.1em;
}
.basket-total span:last-child {
  color: var(--color-accent);
}
.procced-to-checkout {
  display: flex;
  flex-direction: column;
  gap: var(--spacing);
  padding-top: 16px;
  flex: none;
}
.focus-mode {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 85;
  animation: 0.4s opacityIn;
}
@keyframes opacityIn {
  from {
    opacity: 0;
  }
}

/* floating basket button (mobile) */
.button-basket {
  display: none;
}

/* ==========================================================================
   Checkout page
   ========================================================================== */
.checkout-packages {
  overflow-x: auto;
}
.table--checkout {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}
.table--checkout th {
  text-align: left;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 12px;
}
.table--checkout td {
  background: var(--border);
  padding: 10px 12px;
  vertical-align: middle;
}
.table--checkout td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.table--checkout td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
.table--checkout .name {
  color: var(--heading);
  font-weight: 700;
}
.table--checkout .name small {
  display: block;
  font-weight: 500;
  color: var(--color-accent);
}
.table--checkout img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.redeem-row {
  display: flex;
  gap: 8px;
}
.redeemed {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.redeemed__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border-radius: 8px;
  background: var(--border);
  color: var(--heading);
  font-weight: 600;
}
.redeemed__chip small {
  color: var(--text);
  font-weight: 500;
}
.redeemed__chip button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
}
.checkout-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.checkout-summary dl {
  flex: 1;
  margin: 0;
  display: grid;
  gap: 4px;
  min-width: 200px;
}
.checkout-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.checkout-summary dd {
  margin: 0;
  font-weight: 600;
  color: var(--heading);
}
.checkout-summary .total dt,
.checkout-summary .total dd {
  font-size: 1.3em;
  font-weight: 800;
  color: var(--heading);
}
.checkout-summary .total dd {
  color: var(--color-accent);
}
.checkout-summary .save dd {
  color: var(--green);
}
.checkout-note {
  margin: 12px 0 0;
  font-size: 0.85em;
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ==========================================================================
   Rich text
   ========================================================================== */
.rich > :first-child {
  margin-top: 0;
}
.rich > :last-child {
  margin-bottom: 0;
}
.rich strong {
  color: var(--heading);
}
.rich ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: grid;
  gap: 4px;
}
.rich ul li {
  position: relative;
  padding-left: 26px;
}
.rich ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 16px;
  height: 16px;
  background: var(--bullet, url('/assets/img/items/candy-corn.svg')) center / contain no-repeat;
}
[data-theme='winter'] {
  --bullet: url('/assets/img/items/gem.svg');
}
[data-theme='classic'],
[data-theme='light'],
[data-theme='spring'],
[data-theme='summer'] {
  --bullet: url('/assets/img/items/coin.svg');
}
.rich img {
  border-radius: 8px;
}
.rich table {
  width: 100%;
  border-collapse: collapse;
}
.rich td,
.rich th {
  padding: 6px 8px;
  border: 1px solid var(--border);
}

/* ==========================================================================
   Modals (iziModal-style panels + package modal)
   ========================================================================== */
#modal-root {
  position: relative;
  z-index: 100;
}
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s;
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  transform: translateY(-30px);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  outline: none;
}
.modal--lg .modal__dialog {
  max-width: 820px;
}
.modal--open .modal__backdrop {
  opacity: 1;
}
.modal--open .modal__dialog {
  transform: none;
  opacity: 1;
}
.modal .panel {
  margin: 0;
  padding: 16px 0 0;
}
.iziModal-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  color: var(--heading);
  font-size: 1.5em;
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 60px;
  cursor: pointer;
}
.iziModal-close:hover {
  background: var(--border);
}
.modal-hint {
  margin: 10px 0 0;
  font-size: 0.88em;
}
.login-preview {
  display: flex;
  gap: 16px;
  align-items: center;
}
.login-preview__skin {
  height: 120px;
  overflow: hidden;
  flex: none;
}
.login-preview__skin img {
  height: 170px;
  image-rendering: pixelated;
}
.login-preview form {
  flex: 1;
  min-width: 0;
}

/* Java / Bedrock toggle in the login */
.edition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--background);
  border: 1px solid var(--border);
}
.edition__option {
  position: relative;
  cursor: pointer;
}
.edition__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.edition__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.92em;
  color: var(--text);
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}
.edition__option span .mdi {
  font-size: 1.2em;
}
.edition__option:hover span {
  color: var(--heading);
}
.edition__option input:checked + span {
  color: var(--white);
  background: var(--main-color);
  box-shadow: 0 6px 16px -8px var(--accent-glow);
}
.edition__option input:focus-visible + span {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.gift-fields {
  display: none;
  margin-top: 12px;
}
.gift-fields.shown {
  display: flex;
}
.vars {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.vars label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9em;
}
.qty-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.qty-inline .input {
  width: 72px;
  text-align: center;
  padding: 10px 6px;
}

/* ==========================================================================
   Toasts (iziToast-like)
   ========================================================================== */
#toast-root {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  transition: right 0.3s;
}
body.basket-open #toast-root {
  right: min(466px, 100vw);
}
.toast {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: toast-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.toast::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--toast-color, var(--main-color));
  transform-origin: left;
  animation: toast-timer var(--toast-time, 4.2s) linear forwards;
}
.toast--success {
  --toast-color: var(--green);
}
.toast--error {
  --toast-color: var(--red);
}
.toast--out {
  animation: toast-out 0.3s ease forwards;
}
.toast__img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
}
.toast__icon {
  font-size: 1.8em;
  line-height: 1;
  color: var(--toast-color, var(--main-color));
}
.toast__body {
  flex: 1;
  display: grid;
  line-height: 1.35;
}
.toast__body strong {
  color: var(--heading);
}
.toast__close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 1.2em;
}
.toast__close:hover {
  background: var(--border);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
}
@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}
@keyframes toast-timer {
  to {
    transform: scaleX(0);
  }
}

/* loading overlay (Atom #loading) */
#loading {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.45);
  justify-content: center;
  align-items: center;
}
#loading.shown {
  display: flex;
}
#loading img {
  width: 64px;
  animation:
    spin 1.2s linear infinite,
    flicker 1.5s infinite;
}

/* ==========================================================================
   Empty / result states
   ========================================================================== */
.result {
  text-align: center;
  padding: 36px 16px 40px;
}
.result__img {
  width: 110px;
  margin-bottom: 10px;
  animation: bob 4s ease-in-out infinite;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.5));
}
.result h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.3em;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  text-shadow: 0 0 20px var(--accent-glow);
  margin-bottom: 10px;
}
.result p {
  max-width: 560px;
  margin: 0 auto 10px;
}
.result__actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.empty {
  text-align: center;
  padding: 30px 10px;
}
.empty img {
  width: 80px;
  animation: bob 4s ease-in-out infinite;
}
.empty h3 {
  margin: 8px 0 4px;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--border) 25%, var(--panel) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.3s linear infinite;
}
.skeleton--nav {
  height: 70px;
  margin-bottom: 8px;
}
.skeleton--title {
  height: 48px;
  margin-bottom: 8px;
}
.skeleton--card {
  height: 300px;
}
@keyframes skeleton {
  to {
    background-position: -200% 0;
  }
}

/* celebration burst */
.burst {
  position: fixed;
  left: 50%;
  bottom: -40px;
  z-index: 130;
  pointer-events: none;
}
.burst img {
  position: absolute;
  width: 34px;
  height: 34px;
  opacity: 0;
  animation: burst var(--d) cubic-bezier(0.15, 0.7, 0.4, 1) forwards;
}
@keyframes burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(var(--s));
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), calc(var(--y) * 1.4)) rotate(var(--r)) scale(var(--s));
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  position: relative;
  z-index: 2;
  background: var(--footer);
  padding: 32px 0;
  margin-top: auto;
}
.footer__rows {
  display: flex;
  gap: 32px;
}
.footer__col {
  flex: 1;
}
.footer__title {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1.4em;
  font-style: italic;
  margin-bottom: var(--spacing);
}
.footer__content {
  line-height: 1.7;
}
[data-theme='light'] footer {
  --text: rgba(230, 235, 245, 0.8);
  --heading: #fff;
  color: var(--text);
}
.footer__content--links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing);
  margin: 0;
  padding: 0;
}
.footer__content--links > li {
  border-bottom: 2px dashed var(--panel);
  padding-bottom: var(--spacing);
  list-style-type: none;
}
.footer__content--links > li > a {
  color: var(--text);
}
.footer__content .button {
  margin-top: 8px;
}
.footer__copyright {
  background: var(--background);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  align-items: center;
}
[data-theme='light'] .footer__copyright {
  background: #2a2f3a;
}
.footer__rights {
  display: flex;
  flex-direction: column;
}
.footer__rights b {
  color: var(--heading);
}
.footer__mor {
  margin: 16px 0 0;
  font-size: 0.85em;
  opacity: 0.8;
}
.made-by-seek > a {
  font-style: italic;
  font-weight: 700;
  color: var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
[data-theme='halloween'] .made-by-seek > a,
[data-theme='light'] .made-by-seek > a {
  color: rgba(255, 255, 255, 0.35);
}
.made-by-seek > a:hover {
  text-decoration: none;
}
.made-by-seek img {
  height: 26px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .body {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar .panel--nav,
  .sidebar .modules {
    display: none;
  }
  .only-mobile {
    display: flex !important;
  }
  .only-desktop {
    display: none !important;
  }
  .mobile-widgets {
    display: block;
  }
  .button-basket {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.9em;
    background: var(--main-color);
    color: var(--white);
    box-shadow: 0 10px 30px -6px var(--accent-glow);
  }
  .button-basket__count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: grid;
    place-items: center;
    border: 2px solid var(--background);
  }
  .button-basket__count:empty {
    display: none;
  }
  #toast-root {
    bottom: 86px;
  }
}
@media (min-width: 992px) {
  .mobile-widgets {
    display: none;
  }
}

@media (max-width: 768px) {
  .atomheader {
    flex-direction: column;
    margin: 32px 0 16px;
  }
  .announcement__info {
    font-size: 1em;
  }
  .header__logo,
  .header__content {
    width: 100%;
    align-items: center;
    display: flex;
    flex-direction: column;
  }
  .header-statistics {
    width: 100%;
    justify-content: center;
  }
  .socials {
    display: none;
  }
  .announcement {
    width: 100%;
  }
  .hide-mobile {
    display: none !important;
  }
  .footer__rows {
    flex-direction: column;
    gap: 16px;
  }
  .home-header__goal .goal__text {
    display: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .pmodal {
    grid-template-columns: 1fr;
  }
  .pmodal__media {
    min-height: 210px;
  }
  .pmodal__media img {
    width: 150px;
  }
  .prow {
    grid-template-columns: 84px minmax(0, 1fr);
  }
  .prow__media {
    width: 84px;
    height: 84px;
  }
  .prow__media img {
    width: 62px;
    height: 62px;
  }
  .prow__side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }
  .prow__side .pactions {
    width: auto;
  }
  .prow__side .cta {
    flex: none;
    min-width: 150px;
  }
  .stack__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stack__media {
    display: none;
  }
  body.basket-open #toast-root {
    right: 16px;
    top: 12px;
    bottom: auto;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 10px;
  }
  .topbar {
    margin: 14px 0;
  }
  .topbar::after {
    bottom: -14px;
  }
  .profile {
    padding: 10px 14px;
  }
  .profile__data {
    display: none;
  }
  .profile__avatar {
    margin: -22px 0 -10px;
    height: 70px;
  }
  .profile__avatar > img {
    height: 105px;
  }
  .button--header {
    padding: 10px 14px;
  }
  .logo__text {
    font-size: 3.6rem;
  }
  .logo--image {
    max-width: 280px;
  }
  .logo__hat {
    width: 60px;
    margin-left: -122px;
  }
  .server__icon {
    font-size: 3.8em;
  }
  .server__name {
    font-size: 1.2em;
  }
  .announcement {
    flex-wrap: wrap;
  }
  .announcement__code {
    width: 100%;
    justify-content: center;
  }
  .packages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .pcard__media {
    height: 150px;
  }
  .pcard__img {
    width: 92px;
    height: 92px;
    margin-top: -8px;
  }
  /* Narrow cards: the timer moves under the item so it can't cover the sale tag. */
  .pcard .ptimer {
    top: 122px;
    right: 50%;
    transform: translateX(50%);
    font-size: 0.7em;
  }
  .pcard__body {
    padding: 2px 10px 10px;
  }
  .pcard__name {
    font-size: 0.98em;
  }
  .pcard .cta {
    padding: 0 8px;
    font-size: 0.9em;
  }
  .pcard .incart {
    font-size: 0;
    flex: none;
    width: 42px;
    padding: 0;
  }
  .pcard .incart .mdi {
    font-size: 20px;
  }
  .pcard .stepper {
    flex: 1;
    justify-content: space-between;
  }
  .home-header {
    flex-wrap: nowrap;
    align-items: center;
  }
  .home-header__goal {
    margin: 0 -15px 0 auto;
    flex: none;
  }
  .footer__copyright {
    flex-direction: column;
    align-items: flex-start;
  }
  .modal {
    padding: 8px;
    align-items: end;
  }
  .redeem-row {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
