@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
:root {
  --color-primary: #8b67c4;
  --bg-image: radial-gradient(ellipse 900px 500px at 50% -10%, #4c2f7c 0%, #241542 45%, #0f071e 80%);
}

body {
  font-family: Inter, sans-serif;
  background-color: #0f071e;
}
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  max-height: 520px;
  z-index: -1;
  background: var(--bg-image) center center/cover no-repeat;
  mask-image: linear-gradient(rgba(0, 0, 0, 0.85) 40%, rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
  border-radius: 999px;
  font-weight: 600;
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.btn-primary:hover, .btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus {
  box-shadow: 0 0 16px rgb(from var(--btn-color-bg-hover) r g b/0.5);
  transform: translateY(-1px);
}

.quantity-field {
  border-radius: 8px;
}

.site-header-inner .info .image {
  border-radius: 8px;
}

.site-sale-banner {
  border-radius: 10px;
}

.site-home-categories .category {
  border-radius: 14px;
  padding: 20px var(--widget-padding);
  background: var(--color-brighter-bg);
  border: 1px solid rgb(139 103 196 / 18%);
  transition: color 0.2s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.site-home-categories .category:hover {
  color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgb(139 103 196 / 25%);
  border-color: rgb(139 103 196 / 45%);
}

.category-description {
  border-radius: 14px;
  background: var(--color-brighter-bg);
  border: 1px solid rgb(139 103 196 / 12%);
}

.store-text {
  border-radius: 14px;
  background: var(--color-brighter-bg);
  border: 1px solid rgb(139 103 196 / 12%);
}
.store-text h1,
.store-text h2,
.store-text h3,
.store-text h4,
.store-text h5,
.store-text h6 {
  text-align: center;
  font-weight: 700;
}

.store-products-list .store-product,
.store-products-images .store-product {
  border-radius: 14px;
  background: var(--color-brighter-bg);
  border: 1px solid rgb(139 103 196 / 14%);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.store-products-list .store-product:hover,
.store-products-images .store-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgb(139 103 196 / 22%);
  border-color: rgb(139 103 196 / 50%);
}

.store-products-images .store-product {
  text-align: center;
}

.widget-title {
  text-align: center;
  font-weight: 700;
}

.widget .store-product {
  text-align: center;
}

.no-products {
  color: var(--color-text-secondary);
  background: var(--color-brighter-bg);
  border-radius: 14px;
}

.store-product-full {
  border-radius: 14px;
  background: var(--color-brighter-bg);
  border: 1px solid rgb(139 103 196 / 12%);
}

.store-product .quantity-field {
  border-radius: 8px;
  background: var(--color-brighter-bg);
}
.store-product .quantity-field input[type=number] {
  border: none;
}

@media (width > 960px) {
  .navigation-horizontal > ul {
    border-radius: 12px;
  }
}
.navigation-horizontal .has-children > ul {
  border-radius: 12px;
}

.widget {
  border-radius: 14px;
  background: var(--color-brighter-bg);
  border: 1px solid rgb(139 103 196 / 12%);
}
@media (width <= 960px) {
  .widget.site-navigation {
    border-radius: 0;
    background: transparent;
    border: none;
  }
}

.widget-gift-card .gift-card-input {
  border-radius: 8px;
}

.widget-top-donator .avatar {
  border-radius: 50%;
}

.widget-community-goal .progress,
.widget-goal .progress {
  border-radius: 999px;
  background: rgb(139 103 196 / 15%);
}
.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #8b67c4, #cebde6);
}

.popup-content {
  border-radius: 14px;
}

.popup-close {
  border-radius: 0 14px 0 14px;
}

.basket-popup-content,
.basket-popup-content .popup-close {
  border-radius: 0;
}
.basket-items {
  padding: var(--widget-padding) calc(var(--content-padding) - var(--widget-padding));
}
.basket-item {
  border-radius: 10px;
}
.basket-item .quantity {
  border-radius: 8px;
}
.toast {
  border-radius: 10px;
}
.toast-close {
  border-radius: 6px;
}
.store-category-tiered {
  border-radius: 14px;
  background: var(--color-brighter-bg);
  border: 1px solid rgb(139 103 196 / 12%);
}
.store-category-tiered-header h1,
.store-category-tiered-header h2,
.store-category-tiered-header h3,
.store-category-tiered-header h4,
.store-category-tiered-header h5,
.store-category-tiered-header h6 {
  text-align: center;
  font-weight: 700;
}
.store-product-tiered {
  border-radius: 14px;
  background: rgb(from var(--color-bg) r g b/0.5);
  border: 1px solid rgb(139 103 196 / 12%);
}
.media-slider .slider,
.media-slider .thumb {
  border-radius: 10px;
}
.media-slider .open-lightbox {
  border-radius: 8px;
}
.popup.popup-media-slider .thumb {
  border-radius: 10px;
}
.popup.popup-media-slider .popup-close {
  border-radius: 10px;
}

.site-hero {
  text-align: center;
  max-width: 720px;
  margin: 48px auto 40px;
  padding: 0 var(--widget-padding);
}
.site-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgb(139 103 196 / 15%);
  border: 1px solid rgb(139 103 196 / 35%);
  color: #cebde6;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.site-hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin: 0 0 16px;
  background: linear-gradient(180deg, #fff 40%, #cebde6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-hero-subtitle {
  color: var(--color-text-secondary);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 28px;
}
.site-hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.store-product { position: relative; }
.badge-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: linear-gradient(135deg, #ff5f6d, #c93b52);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgb(201 59 82 / 40%);
}
.countdown {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgb(255 95 109 / 15%);
  color: #ff8a93;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgb(255 95 109 / 35%);
}
.trust-line {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.site-hero-stats {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 28px;
  color: var(--color-text-secondary);
  font-size: 14px;
}
.site-hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: var(--content-inner-width);
  margin: 0 auto 48px;
  padding: 0 var(--widget-padding);
}
.site-feature {
  background: var(--color-brighter-bg);
  border: 1px solid rgb(139 103 196 / 14%);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.site-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgb(139 103 196 / 20%);
  border-color: rgb(139 103 196 / 40%);
}
.site-feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgb(139 103 196 / 15%);
  font-size: 20px;
  margin: 0 auto 14px;
}
.site-feature h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}
.site-feature p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}


/* Most popular badge */
.badge-popular {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: linear-gradient(135deg, #f7c948, #c9932c);
  color: #2a1a00;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgb(201 147 44 / 45%);
}
.product-title .badge-popular {
  position: static;
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

/* Sticky buy bar on package detail page */
.store-product-full > .actions.product-actions {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  margin-top: 18px;
  background: var(--color-brighter-bg);
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 8%);
  box-shadow: 0 12px 32px rgb(0 0 0 / 45%);
}

/* Make recent purchases widget stand out for social proof */
.widget-recent {
  border: 1px solid rgb(139 103 196 / 35%);
  background: linear-gradient(180deg, rgb(139 103 196 / 10%), transparent);
}
.widget-recent .widget-title {
  color: var(--color-primary-text, #fff);
}


/* Membership comparison table */
.membership-compare {
  margin-bottom: 24px;
  padding: 20px var(--widget-padding);
  border-radius: 14px;
  background: var(--color-brighter-bg);
  border: 1px solid rgb(139 103 196 / 18%);
}

.membership-compare-title {
  margin: 0 0 16px 0;
  color: var(--color-text);
  font-weight: 700;
}

.membership-compare-table {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgb(139 103 196 / 18%);
}

.mc-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  align-items: center;
}

.mc-row:nth-child(even) {
  background: rgb(255 255 255 / 3%);
}

.mc-row-header {
  background: rgb(139 103 196 / 16%);
  border-bottom: 1px solid rgb(139 103 196 / 25%);
}

.mc-cell {
  padding: 12px 10px;
  text-align: center;
  color: var(--color-text-darker);
  font-size: 14px;
}

.mc-cell.mc-feature {
  text-align: left;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.mc-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-weight: 700;
}

.mc-tier-name {
  color: var(--color-text);
  font-size: 15px;
}

.mc-tier-price {
  color: var(--color-primary-hover);
  font-size: 13px;
  font-weight: 600;
}

.mc-check {
  color: #4ade80;
  font-weight: 700;
}

.mc-cross {
  color: var(--color-removed);
  font-weight: 700;
}

.mc-row:not(.mc-row-header):hover {
  background: rgb(139 103 196 / 8%);
}

@media (max-width: 700px) {
  .mc-cell {
    padding: 10px 6px;
    font-size: 12px;
  }
  .mc-tier-name {
    font-size: 12px;
  }
  .mc-tier-price {
    font-size: 11px;
  }
}


.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--color-brighter-bg);
  border: 1px solid rgb(139 103 196 / 18%);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.trust-bar-item .trust-icon {
  font-size: 15px;
}

.membership-faq {
  margin-top: 24px;
  margin-bottom: 36px;
  padding: 20px;
  border-radius: 14px;
  background: var(--color-brighter-bg);
  border: 1px solid rgb(139 103 196 / 18%);
}

.membership-faq-title {
  margin: 0 0 14px 0;
  color: var(--color-text);
  font-weight: 700;
}

.faq-item {
  border-bottom: 1px solid rgb(139 103 196 / 14%);
  padding: 12px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  margin-left: 10px;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 10px 0 0 0;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}


/* ===== Professional Header Redesign ===== */
body.is-navigation-horizontal .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(15 7 30 / 90%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(139 103 196 / 18%);
}

body.is-navigation-horizontal .site-header-inner {
  padding: 14px var(--content-padding, 32px);
  gap: 20px;
  flex-wrap: nowrap;
}

body.is-navigation-horizontal .site-title {
  width: auto;
  text-align: left;
  line-height: 1;
  font-size: 22px;
  flex: none;
  order: 1;
  margin: 0;
}

body.is-navigation-horizontal .site-title img {
  max-height: 34px;
  margin: 0;
}

body.is-navigation-horizontal .site-navigation {
  order: 2;
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

body.is-navigation-horizontal .navigation-horizontal .menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

body.is-navigation-horizontal .navigation-horizontal > ul > li > a {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

body.is-navigation-horizontal .navigation-horizontal > ul > li > a:hover,
body.is-navigation-horizontal .navigation-horizontal > ul > li > a.link-active {
  background: rgb(139 103 196 / 16%);
  color: var(--color-text);
}

body.is-navigation-horizontal .header-right {
  order: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

body.is-navigation-horizontal .header-right .actions,
body.is-navigation-horizontal .header-right .user-actions,
body.is-navigation-horizontal .header-right .log-in {
  position: static;
  width: auto;
  padding: 0;
  text-align: left;
}

body.is-navigation-horizontal .header-right .info {
  position: relative;
  display: block;
  width: auto;
  padding: 8px 14px 8px 46px;
  border-radius: 12px;
  background: var(--color-brighter-bg);
  border: 1px solid rgb(139 103 196 / 18%);
  line-height: 1.2;
}

body.is-navigation-horizontal .header-right .info .image {
  width: 24px;
  height: 24px;
  left: 12px;
}

body.is-navigation-horizontal .header-right .info .image {
  max-height: 20px;
  width: auto;
}

body.is-navigation-horizontal .header-right .info .title {
  font-size: 12px;
  color: var(--color-text);
}

body.is-navigation-horizontal .header-right .info .action {
  font-size: 11px;
  color: var(--color-text-secondary);
}

body.is-navigation-horizontal .header-right .user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.is-navigation-horizontal .toggle-navigation {
  display: none;
}

@media (max-width: 960px) {
  body.is-navigation-horizontal .site-header-inner {
    flex-wrap: wrap;
  }
  body.is-navigation-horizontal .site-navigation {
    order: 4;
    flex: 1 1 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
  body.is-navigation-horizontal .header-right .info .title,
  body.is-navigation-horizontal .header-right .info .action {
    display: none;
  }
}

/* ===== Footer Redesign ===== */
.site-footer-inner {
  padding-top: 48px;
  padding-bottom: 24px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgb(139 103 196 / 14%);
}

.footer-col {
  flex: 1 1 200px;
  min-width: 160px;
}

.footer-brand {
  flex: 1 1 260px;
}

.footer-logo {
  width: auto;
  text-align: left;
  line-height: 1;
  font-size: 22px;
  margin: 0 0 10px 0;
}

.footer-logo img {
  max-height: 32px;
  margin: 0;
}

.footer-tagline {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.5;
  max-width: 280px;
  margin: 0;
}

.footer-heading {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 14px 0;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
}

/* ===== Package Tier Accents ===== */
.store-product.tier-bronze:hover {
  border-color: rgb(205 127 50 / 55%);
  box-shadow: 0 10px 28px rgb(205 127 50 / 20%);
}

.store-product.tier-gold:hover {
  border-color: rgb(255 200 60 / 55%);
  box-shadow: 0 10px 28px rgb(255 200 60 / 20%);
}

.store-product.tier-diamond:hover {
  border-color: rgb(120 200 255 / 55%);
  box-shadow: 0 10px 28px rgb(120 200 255 / 20%);
}


/* ===== Header Slim-Down (desktop, horizontal nav) ===== */
@media (width > 960px) {
  body.is-navigation-horizontal #header.site-header .site-header-inner {
    height: auto;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 32px;
  }

  body.is-navigation-horizontal #header.site-header .site-title {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    margin: 0 auto 0 0;
    line-height: 1;
    font-size: 22px;
    text-align: left;
    order: 1;
  }

  body.is-navigation-horizontal #header.site-header .site-title img {
    max-height: 34px;
    margin: 0;
  }

  body.is-navigation-horizontal #header.site-header .info {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 6px 14px 6px 40px;
    line-height: 1.2;
    border-radius: 12px;
    background: var(--color-brighter-bg);
    border: 1px solid rgb(139 103 196 / 18%);
    flex: none;
  }

  body.is-navigation-horizontal #header.site-header .info.server {
    order: 2;
  }

  body.is-navigation-horizontal #header.site-header .info.discord {
    order: 3;
    text-align: left;
  }

  body.is-navigation-horizontal #header.site-header .info .image {
    top: 0;
    bottom: 0;
    left: 10px;
    right: auto;
    margin: auto 0;
    width: 20px;
    height: 20px;
  }

  body.is-navigation-horizontal #header.site-header .info .title {
    font-size: 12px;
    line-height: 16px;
  }

  body.is-navigation-horizontal #header.site-header .info .action {
    font-size: 11px;
  }

  body.is-navigation-horizontal #header.site-header .actions {
    display: none;
  }

  body.is-navigation-horizontal #header.site-header .user-actions,
  body.is-navigation-horizontal #header.site-header .log-in {
    position: static;
    top: auto;
    right: auto;
    order: 4;
    flex: none;
  }
}


/* ===== Tier labels + persistent Gold highlight + mobile widget order ===== */
.tier-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.tier-label-bronze {
  background: linear-gradient(135deg, rgb(205 127 50), rgb(150 90 30));
  color: #fff;
}
.tier-label-gold {
  background: linear-gradient(135deg, rgb(255 200 60), rgb(201 147 44));
  color: #2a1a00;
}
.tier-label-diamond {
  background: linear-gradient(135deg, rgb(180 230 255), rgb(120 200 255));
  color: #06283a;
}

.store-product.tier-gold {
  border-color: rgb(255 200 60 / 40%);
  box-shadow: 0 0 0 1px rgb(255 200 60 / 12%), 0 6px 20px rgb(255 200 60 / 10%);
}
.store-products-list .store-product.tier-gold:hover,
.store-products-images .store-product.tier-gold:hover {
  border-color: rgb(255 200 60 / 55%);
  box-shadow: 0 10px 28px rgb(255 200 60 / 20%);
}

@media (width <= 960px) {
  .site-content-widgets {
    flex-direction: column-reverse;
  }
}


/* Product tagline under title */
.product-tagline {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* Secondary trust-line for payment methods */
.payment-line {
  margin-top: 4px;
  opacity: 0.85;
}

/* Upsell banner linking memberships to coins */
.upsell-banner {
  margin-top: 24px;
  padding: 16px var(--widget-padding);
  border-radius: 14px;
  background: var(--color-brighter-bg);
  border: 1px solid rgb(139 103 196 / 18%);
  text-align: center;
}
.upsell-banner p {
  margin: 0;
  color: var(--color-text);
  font-size: 14px;
}
.upsell-banner a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.upsell-banner a:hover {
  color: var(--color-primary-hover);
}

/* Sticky mobile shortcut to jump straight to packages */
.sticky-packages-bar {
  display: none;
}
@media (width <= 960px) {
  .sticky-packages-bar {
    display: block;
    position: sticky;
    top: 8px;
    z-index: 30;
    margin-bottom: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgb(0 0 0 / 35%);
  }
}
