:root {
  --accent: #9b6cff;
  --accent-soft: #d8c6ff;
  --ink: #08070a;
  --ink-2: #0f0d13;
  --panel: #15121a;
  --panel-raised: #1b1721;
  --line: #302a39;
  --line-bright: #4b405a;
  --text: #f5f1fa;
  --muted: #aaa1b6;
  --success: #7ce3ad;
  --danger: #ff7b8d;
  --display: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1240px;
  --cut: 14px;
  --tebex-legal-footer-background-color: #08070a;
  --tebex-legal-footer-text-color: #8e8499;
  --tebex-legal-footer-border-color: #302a39;
  --tebex-legal-footer-max-width: 1240px;
  --tebex-legal-footer-logo-color: #d8c6ff;
}

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

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M0 79.5H80M79.5 0V80' stroke='%232a2430' stroke-width='1' fill='none'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  right: -260px;
  top: 16vh;
  z-index: -1;
  border: 1px solid #241d2c;
  border-radius: 50%;
  box-shadow: 0 0 0 64px #0b090d, 0 0 0 65px #211b28, 0 0 0 138px #09080b, 0 0 0 139px #19151f;
  pointer-events: none;
}

::selection { background: var(--accent); color: #0a0710; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.announcement {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  background: var(--accent);
  color: #0d0913;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .11em;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 7, 10, .94);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 90px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--accent-soft);
}

.brand-mark::before { width: 5px; height: 5px; inset: 8px auto auto 8px; }
.brand-mark::after { width: 11px; height: 1px; right: 5px; bottom: 8px; }

.brand img { max-height: 58px; width: auto; }
.brand-name {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 6px; }

.nav-link {
  position: relative;
  min-height: 48px;
  padding: 13px 16px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 100%;
  bottom: 7px;
  height: 2px;
  background: var(--accent);
  transition: right .18s ease;
}

.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link:hover::after, .nav-link.is-active::after { right: 16px; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.currency-switcher { position: relative; }
.currency-switcher summary {
  min-width: 92px;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  list-style: none;
}
.currency-switcher summary::-webkit-details-marker { display: none; }
.currency-switcher summary::after { content: "⌄"; margin-left: auto; color: var(--accent-soft); font-size: 12px; }
.currency-switcher[open] summary { border-color: var(--accent); }
.currency-switcher small { display: block; color: var(--muted); font-size: 10px; line-height: 1.1; letter-spacing: .08em; text-transform: uppercase; }
.currency-switcher strong { display: block; font-size: 12px; line-height: 1.2; }
.currency-symbol { width: 22px; color: var(--accent-soft); font-family: var(--display); font-size: 19px; font-weight: 900; text-align: center; }
.currency-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 218px;
  padding: 6px;
  border: 1px solid var(--line-bright);
  background: #0f0d13;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.currency-menu a { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 9px; padding: 10px; border: 1px solid transparent; }
.currency-menu a:hover { border-color: var(--line-bright); background: var(--panel-raised); }
.currency-menu a.is-active { border-color: var(--accent); background: var(--panel); }
.mobile-currencies { display: none; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 0 4px; }

.player-pill,
.basket-pill,
.menu-toggle {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}

.player-pill,
.basket-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.player-pill img { width: 28px; height: 28px; image-rendering: pixelated; }
.player-pill small, .basket-pill small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.player-pill strong, .basket-pill strong { display: block; line-height: 1.1; }
.basket-pill { border-color: var(--accent); }

.menu-toggle {
  display: none;
  width: 44px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.mobile-menu { display: none; }

.page-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: start;
}

.page-shell.no-sidebar { grid-template-columns: 1fr; max-width: 920px; }
.main-column { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  color: var(--accent-soft);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }

.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr);
  border: 1px solid var(--line-bright);
  background: var(--panel);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.hero::before {
  content: "01 / REALM STORE";
  position: absolute;
  top: 17px;
  right: 56px;
  color: #756b82;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.hero-copy { padding: 70px 64px 60px; align-self: end; }
.hero h1 {
  max-width: 730px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .86;
  text-transform: uppercase;
}

.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 610px; margin: 26px 0 0; color: var(--muted); font-size: 17px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 19px;
  border: 1px solid var(--line-bright);
  background: var(--panel-raised);
  color: var(--text);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.button:hover { transform: translateY(-2px); border-color: var(--accent); }
.button-primary { border-color: var(--accent); background: var(--accent); color: #100b17; }
.button-primary:hover { background: var(--accent-soft); }
.button-danger { border-color: #6e3740; color: #ffacb6; }
.button[disabled], .button.is-disabled { opacity: .45; pointer-events: none; }
.button-wide { width: 100%; }

.join-panel {
  min-height: 100%;
  padding: 30px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #100d14;
}

.join-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: #81768d;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.join-panel-head strong {
  padding: 4px 7px;
  border: 1px solid var(--accent);
  color: var(--accent-soft);
  font-size: 10px;
}

.join-identity {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 26px 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: .9;
  text-transform: uppercase;
}

.join-identity strong { display: block; color: var(--text); font-size: 27px; }

.join-glyph {
  width: 55px;
  height: 55px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #100b17;
  font-size: 34px;
  font-weight: 900;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.join-steps { margin: 0 0 24px; padding: 0; list-style: none; }
.join-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.join-steps li > span { color: var(--accent); font-family: var(--display); font-size: 12px; font-weight: 900; }
.join-steps small { display: block; color: #746a80; font-size: 10px; font-weight: 800; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
.join-steps strong { display: block; overflow-wrap: anywhere; font-size: 13px; line-height: 1.35; }
.join-panel .button { margin-top: auto; }

.signal-status { display: flex; align-items: center; gap: 9px; color: var(--success); font-size: 13px; font-weight: 700; }
.signal-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(124, 227, 173, .08); }
.join-panel .button.is-copied { border-color: var(--success); background: var(--success); }

.section { margin-top: 52px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-head h2, .page-title h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .95;
  text-transform: uppercase;
}
.section-head p { max-width: 430px; margin: 0; color: var(--muted); font-size: 14px; }

.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.category-card {
  min-height: 184px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.category-card:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--panel-raised); }
.category-index { color: #6f657b; font-family: var(--display); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.category-card h3 { margin: 36px 0 0; font-family: var(--display); font-size: 25px; line-height: 1; text-transform: uppercase; }
.category-arrow { color: var(--accent); font-size: 24px; line-height: 1; }

.content-panel,
.module,
.store-module,
.form-panel {
  border: 1px solid var(--line);
  background: var(--panel);
}

.content-panel { padding: 36px; }

.home-info-panel {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-bright);
  background:
    radial-gradient(circle at 10% 0%, rgba(155, 108, 255, .16), transparent 34%),
    linear-gradient(135deg, rgba(27, 23, 33, .98), rgba(15, 13, 19, .98));
  box-shadow: 0 22px 55px rgba(0, 0, 0, .22);
}
.home-info-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-soft), transparent);
}
.home-info-panel::after {
  content: "CELESTIAL // STORE INFO";
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(216, 198, 255, .18);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  pointer-events: none;
}
.home-info-accent {
  min-height: 9px;
  display: grid;
  grid-template-columns: 1fr .55fr .2fr;
  gap: 4px;
  padding: 0 4px;
}
.home-info-accent span { background: var(--accent); }
.home-info-accent span:nth-child(2) { opacity: .56; }
.home-info-accent span:nth-child(3) { opacity: .24; }
.home-info-content { padding: 42px 44px 40px; }
.home-info-content > :first-child { margin-top: 0; }
.home-info-content > :last-child { margin-bottom: 0; }
.home-info-content h1,
.home-info-content h2,
.home-info-content h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 23px;
  letter-spacing: .025em;
}
.home-info-content h1:first-child,
.home-info-content h2:first-child,
.home-info-content h3:first-child {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
}
.home-info-content p { max-width: 850px; margin: 8px 0 18px; color: #c9c2d1; }
.home-info-content strong { color: var(--text); }
.home-info-content a { color: var(--accent-soft); }
.text-content { color: #c9c2d1; }
.text-content h1, .text-content h2, .text-content h3, .text-content h4 { color: var(--text); font-family: var(--display); text-transform: uppercase; }
.text-content a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }

.sidebar { display: grid; gap: 14px; position: sticky; top: 20px; }
.side-card { padding: 22px; border: 1px solid var(--line); background: var(--panel); }
.side-card-kicker, .module-title { margin: 0 0 12px; color: var(--muted); font-family: var(--display); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.side-card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.side-card p { margin: 0; color: var(--muted); font-size: 14px; }
.side-card .button { margin-top: 18px; }
.tebex-modules { display: grid; gap: 14px; }

.page-title { padding: 28px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.page-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-title p { max-width: 650px; margin: 14px 0 0; color: var(--muted); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.product-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, border-color .18s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--line-bright); }
.product-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; border-bottom: 1px solid var(--line); background: #0f0c12; }
.product-media::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(155, 108, 255, .18); pointer-events: none; }
.product-media img { width: 84%; height: 84%; object-fit: contain; transition: transform .25s ease; }
.product-card:hover .product-media img { transform: scale(1.035); }
.product-placeholder { width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); font-family: var(--display); font-size: 30px; font-weight: 900; transform: rotate(45deg); }
.product-placeholder span { transform: rotate(-45deg); }
.discount-flag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 8px; background: var(--accent); color: #0b0710; font-family: var(--display); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.product-body { flex: 1; padding: 20px; display: flex; flex-direction: column; }
.product-body h3 { margin: 0; font-family: var(--display); font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.product-meta { margin: 12px 0 19px; color: var(--muted); font-size: 13px; }
.product-footer { margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.package-view-button {
  min-width: 106px;
  min-height: 44px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  font-size: 12px;
  letter-spacing: .1em;
}
.package-view-button span:last-child {
  font-size: 17px;
  line-height: 1;
  transition: transform .18s ease;
}
.package-view-button:hover span:last-child { transform: translateX(3px); }
.product-card .package-view-button { flex: 0 0 auto; }
.price { font-family: var(--display); font-size: 21px; font-weight: 900; }
.price del { display: block; color: var(--muted); font-family: var(--body); font-size: 12px; font-weight: 500; }
.price small { color: var(--muted); font-size: 11px; letter-spacing: .08em; }

.product-list { display: grid; gap: 10px; }
.product-list .product-card { min-height: 118px; display: grid; grid-template-columns: 130px 1fr; }
.product-list .product-media { aspect-ratio: auto; border: 0; border-right: 1px solid var(--line); }
.product-list .product-body { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 25px; }
.product-list .product-meta { margin-bottom: 0; }
.product-list .product-footer { min-width: 200px; margin: 0; padding: 0; border: 0; }

.empty-state { padding: 70px 30px; border: 1px dashed var(--line-bright); color: var(--muted); text-align: center; }

.package-detail { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); border: 1px solid var(--line); background: var(--panel); }
.package-detail-media { min-height: 460px; display: grid; place-items: center; padding: 40px; border-right: 1px solid var(--line); background: #100d14; }
.package-detail-media img { max-height: 390px; object-fit: contain; }
.package-detail-copy { padding: 48px; }
.package-detail-copy h1 { margin: 0; font-family: var(--display); font-size: clamp(2.5rem, 5vw, 5rem); line-height: .9; text-transform: uppercase; }
.package-detail-copy .price { margin: 24px 0; font-size: 28px; }
.package-description { padding-top: 24px; border-top: 1px solid var(--line); color: #c8c1d0; }
.package-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.basket-list { display: grid; gap: 10px; }
.basket-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 22px; padding: 19px 20px; border: 1px solid var(--line); background: var(--panel); }
.basket-row h3 { margin: 0; font-family: var(--display); font-size: 19px; text-transform: uppercase; }
.basket-row p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.quantity { display: flex; align-items: center; border: 1px solid var(--line-bright); }
.quantity button { width: 38px; height: 38px; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.quantity input { width: 45px; height: 38px; border: 0; border-inline: 1px solid var(--line); background: transparent; color: var(--text); text-align: center; -moz-appearance: textfield; }
.quantity input::-webkit-inner-spin-button { appearance: none; }
.basket-price { min-width: 95px; text-align: right; font-family: var(--display); font-size: 18px; font-weight: 900; }
.basket-actions { display: flex; gap: 7px; margin-top: 8px; justify-content: flex-end; }
.basket-actions a { color: var(--muted); font-size: 12px; }
.basket-actions a:hover { color: var(--danger); }
.checkout-summary { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.coupon-box, .total-box { padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; min-width: 0; }
.total-line { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.total-line strong { font-family: var(--display); font-size: 30px; }
.secure-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }

.form-panel { max-width: 620px; margin: 60px auto; padding: 42px; }
.form-panel h1 { margin: 0 0 8px; font-family: var(--display); font-size: 42px; line-height: 1; text-transform: uppercase; }
.form-panel > p { margin: 0 0 28px; color: var(--muted); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.input,
.select,
.field input,
.field select,
.coupon-form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line-bright);
  border-radius: 0;
  outline: 0;
  background: #0e0b12;
  color: var(--text);
}
.input:focus, .select:focus, .field input:focus, .field select:focus, .coupon-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(155, 108, 255, .12); }
.form-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; }

.store-message { width: min(var(--max), calc(100% - 40px)); margin: 18px auto 0; padding: 13px 16px; border: 1px solid var(--line-bright); background: var(--panel); }
.store-message.success { border-color: #2f7553; color: var(--success); }
.store-message.danger, .store-message.error { border-color: #763b45; color: #ffadba; }

.store-module { padding: 20px; }
.store-module h3 { margin: 0 0 14px; font-family: var(--display); font-size: 18px; text-transform: uppercase; }
.payments-list { display: grid; gap: 12px; }
.payment-row { display: flex; align-items: center; gap: 11px; }
.payment-row img { width: 34px; height: 34px; image-rendering: pixelated; }
.avatar-placeholder { width: 34px; height: 34px; font-size: 12px; }
.payment-row strong { display: block; font-size: 13px; }
.payment-row small { display: block; color: var(--muted); font-size: 11px; }

.top-customer-module {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--panel-raised), var(--panel));
}
.top-customer-module::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft), transparent);
}
.top-customer-row { padding-top: 2px; }
.top-customer-row img,
.top-customer-row .avatar-placeholder {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--line-bright);
  background: #0f0c12;
}
.top-customer-row img { image-rendering: pixelated; }
.top-customer-row .avatar-placeholder { display: grid; place-items: center; color: var(--accent-soft); font-family: var(--display); }
.top-customer-row strong { color: var(--text); font-size: 14px; }
.top-customer-row small { margin-top: 1px; font-size: 11px; }
.top-customer-empty { opacity: .78; }
.module-progress { height: 7px; margin-top: 14px; overflow: hidden; background: #0c0a0f; }
.module-progress span { display: block; height: 100%; background: var(--accent); }

.site-footer { margin-top: 84px; border-top: 1px solid var(--line); background: #08070a; }
.footer-inner { width: min(var(--max), calc(100% - 40px)); min-height: 160px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; }
.footer-brand { font-family: var(--display); font-size: 19px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.footer-copy { max-width: 700px; margin: 8px 0 0; color: #7f758a; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--accent-soft); }

@media (max-width: 1160px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu { display: none; border-top: 1px solid var(--line); padding: 10px 20px 20px; background: var(--ink-2); }
  .menu-open .mobile-menu { display: grid; }
  .mobile-menu .nav-link { border-bottom: 1px solid var(--line); }
  .mobile-currencies { display: grid; }
  .page-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .header-inner, .page-shell, .footer-inner, .store-message { width: min(100% - 24px, var(--max)); }
  .header-inner { min-height: 72px; gap: 10px; }
  .header-actions .player-pill { display: none; }
  .currency-switcher summary { min-width: 74px; padding-inline: 8px; }
  .currency-switcher summary > span:nth-child(2) small { display: none; }
  .basket-pill small { display: none; }
  .brand-name { font-size: 20px; }
  .brand-mark { width: 31px; height: 31px; }
  .page-shell { margin-top: 28px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 76px 28px 36px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5.2rem); }
  .join-panel { min-height: 0; border-left: 0; border-top: 1px solid var(--line); padding: 28px; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-info-content { padding: 34px 30px 32px; }
  .package-detail { grid-template-columns: 1fr; }
  .package-detail-media { min-height: 320px; border-right: 0; border-bottom: 1px solid var(--line); }
  .package-detail-copy { padding: 30px; }
  .checkout-summary { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; padding: 38px 0; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 540px) {
  .announcement { font-size: 10px; }
  .header-actions { gap: 6px; }
  .basket-pill { padding: 7px 9px; }
  .currency-switcher summary > span:nth-child(2) { display: none; }
  .currency-switcher summary { min-width: 44px; width: 44px; }
  .currency-switcher summary::after { display: none; }
  .page-title-row, .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .category-grid, .product-grid, .sidebar { grid-template-columns: 1fr; }
  .category-card { min-height: 144px; }
  .product-list .product-card { grid-template-columns: 100px 1fr; }
  .product-list .product-body { display: block; }
  .product-list .product-footer { min-width: 0; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
  .product-footer .package-view-button { min-width: 96px; }
  .home-info-panel::after { display: none; }
  .home-info-content { padding: 28px 22px 26px; }
  .basket-row { grid-template-columns: 1fr auto; }
  .basket-row > div:first-child { grid-column: 1 / -1; }
  .coupon-form { display: grid; }
  .form-panel { margin: 28px auto; padding: 28px 20px; }
  .form-actions { display: grid; }
  .form-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* v2 header navigation sizing: intentionally specific so Tebex/store CSS cannot shrink it. */
.site-header .desktop-nav {
  gap: 8px;
}
.site-header .desktop-nav .nav-link {
  min-height: 54px !important;
  padding: 15px 20px !important;
  font-size: 17px !important;
  line-height: 24px !important;
  letter-spacing: .075em !important;
}
.site-header .desktop-nav .nav-link::after {
  left: 20px;
}
.site-header .desktop-nav .nav-link:hover::after,
.site-header .desktop-nav .nav-link.is-active::after {
  right: 20px;
}
@media (max-width: 1160px) {
  .site-header .mobile-menu .nav-link {
    min-height: 52px !important;
    padding: 14px 12px !important;
    font-size: 16px !important;
    line-height: 24px !important;
  }
}
