/**
 * Blue Devine Nexus — shared UI components (header, nav, menu, footer)
 */

body.nexus-ui {
  background: #050608;
}

body.nexus-ui .bg-grid {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(14, 165, 233, 0.06), transparent 50%),
    #050608;
}

/* ─── Header ─── */
.nexus-header.site-header {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 1.25rem;
  min-height: 56px;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.nexus-header .logo {
  flex-shrink: 0;
}

.nexus-header .logo-img {
  width: 40px;
  height: 40px;
}

.nexus-header .logo-text {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}

.nexus-header .logo-text em {
  color: #38bdf8;
}

.nexus-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  flex: 1;
}

.nexus-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.nexus-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nexus-nav-link.active:not(.nexus-menu-trigger) {
  color: #050608;
  background: #fff;
  font-weight: 700;
}

.nexus-menu-trigger.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.nexus-nav-ico {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1;
}

.nexus-nav-menu {
  position: relative;
}

.nexus-menu-drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: #141820;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.35rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  z-index: 200;
}

.nexus-menu-drop a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font);
}

.nexus-menu-drop a:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #fff;
}

.nexus-header-end {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nexus-server-pill {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  white-space: nowrap;
}

.nexus-header-points {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  margin-right: 0.25rem;
}

.nexus-pts-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-display);
}

.nexus-pts-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold, #f0c14d);
  font-family: var(--font-display);
}

.nexus-header .auth-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nexus-header .auth-user-chip {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  max-width: 140px;
}

.nexus-header .auth-user-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nexus-header .btn-discord {
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
}

/* ─── Dashboard hub ─── */
.dashboard-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

/* Compact hero — stats beside headline, no giant cinematic block */
.hub-hero-compact {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: 1.25rem 2rem;
  align-items: start;
  padding: 1.25rem 0 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 820px) {
  .hub-hero-compact {
    grid-template-columns: 1fr;
  }
}

.hub-hero-compact-copy {
  min-width: 0;
}

.hub-hero-compact-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
  line-height: 1.12;
}

.hub-tagline-short {
  color: rgba(255, 255, 255, 0.58);
  max-width: 42ch;
  margin: 0 0 0.85rem;
  line-height: 1.55;
  font-size: 0.88rem;
}

.hub-hero-compact .hub-hero-actions {
  justify-content: flex-start;
  margin-bottom: 0.35rem;
}

.hub-connect-details {
  margin-top: 0.35rem;
  max-width: 40rem;
}

.hub-connect-details summary {
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--muted);
  user-select: none;
}

.hub-connect-details summary:hover {
  color: var(--accent, #38bdf8);
}

.hub-connect-details p {
  margin: 0.45rem 0 0;
  line-height: 1.45;
}

.hub-hero-compact-stats {
  display: grid;
  gap: 0.5rem;
}

.hub-hero-compact-stats .hub-stat-pill {
  padding: 0.55rem 0.85rem;
  background: rgba(20, 24, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  text-align: left;
}

.hub-hero-compact-stats .hub-points-banner {
  margin-top: 0.15rem;
  justify-content: center;
  width: 100%;
}

.hub-account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.hub-account-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  background: rgba(20, 24, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.hub-account-chip span {
  font-size: 0.95rem;
}

.hub-account-chip:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(24, 30, 42, 0.98);
}

/* Legacy full-bleed hero (other pages may reference) */
.hub-hero-block {
  position: relative;
  margin: 0 -1.5rem 2rem;
  padding: 3rem 1.5rem 2.5rem;
  overflow: hidden;
  text-align: center;
}

.hub-hero-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.15) 0%, rgba(5, 6, 8, 0.88) 55%, #050608 100%),
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(14, 116, 144, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(234, 88, 12, 0.12), transparent 45%),
    linear-gradient(160deg, #0a1628 0%, #050608 40%, #0c1a2e 100%);
  z-index: 0;
}

.hub-hero-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' fill-opacity='0.015' d='M0 160 Q100 120 200 140 T400 130 L400 200 L0 200Z'/%3E%3Cpath fill='%23ffffff' fill-opacity='0.02' d='M0 180 Q150 150 300 170 L400 165 L400 200 L0 200Z'/%3E%3C/svg%3E") center bottom / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

.hub-hero-top,
.hub-hero-stats,
.hub-evolution {
  position: relative;
  z-index: 1;
}

.hub-hero-kicker {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(56, 189, 248, 0.75);
  margin: 0 0 0.75rem;
}

.hub-hero-top h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
  line-height: 1.1;
}

.hub-accent {
  color: #38bdf8;
}

.hub-hero-top .hub-tagline {
  color: rgba(255, 255, 255, 0.62);
  max-width: 46ch;
  margin: 0 auto 1.35rem;
  line-height: 1.65;
  font-size: 0.95rem;
}

.hub-hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.hub-hero-actions .btn-primary {
  background: linear-gradient(180deg, #4ade80, #22c55e);
  color: #052e14;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.5rem;
  box-shadow: 0 4px 24px rgba(34, 197, 94, 0.25);
}

.hub-connect-hint {
  max-width: 36rem;
  margin: 0 auto 0.35rem;
  line-height: 1.45;
  font-size: 0.78rem;
  text-align: center;
}

.hub-points-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.55rem 1.15rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(240, 193, 77, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hub-points-banner .nexus-pts-val {
  font-size: 1.15rem;
}

.hub-hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  max-width: 720px;
  margin: 1.5rem auto 2rem;
}

.hub-hero-stats .hub-stat-pill {
  flex: 1 1 140px;
  max-width: 220px;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

.hub-hero {
  position: relative;
  padding: 2.5rem 0 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.hub-hero::before {
  content: '';
  position: absolute;
  inset: -1rem -2rem 0;
  background:
    linear-gradient(to bottom, rgba(5, 6, 8, 0.4), rgba(5, 6, 8, 0.96)),
    linear-gradient(135deg, #0c1e32 0%, #050608 45%, #0a1828 100%);
  border-radius: 0 0 16px 16px;
  z-index: -1;
}

.hub-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hub-hero .hub-tagline {
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

.hub-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .hub-layout {
    grid-template-columns: 1fr;
  }
}

.hub-section {
  margin-bottom: 1.75rem;
}

.hub-section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.75rem;
  padding-left: 0.15rem;
}

.hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

@media (min-width: 1100px) {
  .hub-main-cols .hub-section:first-child .hub-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .hub-main-cols .hub-section:nth-child(2) .hub-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hub-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  background: rgba(20, 24, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  min-height: 100px;
}

.hub-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(24, 30, 42, 0.98);
  transform: translateY(-2px);
}

.hub-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  font-size: 1.35rem;
}

.hub-card-icon.gold {
  background: rgba(240, 193, 77, 0.1);
  border-color: rgba(240, 193, 77, 0.3);
}

.hub-card-icon.green {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
}

.hub-card-icon.purple {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.3);
}

.hub-card-body h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.hub-card-body p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.hub-card-wide {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .hub-card-wide {
    grid-column: span 1;
  }
}

.hub-sidebar {
  position: sticky;
  top: 68px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.hub-sidebar .hub-section-label {
  margin-bottom: 0.65rem;
}

.hub-profile-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: rgba(20, 24, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
}

.hub-profile-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(24, 30, 42, 0.98);
}

.hub-profile-card .hub-pc-ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 1.1rem;
}

.hub-profile-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
}

.hub-profile-card span {
  font-size: 0.75rem;
  color: var(--muted);
}

.hub-status-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.hub-stat-pill {
  padding: 0.75rem 1rem;
  background: rgba(20, 24, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  text-align: center;
}

.hub-stat-pill .lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-family: var(--font-display);
}

.hub-stat-pill .val {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
  word-break: break-word;
}

.hub-stat-pill .val.hub-connect-val {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  font-family: var(--font);
  font-weight: 600;
}

.hub-sidebar-panel {
  margin-top: 0;
  padding: 0.85rem 1rem;
}

.hub-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.hub-friend-mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.hub-friend-mini {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  padding: 0.35rem;
  border-radius: 8px;
  transition: background 0.15s;
}

.hub-friend-mini:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hub-friend-mini img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hub-friend-mini.online img {
  border-color: rgba(74, 222, 128, 0.45);
}

.hub-friend-mini strong {
  font-size: 0.8rem;
  display: block;
}

.hub-friend-mini span {
  font-size: 0.68rem;
  color: var(--muted);
}

.hub-roster-section {
  margin-top: 1.25rem;
}

.hub-sidebar .quest-panel .quest-row {
  font-size: 0.78rem;
  padding: 0.5rem 0.65rem;
}

.hub-sidebar .quest-panel .btn-sm {
  font-size: 0.7rem;
  padding: 0.3rem 0.5rem;
}

.hub-stat-pill .val.online {
  color: var(--online);
}

.hub-stat-pill .val.offline {
  color: var(--offline);
}

/* ─── Subpage hero (Inventory, Map, etc.) ─── */
.page-hero {
  position: relative;
  margin: 0 -1.5rem 1.5rem;
  padding: 2rem 1.5rem 1.75rem;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 6, 8, 0.5), rgba(5, 6, 8, 0.94)),
    linear-gradient(120deg, #0c1e32 0%, #050608 50%, #0a1828 100%);
  z-index: 0;
}

main.has-page-hero > :not(.page-hero) {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.page-hero-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.page-hero .page-hero-sub {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 50ch;
  margin: 0;
  line-height: 1.5;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

body.nexus-ui main {
  max-width: none;
  padding: 0;
}

/* ─── Cards global polish ─── */
body.nexus-ui .card {
  background: rgba(18, 22, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.07);
}

body.nexus-ui .phase4-head h2 {
  display: none;
}

/* ─── Account page ─── */
body.nexus-ui .account-section > h2 {
  display: none;
}

.account-layout {
  display: grid;
  gap: 1.25rem;
}

.account-hero-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.account-hero-card .account-profile {
  grid-column: 1 / -1;
}

.account-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

body.nexus-ui .account-meta dd {
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}

body.nexus-ui .vault-section > h2,
body.nexus-ui .grow-section > h2,
body.nexus-ui .admin-section > h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.75rem;
}

/* ─── Skin market filters ─── */
.market-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.market-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.market-pill {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.market-pill:hover {
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.6);
}

.market-pill.active {
  background: #38bdf8;
  color: #050608;
  border-color: #38bdf8;
}

.market-points-strip {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(240, 193, 77, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

/* ─── Map toolbar (pill buttons) ─── */
.map-toolbar .btn,
.map-zoom .btn {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.map-toolbar .btn-primary,
#map-fs-btn.btn-primary {
  background: #38bdf8;
  color: #050608;
  border: none;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

body.nexus-ui .phase4-section {
  margin-bottom: 2rem;
}

/* ─── Footer ─── */
.nexus-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.nexus-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nexus-footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.nexus-footer p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
  max-width: 36ch;
}

.nexus-footer-status h4 {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.5rem;
}

.nexus-footer-status .srv {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.nexus-footer-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
}

.nexus-footer-status .dot.off {
  background: #666;
}

@media (max-width: 768px) {
  .nexus-header.site-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .nexus-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .nexus-header-points {
    display: none;
  }

  .nexus-header-username {
    display: none;
  }

  .nexus-profile-text {
    display: none;
  }

  .nexus-menu-mega {
    left: 0;
    transform: none;
    min-width: min(96vw, 720px);
  }

  .nexus-menu-cols {
    grid-template-columns: 1fr 1fr;
  }

  .nexus-footer-cols {
    grid-template-columns: 1fr;
  }
}

/* ─── Mega menu (Nexus columns) ─── */
.nexus-menu-mega {
  min-width: min(92vw, 780px);
  padding: 0.75rem;
}

.nexus-menu-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem 1rem;
}

.nexus-menu-col h4 {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 0.35rem 0.5rem;
}

.nexus-menu-col a {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
}

.nexus-menu-item-ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.nexus-menu-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.nexus-menu-item-text strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.nexus-menu-item-text span {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}

.nexus-menu-footer {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ─── Header profile chip ─── */
.nexus-header-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  margin-right: 0.15rem;
}

.nexus-header-username {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nexus-profile-menu {
  position: relative;
}

.nexus-profile-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.35rem 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.15s, background 0.15s;
}

.nexus-profile-chip:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
}

.nexus-profile-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1.15;
  max-width: 110px;
}

.nexus-profile-text strong {
  font-size: 0.78rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.nexus-profile-text span {
  font-size: 0.62rem;
  color: var(--muted);
}

.nexus-profile-chip img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.35);
}

.nexus-profile-drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #141820;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.35rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  z-index: 220;
}

.nexus-profile-drop a,
.nexus-profile-drop button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
}

.nexus-profile-drop a:hover,
.nexus-profile-drop button:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #fff;
}

.nexus-logout-btn {
  color: #f87171 !important;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0 0 6px 6px !important;
}

/* ─── Footer (3-column) ─── */
.nexus-footer-wrap {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 2rem;
}

.nexus-footer-cols {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 2rem;
  align-items: start;
  border-top: none;
}

.nexus-footer-title {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.nexus-support-box {
  padding: 1rem 1.15rem;
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.04);
}

.nexus-support-box h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f87171;
  margin: 0 0 0.5rem;
}

.nexus-support-box p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
  line-height: 1.5;
}

.nexus-support-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #dc2626 !important;
  border: none !important;
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  text-decoration: none;
}

.nexus-footer-meta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ─── Dashboard evolution / membership hero ─── */
.hub-evolution {
  margin: 0 auto;
  max-width: 980px;
  text-align: center;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hub-evolution-kicker {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.4rem;
}

.hub-evolution h2 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1.15rem;
}

.hub-evolution h2 em {
  color: var(--gold, #f0c14d);
  font-style: normal;
}

.hub-evolution-sub {
  display: none;
}

.hub-tier-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 2rem;
}

.hub-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .hub-tier-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }
}

.hub-tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 0;
  padding: 1.35rem 1.1rem 1.15rem;
  background: linear-gradient(180deg, rgba(22, 27, 38, 0.98) 0%, rgba(12, 14, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hub-tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.hub-tier-card.popular {
  border-color: rgba(240, 193, 77, 0.55);
  box-shadow: 0 0 0 1px rgba(240, 193, 77, 0.2), 0 16px 48px rgba(240, 193, 77, 0.08);
  z-index: 1;
}

.hub-tier-card.popular::before {
  content: 'Popular';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: #050608;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.hub-tier-card.theme-stalker {
  border-color: rgba(255, 255, 255, 0.12);
}

.hub-tier-card.theme-hunter {
  border-color: rgba(240, 193, 77, 0.35);
}

.hub-tier-card.theme-alpha {
  border-color: rgba(248, 113, 113, 0.35);
}

.tier-icon-wrap {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 2rem;
  line-height: 1;
}

.hub-tier-card.theme-stalker .tier-icon-wrap {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.06);
}

.hub-tier-card.theme-hunter .tier-icon-wrap {
  background: radial-gradient(circle at 30% 30%, rgba(240, 193, 77, 0.2), rgba(240, 193, 77, 0.04));
  border: 1px solid rgba(240, 193, 77, 0.35);
  box-shadow: 0 0 28px rgba(240, 193, 77, 0.15);
}

.hub-tier-card.theme-alpha .tier-icon-wrap {
  background: radial-gradient(circle at 30% 30%, rgba(248, 113, 113, 0.2), rgba(248, 113, 113, 0.04));
  border: 1px solid rgba(248, 113, 113, 0.35);
  box-shadow: 0 0 28px rgba(248, 113, 113, 0.12);
}

.hub-tier-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  color: #fff;
}

.tier-price-inset {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.15rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  text-align: left;
}

.hub-tier-card.theme-stalker .tier-price-inset {
  border-left: 3px solid rgba(255, 255, 255, 0.5);
}

.hub-tier-card.theme-hunter .tier-price-inset {
  border-left: 3px solid var(--gold, #f0c14d);
}

.hub-tier-card.theme-alpha .tier-price-inset {
  border-left: 3px solid #f87171;
}

.tier-price-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold, #f0c14d);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.tier-price-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.15rem;
}

.hub-tier-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  width: 100%;
  flex: 1;
  text-align: left;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.hub-tier-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0;
  line-height: 1.4;
}

.hub-tier-perks li::before {
  content: '✓';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  margin-top: 0.1rem;
}

.hub-tier-card.theme-stalker .hub-tier-perks li::before {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hub-tier-card.theme-hunter .hub-tier-perks li::before {
  color: #050608;
  background: var(--gold, #f0c14d);
}

.hub-tier-card.theme-alpha .hub-tier-perks li::before {
  color: #fff;
  background: rgba(248, 113, 113, 0.85);
}

.hub-tier-btn {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s, transform 0.15s;
}

.hub-tier-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.hub-tier-card.theme-stalker .hub-tier-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
}

.hub-tier-card.theme-hunter .hub-tier-btn {
  border: none;
  background: linear-gradient(180deg, #fcd34d, #f0c14d);
  color: #050608;
  box-shadow: 0 4px 16px rgba(240, 193, 77, 0.25);
}

.hub-tier-card.theme-alpha .hub-tier-btn {
  border: 1px solid rgba(248, 113, 113, 0.55);
  background: transparent;
  color: #f87171;
}

/* Quick access tiles */
.hub-quick-section {
  margin-bottom: 1rem;
}

.hub-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

@media (max-width: 700px) {
  .hub-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hub-quick-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.75rem 0.85rem;
  background: rgba(16, 20, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  min-height: 0;
}

.hub-quick-tile:hover {
  transform: translateY(-2px);
  background: rgba(22, 28, 38, 0.98);
}

.hub-quick-tile.accent-cyan:hover { border-color: rgba(56, 189, 248, 0.45); }
.hub-quick-tile.accent-green:hover { border-color: rgba(74, 222, 128, 0.45); }
.hub-quick-tile.accent-purple:hover { border-color: rgba(167, 139, 250, 0.45); }
.hub-quick-tile.accent-gold:hover { border-color: rgba(240, 193, 77, 0.45); }

.hub-quick-ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 0.1rem;
}

.hub-quick-ico svg {
  width: 22px;
  height: 22px;
}

.hub-quick-tile.accent-cyan .hub-quick-ico {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.hub-quick-tile.accent-green .hub-quick-ico {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
}

.hub-quick-tile.accent-purple .hub-quick-ico {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
}

.hub-quick-tile.accent-gold .hub-quick-ico {
  background: rgba(240, 193, 77, 0.12);
  color: #f0c14d;
}

.hub-quick-tile strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-quick-tile > span:last-child {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

.hub-roster-compact {
  padding: 1rem 1.15rem;
  margin-top: 0.5rem;
}

.hub-roster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.hub-roster-head .hub-section-label {
  margin: 0;
}

.hub-roster-list {
  max-height: 180px;
  overflow-y: auto;
}

.hub-roster-list li {
  font-size: 0.82rem;
  padding: 0.35rem 0;
}

.membership-tier-grid {
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 901px) {
  .membership-tier-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.page-hero::before {
  background:
    linear-gradient(to bottom, rgba(5, 6, 8, 0.45), rgba(5, 6, 8, 0.94)),
    linear-gradient(135deg, #0c1e32 0%, #050608 45%, #0a1828 100%);
}

/* Shop-only home (no sidebar / roster / quests) */
.hub-shop-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.hub-hero-shop {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(12, 30, 50, 0.55) 0%, rgba(5, 6, 8, 0.85) 55%, rgba(10, 24, 40, 0.5) 100%);
}

.hub-hero-shop-copy {
  flex: 1 1 320px;
  min-width: 0;
}

.hub-hero-shop-copy h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.1;
}

.hub-shop-balance {
  flex: 0 0 auto;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(240, 193, 77, 0.35);
  background: rgba(240, 193, 77, 0.08);
  text-align: right;
}

.hub-shop-balance .nexus-pts-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f0c14d;
}

.hub-shop-balance-link {
  text-decoration: none;
}

.hub-shop-balance-link:hover {
  color: #f0c14d;
}

.hub-shop-section {
  margin-bottom: 2rem;
}

.hub-shop-section .hub-section-label {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hub-shop-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
}

@media (max-width: 1024px) {
  .hub-shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .hub-shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hub-shop-balance {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }
}

.hub-shop-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 118px;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 24, 0.92);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hub-shop-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.hub-shop-tile.accent-green:hover { border-color: rgba(74, 222, 128, 0.45); }
.hub-shop-tile.accent-purple:hover { border-color: rgba(167, 139, 250, 0.45); }
.hub-shop-tile.accent-gold:hover { border-color: rgba(240, 193, 77, 0.45); }

.hub-shop-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9px;
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.06);
}

.hub-shop-tile strong {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hub-shop-tile > span:last-child {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.35;
}

.hub-shop-page .hub-evolution {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hub-shop-page .hub-tier-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .hub-shop-page .hub-tier-grid {
    grid-template-columns: 1fr;
  }
}
