/* ==========================================================================
   JozMC — theme layer over Exo
   Sidebar server select + package grid.
   Loads after shared.css / generic.css so it wins on specificity ties.
   ========================================================================== */

@font-face {
  font-family: "Monocraft";
  src: url("https://cdn.jsdelivr.net/gh/IdreesInc/Monocraft@main/dist/Monocraft.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --jz-bg:       #0a0714;
  --jz-bg-2:     #0f0a1e;
  --jz-panel:    #171029;
  --jz-panel-2:  #1e1536;
  --jz-panel-3:  #251a44;
  --jz-edge:     #2e2456;
  --jz-edge-hi:  #46368a;
  --jz-ink:      #f0edfa;
  --jz-dim:      #a79ec9;
  --jz-dim-2:    #7d739f;

  --jz-blue:     #4cc2ff;
  --jz-violet:   #8b5cf6;
  --jz-deep:     #2f86ff;
  --jz-mint:     #57e3b8;
  --jz-gold:     #ffb648;

  --jz-grad:     linear-gradient(120deg, var(--jz-blue), var(--jz-violet));
  --jz-grad-btn: linear-gradient(120deg, #2f86ff, #7b3ff2);

  --jz-display:  "Monocraft", "Trebuchet MS", monospace;
  --jz-body:     "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --jz-r:        12px;
  --jz-r-lg:     18px;
  --jz-shell:    1300px;

  --color-primary:            #2f86ff;
  --color-primary-hover:      #4c9bff;
  --color-primary-text:       #ffffff;
  --color-primary-text-hover: #ffffff;
}

/* ---------------- base ---------------- */

body {
  background: var(--jz-bg);
  color: var(--jz-ink);
  font-family: var(--jz-body);
  font-weight: 300;
}

body a { color: var(--jz-blue); text-decoration: none; }
body a:hover { color: #8ad8ff; }
body :focus-visible { outline: 2px solid var(--jz-blue); outline-offset: 3px; }

.site { position: relative; overflow-x: hidden; background: transparent; }

.site::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 42% at 50% 6%, rgba(123,63,242,.28), transparent 68%),
    radial-gradient(40% 34% at 82% 0%, rgba(76,194,255,.16), transparent 70%),
    radial-gradient(44% 36% at 12% 4%, rgba(47,134,255,.16), transparent 72%);
}

.site > * { position: relative; z-index: 1; }

/* ---------------- top bar ---------------- */

.site-header.jz-head {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.jz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--jz-shell);
  margin: 0 auto;
  padding: 18px 24px 0;
}

.jz-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--jz-edge);
  background: rgba(30,21,54,.7);
  color: var(--jz-dim);
  font-family: var(--jz-display);
  font-size: 14px;
  transition: color .18s, border-color .18s, transform .18s;
}
.jz-home::before { content: "\2190"; }
.jz-home:hover { color: var(--jz-ink); border-color: var(--jz-edge-hi); transform: translateY(-1px); }

.jz-topbar-right { display: flex; align-items: center; gap: 12px; }

.jz-user {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--jz-dim);
  font-family: var(--jz-display);
  font-size: 14px;
}
.jz-user:hover { color: var(--jz-ink); }
.jz-avatar {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--jz-panel-2) center/cover no-repeat;
  image-rendering: pixelated;
}

.jz-cart {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--jz-edge);
  border-radius: 999px;
  background: rgba(30,21,54,.7);
  color: var(--jz-dim);
  font-family: var(--jz-display);
  font-size: 14px;
  cursor: pointer;
  transition: color .18s, border-color .18s, transform .18s;
}
.jz-cart:hover { color: var(--jz-ink); border-color: var(--jz-edge-hi); transform: translateY(-1px); }
.jz-cart-count {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--jz-gold);
  color: #2a1a00;
  font-size: 12px;
  text-align: center;
}

/* ---------------- masthead ---------------- */

.jz-head-in {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  max-width: var(--jz-shell);
  margin: 0 auto;
  padding: 10px 24px 34px;
}

.site-header.jz-head .site-title.jz-logo {
  grid-column: 2;
  float: none;
  width: auto;
  margin: 0;
  text-align: center;
}
.site-title.jz-logo img {
  width: 210px;
  height: auto;
  max-height: none;
  filter: drop-shadow(0 16px 40px rgba(123,63,242,.5));
  transition: transform .25s ease;
}
.site-title.jz-logo a:hover img { transform: translateY(-3px); }

.jz-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.jz-pill-ip { grid-column: 1; justify-self: end; }
.jz-pill-discord { grid-column: 3; justify-self: start; }

.jz-pill-text { display: grid; gap: 2px; text-align: left; }
.jz-pill-discord .jz-pill-text { text-align: right; }

.jz-pill-text strong {
  font-family: var(--jz-display);
  font-size: 17px;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--jz-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.jz-pill-text small {
  font-family: var(--jz-display);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--jz-dim-2);
}

.jz-pill-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--jz-grad-btn);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 8px 22px -8px rgba(123,63,242,.9);
  transition: transform .18s ease;
}
img.jz-pill-icon { padding: 10px; }
.jz-pill:hover .jz-pill-icon { transform: scale(1.08); }

.jz-pill-ip.copied .jz-pill-text small { color: var(--jz-mint); }

.site-sale-banner {
  max-width: var(--jz-shell);
  margin: 0 auto 20px;
  border-radius: var(--jz-r);
  font-family: var(--jz-display);
  letter-spacing: .04em;
}

/* ---------------- layout ---------------- */

.site-content.jz-content {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  max-width: var(--jz-shell);
  margin: 0 auto;
  padding: 0 24px 90px;
}

/* ---------------- sidebar ---------------- */

.store-sidebar {
  position: sticky;
  top: 22px;
  width: auto;
  padding: 0;
  border: 1px solid var(--jz-edge);
  border-radius: var(--jz-r-lg);
  background: var(--jz-panel);
  overflow: hidden;
}

.store-sidebar .site-navigation { margin: 0; padding: 0; border: 0; background: none; }

/* the "Select a server" header */
.store-sidebar::before {
  content: "Select a server";
  display: block;
  padding: 20px 22px;
  border-bottom: 1px solid var(--jz-edge);
  background: var(--jz-panel-2);
  font-family: var(--jz-display);
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  background-image: var(--jz-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.store-sidebar .navigation-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.store-sidebar .navigation-list > li {
  position: relative;
  margin: 0;
  border-bottom: 1px solid rgba(46,36,86,.55);
}
.store-sidebar .navigation-list > li:last-child { border-bottom: 0; }

.store-sidebar .navigation-list > li > a {
  display: block;
  padding: 18px 24px;
  color: var(--jz-dim);
  font-family: var(--jz-display);
  font-size: 16px;
  letter-spacing: .03em;
  transition: color .18s, background .18s, padding-left .18s;
}
.store-sidebar .navigation-list > li > a:hover {
  color: var(--jz-ink);
  background: var(--jz-panel-2);
  padding-left: 30px;
}

.store-sidebar .navigation-list > li.active { background: var(--jz-panel-3); }
.store-sidebar .navigation-list > li.active > a,
.store-sidebar .navigation-list > li > a.link-active { color: #fff; }
.store-sidebar .navigation-list > li.active::before {
  content: "";
  position: absolute;
  left: 0; top: 14%;
  width: 4px; height: 72%;
  border-radius: 0 4px 4px 0;
  background: var(--jz-grad);
}

/* nested sub-categories */
.store-sidebar .navigation-list ul {
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
}
.store-sidebar .navigation-list ul a {
  display: block;
  padding: 10px 24px 10px 40px;
  color: var(--jz-dim-2);
  font-family: var(--jz-body);
  font-size: 14px;
}
.store-sidebar .navigation-list ul a:hover { color: var(--jz-ink); }

.store-sidebar .toggle { display: none; }
.store-sidebar .close-navigation { display: none; }

/* sidebar modules, if any are enabled */
.store-sidebar .widget {
  margin: 0;
  border-top: 1px solid var(--jz-edge);
  background: none;
}

/* ---------------- content panels ---------------- */

.store-products.jz-products {
  width: 100%;
  max-width: none;
  display: grid;
  gap: 22px;
}

.jz-panel {
  padding: 26px 28px;
  border: 1px solid var(--jz-edge);
  border-radius: var(--jz-r-lg);
  background: var(--jz-panel);
}

.jz-intro-title {
  margin: 0 0 12px;
  font-family: var(--jz-display);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: .04em;
  background: var(--jz-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.jz-intro-text { color: var(--jz-dim); font-size: 15px; }
.jz-intro-text strong { color: var(--jz-ink); font-weight: 600; }
.jz-intro-text :first-child { margin-top: 0; }
.jz-intro-text :last-child { margin-bottom: 0; }

.jz-panel-title {
  margin: 0 0 20px;
  font-family: var(--jz-display);
  font-size: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--jz-ink);
}

.jz-empty { text-align: center; color: var(--jz-dim); }

/* ---------------- package cards ---------------- */

.store-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.store-products-list { display: grid; gap: 12px; }

.store-product {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
  border: 1px solid var(--jz-edge);
  border-radius: var(--jz-r);
  background: var(--jz-panel-2);
  box-shadow: none;
  transition: transform .2s ease, border-color .2s, box-shadow .2s;
}
.store-product:hover {
  transform: translateY(-4px);
  border-color: var(--jz-edge-hi);
  box-shadow: 0 24px 46px -26px rgba(123,63,242,.9);
}

.store-product .image-link {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(10,7,20,.5);
  overflow: hidden;
}
.store-product .image-link .image {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transition: transform .25s ease;
}
.store-product:hover .image-link .image { transform: scale(1.07); }
.store-product .image-default { width: 60%; height: 60%; opacity: .2; }

.store-product .product-title {
  margin: 0 0 12px;
  font-family: var(--jz-display);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: .02em;
  text-align: center;
}
.store-product .product-title a { color: var(--jz-ink); }
.store-product .product-title a:hover { color: var(--jz-blue); }

.store-product .countdown {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(87,227,184,.35);
  background: rgba(87,227,184,.14);
  color: var(--jz-mint);
  font-size: 10px;
}

.jz-bonus {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid rgba(87,227,184,.38);
  background: rgba(87,227,184,.14);
  color: var(--jz-mint);
  font-family: var(--jz-display);
  font-size: 10px;
  white-space: nowrap;
}
.jz-card .image-link { margin-top: 8px; }

/* discounted price: old struck through, new beside it, both in the button */

.jz-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.jz-old {
  color: rgba(255,255,255,.62);
  font-size: 13px;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.jz-new { font-size: 16px; }

.jz-off {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 3;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,182,72,.45);
  background: rgba(255,182,72,.16);
  color: var(--jz-gold);
  font-family: var(--jz-display);
  font-size: 10px;
  letter-spacing: .03em;
}

.jz-card.is-discounted { border-color: rgba(255,182,72,.34); }
.jz-card.is-discounted:hover { border-color: rgba(255,182,72,.6); }

/* a discount badge and a bonus pill on the same card would collide */
.jz-card.is-discounted .jz-bonus { left: auto; right: 10px; transform: none; }

.jz-price {
  display: block;
  margin-top: auto;
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  background: var(--jz-grad-btn);
  color: #fff;
  font-family: var(--jz-display);
  font-size: 16px;
  text-align: center;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.3);
  transition: filter .18s, transform .18s;
}
.jz-price:hover { filter: brightness(1.14); transform: translateY(-1px); color: #fff; }
.jz-price.is-off {
  background: var(--jz-panel-3);
  color: var(--jz-dim-2);
  box-shadow: inset 0 0 0 1px var(--jz-edge);
  cursor: not-allowed;
}
.jz-price .price-label, .jz-price .label { display: none; }

/* ---------------- buttons ---------------- */

.btn-primary {
  border: 0;
  border-radius: 9px;
  padding: 11px 18px;
  background: var(--jz-grad-btn);
  color: #fff;
  font-family: var(--jz-display);
  font-size: 15px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.3);
  transition: filter .18s, transform .18s;
}
.btn-primary:hover { filter: brightness(1.14); transform: translateY(-1px); color: #fff; }

.btn-secondary {
  border: 1px solid var(--jz-edge-hi);
  border-radius: 9px;
  padding: 10px 18px;
  background: var(--jz-panel-2);
  color: var(--jz-ink);
  font-family: var(--jz-display);
  font-size: 15px;
}
.btn-secondary:hover { border-color: var(--jz-blue); color: var(--jz-ink); }

.btn-tertiary {
  border: 1px solid var(--jz-edge);
  border-radius: 8px;
  background: var(--jz-panel-2);
  color: var(--jz-dim);
  font-family: var(--jz-display);
}
.btn-tertiary:hover { color: var(--jz-ink); border-color: var(--jz-edge-hi); }

.quantity-field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--jz-edge);
  border-radius: 9px;
  background: var(--jz-bg-2);
}
.quantity-field .quantity {
  width: 46px;
  border: 0;
  background: transparent;
  color: var(--jz-ink);
  font-family: var(--jz-display);
  text-align: center;
}
.quantity-field .open-basket {
  flex: 1;
  border: 0;
  background: none;
  color: var(--jz-dim);
  font-family: var(--jz-display);
  font-size: 13px;
  cursor: pointer;
}

/* ---------------- package page & basket ---------------- */

.store-product-full { padding: 30px; border-radius: var(--jz-r-lg); background: var(--jz-panel); }
.store-product-full .product-title { font-size: clamp(22px, 4vw, 32px); }
.store-product-full .descr { color: var(--jz-dim); }
.store-product-full .descr h1,
.store-product-full .descr h2,
.store-product-full .descr h3 { font-family: var(--jz-display); color: var(--jz-ink); }
.product-actions .price { font-family: var(--jz-display); color: var(--jz-ink); }

.basket {
  border: 1px solid var(--jz-edge-hi);
  border-radius: var(--jz-r-lg);
  background: var(--jz-panel);
  color: var(--jz-ink);
}
.basket-header, .basket-second-header, .basket-checkout { border-color: var(--jz-edge); }
.basket-title, .basket-checkout h3, .basket .total { font-family: var(--jz-display); }
.basket-item { border-bottom: 1px solid var(--jz-edge); }
.basket-item .title a { color: var(--jz-ink); }
.basket-item .options { color: var(--jz-dim); }

/* ---------------- footer ---------------- */

.site-footer.jz-foot {
  border-top: 1px solid var(--jz-edge);
  background: var(--jz-bg-2);
  padding: 40px 24px 48px;
}
.jz-foot-in { max-width: var(--jz-shell); margin: 0 auto; text-align: center; }

.jz-foot-brand {
  font-family: var(--jz-display);
  font-size: 20px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--jz-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.jz-foot-note { margin: 6px 0 0; color: var(--jz-dim-2); font-size: 14px; }

.jz-foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 20px;
}
.jz-foot-links button, .jz-foot-links a {
  padding: 0;
  border: 0;
  background: none;
  color: var(--jz-dim);
  font-family: var(--jz-display);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.jz-foot-links button:hover, .jz-foot-links a:hover { color: var(--jz-blue); }

.site-footer .we-accept {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  opacity: .45;
}
.site-footer .we-accept img { height: 20px; width: auto; }
.site-footer .copyright {
  max-width: 660px;
  margin: 18px auto 0;
  color: var(--jz-dim-2);
  font-size: 12.5px;
}

/* ---------------- modals ---------------- */

.jz-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6,4,14,.8);
  backdrop-filter: blur(5px);
  animation: jz-fade .18s ease both;
}
.jz-modal[hidden] { display: none; }
@keyframes jz-fade { from { opacity: 0; } to { opacity: 1; } }

.jz-modal-card {
  width: min(620px, 100%);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--jz-edge-hi);
  border-radius: var(--jz-r-lg);
  background: var(--jz-panel);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9);
  text-align: left;
  animation: jz-pop .2s ease both;
}
@keyframes jz-pop { from { transform: translateY(14px) scale(.985); } to { transform: none; } }

.jz-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--jz-edge);
}
.jz-modal-top h2 {
  margin: 0;
  font-family: var(--jz-display);
  font-size: 20px;
  letter-spacing: .03em;
  color: var(--jz-ink);
}
.jz-modal-x {
  border: 0;
  background: none;
  color: var(--jz-dim);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.jz-modal-x:hover { color: var(--jz-ink); }

.jz-modal-body {
  padding: 20px 22px 24px;
  overflow-y: auto;
  color: var(--jz-dim);
  font-size: 15px;
}
.jz-modal-body p { margin: 0 0 14px; }
.jz-modal-body p:last-child { margin-bottom: 0; }
.jz-modal-body strong { color: var(--jz-ink); font-weight: 600; }

body.jz-locked { overflow: hidden; }

/* ---------------- responsive ---------------- */

@media (max-width: 1000px) {
  .site-content.jz-content { grid-template-columns: 1fr; }
  .store-sidebar { position: static; }
  .store-sidebar .navigation-list { display: flex; flex-wrap: wrap; }
  .store-sidebar .navigation-list > li { flex: 1 1 45%; border-bottom: 1px solid rgba(46,36,86,.55); }
  .store-sidebar .navigation-list > li > a { text-align: center; padding: 15px 12px; }
  .store-sidebar .navigation-list > li > a:hover { padding-left: 12px; }
}

@media (max-width: 760px) {
  .jz-head-in { grid-template-columns: 1fr; justify-items: center; gap: 18px; padding-bottom: 26px; }
  .site-header.jz-head .site-title.jz-logo,
  .jz-pill-ip, .jz-pill-discord { grid-column: 1; justify-self: center; }
  .jz-pill-discord .jz-pill-text { text-align: left; }
  .site-title.jz-logo img { width: 150px; }
  .site-content.jz-content { padding: 0 14px 70px; gap: 16px; }
  .jz-panel { padding: 20px 18px; }
  .store-products-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}

@media (max-width: 420px) {
  .store-products-grid { grid-template-columns: repeat(2, 1fr); }
  .jz-topbar { padding: 14px 14px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .site *, .site *::before, .site *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .store-product:hover, .btn-primary:hover, .jz-price:hover { transform: none; }
}
