/* ============================================================
   JailbreakMC — Universal Stylesheet
   Faithful recreation of the original design
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Karla:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* ── Custom blocky font (inline base64 fallback: monospace) ── */
@font-face {
  font-family: "Blocky";
  src: local("Courier New");
  /* In production: replace with your actual FFFFORWA font files */
  font-weight: normal;
  font-style: normal;
}

/* ── CSS Variables ── */
:root {
  --gold:          #FBAF39;
  --gold-dark:     #D08637;
  --gold-deep:     #95661E;
  --body-bg:       #1e1e1e;
  --panel-bg:      #292929;
  --panel-dark:    #252525;
  --panel-darker:  #232323;
  --panel-darkest: #1F1E1E;
  --border-faint:  rgba(255,255,255,0.05);
  --border-subtle: rgba(255,255,255,0.025);
  --text-primary:  #cccccc;
  --text-muted:    #888888;
  --text-dim:      #555555;
  --text-nav:      #BAB7B3;
  --shadow-nav:    #4B443B;
  --header-h:      550px;
  --header-nav-h:  150px;
  --sidebar-w:     360px;
  --max-w:         1250px;
  --radius:        3px;
  --transition:    .25s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Karla, Tahoma, sans-serif;
  background: var(--body-bg);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Utility ── */
.p-body-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.listInline { display: flex; flex-wrap: wrap; gap: 0 4px; }
.listInline--bullet li + li::before {
  content: "·";
  margin-right: 4px;
  color: var(--text-muted);
}

/* ============================================================
   HEADER
   ============================================================ */
#ndzn-header {
  height: var(--header-h);
  background: url('assets/bg.png') no-repeat bottom center / cover;
  position: relative;
}

/* Fallback gradient when bg.png not present */
#ndzn-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1208 40%, #2a1e0a 70%, #1a1208 100%);
  z-index: 0;
}

.header-nav {
  height: var(--header-nav-h);
  background: rgba(0,0,0,0.25);
  position: relative;
  z-index: 2;
}

.header-nav .p-body-inner {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  height: 100%;
  padding: 0 20px;
}

/* Logo */
.header-logo {
  position: relative;
  top: 45px;
  width: 357px;
  height: 110px;
  background: url('assets/long.png') no-repeat center / contain;
  flex-shrink: 0;
  display: block;
}

/* Fallback logo text when image absent */
.header-logo-fallback {
  position: relative;
  top: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
.header-logo-fallback .logo-main {
  font-family: "Blocky", monospace;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #FBAF39;
  text-shadow: 3px 3px 0 #7a4a00, -1px -1px 0 #5a3000;
  text-transform: uppercase;
}
.header-logo-fallback .logo-sub {
  font-family: "Blocky", monospace;
  font-size: 13px;
  letter-spacing: 6px;
  color: #aaa;
  text-shadow: 1px 1px 0 #333;
  text-transform: uppercase;
  margin-top: -4px;
}

/* Nav links */
.header-nav-all-links {
  display: flex;
  margin-left: auto;
}

.header-nav-link {
  padding: 0 30px;
  margin: 0 0 12px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-nav);
  text-shadow: 0 3px var(--shadow-nav);
  letter-spacing: 2px;
  position: relative;
  font-size: 12px;
  font-family: "Blocky", monospace;
  padding-top: 100px;
  transition: var(--transition);
  display: block;
}

.header-nav-link .icon {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  margin: auto;
  width: 80px;
  height: 80px;
  display: block;
  background: no-repeat center / 100% auto;
}

/* Nav icons — pixel-art style inline SVGs as fallback */
.icon-home   { background-image: url('/assets/home.png');   }
.icon-forums { background-image: url('/assets/forums.png'); }
.icon-bans   { background-image: url('/assets/bans.png');   }
.icon-store  { background-image: url('/assets/store.png');  }

/* CSS fallback icons when images absent */
.icon-home::after, .icon-forums::after, .icon-bans::after, .icon-store::after {
  font-family: "Material Icons";
  font-size: 52px;
  color: var(--text-nav);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-shadow: 0 3px rgba(0,0,0,0.5);
  transition: var(--transition);
}
.icon-home::after   { content: "home"; }
.icon-forums::after { content: "forum"; }
.icon-bans::after   { content: "gavel"; }
.icon-store::after  { content: "storefront"; }

.header-nav-link:hover {
  color: white;
  text-shadow: 0 3px rgba(255,255,255,0.25), 0 0 20px rgba(255,255,255,0.35);
}
.header-nav-link:hover .icon-home::after,
.header-nav-link:hover .icon-forums::after,
.header-nav-link:hover .icon-bans::after,
.header-nav-link:hover .icon-store::after { color: white; }

.header-nav-link.active {
  color: var(--gold);
  text-shadow: 0 3px var(--gold-deep), 0 2px 20px #dc8d13;
}
.header-nav-link.active .icon-home::after,
.header-nav-link.active .icon-forums::after,
.header-nav-link.active .icon-bans::after,
.header-nav-link.active .icon-store::after { color: var(--gold); }

.header-nav-link.active::before {
  content: "";
  position: absolute;
  top: calc(100% + 20px);
  height: 4px;
  width: calc(100% - 62px);
  left: 30px;
  background: rgba(255,255,255,0.1);
}

/* ============================================================
   ABOVE CONTENT STRIP  (Discord + Search)
   ============================================================ */
.ndzn-above-content {
  margin: -200px auto 30px;
  width: 100%;
  position: relative;
  z-index: 5;
}

.ndzn-above-content .p-body-inner {
  display: flex;
  flex-direction: row;
}

.ndzn-above-content .main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.ndzn-above-content .sidebar {
  flex: 0 0 var(--sidebar-w);
}

/* Discord link */
.ndzn-discord {
  color: white;
  position: relative;
  padding-left: 76px;
  transition: var(--transition);
  display: block;
}
.ndzn-discord:hover { padding-left: 81px; }

.ndzn-discord .discord-icon {
  position: absolute;
  top: 2px;
  left: 23px;
  width: 32px;
  height: 36px;
  background: var(--gold);
  -webkit-mask-image: url('assets/discord.svg');
  -webkit-mask-size: 32px auto;
  mask-image: url('assets/discord.svg');
  mask-size: 32px auto;
}

/* Fallback discord icon */
.ndzn-discord .discord-icon-fallback {
  position: absolute;
  top: 2px;
  left: 23px;
  color: var(--gold);
  font-size: 28px;
  font-family: "Material Icons";
}
.ndzn-discord .discord-icon-fallback::after { content: "chat"; }

.ndzn-discord h4 {
  font-weight: normal;
  margin: 0;
  color: var(--gold);
  font-size: 14px;
}
.ndzn-discord p {
  margin: 0;
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
}

/* Search */
#ndzn-search {
  margin-left: auto;
  padding-right: 20px;
  position: relative;
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: Karla, sans-serif;
  font-size: 13px;
  font-weight: bold;
  border-radius: var(--radius);
  transition: var(--transition);
  letter-spacing: 0.5px;
}
.search-btn:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: 0 4px 4px rgba(0,0,0,0.15);
  color: white;
}
.search-btn .material-icons { font-size: 16px; }

/* Search dropdown */
.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 20px;
  width: 280px;
  background: var(--panel-bg);
  border-top: 2px solid var(--gold-dark);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  z-index: 100;
  padding: 12px;
}
.search-dropdown.open { display: block; }

.search-dropdown h3 {
  color: var(--gold-dark);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.search-dropdown input {
  width: 100%;
  padding: 7px 10px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: white;
  font-family: Karla, sans-serif;
  font-size: 13px;
  outline: none;
}
.search-dropdown input:focus { border-color: var(--gold); }

.search-dropdown-footer {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

/* ============================================================
   TITLE BAR  (Welcome + Play Now)
   ============================================================ */
#ndzn-title-bar { position: relative; z-index: 4; }

#ndzn-title-bar .p-body-inner {
  display: flex;
  flex-direction: row;
}

#ndzn-title-bar .main { flex: 1 1 auto; }
#ndzn-title-bar .sidebar { flex: 0 0 var(--sidebar-w); }

.ndzn-title-bar-left {
  background: var(--panel-darker);
  padding: 0 30px;
  display: flex;
  align-items: center;
  height: 80px;
  cursor: default;
}

.ndzn-title-bar-left h1 {
  margin: 3px 0 0;
  letter-spacing: 1px;
  font-size: 22px;
  color: white;
}

/* User nav (Log in / Register) */
#ndzn-user {
  margin-left: auto;
  margin-right: -14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.guest-link {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: var(--transition);
}
.guest-link:hover { color: white; background: rgba(255,255,255,0.07); }

/* Play Now sidebar box */
.ndzn-title-bar-right {
  height: 80px;
  margin-top: -15px;
  position: relative;
  background: var(--panel-darkest);
  cursor: default;
}

#ndzn-play-now-btn {
  display: block;
  cursor: pointer;
  height: 60px;
  text-align: center;
  line-height: 60px;
  font-size: 15px;
  width: 100%;
  max-width: 250px;
  margin: auto;
  position: relative;
  z-index: 2;
  top: -32px;
  letter-spacing: 6px;
  transition: .2s;
}

#ndzn-play-now-btn .play-btn-img {
  content: "";
  position: absolute;
  z-index: -3;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 234px;
  transition: .2s;
  pointer-events: none;
  background: url('assets/play-btn.png') no-repeat bottom center / auto 100%;
}

#ndzn-play-now-btn .play-btn-face {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: var(--gold);
  border-bottom: 4px solid var(--gold-dark);
  border-radius: 2px;
  transition: .2s;
  box-shadow: 0 0 12px rgba(0,0,0,0.35);
}

#ndzn-play-now-btn p {
  color: white;
  text-shadow: 0 2px #E1983B;
  font-family: "Blocky", monospace;
  text-transform: uppercase;
  position: relative;
  z-index: 10;
  font-size: 15px;
  letter-spacing: 6px;
}

#ndzn-play-now-btn:hover .play-btn-img {
  opacity: .8;
  transform: rotate(-3deg) scale(0.97);
}
#ndzn-play-now-btn:hover .play-btn-face {
  transform: scale(1.04);
}

#ndzn-playercount {
  text-transform: uppercase;
  color: #5C5C5C;
  font-weight: 400;
  letter-spacing: 2px;
  font-size: 12px;
  margin: -13px auto 0;
  display: table;
}

/* ============================================================
   BODY LAYOUT  (content + sidebar)
   ============================================================ */
.p-body { position: relative; z-index: 3; }

.p-body .p-body-inner {
  padding: 0;
  background: var(--panel-bg);
  box-shadow: 0 10px 15px rgba(0,0,0,0.4);
  display: flex;
}

.p-body-content {
  flex: 1 1 auto;
  padding: 20px;
  position: relative;
  min-width: 0;
}

.p-body-sidebar {
  width: var(--sidebar-w);
  padding: 20px;
  box-sizing: border-box;
  background: var(--panel-dark);
  flex-shrink: 0;
}

/* Breadcrumbs */
.p-breadcrumbs {
  background: rgba(255,255,255,0.0075);
  margin: -20px -20px 21px;
  padding: 12px 30px 11px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.p-breadcrumbs a { color: var(--text-muted); }
.p-breadcrumbs a:hover { color: white; }
.p-breadcrumbs .sep { color: var(--text-dim); }

/* ============================================================
   SIDEBAR BLOCKS
   ============================================================ */
.p-body-sidebar .block {
  margin: 0 0 40px;
}

.p-body-sidebar .block-container {
  border: none;
  border-radius: 0;
  background: transparent;
  position: relative;
}

.p-body-sidebar .block-container::before {
  font-family: "Material Icons";
  white-space: nowrap;
  font-size: 22px;
  color: #444;
  position: absolute;
  display: block;
  font-weight: normal;
  width: 40px;
  top: 2px;
  left: 0;
}

/* Icon per block type */
.block[data-widget-section="staffMembers"] .block-container::before { content: "shield"; }
.block[data-widget-section="onlineNow"] .block-container::before { content: "people"; }
.block[data-widget-key="forum_overview_new_posts"] .block-container::before { content: "article"; }
.block[data-widget-key="forum_overview_forum_statistics"] .block-container::before { content: "bar_chart"; }
.block[data-widget-key="forum_overview_new_profile_posts"] .block-container::before { content: "person"; }

.block-minorHeader {
  margin-bottom: 10px;
  font-weight: bold;
  padding-left: 40px;
  color: #ccc;
  font-size: 13px;
}
.block-minorHeader a { color: #ccc; }
.block-minorHeader a:hover { color: white; }

/* Staff members block */
.block[data-widget-section="staffMembers"] .block-row {
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
  border-bottom: 2px solid rgba(255,255,255,0.02);
  padding: 12px 12px 9px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Online now block */
.block[data-widget-section="onlineNow"] .block-footer {
  background: transparent;
  border-top: 1px solid #333;
  padding: 10px;
  margin-top: 15px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Forum stats */
.block[data-widget-key="forum_overview_forum_statistics"] dl {
  margin-bottom: 5px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}
.block[data-widget-key="forum_overview_forum_statistics"] dd { color: var(--text-primary); }

/* Latest posts / profile posts rows */
.block-row { padding: 8px 0; }

.contentRow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.contentRow-main { flex: 1; min-width: 0; }
.contentRow-main a { color: #bbb; font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contentRow-main a:hover { color: white; }
.contentRow-minor { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.contentRow-minor.listInline { display: flex; gap: 4px; }

.contentRow-faderContent { font-size: 13px; color: #bbb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }

/* ============================================================
   AVATARS
   ============================================================ */
.avatar {
  border-radius: 2px;
  overflow: hidden;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
  color: white;
  font-size: 11px;
}
.avatar--xs  { width: 28px; height: 28px; }
.avatar--xxs { width: 20px; height: 20px; font-size: 9px; }
.avatar--s   { width: 36px; height: 36px; }
.avatar img  { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   USERNAME STYLES
   ============================================================ */
.username--staff  { color: var(--gold) !important; }
.username--admin  { color: #e06b3e !important; }
.username--style2 { color: #8ab4d4; }
.username--style5 { color: #66aacc; }
.username--style6 { color: #5a9e5a; }
.username--style7 { color: #e06b3e; }

.userTitle { font-size: 11px; font-weight: bold; }

/* ============================================================
   ANNOUNCEMENT BLOCKS (Portal home)
   ============================================================ */
#ndzn-portal .block--announcement {
  margin-bottom: 20px;
}

.block--announcement .block-container {
  border: none;
  border-radius: var(--radius);
  background: transparent;
}

.announcement-header {
  background: #222;
  color: rgba(255,255,255,0.85);
  padding: 20px 20px 20px 88px;
  position: relative;
  overflow: hidden;
}

.announcement-header::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.075;
  z-index: 0;
  background: url('assets/bg.png') repeat;
}

.announcement-header > * { position: relative; z-index: 1; }

/* Calendar badge */
.announcement-calendar {
  background: rgba(0,0,0,0.1);
  width: 68px;
  height: 100%;
  padding: 16px 0 13px 2px;
  border-radius: 3px 0 0 0;
  position: absolute;
  top: 0;
  left: 0;
  color: #c59243;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 2px rgba(0,0,0,0.15);
}
.announcement-calendar .day {
  font-size: 28px;
  margin-bottom: -7px;
  display: block;
  line-height: 1;
}
.announcement-calendar .month {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

/* Announcement avatar (top-right) */
.announcement-avatar {
  position: absolute;
  top: 19px;
  right: 19px;
  width: 36px;
  height: 36px;
  border-radius: 2px;
  overflow: hidden;
  z-index: 1;
}
.announcement-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Title */
.announcement-title {
  font-size: 18px;
  color: white;
  font-weight: bold;
  margin-bottom: 6px;
  display: block;
  padding-right: 50px;
}
.announcement-title:hover { text-decoration: underline; }

/* Meta list */
.announcement-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
}
.announcement-meta li { display: flex; align-items: center; gap: 4px; }
.announcement-meta li + li::before { content: "·"; color: rgba(255,255,255,0.3); }
.announcement-meta a { color: rgba(255,255,255,0.55); }
.announcement-meta a:hover { color: white; }
.announcement-meta .fa { font-size: 11px; }

/* Body */
.announcement-body {
  padding: 20px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Footer */
.announcement-footer {
  padding: 10px 0;
  text-align: right;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.announcement-footer-btn {
  text-transform: uppercase;
  font-weight: bold;
  background: rgba(255,255,255,0.01);
  box-shadow: 0 4px 4px rgba(0,0,0,0.025);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  height: 42px;
  padding: 0 16px;
  transition: .15s;
  letter-spacing: 0.035em;
  color: #ccc;
}
.announcement-footer-btn:hover {
  background: #f6f6f6;
  box-shadow: 0 2px 2px rgba(0,0,0,0.125);
  color: #666;
}
.announcement-footer-btn .fa { font-size: 15px; }

/* FIRST (featured) announcement */
#ndzn-portal .block--announcement:first-child .announcement-header {
  background: linear-gradient(to top right, #ca974a, #a76723);
  border: none;
  border-radius: 0;
}
#ndzn-portal .block--announcement:first-child .announcement-title {
  font-size: 20px;
  margin-top: 5px;
  margin-bottom: 15px;
}
#ndzn-portal .block--announcement:first-child .announcement-title::before {
  content: "LATEST NEWS:";
  display: block;
  letter-spacing: 4px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
}
#ndzn-portal .block--announcement:first-child .announcement-calendar {
  color: rgba(255,255,255,0.65);
  padding-top: 35px;
}
#ndzn-portal .block--announcement:first-child .announcement-avatar {
  top: 39px;
  right: 30px;
}

/* ============================================================
   BLOCK CONTAINERS (generic)
   ============================================================ */
.block-container {
  border: none;
  border-radius: var(--radius);
  background: transparent;
}

.block-header {
  background: rgba(0,0,0,0.15);
  font-weight: bold;
  border-radius: var(--radius);
  border-bottom: 3px solid rgba(0,0,0,0.075);
  padding: 18px 18px 16px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button, a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px 6px;
  border: none;
  font-weight: bold;
  border-radius: var(--radius) !important;
  font-family: Karla, sans-serif;
  background: rgba(255,255,255,0.25) !important;
  color: #ccc;
  border-bottom: 2px solid rgba(0,0,0,0.15);
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
  text-decoration: none;
}

.button--primary, a.button--primary {
  background: var(--gold) !important;
  border-color: var(--gold-dark) !important;
  color: #5f3434 !important;
}
.button--primary:hover { filter: brightness(1.08); }

.button--link, a.button--link {
  background: rgba(0,0,0,0.25) !important;
  border-bottom-color: rgba(0,0,0,0.25) !important;
}

/* ============================================================
   LABELS
   ============================================================ */
.label {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.label--red   { background: rgba(200,50,50,0.3); color: #f88; }
.label--green { background: rgba(50,150,50,0.3); color: #8d8; }

/* ============================================================
   ONLINE NOW (comma list)
   ============================================================ */
.block[data-widget-section="onlineNow"] .block-body {
  padding: 8px 0;
}
.listInline--comma { gap: 0; }
.listInline--comma li + li::before { content: ", "; color: var(--text-muted); }
.listInline--comma li a { font-size: 13px; }

/* ============================================================
   PAGE FOOTER
   ============================================================ */
.p-footer {
  margin-top: 60px;
  background: #0c0c0c;
  padding: 25px 0;
}

.p-footer-inner {
  padding: 0 15px;
  display: flex;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.p-footer-inner span {
  margin-right: auto;
  color: #888;
}
.p-footer-inner span small {
  color: #555;
  display: block;
  margin-top: 3px;
}

.p-footer-inner #tm {
  height: 25px;
  display: block;
  padding-left: 25px;
  opacity: .4;
  color: #666;
  font-size: 12px;
}
.p-footer-inner #tm:hover { opacity: .8; }

/* ============================================================
   STAFF BAR
   ============================================================ */
.p-staffBar {
  background: #111;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.065);
  box-shadow: 0 -5px 5px rgba(0,0,0,0.25) inset;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  :root { --sidebar-w: 290px; }
}

@media (max-width: 900px) {
  .p-body .p-body-inner { flex-direction: column; }
  .p-body-sidebar { width: 100%; }

  .header-nav { height: 109px; position: relative; }
  .header-logo, .header-logo-fallback {
    position: absolute;
    top: calc(100% + 40px);
    left: 0; right: 0;
    margin: auto;
  }

  .header-nav-all-links {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
  .header-nav-link { padding-top: 65px; }
  .header-nav-link .icon { width: 50px; height: 50px; }
  .header-nav-link.active::before { top: calc(100% + 14px); }

  #ndzn-title-bar .p-body-inner { flex-wrap: wrap; }
  #ndzn-title-bar .main { order: 2; }
  #ndzn-title-bar .sidebar { order: 1; flex-basis: 100%; position: relative; }

  .ndzn-title-bar-right {
    position: absolute;
    bottom: 25px; left: 0;
    width: 100%; background: transparent;
    visibility: hidden;
  }
  #ndzn-play-now-btn {
    visibility: visible;
    height: 40px; line-height: 40px;
    font-size: 13px;
  }
  #ndzn-playercount { display: none; }

  .ndzn-above-content { margin-bottom: 20px; }
  .ndzn-above-content .sidebar { display: none; }
}

@media (max-width: 550px) {
  .header-nav-link { padding-left: 15px; padding-right: 15px; }
  .ndzn-discord { padding: 0; display: flex; align-items: center; }
  .ndzn-discord .discord-icon-fallback { position: relative; top: auto; left: auto; margin: 0 10px 0 20px; }
  .ndzn-discord h4 { font-size: 0; }
  .ndzn-discord h4 b { font-size: 14px; }
  .ndzn-discord p { display: none; }
}

@media (max-width: 390px) {
  .header-nav-all-links { overflow: hidden; }
  .header-nav-link { padding-left: 12px; padding-right: 12px; font-size: 10px; }
}

/* ============================================================
   PAGE-SPECIFIC  (add class to <body> or use separate files)
   ============================================================ */

/* ── Bans page ── */
body.page-bans .bans-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
body.page-bans .bans-table th {
  background: rgba(0,0,0,0.2);
  padding: 10px 14px;
  text-align: left;
  color: #aaa;
  font-weight: bold;
  border-bottom: 2px solid rgba(255,255,255,0.05);
}
body.page-bans .bans-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
}
body.page-bans .bans-table tr:hover td { background: rgba(255,255,255,0.02); }
body.page-bans .ban-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}
body.page-bans .ban-badge--permanent { background: rgba(200,50,50,0.2); color: #f77; }
body.page-bans .ban-badge--temporary { background: rgba(220,140,50,0.2); color: var(--gold); }

/* ── Store page ── */
body.page-store .store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
body.page-store .store-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}
body.page-store .store-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--gold);
}
body.page-store .store-card img { width: 80px; height: 80px; margin: 0 auto 12px; object-fit: contain; }
body.page-store .store-card h3 { font-size: 15px; color: white; margin-bottom: 6px; }
body.page-store .store-card .price { color: var(--gold); font-weight: bold; font-size: 18px; margin-bottom: 12px; }

/* Font Awesome lightweight shim (icons referenced via .fa classes) */
.fa { font-family: "Material Icons"; font-style: normal; font-size: inherit; display: inline-block; }
.fa-user::before      { content: "person"; }
.fa-clock-o::before   { content: "schedule"; }
.fa-comments::before  { content: "chat_bubble"; }
.fa-book::before      { content: "menu_book"; }
.fa-caret-right::before { content: "chevron_right"; }