/* ==========================================================================
   Unstable Network theme
   Loaded after store.css. store.css still styles the addon pages
   (FAQ, rules, staff, vote, patron, gift cards, coin slider, crate upsell).
   ========================================================================== */

:root {
  --un-bg: #14110b;
  --un-panel: rgba(29, 24, 16, 0.94);
  --un-panel-solid: #1d1810;
  --un-cell: rgba(36, 30, 19, 0.92);
  --un-cell-2: #2a2317;
  --un-line: rgba(255, 214, 140, 0.12);
  --un-line-strong: rgba(255, 214, 140, 0.22);
  --un-text: #f7efdd;
  --un-muted: #b5a88c;
  --un-yellow: var(--primary-color, #ffc629);
  --un-yellow-shade: var(--primary-shade, #d99a06);
  --un-yellow-text: var(--icon-primary, #2a1d05);
  --un-green: #5fd35f;
  --un-red: #ef3a4c;
  --un-discord: #5865f2;
  --un-discord-shade: #4149c4;
  --un-radius: 16px;
  --un-radius-sm: 10px;
  --cat: #8b4dff;
}

/* Category colours by place in the list (1st purple, 2nd orange ...).
   IDs set in the "category-colors" setting override these. */
.cat-pos-1 { --cat: #8c4cff; --cat-text: #ffffff; --cat-text-soft: rgba(255, 255, 255, 0.92); }
.cat-pos-2 { --cat: #b4601f; --cat-text: #ffffff; --cat-text-soft: rgba(255, 255, 255, 0.92); }
.cat-pos-3 { --cat: #3ba5e7; --cat-text: #ffffff; --cat-text-soft: rgba(255, 255, 255, 0.92); }
.cat-pos-4 { --cat: #5c6a91; --cat-text: #ffffff; --cat-text-soft: rgba(255, 255, 255, 0.92); }
.cat-pos-5 { --cat: #ef364b; --cat-text: #ffffff; --cat-text-soft: rgba(255, 255, 255, 0.92); }
.cat-pos-6 { --cat: #f2b833; --cat-text: #4a2b07; --cat-text-soft: rgba(74, 43, 7, 0.85); }

/* ---------- Base ---------- */

.un-body, .un-body *, .un-body *::before, .un-body *::after { box-sizing: border-box; }

body.un-body {
  margin: 0;
  min-height: 100vh;
  background: var(--un-bg);
  color: var(--un-text);
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.un-body a { color: inherit; }

/* Background picture: only behind the top of the page, then it fades into the dark colour.
   Kept deliberately simple (no mask, no filter): some browsers (Brave, low-memory GPUs) drop
   large masked or blurred layers, which made the picture vanish. The picture is set twice,
   as an <img> and as the box background, and the dark overlay above it does the fade. */
body.un-body { position: relative; isolation: isolate; }
.un-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1100px;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.un-bg img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  /* Soft blur like the reference. Only the picture is filtered (no mask), and it is scaled up a
     little so the blurred edges never show. */
  filter: blur(6px);
  transform: scale(1.04);
  transform-origin: center top;
}

.un-bg-shade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1101px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(20, 17, 11, 0.30) 0%,
    rgba(20, 17, 11, 0.32) 30%,
    rgba(20, 17, 11, 0.55) 55%,
    rgba(20, 17, 11, 0.85) 78%,
    var(--un-bg) 100%);
}

.un-container,
#root.un-container {
  width: 100%;
  max-width: 1212px;
  margin: 0 auto;
  padding: 0 16px;
  font-family: 'Poppins', system-ui, sans-serif;
  min-height: 0;
}

.un-display {
  font-family: 'Lilita One', 'Poppins', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.un-muted { color: var(--un-muted); }
.un-center { text-align: center; }

.un-empty {
  text-align: center;
  color: var(--un-muted);
  padding: 40px 16px;
  background: var(--un-panel);
  border: 1px solid var(--un-line);
  border-radius: var(--un-radius);
}

.un-prose { color: var(--un-text); line-height: 1.65; overflow-wrap: anywhere; }
.un-prose p { margin: 0 0 0.7em; }
.un-prose p:last-child { margin-bottom: 0; }
.un-prose strong, .un-prose b { color: #fff; }
.un-prose a { color: var(--un-yellow); }
.un-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.un-prose ul { list-style: none; padding: 0; margin: 0 0 0.7em; }
.un-prose ul li { position: relative; padding-left: 1.5em; margin: 0.2em 0; }
.un-prose ul li::before {
  content: "\f00c";
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.85em;
  color: var(--un-yellow);
}
.un-prose ol { padding-left: 1.3em; }
.un-prose h1, .un-prose h2, .un-prose h3, .un-prose h4 { color: #fff; margin: 0.6em 0 0.3em; line-height: 1.2; }

/* ---------- Buttons ---------- */

.un-btn {
  --btn-bg: var(--un-cell-2);
  --btn-shade: rgba(0, 0, 0, 0.35);
  --btn-text: var(--un-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.75em 1.25em 0.85em;
  border: 0;
  border-radius: var(--un-radius-sm);
  background: var(--btn-bg);
  color: var(--btn-text) !important;
  box-shadow: inset 0 -4px 0 var(--btn-shade);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.un-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.un-btn:active { transform: translateY(1px); box-shadow: inset 0 -2px 0 var(--btn-shade); }
.un-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.un-btn--primary { --btn-bg: var(--un-yellow); --btn-shade: var(--un-yellow-shade); --btn-text: var(--un-yellow-text); }
.un-btn--danger  { --btn-bg: var(--un-red); --btn-shade: #b52232; --btn-text: #fff; }
.un-btn--dark    { --btn-bg: #2b2416; --btn-shade: #15110a; --btn-text: var(--un-text); }
.un-btn--ghost   { --btn-bg: transparent; --btn-shade: transparent; --btn-text: var(--un-text); border: 1px solid var(--un-line-strong); }
.un-btn--discord { --btn-bg: var(--un-discord); --btn-shade: var(--un-discord-shade); --btn-text: #fff; }

.un-btn--block { display: flex; width: 100%; }
.un-btn--sm { font-size: 12px; padding: 0.6em 1em 0.7em; }
.un-btn--lg { font-size: 16px; padding: 0.9em 1.4em 1em; }
.un-btn--square { padding: 0; width: 44px; height: 44px; flex: 0 0 44px; }

.un-btn.is-disabled,
.un-btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; filter: grayscale(0.3); }
.un-btn.is-loading { pointer-events: none; opacity: 0.7; }
.un-btn.is-loading::after {
  content: "";
  width: 12px; height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: un-spin 0.7s linear infinite;
}
@keyframes un-spin { to { transform: rotate(360deg); } }

.un-price-old { opacity: 0.6; font-size: 0.75em; margin-right: 0.2em; }

.un-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--un-line);
  color: var(--un-text);
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s ease;
}
.un-icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.un-icon-btn--square { border-radius: 10px; }
.un-icon-btn--patron { color: var(--un-yellow); }
.un-icon-btn--patron:hover { color: var(--un-yellow); background: rgba(255, 198, 41, 0.14); }

.un-round-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: var(--un-yellow);
  color: var(--un-yellow-text) !important;
  box-shadow: inset 0 -3px 0 var(--un-yellow-shade);
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.15s ease;
}
.un-round-btn:hover { transform: translateY(-1px); }
.un-round-btn--orange { background: #ff9b2f; box-shadow: inset 0 -3px 0 #cf6f0c; color: #3a1a02 !important; }
.un-round-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--un-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Top bar ---------- */

.un-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 13, 8, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 214, 140, 0.1);
}

.un-topbar-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 66px;
}

.un-topbar-left,
.un-topbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.un-topbar-right { justify-content: flex-end; }

.un-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  margin-left: 4px;
  background: none;
  border: 0;
  color: var(--un-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
div.un-user { cursor: default; }
.un-user-avatar { width: 36px; height: 36px; border-radius: 8px; image-rendering: pixelated; flex: 0 0 auto; }
.un-user-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.un-user-text strong { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.un-user-sub { font-size: 12px; color: var(--un-muted); text-decoration: none; }
a.un-user-sub:hover { color: var(--un-text); }

.un-realm-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--un-line-strong);
  color: var(--un-text);
  font: 600 14px 'Poppins', sans-serif;
  cursor: pointer;
}
.un-realm-pill strong { font-weight: 800; }
.un-realm-pill i { color: var(--un-muted); margin-left: 6px; }
.un-realm-pill:hover { border-color: var(--un-yellow); }

.un-cart-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--un-text); }
.un-cart-text { display: flex; flex-direction: column; text-align: right; line-height: 1.25; }
.un-cart-text strong { font-size: 14px; font-weight: 700; }
.un-cart-text span { font-size: 12px; color: var(--un-muted); }

/* ---------- Hero ---------- */

.un-hero-wrap { padding-top: 36px; }

.un-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  min-height: 138px;
  background: rgba(16, 13, 8, 0.48);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 214, 140, 0.14);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.un-hero-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 222px;
  padding: 10px 18px 14px 10px;
  border: 0;
  border-radius: 12px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.un-hero-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.un-hero-btn--play { justify-self: start; background: var(--un-yellow); color: var(--un-yellow-text); box-shadow: inset 0 -5px 0 var(--un-yellow-shade); }
.un-hero-btn--discord { justify-self: end; background: var(--un-discord); color: #fff; box-shadow: inset 0 -5px 0 var(--un-discord-shade); }

.un-hero-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.13);
  font-size: 18px;
}
.un-hero-btn--discord .un-hero-btn-icon { background: rgba(255, 255, 255, 0.16); font-size: 20px; }
.un-hero-btn-text { display: flex; flex-direction: column; line-height: 1.15; }
.un-hero-btn-text strong { font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 22px; text-transform: uppercase; }
.un-hero-btn-text small { font-size: 12px; font-weight: 500; opacity: 0.85; margin-top: 2px; }

.un-hero-badge {
  position: absolute;
  top: -11px;
  right: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff;
  color: #1b1b1b;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.un-hero-logo { display: flex; justify-content: center; text-decoration: none; }
.un-hero-logo img { display: block; max-height: 124px; max-width: 320px; width: auto; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45)); }
.un-hero-logo img.is-pulsing { animation: store-logo-breathe 3.2s ease-in-out infinite; }
.un-hero-name { font-size: 44px; color: var(--un-yellow); }

.un-hero-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 22px;
  font-size: 13px;
  color: var(--un-muted);
}
.un-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--un-green); box-shadow: 0 0 8px rgba(95, 211, 95, 0.6); flex: 0 0 auto; }
.un-dot.is-off { background: var(--un-red); box-shadow: none; }
[hidden] { display: none !important; }

/* ---------- Season banner ---------- */

.un-season {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 150px;
  padding: 26px 32px;
  margin-bottom: 26px;
  border-radius: var(--un-radius);
  overflow: hidden;
  background: var(--season-bg, linear-gradient(100deg, #1d5fc4 0%, #2f86dc 45%, #7fcaf2 100%));
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.15);
}
.un-season::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.5px, transparent 1.6px);
  background-size: 34px 34px;
  pointer-events: none;
}
.un-season > * { position: relative; }
.un-season-text { min-width: 0; }
.un-season-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  color: #1d5fc4;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.un-season-title { margin: 8px 0 6px; font-size: 44px; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.2); }
.un-season-text p { margin: 0; font-size: 16px; font-weight: 600; color: #fff; }
.un-season-art { display: flex; gap: 14px; margin-left: auto; }
.un-season-art img { height: 110px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.25)); }
.un-season-btn {
  flex: 0 0 auto;
  padding: 14px 22px 16px;
  border-radius: 10px;
  background: #fff;
  color: #1d5fc4 !important;
  box-shadow: inset 0 -4px 0 #bcd9f2;
  font-size: 22px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.un-season-btn:hover { transform: translateY(-2px); }

/* ---------- Category cards ---------- */

.un-catgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.un-catgrid.realm-grid { display: none; }
.un-catgrid.realm-grid.is-active-realm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.un-catgrid--sub { margin-bottom: 28px; }

.un-catcard {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 222px;
  padding-left: 42px;
  border-radius: var(--un-radius);
  background: var(--cat);
  color: var(--cat-text, #fff) !important;
  text-decoration: none;
  /* The picture may stick out above the card, but is cut off at the sides and bottom */
  overflow: visible;
  -webkit-clip-path: inset(-90px 0 0 0 round var(--un-radius));
  clip-path: inset(-90px 0 0 0 round var(--un-radius));
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}
.un-catcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 55%);
  pointer-events: none;
}
.un-catcard:hover { transform: translateY(-3px); }
.un-catcard-text { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 4px; padding: 24px 16px 24px 0; min-width: 0; max-width: 58%; }
.un-catcard-title { font-size: 40px; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); }
.cat-pos-6 .un-catcard-title { text-shadow: none; }

/* Category description from Tebex: shown as one small line under the title,
   whatever formatting the editor added (paragraphs, bold, colours, sizes). */
.un-catcard-sub {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--cat-text-soft, rgba(255, 255, 255, 0.92));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.un-catcard-sub *,
.un-cathead-desc * {
  margin: 0 !important;
  padding: 0 !important;
  font: inherit !important;
  color: inherit !important;
  background: none !important;
  text-align: left !important;
}
.un-catcard-sub p,
.un-catcard-sub div,
.un-catcard-sub h1, .un-catcard-sub h2, .un-catcard-sub h3, .un-catcard-sub h4 { display: inline; }
.un-catcard-sub p + p::before { content: " "; }
.un-catcard-sub img,
.un-catcard-sub br,
.un-cathead-desc img { display: none; }
/* Picture always fits inside the card (any size or shape), centred on the right */
.un-catcard-img {
  position: absolute;
  z-index: 1;
  top: 12px;
  bottom: 12px;
  right: 5%;
  width: 38%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.un-catcard-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.32));
  transform-origin: center;
  transition: transform 0.25s ease;
}
.un-catcard:hover .un-catcard-img img { transform: scale(1.05) rotate(-2deg); }

/* ---------- Notices ---------- */

.un-notices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.un-notice { background: var(--un-panel); border: 1px solid var(--un-line); border-radius: var(--un-radius); padding: 22px 24px; }
.un-notice h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.un-notice p { margin: 0; color: var(--un-muted); font-size: 14px; line-height: 1.7; }

.announcement-block { border-radius: var(--un-radius); background: var(--un-panel); }
.announcement-block .un-btn { width: fit-content; }

/* ---------- Category page ---------- */

.un-cathead {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 116px;
  padding: 22px 200px 22px 22px;
  border-radius: var(--un-radius);
  background: var(--cat);
  color: var(--cat-text, #fff);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.18);
}
.un-cathead-back {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  color: var(--cat-text, #fff);
  text-decoration: none;
  transition: background 0.15s ease;
}
.un-cathead-back:hover { background: rgba(0, 0, 0, 0.32); }
.un-cathead-text h1 { margin: 0; font-size: 40px; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); }
.un-cathead-desc { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--cat-text-soft, rgba(255, 255, 255, 0.92)); }
.un-cathead-desc p { margin: 0; }
.un-cathead-img {
  position: absolute;
  right: 28px;
  bottom: 4px;
  height: 140px;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.un-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 16px 0 28px;
}
.un-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.un-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--un-panel);
  border: 1px solid var(--un-line);
  color: var(--un-text) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.un-tab img { width: 24px; height: 24px; object-fit: contain; }
.un-tab:hover { background: var(--un-cell-2); }
.un-tab.is-active { background: var(--cat); border-color: transparent; color: var(--cat-text, #fff) !important; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2); }

.un-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--un-muted); }
.un-trust .fa-caret-right { color: var(--un-yellow); }
.un-trust .fa-check { color: var(--un-green); }

.un-section-head { margin: 34px 0 16px; }
.un-section-head h2 { margin: 0; font-size: 28px; }
.un-section-head p { margin: 4px 0 0; font-size: 14px; color: var(--un-muted); }

/* ---------- Packages ---------- */

.un-pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--un-panel);
  border: 1px solid var(--un-line);
  border-radius: var(--un-radius);
  padding: 10px;
}
.un-pkg.is-popular { border-color: rgba(255, 198, 41, 0.55); }

.un-pkg-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 160px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--cat);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15);
  cursor: pointer;
  overflow: hidden;
}
.un-pkg-media img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3)); transition: transform 0.2s ease; }
.un-pkg-media:hover img { transform: scale(1.06); }
.un-pkg-noimg { font-size: 48px; color: rgba(255, 255, 255, 0.6); }

.un-pkg-name { margin: 0; color: #fff; }
.un-pkg-price { color: var(--un-yellow); }
.un-pkg-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.un-countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(239, 58, 76, 0.15);
  color: #ff8a96;
  font-size: 12px;
  font-weight: 700;
}

.un-ribbon {
  position: absolute;
  top: -12px;
  right: 14px;
  z-index: 2;
  padding: 4px 10px;
  background: #fff;
  color: #17130b;
  font-size: 13px;
  font-weight: 800;
  border-radius: 3px;
  transform: rotate(3deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
.un-ribbon--left { right: auto; left: -6px; transform: rotate(-4deg); background: var(--un-yellow); color: var(--un-yellow-text); }

/* tile */
.un-pkggrid { display: grid; gap: 22px; }
.un-pkggrid--tile { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.un-pkggrid--detail { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.un-pkg--tile { text-align: center; padding-bottom: 14px; }
.un-pkg--tile .un-pkg-name { font-size: 24px; margin: 16px 6px 14px; }
.un-pkg--tile .un-countdown { align-self: center; margin: -6px 0 12px; }
.un-pkg--tile .un-btn { margin-top: auto; }

/* detail */
.un-pkg--detail { padding-bottom: 18px; }
.un-pkg--detail .un-pkg-body { display: flex; flex-direction: column; flex: 1; padding: 0 12px; }
.un-pkg--detail .un-pkg-name { font-size: 26px; margin: 18px 0 10px; }
.un-pkg--detail .un-pkg-desc { font-size: 14px; margin-bottom: 18px; }
.un-pkg--detail .un-pkg-desc ul li { font-weight: 600; }
.un-pkg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.un-pkg--detail .un-pkg-price { font-size: 32px; color: #fff; }
.un-pkg--detail .un-pkg-actions { flex-wrap: nowrap; }

/* featured */
.un-pkg--featured {
  display: grid;
  grid-template-columns: minmax(0, 432px) 1fr;
  gap: 46px;
  align-items: center;
  border-color: rgba(255, 198, 41, 0.6);
}
.un-pkg--featured .un-pkg-media { height: 280px; }
.un-pkg--featured .un-pkg-name { font-size: 48px; }
.un-pkg--featured .un-pkg-price { font-size: 40px; margin: 8px 0 22px; }
.un-pkg--featured .un-btn { font-size: 15px; padding: 0.85em 1.3em 0.95em; }

/* package page: buy card on the left, name + description on the right */
.un-pkgpage { max-width: 1212px; margin: 0 auto; }
.un-backlink { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--un-muted) !important; text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.un-backlink:hover { color: var(--un-text) !important; }
.un-pkg--page { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.un-pkgpage-buy { padding: 22px 22px 24px; text-align: center; overflow: visible; }
.un-pkgpage-buy .un-pkg-media { height: 230px; background: radial-gradient(closest-side, rgba(255, 198, 41, 0.16), transparent 75%); box-shadow: none; cursor: default; }
.un-pkgpage-buy .un-pkg-price { font-size: 32px; color: var(--un-yellow); margin: 14px 0 18px; }
.un-pkgpage-buy .un-price-old { color: var(--un-muted); }
.un-pkgpage-buy .un-countdown { align-self: center; margin: -8px 0 16px; }
.un-pkgpage-actions { display: grid; gap: 12px; }
.un-pkgpage-actions .un-btn { width: 100%; justify-content: center; }
.un-pkgpage-info { padding: 30px 34px; }
.un-pkgpage-info .un-pkg-name { font-size: 40px; margin: 0 0 14px; }
.un-pkgpage-info .un-pkg-desc { font-size: 15px; color: var(--un-muted); }
.un-pkgpage-info .un-pkg-desc img { display: block; max-width: 100%; height: auto; margin: 16px auto; border-radius: 6px; }

/* sale badge */
.un-offbadge {
  position: absolute;
  top: -13px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb52e, #f07a12);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(240, 122, 18, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}
.un-offbadge i { font-size: 11px; }

/* crate key cards */
.un-pkggrid--keys { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 34px; }
.un-pkg--key { align-items: stretch; text-align: center; padding: 22px 18px 18px; overflow: visible; }
.un-pkg--key .un-pkg-media { height: 150px; background: radial-gradient(closest-side, rgba(255, 198, 41, 0.14), transparent 75%); box-shadow: none; }
.un-pkg--key .un-pkg-name { font-size: 22px; margin: 14px 4px 4px; }
.un-pkg--key .un-pkg-price { font-size: 16px; font-weight: 800; color: var(--un-yellow); min-height: 1.4em; }
.un-pkg--key .un-price-old { font-size: 0.85em; color: var(--un-muted); opacity: 0.8; }
.un-pkg--key .un-countdown { align-self: center; }

.un-keyqty { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 14px; }
.un-keyqty-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  padding: 8px 4px;
  border: 1.5px solid var(--un-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--un-text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.un-keyqty-opt strong { font-size: 20px; line-height: 1; }
.un-keyqty-opt small { font-size: 10.5px; font-weight: 700; color: var(--un-green); line-height: 1.2; }
.un-keyqty-opt:hover { border-color: var(--un-line-strong); background: rgba(255, 198, 41, 0.05); }
.un-keyqty-opt.is-active { border-color: var(--un-yellow); background: rgba(255, 198, 41, 0.12); }

.un-key-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin-top: auto; }
.un-pkg--key .un-keyqty + .un-key-actions,
.un-pkg--key .un-pkg-price + .un-key-actions { margin-top: 14px; }
.un-key-actions .un-btn { justify-content: center; }

@media (max-width: 1100px) {
  .un-pkggrid--keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .un-pkggrid--keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .un-pkgpage-info { padding: 22px; }
  .un-pkgpage-info .un-pkg-name { font-size: 30px; }
}
@media (max-width: 480px) {
  .un-pkggrid--keys { grid-template-columns: 1fr; }
}

/* kit showcase cards */
.un-pkggrid--kits { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; }
.un-pkg--kit { padding: 0; overflow: visible; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.un-pkg--kit:hover { transform: translateY(-4px); border-color: var(--un-line-strong); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); }
.un-kit-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 250px;
  padding: 0 0 18px;
  border: 0;
  border-radius: var(--un-radius) var(--un-radius) 0 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--cat, #8c4cff);
  background:
    radial-gradient(60% 55% at 50% 58%, rgba(255, 255, 255, 0.22), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, var(--cat, #8c4cff) 0%, color-mix(in srgb, var(--cat, #8c4cff) 55%, #000) 100%);
}
.un-kit-stage img {
  position: relative;
  z-index: 1;
  height: 92%;
  max-width: 80%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s ease;
}
.un-pkg--kit:hover .un-kit-stage img { transform: scale(1.06) rotate(-2deg); }
.un-kit-floor {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 46%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.45), transparent);
}
.un-kit-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 3px 10px 4px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.un-kit-tag--hot { left: auto; right: 12px; background: var(--un-yellow); color: var(--un-yellow-text); }
.un-kit-peek {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  transform: translate(-50%, 8px);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.un-pkg--kit:hover .un-kit-peek,
.un-kit-stage:focus-visible .un-kit-peek { opacity: 1; transform: translate(-50%, 0); }
.un-kit-body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 16px; }
.un-pkg--kit .un-pkg-name { font-size: 22px; line-height: 1.15; margin: 0 0 14px; }
.un-pkg--kit .un-countdown { margin: -6px 0 12px; }
.un-kit-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--un-line); }
.un-kit-price { display: flex; flex-direction: column; line-height: 1.1; }
.un-kit-price small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--un-muted); }
.un-kit-price strong { font-size: 24px; color: var(--un-yellow); }
.un-kit-price .un-price-old { font-size: 0.6em; color: var(--un-muted); }
.un-kit-actions { display: flex; gap: 8px; }

@media (max-width: 1100px) { .un-pkggrid--kits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .un-pkggrid--kits { grid-template-columns: repeat(2, minmax(0, 1fr)); } .un-kit-stage { height: 210px; } }
@media (max-width: 480px) { .un-pkggrid--kits { grid-template-columns: 1fr; } }

/* ---------- Rank table ---------- */

.un-ranks .un-section-head { margin-top: 6px; }
.un-ranks-scroll { overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.un-ranks-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.15fr) repeat(var(--rank-cols), minmax(160px, 1fr));
  gap: 8px 14px;
  min-width: calc(200px + var(--rank-cols) * 175px);
}
.un-ranks-note { align-self: center; padding: 0 6px; font-size: 13px; font-weight: 600; line-height: 1.6; }

.un-rank-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10px 16px;
  margin-bottom: 18px;
  background: rgba(26, 21, 13, 0.94);
  border: 1px solid var(--un-line);
  border-radius: 12px;
}
.un-rank-head img { height: 72px; width: auto; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35)); }
.un-rank-head h3 { margin: 10px 0 4px; font-size: 26px; color: #fff; }
.un-rank-head span { font-size: 12px; color: var(--un-muted); }

.un-ranks-section {
  grid-column: 1 / -1;
  padding: 14px 4px 2px;
  color: var(--un-yellow);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.un-ranks-label,
.un-ranks-cell {
  display: flex;
  align-items: center;
  min-height: 44px;
  background: var(--un-cell);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
}
.un-ranks-label { padding: 0 16px; font-weight: 500; }
.un-ranks-cell { justify-content: center; padding: 6px 10px; text-align: center; font-weight: 700; }
.un-ranks-cell strong { font-weight: 700; }
.un-rank-head.is-hl,
.un-ranks-cell.is-hl { border-color: var(--rank-hl); }

.un-yes { color: var(--un-green); }
.un-no { color: var(--un-red); opacity: 0.75; font-size: 13px; }
.un-rank-tag {
  font-family: 'VT323', monospace;
  font-size: 19px;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 4px;
  background: #0f0c07;
  color: var(--col, #ffc629);
  letter-spacing: 0.04em;
}

.un-ranks-label--price { font-size: 24px; align-self: stretch; margin-top: 10px; padding: 0 20px; color: #fff; }
.un-ranks-buy { flex-direction: column; gap: 2px; padding: 16px 14px; margin-top: 10px; }
.un-rank-price { font-size: 32px; color: #fff; }
.un-ranks-buy .un-muted { font-size: 12px; font-weight: 500; margin-bottom: 10px; }
.un-ranks-sublink { margin-top: 8px; font-size: 12px; color: var(--un-muted) !important; }
.un-ranks-foot { margin: 14px 2px 0; font-size: 13px; color: var(--un-muted); }

/* ---------- Modules ---------- */

.module-grid.un-modules { margin-top: 32px; gap: 20px; }
.module-grid.un-modules:empty { display: none; }

.un-goal {
  background: var(--un-panel);
  border: 1px solid var(--un-line);
  border-radius: var(--un-radius);
  padding: 16px 20px 14px;
}
.un-goal-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.un-goal-pct { font-family: 'VT323', monospace; font-size: 30px; line-height: 1; color: #74e43f; text-shadow: 2px 2px 0 #1d4a0b; }
.un-goal-amount { font-size: 12px; color: var(--un-muted); }
.un-goal-bar {
  position: relative;
  height: 16px;
  border-radius: 3px;
  background: #0d0b07;
  border: 1px solid rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.un-goal-fill {
  height: 100%;
  max-width: 100%;
  background: linear-gradient(180deg, #8bf04e 0%, #5ccc26 55%, #43a81a 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25);
  transition: width 0.8s ease;
}
.un-goal-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 18 - 2px), rgba(0, 0, 0, 0.55) calc(100% / 18 - 2px), rgba(0, 0, 0, 0.55) calc(100% / 18));
  pointer-events: none;
}
.un-goal-label { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--un-muted); }

.un-payments {
  background: var(--un-panel);
  border: 1px solid var(--un-line);
  border-radius: var(--un-radius);
  padding: 22px 20px;
}
.un-payments-title { margin: 0 0 20px; text-align: center; font-size: 16px; font-weight: 800; }
.un-payments-list { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 18px 10px; }
.un-payment { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 110px; }
.un-payment-head {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--un-cell-2);
  border: 1px solid var(--un-line-strong);
  color: var(--un-muted);
}
.un-payment-head img { width: 40px; height: 40px; image-rendering: pixelated; border-radius: 3px; }
.un-payment-name { max-width: 100%; font-size: 12px; font-weight: 600; color: var(--un-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.un-status {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  background: var(--un-panel);
  border: 1px solid var(--un-line);
  border-radius: var(--un-radius);
  padding: 18px 20px;
}
.un-status .un-dot { width: 12px; height: 12px; border-radius: 3px; }
.un-status div { display: flex; flex-direction: column; font-size: 14px; }

.un-discord-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 16px 16px 16px 20px;
  background: var(--un-panel);
  border: 1px solid var(--un-line);
  border-radius: var(--un-radius);
  color: var(--un-text) !important;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.un-discord-cta:hover { border-color: var(--un-discord); }
.un-discord-cta-text { display: flex; flex-direction: column; gap: 2px; }
.un-discord-cta-text strong { font-size: 17px; font-weight: 800; }
.un-discord-cta-text span { font-size: 12px; color: var(--un-muted); }
.un-discord-cta-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--un-discord);
  box-shadow: inset 0 -4px 0 var(--un-discord-shade);
  color: #fff;
  font-size: 20px;
}

/* ---------- Footer ---------- */

.un-footer {
  margin-top: 64px;
  background: rgba(17, 14, 9, 0.97);
  border-top: 1px solid var(--un-line);
  font-family: 'Poppins', sans-serif;
}
.un-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 40px;
}
.un-footer-col h3 { margin: 0 0 14px; font-size: 19px; font-weight: 700; color: #fff; }
.un-footer-col p { margin: 0 0 14px; font-size: 14px; line-height: 1.7; color: var(--un-muted); }
.un-footer-col p strong { color: #fff; }
.un-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.un-footer-links a { font-size: 14px; color: var(--un-muted); text-decoration: none; }
.un-footer-links a:hover { color: #fff; }

.un-footer-bottom { background: #0d0b06; padding: 20px 0; }
.un-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.un-footer-bottom p { margin: 2px 0; font-size: 14px; }
.un-footer-bottom strong { color: #fff; }
.un-footer-icons { display: flex; align-items: center; gap: 16px; }
.un-footer-icons a,
.un-footer-icons button { background: none; border: 0; padding: 4px; color: var(--un-muted); font-size: 17px; cursor: pointer; text-decoration: none; }
.un-footer-icons a:hover,
.un-footer-icons button:hover { color: #fff; }

/* ---------- Toast ---------- */

.copy-toast {
  left: 50%;
  right: auto;
  bottom: 24px;
  transform: translate(-50%, 20px);
  border-radius: 12px;
  background: var(--un-green);
  color: #0e3a10;
  font-family: 'Poppins', sans-serif;
  max-width: calc(100vw - 32px);
}
.copy-toast.show { transform: translate(-50%, 0); }
.copy-toast.toast-error { background: var(--un-red); color: #fff; }

/* ---------- Cart drawer ---------- */

.un-drawer {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.un-drawer.is-open { opacity: 1; visibility: visible; }
.un-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100%);
  background: #201a0f;
  border-left: 1px solid var(--un-line);
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}
.un-drawer.is-open .un-drawer-panel { transform: translateX(0); }
html.un-no-scroll { overflow: hidden; }

.un-cart { display: flex; flex-direction: column; min-height: 100%; padding: 22px 20px 16px; font-family: 'Poppins', sans-serif; }
.un-cart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.un-cart-head h2 { margin: 0; font-size: 34px; color: #fff; }

.un-cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 0; }
.un-cart-empty i { font-size: 22px; color: var(--un-muted); }
.un-cart-empty h3 { margin: 12px 0 4px; font-size: 26px; color: #fff; }
.un-cart-empty p { margin: 0; font-size: 13px; color: var(--un-muted); }

.un-cart-items { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; }
.un-cart-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto 22px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin: 0;
  background: var(--un-cell-2);
  border-radius: 12px;
}
.un-cart-thumb { width: 52px; height: 52px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); display: flex; align-items: center; justify-content: center; color: var(--un-muted); }
.un-cart-thumb img { max-width: 44px; max-height: 44px; object-fit: contain; }
.un-cart-info { display: flex; flex-direction: column; min-width: 0; }
.un-cart-info strong { font-size: 14px; font-weight: 700; line-height: 1.25; color: #fff; }
.un-cart-info span { font-size: 12px; color: var(--un-muted); margin-top: 2px; }
.un-qty { display: flex; align-items: center; background: #15110a; border-radius: 8px; padding: 2px; }
.un-qty button { width: 24px; height: 26px; border: 0; background: none; color: var(--un-yellow); font-size: 16px; font-weight: 800; cursor: pointer; line-height: 1; }
.un-qty button:disabled { opacity: 0.3; cursor: not-allowed; }
.un-qty input { width: 26px; border: 0; background: none; color: #fff; text-align: center; font: 700 13px 'Poppins', sans-serif; -moz-appearance: textfield; appearance: textfield; padding: 0; }
.un-qty input::-webkit-outer-spin-button,
.un-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.un-cart-price { font-size: 15px; font-weight: 800; color: var(--un-yellow); white-space: nowrap; }
.un-cart-remove { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 0; background: none; padding: 0; color: var(--un-muted) !important; cursor: pointer; text-decoration: none; }
.un-cart-remove:hover { color: #fff !important; }

.un-offer { margin-top: 16px; padding: 14px; border-radius: 14px; }
.un-offer--upgrade { border: 1.5px dashed rgba(255, 198, 41, 0.55); background: rgba(255, 198, 41, 0.05); }
.un-offer--bundle { border: 1.5px dashed rgba(95, 211, 95, 0.5); background: rgba(95, 211, 95, 0.05); }
.un-offer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.un-chip { display: inline-block; padding: 3px 10px 4px; border-radius: 6px; background: var(--un-yellow); color: var(--un-yellow-text); font-size: 15px; transform: rotate(-2deg); box-shadow: inset 0 -3px 0 var(--un-yellow-shade); }
.un-chip--green { background: #4cc24c; color: #0b2e0b; box-shadow: inset 0 -3px 0 #2f8f2f; }
.un-offer-note { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--un-muted); }
.un-offer-text { margin: 0 0 12px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.un-offer-text strong { color: var(--un-yellow); }
.un-offer-compare { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; }
.un-offer-box { width: 118px; height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); border: 1.5px solid transparent; font-size: 12px; font-weight: 700; color: var(--un-muted); }
.un-offer-box img { max-height: 50px; max-width: 70px; object-fit: contain; }
.un-offer-box.is-target { border-color: var(--un-yellow); color: #fff; }
.un-offer-arrow { color: var(--un-yellow); }
.un-offer-actions { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; }

.un-bundle-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); }
.un-bundle-row img { width: 40px; height: 40px; object-fit: contain; }
.un-bundle-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.un-bundle-info strong { font-size: 15px; font-weight: 800; color: #fff; }
.un-bundle-info span { font-size: 13px; }
.un-bundle-info del { color: var(--un-muted); margin-right: 4px; }
.un-bundle-info b { color: var(--un-green); }

.un-cart-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--un-line); }
.un-cart-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.un-cart-total span { font-size: 14px; color: var(--un-muted); }
.un-cart-total strong { font-size: 34px; color: #fff; }
.un-cart-legal { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 11px; color: var(--un-muted); }
.un-cart-legal a { color: var(--un-muted) !important; text-decoration: none; font-size: 12px; }
.un-cart-legal a:hover { color: #fff !important; }

.un-page-center { display: flex; justify-content: center; padding: 10px 0; }
.un-cart-page { width: 100%; max-width: 520px; background: #201a0f; border: 1px solid var(--un-line); border-radius: 18px; overflow: hidden; }
.un-cart-page .un-cart { min-height: 420px; }

/* ---------- Modals ---------- */

.un-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.un-modal.show { opacity: 1; visibility: visible; }
.un-modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 22px;
  background: #221c10;
  border: 1px solid var(--un-line);
  border-radius: var(--un-radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s ease;
  font-family: 'Poppins', sans-serif;
}
.un-modal.show .un-modal-card { transform: none; }
.un-modal-card--static { transform: none; box-shadow: none; max-height: none; }
.un-modal-card--small { width: min(460px, 100%); }
.un-modal-card--login { width: min(800px, 100%); padding: 44px 40px; }
.un-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--un-text);
  cursor: pointer;
  z-index: 2;
}
.un-modal-close:hover { background: rgba(255, 255, 255, 0.12); }
.un-modal-title { margin: 0 0 16px; font-size: 26px; color: #fff; }

.un-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--un-line);
  background: #1a160d;
  color: #fff;
  font: 500 15px 'Poppins', sans-serif;
  outline: none;
}
.un-input::placeholder { color: var(--un-muted); }
.un-input:focus { border-color: var(--un-yellow); }

.un-gift-form { display: flex; gap: 10px; }

/* package modal */
.un-pkgmodal { width: min(720px, 100%); }
.un-pkgmodal-top { display: flex; gap: 20px; align-items: center; padding: 14px; padding-right: 54px; background: rgba(255, 255, 255, 0.04); border-radius: 12px; }
.un-pkgmodal-img { width: 120px; height: 120px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.un-pkgmodal-img:empty { display: none; }
.un-pkgmodal-img img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
.un-pkgmodal-title { margin: 0; font-size: 30px; color: #fff; }
.un-pkgmodal-price { margin: 6px 0 12px; font-family: 'Lilita One', sans-serif; font-size: 24px; color: var(--un-yellow); }
.un-pkgmodal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.un-pkgmodal-desc { padding: 18px 6px 4px; font-size: 14px; }
.un-pkgmodal-desc:empty { display: none; }

/* login */
.un-login { text-align: center; }
.un-login-title { margin: 0 0 16px; font: 800 30px 'Poppins', sans-serif; text-transform: uppercase; color: #fff; }
.un-login-label { margin: 0 0 22px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--un-muted); }
.un-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 560px; margin: 0 auto 26px; }
.un-platform {
  padding: 14px 12px 16px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  font: 800 14px 'Poppins', sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.un-platform--java { background: #59b8e6; box-shadow: inset 0 -4px 0 #3c8fb9; }
.un-platform--bedrock { background: #8a2c6a; box-shadow: inset 0 -4px 0 #651c4d; }
.un-platform.is-active { opacity: 1; }
.un-platform:hover { transform: translateY(-1px); }
.un-login-form { display: grid; grid-template-columns: 1fr 186px; gap: 16px; max-width: 580px; margin: 0 auto; }
.un-login-form .un-input { padding: 16px; }

/* ---------- Realm modal tweaks (markup from store.css) ---------- */
.realm-modal-content { border-radius: var(--un-radius); background: #221c10; }
.realm-card { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18); }
.realm-card-name { font-weight: 400; }

/* ---------- Old sale banner, re-skinned ---------- */
.sale-banner { background: var(--un-panel); border: 1px solid var(--un-line); border-radius: var(--un-radius); margin-bottom: 26px; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .un-pkggrid--tile { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .un-pkggrid--detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .un-pkg--featured { grid-template-columns: 1fr; gap: 18px; }
  .un-pkg--featured .un-pkg-body { padding: 0 10px 10px; }
  .un-footer-grid { grid-template-columns: 1fr 1fr; }
  .un-footer-grid .un-footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .un-user-sub, .un-cart-text { display: none; }
  .un-realm-pill { min-width: 0; }
  .un-hero { grid-template-columns: 1fr 1fr; padding: 18px; gap: 18px 12px; }
  .un-hero-logo { grid-column: 1 / -1; order: -1; }
  .un-hero-logo img { max-height: 96px; }
  .un-hero-btn { max-width: none; }
  .un-catcard-title { font-size: 32px; }
  .un-season { flex-wrap: wrap; }
  .un-season-art { display: none; }
  .un-cathead { padding-right: 22px; }
  .un-cathead-img { display: none; }
  .un-pkg--page { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body.un-body { font-size: 14px; }
  .un-topbar-inner { grid-template-columns: auto 1fr auto; gap: 8px; min-height: 58px; }
  .un-user-sub, .un-cart-text { display: none; }
  .un-user-text strong { max-width: 90px; }
  .un-realm-pill { min-width: 0; width: 100%; max-width: 180px; padding: 0 12px; font-size: 13px; }
  .un-realm-pill > span { display: none; }
  .un-round-btn { width: 36px; height: 36px; font-size: 14px; }
  .un-topbar-right { gap: 6px; }

  .un-hero-wrap { padding-top: 22px; }
  .un-hero { grid-template-columns: 1fr; }
  .un-hero-btn { padding: 8px 14px 12px 8px; }
  .un-hero-btn-text strong { font-size: 19px; }
  .un-hero-btn-icon { width: 38px; height: 38px; }

  .un-season { padding: 22px 18px; }
  .un-season-title { font-size: 32px; }
  .un-season-btn { width: 100%; text-align: center; font-size: 19px; }

  .un-catgrid,
  .un-catgrid.realm-grid.is-active-realm,
  .un-notices { grid-template-columns: 1fr; gap: 16px; }
  .un-catcard { min-height: 150px; padding-left: 22px; }
  .un-catcard-img { top: 10px; bottom: 10px; width: 40%; right: 3%; }
  .un-catcard-text { max-width: 60%; }
  .un-catcard-title { font-size: 28px; }
  .un-catcard-sub { font-size: 14px; }

  .un-cathead { gap: 14px; padding: 16px; min-height: 0; }
  .un-cathead-back { width: 40px; height: 40px; }
  .un-cathead-text h1 { font-size: 28px; }
  .un-tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .un-tab { flex: 0 0 auto; }

  .un-pkggrid { gap: 14px; }
  .un-pkggrid--tile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .un-pkggrid--detail { grid-template-columns: 1fr; }
  .un-pkg-media { height: 120px; }
  .un-pkg--tile .un-pkg-name { font-size: 19px; margin: 12px 4px 10px; }
  .un-pkg--tile .un-btn { font-size: 13px; padding: 0.7em 0.6em 0.8em; }
  .un-pkg--featured .un-pkg-media { height: 200px; }
  .un-pkg--featured .un-pkg-name { font-size: 34px; }
  .un-pkg--featured .un-pkg-price { font-size: 30px; margin-bottom: 16px; }
  .un-pkg--featured .un-pkg-actions .un-btn { flex: 1; }

  .un-footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .un-footer-bottom-inner { flex-direction: column; align-items: flex-start; }

  .un-cart-item { grid-template-columns: 44px minmax(0, 1fr) auto 22px; grid-template-areas: "thumb info info remove" "thumb qty price price"; row-gap: 8px; }
  .un-cart-thumb { grid-area: thumb; width: 44px; height: 44px; }
  .un-cart-info { grid-area: info; }
  .un-qty { grid-area: qty; justify-self: start; }
  .un-cart-price { grid-area: price; justify-self: end; }
  .un-cart-item .un-cart-remove { grid-area: remove; }
  .un-offer-actions { grid-template-columns: 1fr; }

  .un-modal-card--login { padding: 36px 18px 24px; }
  .un-login-title { font-size: 22px; }
  .un-platforms { gap: 10px; }
  .un-platform { font-size: 12px; }
  .un-login-form { grid-template-columns: 1fr; }
  .un-pkgmodal-top { flex-direction: column; text-align: center; padding-right: 14px; }
  .un-pkgmodal-actions { justify-content: center; }
  .un-gift-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Snowfall ---------- */
.un-snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 45; pointer-events: none; }

/* ---------- Page header + CMS pages ---------- */
.un-pagehead {
  padding: 24px 32px;
  margin-bottom: 26px;
  background: var(--un-panel);
  border: 1px solid var(--un-line);
  border-radius: var(--un-radius);
}
.un-pagehead h1 { margin: 0; font-size: 40px; color: #fff; }
.un-pagehead p { margin: 6px 0 0; font-size: 14px; color: var(--un-muted); }
.un-panel { background: var(--un-panel); border: 1px solid var(--un-line); border-radius: var(--un-radius); }
.un-cms-content { padding: 26px 32px; font-size: 15px; }
.un-cms-content:empty { display: none; }

/* ---------- Patron page ---------- */
.un-tierbar {
  margin: 30px 0 20px;
  padding: 16px 24px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 8px 24px var(--tier-glow);
}
.un-tierbar:first-of-type { margin-top: 0; }
.un-tierbar--netherite { background: #e8294d; --tier-glow: rgba(232, 41, 77, 0.35); }
.un-tierbar--emerald { background: #22c55e; --tier-glow: rgba(34, 197, 94, 0.35); }
.un-tierbar--diamond { background: #1fb6e0; --tier-glow: rgba(31, 182, 224, 0.35); }

.un-patrons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.un-patron {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 12px 22px;
  background: var(--un-panel);
  border: 1px solid var(--un-line);
  border-radius: var(--un-radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.un-patron:hover { transform: translateY(-3px); border-color: var(--un-line-strong); }
.un-patron img { width: 96px; height: 96px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); }
.un-patron-name { max-width: 100%; font-size: 16px; font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 860px) { .un-patrons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .un-patrons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .un-patron img { width: 76px; height: 76px; }
  .un-pagehead { padding: 18px 20px; }
  .un-pagehead h1 { font-size: 30px; }
}

/* ---------- Punishment category layout ---------- */
.un-punish {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.un-section-head--tight { margin-top: 0; }
.un-pkggrid--punish { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Package description: first paragraph = small grey subtitle, list = ticks */
.un-pkg--detail .un-pkg-desc > p { font-size: 13px; color: var(--un-muted); margin-bottom: 10px; }
.un-pkg--detail .un-pkg-desc li { font-size: 14px; font-weight: 600; color: #fff; }

.un-steps {
  list-style: none;
  margin: 0;
  padding: 4px 22px;
  background: var(--un-panel);
  border: 1px solid var(--un-line-strong);
  border-radius: var(--un-radius);
}
.un-step { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; }
.un-step + .un-step { border-top: 1px solid var(--un-line-strong); }
.un-step-num {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--un-yellow);
  color: var(--un-yellow-text);
  box-shadow: inset 0 -4px 0 var(--un-yellow-shade);
  font-size: 22px;
}
.un-step > div > strong { display: block; font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.un-step > div > span { display: block; font-size: 13px; line-height: 1.55; color: var(--un-muted); }

.un-warnbox {
  margin-top: 20px;
  padding: 18px 22px;
  background: rgba(120, 18, 32, 0.32);
  border: 1.5px solid #e5394d;
  border-radius: var(--un-radius);
}
.un-warnbox strong { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 800; color: #ff5a6e; }
.un-warnbox p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--un-muted); }

@media (max-width: 1000px) {
  .un-punish { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .un-pkggrid--punish { grid-template-columns: 1fr; }
}
