@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Cinzel+Decorative:wght@700;900&family=Silkscreen:wght@400;700&family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap");
:root {
  --color-primary: #7C3AED;
  --gold: #D9B65E;
  --bg-image: none;
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: #120C22;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 1000px 600px at 50% -8%, rgba(196,181,253,0.10), transparent 60%),
    radial-gradient(ellipse 900px 700px at 90% 100%, rgba(124,58,237,0.14), transparent 55%),
    radial-gradient(ellipse 800px 600px at 5% 90%, rgba(76,29,149,0.16), transparent 55%),
    linear-gradient(180deg, #150D28 0%, #120C22 40%, #0C0818 100%);
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}
body::before {
  display: none;
}

/* ══════════════════════════════════════════════
   NIGHTFALL — HEADER OVERRIDE
   Collapse the 355px hero header to a 64px navbar
   ══════════════════════════════════════════════ */
.site-header {
  background: #0D0A1A !important;
  border-bottom: 1px solid rgba(139, 92, 246, 0.25) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 200 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Blurred artwork backdrop */
.site-header-bg {
  position: absolute !important;
  inset: -25px !important;
  background-size: cover !important;
  background-position: center 35% !important;
  background-repeat: no-repeat !important;
  filter: blur(16px) brightness(0.5) saturate(1.2) !important;
  transform: scale(1.12) !important;
  z-index: 0 !important;
  pointer-events: none !important;
}
.site-header::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(8,5,18,.55) 0%, rgba(8,5,18,.82) 100%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}
.site-header-inner,
.site-header .site-sale-banner,
.site-header .navigation-horizontal {
  position: relative !important;
  z-index: 2 !important;
}

.navigation-horizontal {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(6, 4, 14, 0.55) !important;
}

.site-header-inner {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  gap: 20px !important;
  height: auto !important;
  min-height: 96px !important;
  position: relative !important;
  padding: 14px 28px !important;
  max-width: 1300px !important;
  margin: 0 auto !important;
}

/* Hero banner + chips stack in the center column */
.site-header-chips {
  flex-direction: column !important;
  gap: 6px !important;
}
.nf-header-banner-link { display: block !important; line-height: 0 !important; }
.nf-header-banner {
  height: 54px !important;
  width: auto !important;
  max-width: 260px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.55)) !important;
}
.nf-header-chip-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
@media (max-width: 760px) {
  .nf-header-banner { height: 38px !important; }
}

/* Un-absolute all children — shared.css positions them absolutely */
.site-header-inner .actions,
.site-header-inner .site-title,
.site-header-inner .log-in,
.site-header-inner .user-actions,
.site-header-inner .info {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
}

/* Logo */
.site-header-inner .site-title {
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  font-family: 'Cinzel', Georgia, serif !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  background: linear-gradient(135deg, #C4B5FD, #BF7FFF, #A78BFA) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-align: left !important;
  inset: auto !important;
}
.site-header-inner .site-title img {
  max-height: 40px !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Center chips wrapper */
.site-header-chips {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

/* Right actions wrapper */
.site-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  justify-content: flex-end !important;
}
.site-header-inner .user-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Info chips (server IP + discord) */
.site-header-inner .info {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px 13px !important;
  border-radius: 9999px !important;
  background: #0D0A1A !important;
  border: 1px solid rgba(139, 92, 246, 0.18) !important;
  line-height: 1.2 !important;
  max-width: none !important;
  width: auto !important;
  text-decoration: none !important;
}
.site-header-inner .info .image {
  position: static !important;
  width: 18px !important;
  height: 18px !important;
  top: auto !important; left: auto !important; bottom: auto !important; right: auto !important;
  margin: 0 !important;
  border-radius: 4px !important;
  filter: hue-rotate(260deg) saturate(2) brightness(1.3) !important;
}
.site-header-inner .info .title {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #C4B5FD !important;
  line-height: 1.3 !important;
  display: block !important;
}
.site-header-inner .info .action {
  font-size: 10px !important;
  color: #6B5E8A !important;
  display: block !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  max-width: none !important;
  white-space: nowrap !important;
}

/* Login / basket buttons */
.site-header-inner .log-in {
  height: auto !important;
  padding: 8px 16px !important;
  line-height: 1 !important;
  background: #120F25 !important;
  border: 1px solid rgba(139, 92, 246, 0.18) !important;
  border-radius: 9999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #F0EBFF !important;
}
.site-header-inner .open-basket {
  background: linear-gradient(135deg, #6D28D9, #7C3AED) !important;
  height: auto !important;
  padding: 8px 18px !important;
  line-height: 1 !important;
  border-radius: 9999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #fff !important;
}

/* hide the hamburger on desktop (we use horizontal nav by default) */
@media (width > 960px) {
  .site-header-inner .actions { display: none !important; }
}

/* ══════════════════════════════════════════════
   NIGHTFALL — NAVIGATION
   ══════════════════════════════════════════════ */
.navigation-horizontal .menu {
  background: transparent !important;
  border-top: 1px solid rgba(139, 92, 246, 0.13) !important;
  justify-content: flex-start !important;
  padding: 0 28px !important;
  max-width: 1300px !important;
  margin: 0 auto !important;
}
.navigation-horizontal .menu > li > a {
  padding: 10px 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  font-family: 'Inter', sans-serif !important;
  border-radius: 6px !important;
  color: #8B7BAA !important;
}
.navigation-horizontal a:hover,
.navigation-horizontal a.link-active {
  color: #F0EBFF !important;
  background: rgba(139, 92, 246, 0.14) !important;
}
.navigation-horizontal .has-children > ul {
  background: #120F25 !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4) !important;
}
.navigation-horizontal li li a:hover,
.navigation-horizontal li li a.link-active {
  color: #F0EBFF !important;
  background: rgba(139, 92, 246, 0.16) !important;
}

/* ══════════════════════════════════════════════
   NIGHTFALL — FOOTER (blend with global background)
   ══════════════════════════════════════════════ */
.site-footer {
  background: transparent !important;
  border-top: 1px solid rgba(217, 182, 94, 0.18) !important;
}
.site-footer-inner .copyright,
.site-footer-inner .site-footer-nav a {
  color: #6E6190 !important;
}
.site-footer-inner .site-footer-nav a:hover {
  color: #D9B65E !important;
}
.site-footer-credit {
  background: transparent !important;
  color: #6E6190 !important;
}

/* ══════════════════════════════════════════════
   NIGHTFALL — SIDEBAR WIDGETS
   ══════════════════════════════════════════════ */
.widget {
  background: #120F25 !important;
  border: 1px solid rgba(139, 92, 246, 0.13) !important;
  border-radius: 12px !important;
}
.widget-title {
  color: #A78BFA !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

/* Featured Package widget on the homepage — the .store-product card
   inside already has its own obsidian card treatment, so strip the
   wrapper's box to avoid a "card inside a card" look. */
.widget.widget-featured {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.widget-featured .widget-title { display: none; }

/* Homepage "Featured Packages" zone — the Sidebar module list also
   contains Text Box / Top Customer / Recent Payments widgets; only the
   Featured Package cards belong here, so hide everything else that
   `modules|raw` outputs and lay the featured cards out in a grid. */
.nf-featured-panel { margin-bottom: 14px; }
.nf-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.nf-featured-grid > .widget:not(.widget-featured) { display: none !important; }

/* Category page bottom zone — same Sidebar module list, but here we only
   want Recent Payments (nav, text box, top customer, and featured
   packages are all hidden). */
.nf-community-widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
.nf-community-widgets > .widget:not(.widget-recent) {
  display: none !important;
}



/* Featured cards — full vertical card: big image on top, title, price,
   then Add to Basket. The Featured Package widget wraps package-entry.twig,
   so we normalise the widget wrappers to let the card fill its column. */
.nf-featured-grid .widget-featured,
.nf-featured-grid .widget-featured .widget-content {
  display: block !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.nf-featured-grid .widget-featured .widget-title { display: none !important; }

.nf-featured-grid .store-product {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #0E0A1B !important;
  border: 1px solid rgba(139,92,246,.16) !important;
  border-radius: 14px !important;
  text-align: left !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}
.nf-featured-grid .store-product:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(139,92,246,.5) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.5) !important;
}
.nf-featured-grid .store-product::before {
  content: '' !important;
  position: absolute !important; top: 0; left: 14px; right: 14px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,182,94,.5), transparent) !important;
  z-index: 2 !important;
}

/* Image panel */
.nf-featured-grid .store-product .image-link {
  display: block !important;
  width: 100% !important; height: 168px !important;
  aspect-ratio: unset !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  position: relative !important;
}
.nf-featured-grid .store-product .image-link::after {
  content: '' !important; position: absolute !important; inset: 0 !important;
  background: linear-gradient(180deg, transparent 55%, rgba(14,10,27,.85) 100%) !important;
}
.nf-featured-grid .store-product .image {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important;
  transition: transform .3s ease !important;
}
.nf-featured-grid .store-product:hover .image { transform: scale(1.06) !important; }
.nf-featured-grid .store-product .image-default {
  width: 100% !important; height: 168px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 46px !important; color: var(--p-400) !important;
  background: linear-gradient(135deg, var(--p-900), var(--surf-3)) !important;
}

/* Title */
.nf-featured-grid .store-product .product-title {
  padding: 14px 16px 2px !important;
  margin: 0 !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 15px !important; font-weight: 600 !important;
  line-height: 1.3 !important; color: #F3EEFF !important;
}
.nf-featured-grid .store-product .product-title a { color: inherit !important; }
.nf-featured-grid .store-product .countdown { display: none !important; }

/* Price + Add to Basket */
.nf-featured-grid .store-product .actions.product-actions {
  padding: 8px 16px 16px !important;
  margin-top: auto !important;
  display: flex !important; flex-direction: column !important; gap: 10px !important;
}
.nf-featured-grid .actions.product-actions .price {
  margin: 0 !important;
  font-family: var(--ff-m) !important;
  font-size: 17px !important; font-weight: 700 !important;
}
/* Hide Add to Basket button and quantity stepper on homepage featured cards */
.nf-featured-grid .actions-buttons-row,
.nf-featured-grid .quantity-field,
.nf-featured-grid .open-basket-cta,
.nf-featured-grid .btn-secondary.gift { display: none !important; }

/* ══════════════════════════════════════════════
   NIGHTFALL — CATEGORY CARD ACTION FIX
   The <a class="image-link"> was a block-level element
   covering the entire card and eating all click events.
   Replaced with a plain <div class="nf-card-thumb">.
   ══════════════════════════════════════════════ */

.nf-card-thumb {
  display: block;
  width: 100%;
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: linear-gradient(135deg, var(--p-900), var(--surf-3));
}
.nf-card-thumb .image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  display: block;
  transition: transform 0.22s ease;
}
.store-product:hover .nf-card-thumb .image {
  transform: scale(1.04);
}
.nf-card-thumb .image-default {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--p-400);
}

/* Card itself: no padding (we control it per-section), no overflow clip */
.store-products-grid .store-product {
  overflow: visible !important;
  padding: 0 !important;
  gap: 0 !important;
}

/* Actions always on top, never clipped */
.store-products-grid .store-product .actions.product-actions {
  overflow: visible !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 3 !important;
}

/* ══════════════════════════════════════════════
   NIGHTFALL — PRODUCT CARDS (category / ranks / details)
   Obsidian "loot cards" with a gold hairline top edge
   ══════════════════════════════════════════════ */
.store-products-list .store-product,
.store-products-images .store-product,
.widget-featured .store-product,
.store-product-full,
.store-product-options,
.category-description,
.no-products,
.store-category-tiered,
.store-product-tiered {
  background: #0E0A1B !important;
  border: 1px solid rgba(139, 92, 246, 0.16) !important;
  border-radius: 12px !important;
  color: #ADA0CC !important;
  position: relative !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.18s ease, border-color 0.18s ease !important;
}
.store-products-list .store-product::before,
.store-products-images .store-product::before,
.widget-featured .store-product::before {
  content: '' !important;
  position: absolute !important; top: 0 !important; left: 14px !important; right: 14px !important; height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(217,182,94,.4), transparent) !important;
  z-index: 1 !important;
}
.store-products-list .store-product:hover,
.store-products-images .store-product:hover,
.widget-featured .store-product:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(139, 92, 246, 0.45) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5) !important;
}
.widget-featured .store-product { padding: 16px !important; }
.store-product .product-title,
.store-product-full .product-title,
.store-product-options .product-title,
.store-product-tiered .product-title {
  color: #F3EEFF !important;
  font-family: 'Manrope', sans-serif !important;
  font-weight: 600 !important;
}
.store-product .product-title a:hover {
  color: #BF7FFF !important;
}
.store-product .price strong,
.store-product-full .price strong,
.store-product-tiered .price strong {
  color: #D9B65E !important;
}
.store-product .price .discount,
.store-product-tiered .price .discount {
  color: #6E6190 !important;
}
.store-product .descr,
.store-product-full .descr,
.store-product-tiered .descr {
  color: #ADA0CC !important;
}
.category-description,
.no-products {
  color: #ADA0CC !important;
}

/* ══════════════════════════════════════════════
   NIGHTFALL — BUTTONS
   ══════════════════════════════════════════════ */
.btn-primary,
.btn-secondary,
.btn-tertiary {
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
}

.btn-primary:hover, .btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus {
  box-shadow: 0 0 6px rgb(from var(--btn-color-bg-hover) r g b/0.6);
}

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

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

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

.site-home-categories .category {
  border-radius: 5px;
  padding: 20px var(--widget-padding);
  background: var(--color-brighter-bg);
  transition: color 0.15s ease-in-out;
}
.site-home-categories .category:hover {
  color: var(--color-primary);
}

.category-description {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}

.store-text {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}
.store-text h1,
.store-text h2,
.store-text h3,
.store-text h4,
.store-text h5,
.store-text h6 {
  text-align: center;
}

.store-products-list .store-product,
.store-products-images .store-product {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}

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

.widget-title {
  text-align: center;
}

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

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

.store-product-full {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}

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

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

.widget {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}
@media (width <= 960px) {
  .widget.site-navigation {
    border-radius: 0;
    background: transparent;
  }
}

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

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

.widget-community-goal .progress,
.widget-goal .progress {
  border-radius: 2px;
}
.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  border-radius: 2px;
}

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

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

.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: 5px;
}
.basket-item .quantity {
  border-radius: 2px;
}

.toast {
  border-radius: 6px;
}

.toast-close {
  border-radius: 2px;
}

.store-category-tiered {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}

.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;
}

.store-product-tiered {
  border-radius: 5px;
  background: rgb(from var(--color-bg) r g b/0.5);
}

.media-slider .slider,
.media-slider .thumb {
  border-radius: 5px;
}
.media-slider .open-lightbox {
  border-radius: 2px;
}

.popup.popup-media-slider .thumb {
  border-radius: 5px;
}
.popup.popup-media-slider .popup-close {
  border-radius: 5px;
}


