:root {
  --accent: #d9363e;
  --accent-dark: color-mix(in srgb, var(--accent) 78%, black);
  --bg: #f0f1f3;
  --panel: #ffffff;
  --panel-2: #f7f7f8;
  --border: #e2e4e8;
  --text: #2b2d31;
  --muted: #7b808a;
  --nav: #ffffff;
  /* banner behind the logo: neutral black into the brand red (no violet, per the taste skill) */
  --hero-from: #111111;
  --hero-to: #5c1416;
  --footer: #161616;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06);
  --ok: #2fa84f;
  --warn: #e8a317;
  --font-display: "Epilogue", system-ui, sans-serif;
  --font-text: "Epilogue", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
/* dark tokens from the taste skill's brand deal (start.mjs brand: bg #111111, surface #1c1c1c, ink #f2f2f2, accent = logo red) */
html[data-theme="dark"] {
  --bg: #111111;
  --panel: #1a1a1a;
  --panel-2: #222222;
  --border: #2c2c2c;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --nav: #151515;
  --footer: #0b0b0b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, .heading {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 .6em;
}
body { font-size: 15px; }
code, .mono { font-family: var(--font-mono); }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 14px; } h4 { font-size: 12px; }
img { max-width: 100%; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex.between { justify-content: space-between; }
.flex.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.hidden { display: none !important; }

/* ---------- Navbar ---------- */
.nav {
  background: var(--nav);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow);
}
.nav .container { display: flex; align-items: center; height: 56px; gap: 18px; }
.nav .brand img { height: 34px; display: block; }
.nav .brand .text { font-family: var(--font-display); font-weight: 900; font-size: 20px; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.nav-links { display: flex; gap: 4px; align-items: center; margin: 0; padding: 0; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button {
  display: block; padding: 8px 10px; color: var(--text); font-family: var(--font-display);
  font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  background: none; border: 0; cursor: pointer;
}
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li > a.active { color: var(--accent); text-decoration: none; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 180px; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px 0; z-index: 60;
}
.dropdown-menu a { display: block; padding: 7px 14px; color: var(--text); font-size: 13px; }
.dropdown-menu a:hover { background: var(--panel-2); color: var(--accent); text-decoration: none; }
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu { display: block; }
.dropdown-menu.right { left: auto; right: 0; }
.nav-search input[type=search] {
  height: 30px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  border-radius: 3px; padding: 0 10px 0 28px; width: 160px; font-size: 12px;
}
.nav-search { position: relative; }
.nav-search i { position: absolute; left: 9px; top: 9px; font-size: 11px; color: var(--muted); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-user { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; cursor: pointer; }
.nav-user img { width: 26px; height: 26px; border-radius: 3px; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; padding: 6px; position: relative; }
.icon-btn:hover { color: var(--accent); }
.badge-count { position: absolute; top: -2px; right: -4px; background: var(--accent); color: #fff; font-size: 10px; border-radius: 8px; padding: 0 5px; line-height: 15px; }
.burger { display: none; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--panel); color: var(--text); font-family: var(--font-display); font-weight: 800;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; text-decoration: none !important;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--panel-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-danger { background: #c0392b; border-color: #c0392b; color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 10px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font: inherit; }
label { display: block; font-weight: 700; font-size: 12px; margin: 12px 0 5px; }
label.inline { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; margin: 6px 14px 6px 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); background: var(--panel); color: var(--text);
  border-radius: var(--radius); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
textarea { min-height: 140px; resize: vertical; }
textarea.tall { min-height: 280px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }

/* ---------- Panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.panel-head {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.panel-head .actions { margin-left: auto; display: flex; gap: 6px; }
.panel-head.accent { background: var(--accent); color: #fff; border-color: var(--accent); border-radius: var(--radius) var(--radius) 0 0; }
.panel-body { padding: 16px; }
.panel-body.tight { padding: 0; }
.page-title { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin: 22px 0 18px; display: flex; align-items: center; gap: 10px; }
.page-title h1 { margin: 0; font-size: 16px; }
.page-title .actions { margin-left: auto; display: flex; gap: 8px; }
.breadcrumbs { font-size: 12px; color: var(--muted); margin-left: 4px; }
.breadcrumbs a { color: var(--muted); }

.layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; margin-top: 20px; }
.layout.left { grid-template-columns: 260px 1fr; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ---------- Flash ---------- */
.flash { padding: 11px 16px; border-radius: var(--radius); margin: 16px 0 0; font-weight: 600; border: 1px solid; }
.flash.success { background: color-mix(in srgb, var(--ok) 12%, var(--panel)); border-color: var(--ok); color: var(--ok); }
.flash.error { background: color-mix(in srgb, #e74c3c 12%, var(--panel)); border-color: #e74c3c; color: #e74c3c; }

/* ---------- Hero ---------- */
.hero {
  margin-top: 20px; border-radius: var(--radius); overflow: hidden; position: relative;
  /* an in-game screenshot (stand-in until the server's own; Admin -> Settings -> banner), toned toward the brand */
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--hero-from) 82%, transparent), color-mix(in srgb, var(--hero-to) 70%, transparent)),
    var(--hero-img, none) center 40% / cover no-repeat,
    linear-gradient(120deg, var(--hero-from), var(--hero-to));
  min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 16px;
}
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.35)); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero img.logo { max-height: 150px; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 10px 20px rgba(0,0,0,.4)); }
.hero .title { color: #fff; font-family: var(--font-display); font-size: 26px; letter-spacing: .14em; text-transform: uppercase; margin-top: 14px; }
.hero .title b { font-weight: 900; } .hero .title span { font-weight: 400; }
.hero .tagline { color: rgba(255,255,255,.7); font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.page-banner { margin-top: 20px; border-radius: var(--radius); padding: 22px; color: #fff; text-align: center; background: linear-gradient(120deg, var(--hero-from), var(--hero-to)); }
.page-banner h1 { margin: 0; font-size: 22px; display: flex; gap: 12px; align-items: center; justify-content: center; }
.page-banner img { width: 40px; height: 40px; border-radius: 4px; }

.status-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 16px; }
.status-bar > * {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text);
}
.status-bar .copy-ip { cursor: pointer; font: inherit; font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.status-bar .copy-ip:hover { border-color: var(--accent); }
.status-bar b { font-family: var(--font-mono); font-weight: 500; color: var(--accent); }
.hero h1.title { margin: 14px 0 0; }
.status-bar .store-btn { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
.status-bar .store-btn:hover { background: var(--accent-dark); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #999; display: inline-block; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }

/* ---------- News ---------- */
.news-item { padding: 16px; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: 0; }
.news-item h2 { margin-bottom: 4px; }
.news-item h2 a { color: var(--text); }
.news-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.news-meta img { width: 20px; height: 20px; border-radius: 3px; }
.content { overflow-wrap: anywhere; }
.content p:first-child { margin-top: 0; }
.content p:last-child { margin-bottom: 0; }
.content img { border-radius: var(--radius); }
.content blockquote { border-left: 3px solid var(--accent); margin: 10px 0; padding: 6px 12px; background: var(--panel-2); }
.content code { background: var(--panel-2); padding: 1px 5px; border-radius: 3px; font-size: 12px; }
.content pre { background: var(--panel-2); padding: 12px; border-radius: var(--radius); overflow: auto; }
.content pre code { background: none; padding: 0; }
.content h2 { margin-top: 1.4em; color: var(--accent); }
.content ol li, .content ul li { margin-bottom: 6px; }
.empty { text-align: center; padding: 30px 16px; color: var(--muted); }
.empty i { font-size: 28px; display: block; margin-bottom: 8px; opacity: .5; }

/* ---------- Sidebar widgets ---------- */
.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--border); }
.widget-list li:last-child { border-bottom: 0; }
.widget-list img { width: 28px; height: 28px; border-radius: 3px; }
.widget-list .meta { font-size: 11px; color: var(--muted); }
.progress { height: 10px; background: var(--panel-2); border-radius: 5px; overflow: hidden; border: 1px solid var(--border); }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); }
.top-donator { display: flex; align-items: center; gap: 14px; }
.top-donator img { width: 64px; }
.discord-frame { width: 100%; height: 380px; border: 0; display: block; }
.discord-card { background: #5865f2; color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-weight: 800; font-family: var(--font-display); border-radius: var(--radius) var(--radius) 0 0; }
.discord-card a { color: #fff; margin-left: auto; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Tables ---------- */
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--panel-2); }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: color-mix(in srgb, var(--panel-2) 60%, transparent); }
.table .player { display: flex; align-items: center; gap: 8px; }
.table .player img { width: 24px; height: 24px; border-radius: 3px; }
.table-wrap { overflow-x: auto; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.tag.role { color: #fff; border: 0; text-shadow: 0 1px 1px rgba(0,0,0,.3); }
.tag.green { background: var(--ok); color: #fff; border-color: var(--ok); }
.tag.red { background: #c0392b; color: #fff; border-color: #c0392b; }
.tag.yellow { background: var(--warn); color: #fff; border-color: var(--warn); }
.tag.blue { background: #2e7dd1; color: #fff; border-color: #2e7dd1; }

/* ---------- Forums ---------- */
.forum-row { display: grid; grid-template-columns: 44px 1fr 110px 240px; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.forum-row:last-child { border-bottom: 0; }
.forum-icon { width: 44px; height: 44px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.forum-row .name { font-weight: 700; font-size: 15px; color: var(--text); }
.forum-row .desc { font-size: 12px; color: var(--muted); }
.forum-row .counts { font-size: 12px; color: var(--muted); text-align: center; }
.forum-row .counts b { display: block; color: var(--text); font-size: 14px; }
.last-post { display: flex; align-items: center; gap: 9px; font-size: 12px; min-width: 0; }
.last-post img { width: 30px; height: 30px; border-radius: 3px; }
.last-post .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; color: var(--text); font-weight: 600; }
.last-post > div { min-width: 0; }
.thread-row { display: grid; grid-template-columns: 36px 1fr 90px 200px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.thread-row:last-child { border-bottom: 0; }
.thread-row > img { width: 36px; height: 36px; border-radius: 3px; }
.thread-row .title { font-weight: 700; color: var(--text); }
.thread-row .sub { font-size: 12px; color: var(--muted); }
.thread-row .sub i { margin-right: 3px; }

.post { display: grid; grid-template-columns: 190px 1fr; border: 1px solid var(--border); background: var(--panel); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; scroll-margin-top: 70px; }
.post-user { background: var(--panel-2); border-right: 1px solid var(--border); padding: 16px; text-align: center; }
.post-user img.bust { width: 110px; display: block; margin: 0 auto 8px; }
.post-user .name { font-weight: 800; font-size: 15px; display: block; }
.post-user .stats { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.post-main { display: flex; flex-direction: column; min-width: 0; }
.post-head { padding: 9px 16px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.post-body { padding: 16px; flex: 1; }
.post-sig { margin: 0 16px; padding: 10px 0; border-top: 1px dashed var(--border); font-size: 12px; color: var(--muted); }
.post-foot { padding: 8px 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: center; justify-content: flex-end; font-size: 12px; }
.like-btn { background: none; border: 1px solid var(--border); border-radius: 3px; padding: 3px 9px; cursor: pointer; color: var(--muted); font-size: 12px; }
.like-btn.liked { color: var(--accent); border-color: var(--accent); }
.pagination { display: flex; gap: 4px; justify-content: center; margin: 14px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 5px 11px; border: 1px solid var(--border); background: var(--panel); border-radius: 3px; color: var(--text); font-size: 12px; font-weight: 700; }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }
.forum-stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.forum-stats div { padding: 14px; border-right: 1px solid var(--border); }
.forum-stats div:last-child { border-right: 0; }
.forum-stats b { display: block; font-size: 18px; }
.forum-stats span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* ---------- Editor ---------- */
.editor-toolbar { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--panel-2); flex-wrap: wrap; }
.editor-toolbar button { background: none; border: 0; padding: 6px 9px; cursor: pointer; color: var(--muted); border-radius: 3px; }
.editor-toolbar button:hover { background: var(--panel); color: var(--accent); }
.editor-toolbar + textarea { border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- Profile ---------- */
.profile-card { text-align: center; }
.profile-card .status { padding: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: #fff; background: #888; border-radius: var(--radius) var(--radius) 0 0; }
.profile-card .status.on { background: var(--ok); }
.profile-card .status small { display: block; font-weight: 600; font-size: 10px; opacity: .85; }
.profile-card .avatar { padding: 18px; }
.profile-card .avatar img { width: 150px; }
.profile-card .uname { font-size: 18px; font-weight: 800; }
.profile-card .rank { display: block; color: #fff; padding: 6px; font-family: var(--font-display); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }
.kv { display: flex; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--border); font-size: 12px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; }
.tabs { display: flex; gap: 6px; justify-content: center; padding: 10px; }
.tabs a { padding: 6px 14px; border-radius: 3px; color: var(--muted); font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.tabs a.active { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.tabs a:hover { text-decoration: none; color: var(--accent); }
.gm-card {
  border-radius: var(--radius); overflow: hidden; color: #fff; min-height: 150px; padding: 14px;
  background: linear-gradient(160deg, #2c3442, #12161d); text-align: center; position: relative;
}
.gm-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%); opacity: .5; }
.gm-card > * { position: relative; }
.gm-card h3 { font-size: 13px; letter-spacing: .15em; margin-bottom: 10px; }
.gm-card .none { background: rgba(255,255,255,.12); padding: 4px 8px; border-radius: 3px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; display: inline-block; }
.gm-card .stat { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 6px; border-bottom: 1px solid rgba(255,255,255,.1); }
.gm-card .stat b { font-weight: 800; }

/* ---------- Leaderboards ---------- */
.lb-head { background: var(--accent); color: #fff; text-align: center; padding: 8px; font-family: var(--font-display); font-weight: 800; letter-spacing: .12em; font-size: 12px; text-transform: uppercase; border-radius: var(--radius) var(--radius) 0 0; }
.lb-row { display: flex; align-items: center; gap: 9px; padding: 7px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.lb-row:last-child { border-bottom: 0; }
.lb-row .pos { width: 22px; font-weight: 800; color: var(--muted); }
.lb-row:nth-child(1) .pos { color: #e5b100; } .lb-row:nth-child(2) .pos { color: #a7a7ad; } .lb-row:nth-child(3) .pos { color: #c27b3c; }
.lb-row img { width: 22px; height: 22px; border-radius: 3px; }
.lb-row .val { margin-left: auto; font-weight: 800; }

/* ---------- Staff ---------- */
.staff-group { margin-bottom: 26px; }
.staff-group h2 { display: flex; align-items: center; gap: 8px; }
.staff-group h2 small { font-size: 12px; color: var(--muted); }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.staff-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; padding: 14px 10px 0; overflow: hidden; color: var(--text); transition: transform .15s; }
.staff-card:hover { transform: translateY(-3px); text-decoration: none; }
.staff-card img { width: 96px; }
.staff-card .n { padding: 8px; font-weight: 800; border-top: 1px solid var(--border); margin: 0 -10px; }

/* Staff page, protocol.rip style: one panel per rank, a coloured bar with the rank, members centred in round avatars */
.staff-page { padding-top: 14px; }
.staff-rank { margin: 0 0 14px; overflow: hidden; }
.staff-rank__bar {
  margin: 0; padding: 6px 12px; color: #fff; text-align: center;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35); border-bottom: 3px solid rgba(0, 0, 0, .12);
}
.staff-rank__bar.is-light { color: #111; text-shadow: none; }
.staff-rank__members { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 92px; padding: 32px 24px 22px; }
.staff-member { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 120px; color: var(--text); text-decoration: none !important; }
.staff-member__avatar {
  width: 82px; height: 82px; border-radius: 50%; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  background: var(--panel-2); border: 2px solid var(--border); box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.staff-member__avatar img { width: 76px; display: block; transition: transform .4s var(--ease); }
.staff-member:hover .staff-member__avatar { transform: translateY(-2px); border-color: var(--accent); }
.staff-member:hover .staff-member__avatar img { transform: scale(1.03); }
.staff-member__name { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; text-align: center; word-break: break-word; }
@media (max-width: 760px) { .staff-rank__members { gap: 8px 24px; } }

/* ---------- Store ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.cat-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; padding: 22px 14px; color: var(--text); transition: transform .15s, border-color .15s; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
.cat-card img { height: 90px; object-fit: contain; margin-bottom: 10px; }
.cat-card .ic { font-size: 40px; color: var(--accent); margin-bottom: 10px; }
.cat-card h3 { margin: 0 0 4px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.product { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; position: relative; }
.product .img { height: 140px; display: flex; align-items: center; justify-content: center; background: var(--panel-2); border-bottom: 1px solid var(--border); }
.product .img img { max-height: 110px; }
.product .img i { font-size: 48px; color: var(--accent); }
.product .body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.product .name { font-weight: 800; font-size: 15px; }
.price { font-size: 18px; font-weight: 800; color: var(--accent); }
.price s { color: var(--muted); font-size: 13px; font-weight: 600; margin-right: 6px; }
.sale-ribbon { position: absolute; top: 10px; right: -30px; transform: rotate(45deg); background: var(--warn); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 34px; letter-spacing: .1em; }
.store-notice { background: color-mix(in srgb, var(--accent) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: 13px; }
.cart-line { display: grid; grid-template-columns: 1fr 120px 110px 40px; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.cart-total { padding: 14px 16px; }
.cart-total .row { display: flex; justify-content: space-between; padding: 3px 0; }
.cart-total .row.big { font-size: 18px; font-weight: 800; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; }
.gateway { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; cursor: pointer; font-weight: 700; }
.gateway:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.gateway i { font-size: 20px; width: 26px; text-align: center; }

/* ---------- Auth ---------- */
.auth-box { max-width: 460px; margin: 40px auto; }
.steps { display: flex; gap: 8px; margin-bottom: 16px; }
.steps div { flex: 1; text-align: center; padding: 8px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--border); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.steps div.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.mc-cmd { font-family: ui-monospace, Consolas, monospace; background: #1e1e1e; color: #55ff55; padding: 10px 14px; border-radius: var(--radius); font-size: 15px; display: block; text-align: center; margin: 10px 0; }
.verified-as { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--panel-2); border-radius: var(--radius); border: 1px solid var(--border); }
.verified-as img { width: 48px; height: 48px; border-radius: 4px; }

/* ---------- Tickets ---------- */
.msg { display: flex; gap: 12px; margin-bottom: 14px; }
.msg img { width: 40px; height: 40px; border-radius: 4px; }
.msg .bubble { flex: 1; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.msg.staff .bubble { border-left: 3px solid var(--accent); }
.msg .who { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.msg .who b { color: var(--text); }

/* ---------- Admin ---------- */
.admin-nav a { display: flex; gap: 10px; align-items: center; padding: 10px 16px; color: var(--text); border-bottom: 1px solid var(--border); font-weight: 600; }
.admin-nav a:last-child { border-bottom: 0; }
.admin-nav a.active, .admin-nav a:hover { color: var(--accent); background: var(--panel-2); text-decoration: none; }
.admin-nav a i { width: 18px; text-align: center; color: var(--muted); }
.stat-tile { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-tile .v { font-size: 24px; font-weight: 800; }
.stat-tile .l { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
code.inline { background: var(--panel-2); padding: 1px 6px; border-radius: 3px; font-size: 12px; }
.inline-form { display: inline; }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: #a0a3a9; margin-top: 40px; padding: 30px 0; font-size: 12px; }
.footer .container { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.footer a { color: #d0d2d6; }
.footer .links { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--font-display); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }
.footer .social { display: flex; gap: 14px; font-size: 18px; }
.footer img { height: 32px; opacity: .85; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #222; color: #fff; padding: 10px 18px; border-radius: var(--radius); font-weight: 700; z-index: 100; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .layout, .layout.left { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .forum-row { grid-template-columns: 44px 1fr; }
  .forum-row .counts, .forum-row .last-post { display: none; }
  .thread-row { grid-template-columns: 36px 1fr; }
  .thread-row .counts, .thread-row .last-post { display: none; }
  .nav-search { display: none; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--nav); flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--border); padding: 8px; }
  .nav-links.open { display: flex; }
  .dropdown-menu { position: static; box-shadow: none; border: 0; padding-left: 12px; }
  .status-bar, .grid-2, .grid-3, .grid-4, .form-row, .form-row.three { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; }
  .post-user { border-right: 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 14px; }
  .post-user img.bust { width: 44px; margin: 0; }
  .post-user .stats { display: none; }
  .cart-line { grid-template-columns: 1fr 90px; }
  .forum-stats { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   protocol.rip skin — values measured from protocol.rip (Raleway, #f5f5f5 page,
   white header with a soft shadow, banner joined to the header, 5px boxes).
   ===================================================================== */
:root, html[data-theme="dark"], html[data-theme="light"] {
  --bg: #f5f5f5; --panel: #ffffff; --panel-2: #f7f7f7; --border: #ececec;
  --text: #666666; --heading: #4a4a4a; --ink: #262626; --muted: #9a9a9a;
  --link: #6188b0; --nav: #ffffff; --footer: #262626; --radius: 5px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .13);
  --font-display: "Raleway", Arial, Helvetica, sans-serif;
  --font-text: "Raleway", Arial, Helvetica, sans-serif;
  color-scheme: light;
}
body { font-family: var(--font-text); font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.5; }
a { color: var(--link); }
h1, h2, h3, h4, .heading { color: var(--heading); font-weight: 700; letter-spacing: 2px; }
.container { max-width: 1152px; padding: 0 7.5px; }
main > .container:first-child:empty { display: none; }

/* header */
.nav { position: relative; border: 0; box-shadow: 0 0 10px rgba(0, 0, 0, .23); z-index: 50; }
.nav .container { height: 59px; gap: 22px; padding: 0 12px; }
.nav .brand img { height: 30px; }
.nav-links { gap: 8px; }
.nav-links > li > a, .nav-links > li > button { color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 1.3px; padding: 8px 12px; }
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li > a.active { color: var(--ink); opacity: .7; }
.nav-links .caret, .nav-user .caret { font-size: 9px; margin-left: 2px; }
.dropdown-menu { border: 1px solid rgba(0, 0, 0, .15); border-radius: 5px; box-shadow: none; padding: 8px 0; }
.dropdown-menu a, .dropdown-btn { display: block; width: 100%; text-align: left; padding: 6px 16px; font-size: 12px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink); }
.dropdown-menu a:hover, .dropdown-btn:hover { background: #f5f5f5; color: var(--ink); }
.dropdown-menu a i, .dropdown-btn i { width: 16px; color: #aaa; }
.nav-search input[type=search] { width: 245px; height: 23px; padding: 3px 10px 3px 26px; background: #fafafa; border: 1px solid rgba(210, 210, 210, .35); border-radius: 5px; font-size: 12px; font-weight: 600; color: #495057; }
.nav-search i { top: 6px; left: 9px; font-size: 10px; color: #bbb; }
.nav-search input:focus { outline: 0; border-color: #ccc; background: #fff; }
.nav-auth { color: #0d6efd; font-size: 14px; padding: 8px 16px; }
.nav-auth:hover { color: #0a58ca; text-decoration: none; }
.nav-right { gap: 4px; }
.nav-user { color: var(--ink); font-size: 13px; font-weight: 700; }
.icon-btn { color: #888; }

/* homepage banner (joined to the header, rounded only at the bottom) */
.home-banner {
  position: relative; overflow: hidden; height: 345px; margin: 0 7.5px; border-radius: 0 0 5px 5px;
  background: #492337; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.home-banner::before { content: ''; position: absolute; inset: -20px; background: var(--hero-img) center 40% / cover no-repeat; filter: blur(6px) saturate(.9); transform: scale(1.05); }
.home-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(58, 30, 76, .78), rgba(96, 22, 46, .74)); }
.home-banner > * { position: relative; z-index: 1; }
.home-banner__logo { max-height: 150px; max-width: 70%; margin-bottom: 16px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.home-banner h2 { margin: 0; color: #fff; font-size: 24px; font-weight: 400; letter-spacing: 2.27px; text-transform: uppercase; }
.home-banner h2 b { font-weight: 700; }
.home-banner h3 { margin: 2px 0 0; color: rgba(221, 221, 221, .44); font-size: 14px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; }
.home-banner h3 b { color: #fff; font-weight: 700; }

/* connect / players / store */
.main-top { display: grid; grid-template-columns: 317fr 473fr 317fr; gap: 15px; margin: 15px 7.5px 0; }
.main-top-content {
  height: 43px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 12px;
  background: #fff; border: 0; border-radius: 5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .13);
  color: rgba(38, 38, 38, .75); font: 700 12px/1 var(--font-text); letter-spacing: 1.2px; text-transform: uppercase; text-align: center;
}
button.main-top-content { cursor: pointer; }
.main-top-content i { font-size: 14px; margin-right: 2px; }
.main-top-button { background: #db4040; color: #fff; font-size: 11px; letter-spacing: 1.7px; border-radius: 6px; box-shadow: inset 0 0 1px 1px rgba(255, 255, 255, .32), 0 1px 2px rgba(0, 0, 0, .13); text-decoration: none !important; }
.main-top-button:hover { background: #c93636; color: #fff; }

/* posts + sidebar */
.home-row { display: grid; grid-template-columns: 1fr 369px; gap: 15px; margin: 12px 7.5px 0; align-items: start; }
.post-item { background: #fff; border-radius: 5px; padding: 12px 12px 12px; margin-bottom: 12px; }
.post-header { border-bottom: 1px solid rgba(212, 92, 57, .14); padding-bottom: 11px; margin-bottom: 11px; }
.post-header h2 { margin: 2px 0 0; font-size: 18px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--heading); }
.post-header h2 a { color: inherit; }
.post-meta { margin-top: 6px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.post-meta img { width: 16px; height: 16px; border-radius: 2px; }
.post-body { color: var(--text); }
.post-item .widget-list li { padding: 7px 0; }
.discord-widget { background: #2f3136; border-radius: 5px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .13); margin-bottom: 12px; }
.discord-widget__head { background: #5865f2; color: #fff; height: 74px; padding: 0 20px; display: flex; align-items: center; gap: 10px; font: 800 20px var(--font-text); }
.discord-widget__head i { font-size: 26px; }
.discord-widget__head a { margin-left: auto; color: #fff; font-size: 12px; font-weight: 600; }
.discord-widget__body { padding: 20px; color: #b9bbbe; font-size: 13px; }
.discord-frame { height: 430px; }

/* generic boxes (protocol .box) */
.box { background: #fff; border-radius: 4px; box-shadow: 0 2px 2px rgba(0, 0, 0, .05); padding: 0 20px 12px; margin-bottom: 12px; }
.box .heading { display: block; padding: 12px 0 7px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #b0b0b0; text-align: center; }
.box-line { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #666; text-align: center; padding: 2px 0; }
.box .widget-list li { padding: 7px 0; border-color: #f0f0f0; }
.box .progress { margin: 4px 0 6px; }
.top-donator { justify-content: center; padding: 4px 0; flex-direction: column; gap: 6px; font-weight: 700; }
.top-donator img { width: 70px; }

/* panels and page titles used across the site */
.panel { border: 0; border-radius: 5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .13); margin-bottom: 12px; }
.panel-head { border-bottom: 1px solid rgba(212, 92, 57, .14); color: var(--heading); font-size: 13px; font-weight: 700; letter-spacing: 2px; padding: 12px 14px; }
.panel-head.accent { background: #db4040; color: #fff; border: 0; border-radius: 5px 5px 0 0; }
.page-title { border: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .13); border-radius: 5px; padding: 11px 14px; margin: 14px 7.5px 12px; }
.page-title h1 { font-size: 15px; font-weight: 700; letter-spacing: 2px; color: var(--heading); }
.page-title > i { color: var(--heading); }
.layout, .layout.left { margin: 14px 7.5px 0; gap: 15px; }
.flash { margin: 14px 7.5px 0; border-radius: 5px; }
.btn { border-radius: 6px; border: 1px solid #ddd; font-family: var(--font-text); font-weight: 700; font-size: 11px; letter-spacing: 1px; color: var(--ink); }
.btn-primary { background: #db4040; border-color: #db4040; color: #fff; box-shadow: inset 0 0 1px 1px rgba(255, 255, 255, .32); }
.btn-primary:hover { background: #c93636; border-color: #c93636; }
.tag.role { border-radius: 3px; }
.empty { color: #999; }

/* profile page */
.page-banner {
  margin: 14px 7.5px 12px; height: 52px; padding: 0; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(110deg, rgba(58, 30, 76, .9), rgba(96, 22, 46, .88)), url('/assets/img/photo-f176061956-500.jpg') center / cover;
}
.page-banner h1 { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: 0; text-transform: none; gap: 8px; }
.page-banner img { width: 34px; height: 34px; border-radius: 0; }
.profile-layout { display: grid; grid-template-columns: 273px 1fr; gap: 20px; margin: 0 7.5px; align-items: start; }
.profile-card { padding: 0; text-align: center; overflow: hidden; }
.status-box { background: linear-gradient(#b7b7b7, #b7b7b7); color: #fff; padding: 8px 10px; border-radius: 4px 4px 0 0; text-transform: uppercase; }
.status-box.on { background: linear-gradient(#3cb152, #3cb152); }
.status-box .title { display: block; font-size: 16px; font-weight: 700; letter-spacing: 2px; }
.status-box .sub { display: block; font-size: 10px; font-weight: 500; letter-spacing: 2px; }
.user-box { padding: 25px 20px 14px; }
.user-box .avatar { width: 170px; height: 170px; margin: 0 auto 14px; border-radius: 50%; background: #f3f3f3; border: 2px solid #eee; overflow: hidden; display: flex; justify-content: center; }
.user-box .avatar img { width: 120px; margin-top: 14px; align-self: flex-start; }
.user-box .name { display: block; font-size: 21px; color: #000; }
.rank-box { display: block; padding: 5px 7px; color: rgba(255, 255, 255, .9); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-radius: 0 0 4px 4px; box-shadow: inset 0 0 1px 1px rgba(255, 255, 255, .32); }
.punish-box { display: flex; align-items: center; gap: 12px; background: #c54e5c; color: #fff; border-radius: 5px; padding: 8px 12px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none !important; box-shadow: inset 0 0 1px 1px rgba(255, 255, 255, .25); }
.punish-box i { font-size: 18px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); display: flex; align-items: center; justify-content: center; }
.punish-box:hover { color: #fff; background: #b3404e; }
.tabs { padding: 12px; gap: 10px; }
.tabs a { border-radius: 4px; color: #888; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; padding: 3px 10px; }
.tabs a.active { background: #c4c4c4; color: #fff; border: 0; }
.gm-card {
  min-height: 220px; padding: 16px 12px; border-radius: 5px; text-align: center; color: #fff;
  background: linear-gradient(rgba(18, 20, 28, .55), rgba(18, 20, 28, .72)), var(--gm-bg, none) center / cover, #1d2230;
}
.gm-card::before { display: none; }
.gm-card h3 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 3px; margin-bottom: 10px; }
.gm-card .none, .gm-card .stat { display: block; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; padding: 7px 4px; font-size: 12px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase; margin: 0 8px 6px; }
.gm-card .stat { display: flex; justify-content: space-between; padding: 5px 10px; letter-spacing: 1px; }
.profile-layout .grid-3 { gap: 20px; }

/* leaderboards */
.lb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 0 7.5px; }
.lb-board { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .13); align-self: start; }
.lb-head { background: #4b1d2f; border-radius: 0; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 5px; }
.lb-row { border-color: #f2f2f2; font-weight: 600; color: var(--ink); }
.lb-row img { border-radius: 0; }

/* staff */
.staff-page { padding-top: 12px; margin: 0 7.5px; }
.staff-rank { border-radius: 5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .13); margin-bottom: 12px; }
.staff-rank__bar { font-size: 11px; letter-spacing: 2px; padding: 5px 12px; border-radius: 5px 5px 0 0; }
.staff-member__avatar { width: 82px; height: 82px; background: #f3f3f3; border: 2px solid #eee; align-items: flex-start; }
.staff-member__avatar img { width: 58px; margin-top: 8px; }
.staff-member__name { font-size: 14px; color: var(--ink); }

/* forums */
.forum-icon { background: #f3f3f3; color: #db4040; }
.forum-row .name, .thread-row .title { color: var(--ink); }

/* footer */
.footer { background: #262626; margin-top: 40px; padding: 30px 0 18px; color: #777; }
.footer .container { display: block; }
.footer-row { display: flex !important; align-items: flex-start; justify-content: space-between; }
.footer .social { display: flex; gap: 12px; font-size: 22px; padding-top: 22px; }
.footer .social a { color: #424242; }
.footer .social a:hover { color: #888; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.footer-right .footer-logo { margin-bottom: 4px; }
.footer-right .footer-logo img { height: 34px; opacity: 1; }
.footer-right a:not(.footer-logo) { color: #fff; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.footer-legal { margin-top: 18px; font-size: 11px; color: #5e5e5e; }
.footer-legal a { color: #7a7a7a; }

/* responsive */
@media (max-width: 960px) {
  .home-row, .profile-layout { grid-template-columns: 1fr; }
  .lb-grid { grid-template-columns: 1fr 1fr; }
  .nav-search input[type=search] { width: 160px; }
}
@media (max-width: 760px) {
  .main-top { grid-template-columns: 1fr; }
  .home-banner { height: 260px; }
  .lb-grid { grid-template-columns: 1fr; }
  .nav .container { height: 56px; }
}

/* =====================================================================
   Modern touch — a light layer over the protocol.rip skin. Same layout,
   just rounder corners, softer depth, calmer letter-spacing and gentle motion.
   ===================================================================== */
:root, html[data-theme="light"], html[data-theme="dark"] {
  --radius: 10px;
  --bg: #f4f5f7;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-2: 0 6px 18px rgba(16, 24, 40, .09), 0 2px 6px rgba(16, 24, 40, .05);
  --ring: rgba(16, 24, 40, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(219, 64, 64, .18); }

/* header: crisper, with an accent underline on the current page */
.nav { box-shadow: 0 1px 0 var(--ring), 0 4px 18px rgba(16, 24, 40, .06); }
.nav-links > li > a, .nav-links > li > button { position: relative; transition: color .2s var(--ease), opacity .2s var(--ease); }
.nav-links > li > a::after, .nav-links > li > button::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px;
  background: #db4040; transform: scaleX(0); transition: transform .25s var(--ease);
}
.nav-links > li > a:hover::after, .nav-links > li > a.active::after, .nav-links > li > button.active::after { transform: scaleX(1); }
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li > a.active { opacity: 1; color: #111; }
.nav-search input[type=search] { height: 30px; border-radius: 8px; background: #f4f5f7; border-color: transparent; transition: background .2s, border-color .2s, box-shadow .2s; }
.nav-search i { top: 10px; }
.nav-search input:focus { background: #fff; border-color: #e2e4e9; box-shadow: 0 0 0 3px rgba(219, 64, 64, .12); }
.dropdown-menu { border: 1px solid var(--ring); border-radius: 10px; box-shadow: var(--shadow-2); padding: 6px; }
.dropdown-menu a, .dropdown-btn { border-radius: 6px; }

/* banner: deeper, softer finish */
.home-banner { height: 360px; border-radius: 0 0 14px 14px; }
.home-banner::after { background: linear-gradient(115deg, rgba(48, 26, 70, .80), rgba(110, 24, 48, .72)), radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .08), transparent 60%); }
.home-banner__logo { animation: banner-float 6s ease-in-out infinite; }
@keyframes banner-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.home-banner h2 { letter-spacing: 3px; }
.home-banner h3 { letter-spacing: 2.4px; }

/* boxes everywhere: one radius, soft layered shadow, hairline ring */
.main-top-content, .post-item, .box, .panel, .page-title, .lb-board, .staff-rank, .discord-widget, .profile-card, .gm-card, .punish-box, .product, .cat-card, .post, .stat-tile {
  border-radius: var(--radius);
  box-shadow: var(--shadow-1), 0 0 0 1px var(--ring);
}
.panel-head.accent, .staff-rank__bar { border-radius: var(--radius) var(--radius) 0 0; }
.status-box { border-radius: var(--radius) var(--radius) 0 0; }
.rank-box { border-radius: 0 0 var(--radius) var(--radius); }
.page-banner { border-radius: var(--radius); }

/* connect / players / store: a little taller, gentle lift on hover */
.main-top-content { height: 48px; letter-spacing: 1px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
button.main-top-content:hover, a.main-top-content:hover { transform: translateY(-2px); box-shadow: var(--shadow-2), 0 0 0 1px var(--ring); }
button.main-top-content:active, a.main-top-content:active { transform: translateY(0); }
.main-top-button { background: linear-gradient(180deg, #e04848, #cf3636); box-shadow: 0 4px 14px rgba(219, 64, 64, .28), inset 0 1px 0 rgba(255, 255, 255, .18); }
.main-top-button:hover { background: linear-gradient(180deg, #e65252, #d23c3c); }
#player-count { color: #db4040; font-weight: 800; }

/* posts: calmer headings, more air */
.home-row { gap: 18px; margin-top: 18px; }
.post-item { padding: 18px 20px; margin-bottom: 18px; }
.post-header { border-bottom-color: #f0f1f3; padding-bottom: 12px; margin-bottom: 14px; }
.post-header h2 { font-size: 19px; font-weight: 800; letter-spacing: 1.5px; color: #2b2d33; }
.post-header h2 a:hover { color: #db4040; text-decoration: none; }
.post-meta img { border-radius: 4px; }
.box { padding: 2px 20px 14px; }
.box .heading { letter-spacing: 1.4px; color: #a3a7b0; }
.widget-list li { border-radius: 8px; transition: background .15s var(--ease); }
.widget-list img, .table .player img, .last-post img, .thread-row > img { border-radius: 6px; }
.progress { height: 8px; border: 0; background: #eef0f3; border-radius: 99px; }
.progress > div { border-radius: 99px; background: linear-gradient(90deg, #ef5a5a, #d63a3a); }
.discord-widget__head { background: linear-gradient(135deg, #5865f2, #4752d6); }

/* buttons and forms */
.btn { border-radius: 8px; transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(180deg, #e04848, #cf3636); border-color: #cf3636; box-shadow: 0 2px 8px rgba(219, 64, 64, .25); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], select, textarea { border-radius: 8px; border-color: #e3e5ea; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: #db4040; box-shadow: 0 0 0 3px rgba(219, 64, 64, .14); }
:focus-visible { outline: 2px solid #db4040; outline-offset: 2px; }
.flash { border-radius: var(--radius); }

/* staff, profiles, leaderboards: soft hover */
.staff-member__avatar { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.staff-member:hover .staff-member__avatar { transform: translateY(-3px); border-color: #db4040; box-shadow: 0 8px 18px rgba(16, 24, 40, .12); }
.gm-card { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.gm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.gm-card .none, .gm-card .stat { border-radius: 8px; backdrop-filter: blur(4px); }
.tabs a { border-radius: 99px; padding: 4px 14px; transition: background .2s, color .2s; }
.tabs a:hover { color: #333; background: #f1f2f4; }
.tabs a.active { background: #2b2d33; }
.lb-head { background: linear-gradient(180deg, #5a2338, #431a2a); padding: 7px; }
.lb-row { transition: background .15s var(--ease); }
.lb-row:hover, .table tr:hover td, .forum-row:hover, .thread-row:hover, .widget-list li:hover { background: #f8f9fa; }
.user-box .avatar { box-shadow: inset 0 0 0 1px var(--ring); }
.punish-box { background: linear-gradient(180deg, #d05a67, #bb4351); }
.forum-icon { border-radius: 10px; }
.product, .cat-card { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.product:hover, .cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2), 0 0 0 1px var(--ring); }

/* footer: a touch more room */
.footer { padding: 40px 0 22px; margin-top: 56px; }
.footer .social a { transition: color .2s; }
.footer-right a:not(.footer-logo) { transition: color .2s; }
.footer-right a:not(.footer-logo):hover { color: #ef6a6a; text-decoration: none; }

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

/* =====================================================================
   Forums — modelled on the classic lunar.gg / MineHQ forum layout:
   breadcrumb bar with actions, one table per category with a dark
   gradient header, Threads / Last Active columns, comment-style replies.
   ===================================================================== */
.forums { padding: 0 7.5px; }
.forum-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-1), 0 0 0 1px var(--ring);
  padding: 8px 10px 8px 14px; margin: 14px 0 12px; min-height: 42px;
}
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
.crumbs li + li::before { content: '/'; color: #c3c7cf; margin-right: 6px; }
.crumbs a { color: var(--link); }
.crumbs i { margin-right: 4px; }
.crumb-current { color: #888; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-tools__actions { display: flex; align-items: center; gap: 6px; }
.forum-tools__actions form { margin: 0; }
.forum-search { position: relative; margin-right: 4px; }
.forum-search i { position: absolute; left: 9px; top: 8px; font-size: 10px; color: #bbb; }
.forum-search input[type=search] { width: 190px; height: 25px; padding: 2px 10px 2px 26px; font-size: 12px; font-weight: 600; border-radius: 6px; background: #f4f5f7; border: 1px solid transparent; }
.forum-search input[type=search]:focus { background: #fff; border-color: #e2e4e9; box-shadow: 0 0 0 3px rgba(219, 64, 64, .12); }

/* the small 3D-ish buttons (New Post, Hot, mod tools) */
.fbtn {
  display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 3px 10px; border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, .32); box-shadow: inset 0 0 1px 1px rgba(255, 255, 255, .32);
  color: rgba(255, 255, 255, .95) !important; font: 700 10px var(--font-text); letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; text-decoration: none !important; transition: filter .15s var(--ease), transform .15s var(--ease);
}
.fbtn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.fbtn:active { transform: translateY(0); }
.fbtn-green { background: #3cb152; }
.fbtn-purple { background: #a854de; }
.fbtn-red { background: #db4040; }
.fbtn-grey { background: #8a8f98; }
.fbtn-lg { height: 34px; padding: 6px 16px; font-size: 11px; margin-top: 12px; }
.fbtn + .dropdown-menu, .forum-tools .dropdown-menu { min-width: 130px; }

/* category / forum tables */
.forum-list {
  width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; margin-bottom: 14px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1), 0 0 0 1px var(--ring);
}
.forum-list thead tr {
  background:
    radial-gradient(1px 1px at 18% 40%, rgba(255, 255, 255, .35), transparent 60%),
    radial-gradient(1px 1px at 62% 25%, rgba(255, 255, 255, .25), transparent 60%),
    radial-gradient(1.5px 1.5px at 84% 65%, rgba(255, 255, 255, .25), transparent 60%),
    linear-gradient(90deg, #0d1b22 0%, #111a27 45%, #261640 82%, #3a1a57 100%);
}
.forum-list th { color: #fff; text-align: left; padding: 12px; font-size: 14px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.forum-list th h3 { margin: 0; color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 1px; text-transform: none; }
.forum-list td { padding: 12px; border-top: 1px solid #e9ecef; vertical-align: middle; color: #666; }
.forum-list tbody tr:first-child td { border-top: 0; }
.forum-list tbody tr { transition: background .15s var(--ease); }
.forum-list tbody tr:hover { background: #fafbfc; }
.forum-list td h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #4a4a4a; }
.forum-list td h3 a { color: var(--link); }
.forum-list td h3 a:hover { color: #3f6c99; text-decoration: none; }
.forum-desc { font-size: 14px; color: #666; margin-top: 1px; }
.forum-lock { font-size: 11px; color: #aaa; }
.forum-list .col-num { width: 15%; }
.forum-list .col-last { width: 15%; }
.forum-list td.col-last a { color: #666; }
.forum-list td.col-last a:hover { color: var(--link); }
.forum-empty { text-align: center; color: #999; padding: 26px 12px !important; }

/* thread list rows */
.thread-list .col-score { width: 1%; padding: 12px 6px 12px 14px; font-size: 22px; color: #b8bcc4; text-align: center; font-weight: 400; }
.thread-list td h3 { font-size: 16px; }
.thread-flag { font-size: 11px; color: #db4040; margin-right: 3px; }
.thread-by { font-size: 12px; color: #888; margin-top: 2px; }
.thread-by a { color: var(--link); font-weight: 600; }
.break-word { overflow-wrap: anywhere; }

/* thread page */
.thread-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-1), 0 0 0 1px var(--ring); padding: 20px 20px 22px; }
.thread-op { display: grid; grid-template-columns: 44px 1fr; gap: 14px; scroll-margin-top: 70px; }
.thread-op__skin img { width: 44px; display: block; margin-top: 4px; }
.thread-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0; font-size: 26px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #4a4a4a; line-height: 1.2; }
.thread-meta { font-size: 12px; color: #888; margin: 4px 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.thread-meta > div { flex-basis: 100%; }
.thread-meta a { font-weight: 600; color: var(--link); }
.thread-body { color: #555; font-size: 14px; line-height: 1.6; }
.vote { background: none; border: 0; padding: 0 4px; cursor: pointer; color: #b8bcc4; font: 400 22px var(--font-text); display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; transition: color .15s var(--ease); }
.vote i { font-size: .8em; }
.vote:hover, .vote.liked { color: #3cb152; }
.vote-sm { font-size: 11px; font-weight: 600; padding: 0 2px; }
.post-links { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 11px; }
.post-links a, .post-links .btn-link { color: #8a9bb0; font-size: 11px; font-weight: 600; }
.post-links a:hover, .post-links .btn-link:hover { color: var(--link); text-decoration: underline; }
.thread-box .post-sig { margin: 12px 0 0; padding: 8px 0 0; }
.thread-replies { margin-top: 18px; border-top: 1px solid #eef0f3; padding-top: 4px; }
.forum-reply { display: flex; gap: 8px; padding: 14px 0 0; scroll-margin-top: 70px; }
.forum-reply__gutter img { width: 24px; height: 24px; border-radius: 4px; display: block; margin-top: 2px; }
.forum-reply__body { flex: 1; min-width: 0; border-bottom: 1px solid #f3f4f6; padding-bottom: 10px; }
.forum-reply__info { font-size: 11.2px; color: #999; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.forum-reply__name { font-weight: 700; color: var(--link); }
.forum-reply__edited { flex-basis: 100%; }
.forum-reply .content { color: #555; margin-top: 2px; }
.forum-reply:target .forum-reply__body, .thread-op:target .thread-op__main { background: #fff8e6; border-radius: 6px; }
.thread-reply-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eef0f3; color: #888; }
.thread-box label { margin-top: 0; }
.thread-box select, .thread-box input[type=text] { margin-bottom: 12px; }
.forum-footer-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; font-size: 12px; color: #999; margin: 4px 0 0; }
.forum-footer-stats b { color: #555; }

@media (max-width: 760px) {
  .forum-list .col-last, .forum-list th.col-last { display: none; }
  .forum-search { display: none; }
  .thread-title { font-size: 21px; }
  .crumb-current { max-width: 220px; }
}

/* Account menu: anchored to the username and centred directly beneath it */
.nav-right .dropdown { position: relative; }
.nav-right .dropdown > .dropdown-menu,
.nav-right .dropdown > .dropdown-menu.right {
  left: 50%; right: auto; top: calc(100% + 8px); transform: translateX(-50%); min-width: 190px;
}
/* invisible bridge over the 8px gap so hovering down to the menu doesn't close it */
.nav-right .dropdown > .dropdown-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
/* small pointer under the name */
.nav-right .dropdown > .dropdown-menu::after {
  content: ''; position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; background: #fff;
  border-left: 1px solid var(--ring); border-top: 1px solid var(--ring); transform: translateX(-50%) rotate(45deg);
}

/* =====================================================================
   Dark mode (toggle left of the search bar). Light stays the default.
   ===================================================================== */
.theme-toggle {
  width: 30px; height: 30px; border-radius: 8px; border: 0; background: #f4f5f7; color: #6b7280; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; margin-right: 6px;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover { color: #db4040; transform: translateY(-1px); }
.theme-toggle .icon-light { display: none; }
html[data-theme="dark"] .theme-toggle .icon-light { display: inline; }
html[data-theme="dark"] .theme-toggle .icon-dark { display: none; }

html[data-theme="dark"] {
  --bg: #121317; --panel: #1b1d22; --panel-2: #23262c; --border: #2c2f36;
  --text: #b8bdc7; --heading: #eceef2; --ink: #f1f2f5; --muted: #8a909b; --link: #82abd8;
  --nav: #17181c; --footer: #0d0e10; --ring: rgba(255, 255, 255, .06);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .25);
  --shadow-2: 0 8px 22px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
html[data-theme="dark"] body { background: var(--bg); color: var(--text); }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4, html[data-theme="dark"] .heading { color: var(--heading); }

/* header */
html[data-theme="dark"] .nav { background: var(--nav); box-shadow: 0 1px 0 var(--ring), 0 4px 18px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .nav-links > li > a, html[data-theme="dark"] .nav-links > li > button, html[data-theme="dark"] .nav-user { color: var(--ink); }
html[data-theme="dark"] .nav-links > li > a:hover, html[data-theme="dark"] .nav-links > li > a.active { color: #fff; }
html[data-theme="dark"] .nav-search input[type=search], html[data-theme="dark"] .forum-search input[type=search], html[data-theme="dark"] .theme-toggle { background: #23262c; color: var(--ink); }
html[data-theme="dark"] .nav-search input:focus, html[data-theme="dark"] .forum-search input:focus { background: #1b1d22; border-color: #3a3e46; }
html[data-theme="dark"] .theme-toggle { color: #f6c453; }
html[data-theme="dark"] .nav-auth { color: #6ea8fe; }
html[data-theme="dark"] .dropdown-menu { background: #1f2126; border-color: var(--ring); }
html[data-theme="dark"] .dropdown-menu a, html[data-theme="dark"] .dropdown-btn { color: var(--ink); }
html[data-theme="dark"] .dropdown-menu a:hover, html[data-theme="dark"] .dropdown-btn:hover { background: #2a2d33; }
html[data-theme="dark"] .nav-right .dropdown > .dropdown-menu::after { background: #1f2126; }

/* white boxes become dark panels */
html[data-theme="dark"] :is(.main-top-content:not(.main-top-button), .post-item, .box, .panel, .page-title, .lb-board, .forum-tools, .forum-list, .thread-box, .product, .cat-card, .post, .stat-tile, .staff-card) { background: var(--panel); color: var(--text); }
html[data-theme="dark"] .main-top-content:not(.main-top-button) { color: #c9cdd5; }
html[data-theme="dark"] .post-header { border-bottom-color: #2a2d33; }
html[data-theme="dark"] .post-header h2, html[data-theme="dark"] .thread-title, html[data-theme="dark"] .forum-list td h3, html[data-theme="dark"] .page-title h1, html[data-theme="dark"] .page-title > i { color: var(--heading); }
html[data-theme="dark"] .post-body, html[data-theme="dark"] .thread-body, html[data-theme="dark"] .forum-reply .content, html[data-theme="dark"] .forum-desc, html[data-theme="dark"] .forum-list td, html[data-theme="dark"] .box-line { color: var(--text); }
html[data-theme="dark"] .box .heading { color: #7d838e; }
html[data-theme="dark"] .panel-head { color: var(--heading); border-bottom-color: #2a2d33; }
html[data-theme="dark"] .widget-list li, html[data-theme="dark"] .box .widget-list li, html[data-theme="dark"] .kv, html[data-theme="dark"] .table td, html[data-theme="dark"] .table th, html[data-theme="dark"] .lb-row, html[data-theme="dark"] .forum-row, html[data-theme="dark"] .thread-row { border-color: #2a2d33; }
html[data-theme="dark"] .table th { background: #202328; }
html[data-theme="dark"] :is(.lb-row:hover, .table tr:hover td, .forum-row:hover, .thread-row:hover, .widget-list li:hover, .forum-list tbody tr:hover) { background: #22252b; }
html[data-theme="dark"] .lb-row { color: var(--ink); }
html[data-theme="dark"] .progress { background: #2a2d33; }
html[data-theme="dark"] .content blockquote, html[data-theme="dark"] .content code, html[data-theme="dark"] .content pre { background: #23262c; }

/* forums */
html[data-theme="dark"] .forum-list td { border-top-color: #2a2d33; }
html[data-theme="dark"] .crumbs li + li::before { color: #4a4f58; }
html[data-theme="dark"] .crumb-current { color: #9097a2; }
html[data-theme="dark"] .thread-replies, html[data-theme="dark"] .thread-reply-form { border-top-color: #2a2d33; }
html[data-theme="dark"] .forum-reply__body { border-bottom-color: #25282e; }
html[data-theme="dark"] .forum-reply:target .forum-reply__body, html[data-theme="dark"] .thread-op:target .thread-op__main { background: #2b2614; }
html[data-theme="dark"] .thread-list .col-score, html[data-theme="dark"] .vote { color: #6c727d; }
html[data-theme="dark"] .forum-list td.col-last a { color: var(--text); }
html[data-theme="dark"] .editor-toolbar { background: #23262c; border-color: #2c2f36; }

/* profile, staff, store */
html[data-theme="dark"] .user-box .name { color: var(--heading); }
html[data-theme="dark"] .user-box .avatar, html[data-theme="dark"] .staff-member__avatar { background: #25282e; border-color: #30343b; }
html[data-theme="dark"] .staff-member__name { color: var(--ink); }
html[data-theme="dark"] .tabs a:hover { background: #2a2d33; color: #fff; }
html[data-theme="dark"] .tabs a.active { background: #e9ebef; color: #16181c; }
html[data-theme="dark"] .product .img { background: #23262c; border-color: #2c2f36; }
html[data-theme="dark"] .store-notice { background: #2a1d1f; border-color: #5a2a2e; color: #e3c7ca; }
html[data-theme="dark"] .verified-as, html[data-theme="dark"] .steps div { background: #23262c; border-color: #2c2f36; }
html[data-theme="dark"] .msg .bubble { background: var(--panel); border-color: #2c2f36; }
html[data-theme="dark"] .tag { background: #2a2d33; border-color: #353941; color: #c0c5ce; }

/* forms */
html[data-theme="dark"] :is(input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], select, textarea) { background: #15171b; border-color: #30343b; color: var(--ink); }
html[data-theme="dark"] .btn:not(.btn-primary):not(.btn-danger):not(.btn-ok) { background: #23262c; border-color: #33363d; color: var(--ink); }
html[data-theme="dark"] .pagination a, html[data-theme="dark"] .pagination span:not(.current) { background: var(--panel); border-color: #2c2f36; color: var(--ink); }
html[data-theme="dark"] .flash.success { background: #14271a; }
html[data-theme="dark"] .flash.error { background: #2b1618; }

/* page background transition when toggling */
body, .nav, .post-item, .box, .panel, .forum-list, .thread-box, .forum-tools { transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }

/* dark mode: lift dark rank colours (e.g. Owner #aa0000) so names stay readable */
html[data-theme="dark"] :is(.forum-reply__name, .thread-meta a, .thread-by a, .staff-member__name)[style*="color"] { display: inline-block; filter: brightness(1.6) saturate(1.1); }

/* Account button in the header: smaller, crisp head in a soft pill */
.nav-user {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px 0 4px; border-radius: 99px;
  background: transparent; transition: background .2s var(--ease);
}
.nav-user:hover, .dropdown.open > .nav-user { background: #f1f2f4; }
.nav-user img {
  width: 22px; height: 22px; border-radius: 6px; image-rendering: pixelated;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(16, 24, 40, .12), 0 1px 3px rgba(16, 24, 40, .18);
  transition: box-shadow .2s var(--ease);
}
.nav-user:hover img { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #db4040, 0 1px 3px rgba(16, 24, 40, .18); }
.nav-user .caret { opacity: .55; }
html[data-theme="dark"] .nav-user:hover, html[data-theme="dark"] .dropdown.open > .nav-user { background: #23262c; }
html[data-theme="dark"] .nav-user img { box-shadow: 0 0 0 2px var(--nav), 0 0 0 3px rgba(255, 255, 255, .14), 0 1px 3px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .nav-user:hover img { box-shadow: 0 0 0 2px var(--nav), 0 0 0 3px #db4040, 0 1px 3px rgba(0, 0, 0, .4); }

/* Staff page: keep the container centred (the side margin above was overriding margin: auto) */
.container.staff-page { margin-left: auto; margin-right: auto; padding: 12px 7.5px 0; }

/* Profile avatar, like nexusplayers.net/members/*: a 150px round frame, faint grey, the 3D head filling it */
.user-box .avatar { width: 150px; height: 150px; margin: 0 auto 16px; border: 0; background: rgba(127, 127, 127, .12); box-shadow: none; align-items: center; }
.user-box .avatar img { width: 150px; height: 150px; max-width: none; flex: 0 0 150px; margin: 0; align-self: center; object-fit: cover; image-rendering: auto; }
html[data-theme="dark"] .user-box .avatar { background: rgba(127, 127, 127, .12); }

/* Profile card details from nexusplayers.net: a dot before ONLINE, spaced-out rank on a gradient bar */
.status-box.on .title::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #fff; margin: 0 6px 2px 0; vertical-align: middle; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.rank-box { letter-spacing: 5px; padding: 7px; background-image: linear-gradient(90deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .18)); }
