/* MironMC — look matched to the old Cobalt theme (Coldfire Design) the site used on NamelessMC. */
:root {
  --p: #b62cff;            /* old theme primary */
  --p-rgb: 182 44 255;
  --bg: #101010;
  --card: #161616;
  --card-in: rgba(255, 255, 255, 0.03);
  --text: rgb(189, 189, 189);
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.45);
  --ok: #28a745;
  --err: #dc3545;
  --discord: #5865f2;
  --r: 0.25rem;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 1rem/1.5 Montserrat, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--p); text-decoration: none; }
a:hover { filter: brightness(115%); }
b, strong { color: var(--white); font-weight: 600; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
code { background: var(--card-in); border-radius: var(--r); padding: 1px 6px; font-size: .88em; color: var(--white); }
img { max-width: 100%; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 15px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hint { font-size: .85rem; color: var(--muted); margin: .5rem 0 0; }

/* ---------- header ---------- */
.header { position: relative; overflow: hidden; background: url(img/header-bg.jpg) center top / cover; padding-bottom: 50px; }
.header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--p), var(--bg)); opacity: .8; }
.header::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, var(--bg)); }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.topnav, .header-main { position: relative; z-index: 2; }

.topnav { display: flex; justify-content: center; align-items: center; padding: 20px 15px 0; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; }
.nav-link { color: rgba(255, 255, 255, .6); font-size: 1.05rem; font-weight: 500; margin: .3em 1.5em; padding: .4em 0; display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: #fff; filter: none; }
.nav-link.active { font-weight: 600; }
.nav-link.store-link { background: var(--p); color: rgba(255, 255, 255, .9); font-weight: 600; padding: .4em 1.5em; border-radius: var(--r); position: relative; transition: transform .2s; }
.nav-link.store-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); box-shadow: 0 0 12px 0 var(--p); z-index: -1; animation: glow 3s linear infinite; }
.nav-link.store-link:hover { transform: scale(1.05); color: #fff; }
@keyframes glow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.nav-link.staff-link { color: #ffd166; }
.count { background: #fff; color: var(--p); border-radius: 99px; padding: 0 7px; font-size: .75rem; font-weight: 700; }
.menu-toggle, .mobile-icons { display: none; }

.header-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; max-width: 1100px; margin: 0 auto; padding: 40px 15px 10px; }
.logo img { display: block; width: 300px; height: auto; transition: filter .25s; }
.logo:hover img { filter: brightness(90%); }
.header-stat { display: flex; align-items: center; gap: 18px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left; color: inherit; }
.header-stat.play { justify-self: end; text-align: right; }
.header-stat.discord { justify-self: start; }
.header-stat:hover { filter: none; }
.stat-text { display: flex; flex-direction: column; }
.top-text { color: var(--p); text-transform: uppercase; font-weight: 600; font-size: 1rem; }
.sub-text { color: #e6e1e1; text-transform: uppercase; font-weight: 600; font-size: .8rem; letter-spacing: .02em; }
.stat-icon { position: relative; font-size: 3rem; line-height: 1; color: var(--p); transition: transform .25s; }
.header-stat.discord .stat-icon { font-size: 2.6rem; background: var(--p); color: #fff; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 6px; font-size: 1.6rem; }
.header-stat.play .stat-icon { background: var(--p); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; padding-left: 4px; }
.stat-icon::after { content: ""; position: absolute; left: 25%; top: 118%; width: 50%; height: 4px; border-radius: 10px; background: var(--p); box-shadow: 0 0 10px 0 var(--p); transition: top .25s; }
.header-stat:hover .stat-icon { transform: translateY(4px); }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 30px; align-items: start; margin-top: 10px; }
.layout.wide { grid-template-columns: minmax(0, 1fr); }
.footer { margin-top: auto; }
.alert { margin: 15px 0 0; padding: .8rem 1.2rem; border-radius: var(--r); background: rgba(40, 167, 69, .15); border-left: 4px solid var(--ok); color: #fff; }
.alert.err { background: rgba(220, 53, 69, .15); border-color: var(--err); }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: .15rem; margin-bottom: 1.2rem; }
.card-title { color: var(--p); font-weight: 600; font-size: 1.3rem; padding: 1.25rem 1.25rem 0; display: flex; align-items: center; gap: 10px; }
h1.card-title { font-size: 1.5rem; }
.card-body { padding: 1rem 1.25rem 1.25rem; }
.card .card { background: var(--card-in); }

.breadcrumb { background: var(--card); border-radius: var(--r); padding: .55rem 1.25rem; font-size: .85rem; margin-bottom: 1.2rem; display: flex; flex-wrap: wrap; gap: 0; }
.breadcrumb a, .breadcrumb span { color: var(--text); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb > * + *::before { content: "/"; padding: 0 .5rem; color: #666; }
.breadcrumb span:last-child { color: #fff; }

/* ---------- welcome ---------- */
.welcome-card { display: flex; align-items: center; gap: 20px; height: 105px; overflow: hidden; padding-right: 20px; }
.welcome-avatar { height: 160px; width: auto; margin: -10px 0 0 0; align-self: flex-start; }
.welcome-text { flex: 1; min-width: 0; }
.welcome-title { color: var(--p); font-size: 1.4rem; font-weight: 600; }
.welcome-text p { margin: 2px 0 0; }
.welcome-buttons { display: flex; gap: 10px; }
.welcome-buttons form { margin: 0; }

/* ---------- buttons + forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r); cursor: pointer; font: 500 .85rem Montserrat, sans-serif; padding: .5rem 1rem; color: #fff; text-decoration: none; transition: filter .2s, transform .2s; }
.btn:hover { filter: brightness(110%); }
.btn-theme { background: var(--p); color: #fff; }
.btn-secondary { background: rgba(255, 255, 255, .06); color: var(--text); }
.btn-secondary:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-danger { background: var(--err); }
.btn-lg { font-size: 1rem; font-weight: 600; padding: .75rem 1.5rem; }
.btn-sm { padding: .3rem .7rem; font-size: .8rem; }
.link { background: none; border: 0; padding: 0; color: var(--p); cursor: pointer; font: inherit; }
.link.danger { color: #ff6b7a; }
input, textarea, select { width: 100%; background: #1f1f1f; color: #fff; border: 1px solid #2a2a2a; border-radius: var(--r); padding: .6rem .8rem; font: inherit; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 2px rgb(var(--p-rgb) / 30%); }
textarea { resize: vertical; }
label { display: block; color: #fff; font-weight: 500; }
label textarea { margin-top: 6px; font-weight: 400; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack > .btn { align-self: flex-start; }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
form.inline input, form.inline select { width: auto; padding: .3rem .5rem; font-size: .85rem; }
.editor-card { margin-bottom: 1.2rem; }
.editor-card > summary { list-style: none; }
.editor-card > summary::-webkit-details-marker { display: none; }
.editor-card[open] > summary { margin: 1.25rem 0 0 1.25rem; }
.card-body .editor-card[open] > summary { margin: 0 0 12px; }
.card-body .editor-card { margin-bottom: 1rem; }

/* ---------- sidebar ---------- */
.store-box.mobile-only { display: none; }
.store-box { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.4rem; margin-bottom: 1.2rem; border: 3px solid var(--p); border-radius: var(--r); background: rgb(var(--p-rgb) / 70%); box-shadow: 0 0 10px rgb(var(--p-rgb) / 50%); color: #fff; transition: opacity .25s; }
.store-box:hover { opacity: .85; filter: none; }
.store-box > span { display: flex; flex-direction: column; transition: margin .25s; }
.store-box:hover > span { margin-left: .6rem; }
.store-title { font: italic 700 2rem/1 Montserrat, sans-serif; letter-spacing: .01em; }
.store-subtitle { margin-top: 6px; font-weight: 500; }
.store-icon { font-size: 2.2rem; transition: margin .25s; }
.store-box:hover .store-icon { margin-right: .6rem; }
.search { display: flex; margin-bottom: 1.2rem; }
.search input { border-radius: var(--r) 0 0 var(--r); border: 0; background: var(--card); }
.search .btn { border-radius: 0 var(--r) var(--r) 0; padding: 0 1rem; }
.widget { padding: 1.25rem; }
.widget-header { display: flex; align-items: center; gap: 6px; font-size: 1.15rem; margin-bottom: .8rem; }
.widget-title { color: var(--p); flex: 1; }
.widget p { margin: 0; line-height: 1.6; }
.status-badge { font-size: .85rem; font-weight: 600; color: #fff; background: #555; border-radius: var(--r); padding: .15rem .55rem; }
.status-badge.online { background: var(--ok); }
.status-badge.offline { background: var(--err); }
.number { color: #fff; background: rgba(255, 255, 255, .05); border-radius: var(--r); padding: .1rem .5rem; font-size: .75rem; }
.widget-user { padding: 3px 0; }

.discord-widget { overflow: hidden; }
.discord-head { background: var(--discord); color: #fff; display: flex; align-items: center; gap: 10px; padding: 1.1rem 1.25rem; }
.discord-head i { font-size: 1.8rem; }
.discord-head b { font: 700 1.25rem Montserrat, sans-serif; flex: 1; }
.discord-head span { font-size: .72rem; text-align: right; line-height: 1.15; }
.discord-body { padding: 1rem 1.25rem .5rem; max-height: 330px; overflow-y: auto; }
.discord-channel { color: #ddd; padding: 4px 0; display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.discord-channel i { color: #777; font-size: .8rem; }
.discord-sub { color: #8e9297; text-transform: uppercase; font-size: .75rem; margin: 12px 0 6px; }
.discord-member { display: flex; align-items: center; gap: 8px; font-size: .8rem; padding: 3px 0; color: #b9bbbe; }
.discord-member .dname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discord-member .game { color: #72767d; font-size: .72rem; }
.avatar-wrap { position: relative; display: inline-flex; }
.avatar-wrap img { border-radius: 50%; }
.presence { position: absolute; right: -2px; bottom: -2px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--card); background: #747f8d; }
.presence.online { background: #3ba55d; } .presence.idle { background: #faa81a; } .presence.dnd { background: #ed4245; }
.btn-discord { display: flex; margin: .5rem 1.25rem 1.1rem; background: rgba(255, 255, 255, .06); color: #fff; }

/* ---------- news ---------- */
.news-header { display: flex; justify-content: space-between; gap: 20px; padding: 0 0 0 1.25rem; border-bottom: 3px solid rgba(255, 255, 255, .03); min-height: 80px; overflow: hidden; }
.news-title { color: var(--p); font-size: 1.5rem; font-weight: 500; padding: 1rem 0; align-self: center; line-height: 1.3; }
.news-info { display: flex; gap: 14px; flex-shrink: 0; }
.news-meta { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; font-size: .9rem; }
.news-meta .time { color: var(--text); }
.news-body-render { height: 150px; margin-top: -5px; margin-bottom: -70px; margin-right: 20px; }
.news-body { padding: 1.5rem 1.25rem .5rem; }
.news-footer { display: flex; align-items: center; gap: 8px; padding: 0 1.25rem 1.25rem; }
.chip { background: var(--card-in); color: var(--text); border-radius: var(--r); padding: .45rem .8rem; font-size: .95rem; display: inline-flex; gap: 8px; align-items: center; }
.chip:hover { color: #fff; filter: none; }
.push-right { margin-left: auto; }
.clamp { max-height: 420px; overflow: hidden; position: relative; }
.clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--card)); }

.prose { overflow-wrap: anywhere; }
.prose p { margin: 0 0 .9em; }
.prose ul { padding-left: 1.4em; margin: 0 0 .9em; }
.prose li { margin-bottom: .3em; }
.prose h2, .prose h3, .prose h4 { color: #fff; margin: 1em 0 .4em; font-weight: 500; }
.prose h2 { font-size: 1.8rem; } .prose h3 { font-size: 1.45rem; } .prose h4 { font-size: 1.2rem; }
.prose > :first-child { margin-top: 0; }

/* ---------- names + badges ---------- */
.user { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.user img { border-radius: 3px; }
.badge { display: inline-block; margin-left: 6px; padding: 0 .45rem; border-radius: var(--r); font-size: .7rem; font-weight: 700; line-height: 1.6; color: #fff; background: var(--c); vertical-align: middle; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- forum ---------- */
.forum-list { display: flex; flex-direction: column; gap: 10px; }
.forum-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 110px 210px; gap: 14px; align-items: center; background: var(--card-in); padding: 1.1rem 1rem; border-radius: var(--r); }
.forum-icon { font-size: 2.1rem; color: #5a5a5a; text-align: center; }
.forum-name a { color: #fff; font-weight: 600; font-size: 1.1rem; }
.forum-name p { margin: 2px 0 0; }
.forum-counts { font-size: .95rem; }
.forum-last { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; }
.forum-last a { color: #fff; }
.forum-last img { border-radius: 2px; flex-shrink: 0; }
.thread-row { display: flex; align-items: center; gap: 14px; padding: .8rem 1rem; background: var(--card-in); border-radius: var(--r); margin-bottom: 8px; color: var(--text); }
.thread-row:hover { background: rgba(255, 255, 255, .06); filter: none; }
.thread-row img { border-radius: 3px; }
.thread-row > span:first-of-type { flex: 1; min-width: 0; }
.thread-row b { display: block; }
.thread-row small { display: block; color: var(--muted); font-size: .8rem; }
.thread-stats { text-align: right; font-size: .85rem; white-space: nowrap; }
.thread-title { line-height: 1.3; }
.thread-sub { padding-top: .4rem; font-size: .85rem; color: var(--muted); }
.mod-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: .8rem 1.25rem; border-top: 3px solid rgba(255, 255, 255, .03); }
.mod-bar form { margin: 0; }
.mod-label { color: #ffd166; font-size: .85rem; font-weight: 600; margin-right: 4px; }
.inline-details { display: inline-flex; gap: 6px; align-items: center; }
.inline-details > summary { list-style: none; }
.inline-details > summary::-webkit-details-marker { display: none; }
.inline-details[open] { display: inline-flex; }
.post { display: grid; grid-template-columns: 170px minmax(0, 1fr); }
.post-author { padding: 1.25rem; border-right: 3px solid rgba(255, 255, 255, .03); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.post-author img { height: 140px; }
.post-author small { display: block; color: var(--muted); font-size: .8rem; }
.post-body { padding: 1.25rem; }
.post-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed #2a2a2a; font-size: .85rem; }
.post-tools details { flex: 0 0 auto; }
.post-tools details[open] { flex: 1 1 100%; }
.post-tools summary { cursor: pointer; color: #ffd166; }
.post-tools form { margin: 0; }
.post-tools .stack { margin-top: 10px; }

/* ---------- vote / login / apply ---------- */
.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 1rem; }
.vote-btn { font-weight: 600; padding: 1rem; font-size: 1.05rem; }
.vote-btn i { transition: transform .25s; }
.vote-btn:hover i { transform: rotate(25deg); }
.login-steps { list-style: none; padding: 0; margin: .5rem 0 1.25rem; display: grid; gap: 10px; }
.login-steps li { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; }
.login-steps li span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--p); color: #fff; font-weight: 700; flex-shrink: 0; }
.code-form { display: flex; gap: 12px; }
.code-form input { font: 700 1.6rem Montserrat, monospace; letter-spacing: .35em; text-transform: uppercase; text-align: center; }
.tabs { display: flex; gap: 8px; margin-bottom: 1rem; }
.app-status { padding: 4px 0; }
.pill { display: inline-block; padding: .1rem .6rem; border-radius: var(--r); font-size: .75rem; font-weight: 700; color: #fff; background: #555; }
.pill.accepted { background: var(--ok); } .pill.denied { background: var(--err); } .pill.pending { background: #d08a00; }
.app-summary { cursor: pointer; padding-bottom: 1.25rem; flex-wrap: wrap; font-size: 1.05rem; }
.app[open] .app-summary { padding-bottom: 0; }
.app-summary .muted { font-weight: 400; font-size: .9rem; flex: 1; }
.answers dt { color: #fff; font-weight: 600; margin-top: 12px; }
.answers dd { margin: 4px 0 0; }
.review { display: flex; gap: 8px; margin-top: 1.25rem; flex-wrap: wrap; }
.review input { flex: 1 1 220px; width: auto; }

/* ---------- staff + profile + activity ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.staff-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 1rem; background: var(--card-in); border-radius: var(--r); color: #fff; }
.staff-card:hover { background: rgba(255, 255, 255, .06); filter: none; }
.staff-card img { height: 160px; }
.profile-card { display: flex; align-items: center; gap: 10px; padding-left: 1.5rem; }
.profile-render { height: 200px; padding: 1rem 0; }
.profile-name { color: #fff; font-size: 1.6rem; }
.profile-card .mod-bar { padding: .8rem 0 0; border: 0; }
.activity-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 30px; }
.log-row { display: flex; justify-content: space-between; gap: 12px; padding: .5rem 0; border-bottom: 1px solid #222; font-size: .9rem; }
.log-row small { color: var(--muted); white-space: nowrap; }

/* ---------- footer ---------- */
.footer { background: #0b0b0b; margin-top: 4rem; }
.footer-cols { display: grid; grid-template-columns: 1.1fr .8fr 1fr; gap: 3rem; padding-top: 2rem; padding-bottom: 2rem; color: rgba(255, 255, 255, .6); }
.footer-cols p { margin: 0 0 1rem; }
.footer-header { color: #fff; font-size: 1.6rem; font-weight: 600; margin-bottom: .5rem; position: relative; display: inline-block; }
.footer-header::after { content: ""; position: absolute; top: calc(50% - 3.5px); left: calc(100% + 1rem); width: 20px; height: 7px; border-radius: 10px; background: var(--p); box-shadow: 0 0 10px 0 var(--p); }
.footer-link { display: block; color: rgba(255, 255, 255, .6); font-weight: 500; padding-bottom: .2rem; }
.footer-link:hover { color: #fff; filter: none; }
.btn-play { background: rgba(255, 255, 255, .02); color: rgba(255, 255, 255, .75); font-weight: 600; text-transform: uppercase; padding: .65rem 1.65rem; }
.btn-play i { transition: margin .25s; }
.btn-play:hover i { margin-left: 6px; }
.footer-bottom { border-top: 1px solid #1c1c1c; padding: 1.3rem 0; font-size: .9rem; }
.footer-bottom .container { display: flex; flex-direction: column; gap: 2px; }
.footer-bottom span { color: rgba(255, 255, 255, .35); font-size: .8rem; }

/* ---------- smaller screens ---------- */
@media (max-width: 1050px) {
  .header-main { grid-template-columns: 1fr; justify-items: center; padding-top: 20px; gap: 0; }
  .header-stat { display: none; }
  .logo img { width: 220px; }
  .topnav { justify-content: space-between; padding-top: 14px; }
  .menu-toggle { display: inline-flex; gap: 8px; align-items: center; background: none; border: 0; color: rgba(255, 255, 255, .85); font: 500 1rem Montserrat, sans-serif; cursor: pointer; }
  .mobile-icons { display: flex; gap: 10px; }
  .icon-btn { background: var(--p); border: 0; color: #fff; font-size: 1rem; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
  .icon-btn:last-child { border-radius: 6px; font-size: 1.2rem; }
  .nav-links { display: none; position: absolute; top: 100%; left: 10px; right: 10px; flex-direction: column; align-items: stretch; background: var(--card); border-radius: var(--r); padding: 8px; z-index: 5; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
  .nav-links.open { display: flex; }
  .nav-link { margin: 0; padding: .7em 1em; }
  .nav-link.store-link { margin: 4px 0; }
  .layout { grid-template-columns: 1fr; }
  .sidebar .store-box { display: none; }
  .store-box.mobile-only { display: flex; }
  .forum-row { grid-template-columns: 50px minmax(0, 1fr); }
  .forum-counts, .forum-last { grid-column: 2; }
  .activity-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .welcome-card { height: auto; padding: 1.1rem 1.25rem; flex-direction: column; align-items: stretch; gap: 10px; }
  .welcome-avatar { display: none; }
  .welcome-title { font-size: 1.2rem; }
  .welcome-buttons .btn, .welcome-buttons form, .welcome-buttons button { width: 100%; }
  .news-header { flex-direction: column; gap: 0; padding-right: 1.25rem; }
  .news-title { font-size: 1.2rem; padding-bottom: .2rem; }
  .news-meta { flex-direction: row; gap: 12px; padding-bottom: .8rem; }
  .news-body-render { display: none; }
  .post { grid-template-columns: 1fr; }
  .post-author { flex-direction: row; text-align: left; border-right: 0; border-bottom: 3px solid rgba(255, 255, 255, .03); padding-bottom: .8rem; }
  .post-author img { height: 48px; }
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
  .code-form { flex-direction: column; }
  .profile-card { flex-direction: column; padding-left: 0; text-align: center; }
  .news-footer .btn { font-size: .8rem; }
}

/* ---------- sub-forums, applications, comments ---------- */
.subforums { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: .85rem; }
.subforums a { color: var(--text); }
.subforums a:hover { color: #fff; filter: none; }
.subforums i { font-size: .7rem; color: #666; margin-right: 2px; }
.sub-icon { width: 40px; text-align: center; font-size: 1.3rem; color: #5a5a5a; }
.pill.considering { background: #0e7c86; } .pill.closed { background: #4a4a4a; }
.my-app { background: var(--card-in); border-radius: var(--r); padding: .7rem 1rem; margin-bottom: 8px; }
.my-app summary { cursor: pointer; }
.my-app .stack { margin-top: 10px; }
.comments { margin-top: 1.25rem; border-top: 3px solid rgba(255, 255, 255, .03); padding-top: 1rem; }
.comment { background: var(--card-in); border-radius: var(--r); padding: .6rem .9rem; margin: 8px 0; }
.comment small { color: var(--muted); margin-left: 6px; }
.comment .prose { margin-top: 4px; }
.comment .prose p:last-child { margin-bottom: 0; }
.comment.staff-only { border-left: 3px solid #ffd166; }
.req { color: #ff6b7a; }
.apply-form label { font-weight: 500; }
.apply-form input, .apply-form select { margin-top: 6px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; color: var(--text); }
.check input { width: auto; }
.row-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- ranks admin + staff online ---------- */
.ranks-table { display: flex; flex-direction: column; gap: 6px; margin: 1rem 0; }
.ranks-head, .ranks-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(0, 1fr) 60px minmax(0, .9fr); gap: 10px; align-items: center; }
.ranks-head { font-size: .8rem; text-transform: uppercase; color: var(--muted); padding: 0 .8rem; }
.ranks-row { background: var(--card-in); border-radius: var(--r); padding: .6rem .8rem; }
.ranks-row.gone { opacity: .5; }
.ranks-row small { display: block; color: var(--muted); font-size: .75rem; }
.ranks-row select, .ranks-row input { padding: .35rem .5rem; font-size: .85rem; }
.ranks-row input[type=color] { padding: 2px; height: 32px; }
.online-dot { font-size: .75rem; color: #3ba55d; font-weight: 600; }
@media (max-width: 860px) { .ranks-head { display: none; } .ranks-row { grid-template-columns: 1fr 1fr; } }
.gone-ranks summary { cursor: pointer; color: var(--muted); padding: .4rem .8rem; font-size: .85rem; }
/* staff see extra menu links: tighten spacing so the bar stays on one line */
@media (min-width: 1051px) {
  .nav-links.compact .nav-link { margin: .3em .75em; font-size: .98rem; }
  .nav-links.compact .nav-link.store-link { padding: .4em 1.1em; }
}

/* ---------- announcement banner + countdown ---------- */
.site-banner { position: relative; margin: 0 0 6px; background: linear-gradient(100deg, rgb(var(--p-rgb) / 95%), #6d1fb8 55%, #3a0f66); border-top: 1px solid rgb(255 255 255 / 15%); border-bottom: 1px solid rgb(255 255 255 / 10%); box-shadow: 0 8px 30px rgb(var(--p-rgb) / 25%); overflow: hidden; }
.site-banner::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 40px, rgb(255 255 255 / 4%) 40px 80px); pointer-events: none; }
.site-banner-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 28px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.site-banner-text { flex: 1 1 300px; min-width: 0; }
.site-banner h2 { color: #fff; font: italic 800 1.9rem/1.15 Montserrat, sans-serif; letter-spacing: .01em; text-transform: uppercase; text-shadow: 0 2px 12px rgb(0 0 0 / 30%); }
.site-banner p { margin: 6px 0 0; color: rgb(255 255 255 / 88%); font-weight: 500; }
.countdown { display: flex; gap: 10px; }
.countdown div { background: rgb(0 0 0 / 28%); border: 1px solid rgb(255 255 255 / 18%); border-radius: 8px; min-width: 70px; padding: 8px 10px; text-align: center; }
.countdown b { display: block; font: 800 2rem/1 Montserrat, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: rgb(255 255 255 / 75%); }
.site-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.banner-btn { background: #fff; color: #5b1199; font-weight: 700; }
.banner-btn:hover { color: #5b1199; }
@media (max-width: 640px) {
  .site-banner h2 { font-size: 1.4rem; }
  .countdown { width: 100%; justify-content: space-between; gap: 6px; }
  .countdown div { min-width: 0; flex: 1; padding: 6px 4px; }
  .countdown b { font-size: 1.5rem; }
  .site-banner-actions .btn { flex: 1; }
}
.site-banner .btn-secondary { background: rgb(0 0 0 / 25%); color: #fff; border: 1px solid rgb(255 255 255 / 40%); }
.site-banner .btn-secondary:hover { background: rgb(0 0 0 / 40%); color: #fff; }

/* ---------- accounts + admin tools ---------- */
.alert.warn { background: rgba(255, 193, 7, .12); border-color: #ffc107; }
.alert.warn a { color: #ffd166; font-weight: 600; margin-left: 6px; }
.nav-link.report-link { color: rgba(255, 255, 255, .8); }
.narrow-form { max-width: 420px; }
.narrow-form input { margin-top: 6px; }
.setup-steps { border: 1px solid rgba(255, 193, 7, .4); }
.step-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.step { background: var(--card-in); border-radius: 99px; padding: .35rem .9rem; font-weight: 600; color: #ffd166; }
.step.done { color: #3ba55d; }
.acct-row { display: flex; gap: 12px; align-items: center; }
.acct-row img { border-radius: 4px; }
.acct-form { margin-top: 12px; }
.acct-form > summary { list-style: none; }
.acct-form > summary::-webkit-details-marker { display: none; }
.acct-form .stack { margin-top: 12px; }
.inline-form { margin-top: 12px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 1rem; }
.admin-stats div { background: var(--card-in); border-radius: var(--r); padding: .8rem 1rem; }
.admin-stats b { display: block; font-size: 1.6rem; color: #fff; }
.admin-stats span { font-size: .8rem; color: var(--muted); }
.admin-search { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-search input { flex: 1 1 260px; width: auto; }
.admin-search select { width: auto; }
.admin-table { display: flex; flex-direction: column; gap: 4px; }
.admin-head, .admin-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.6fr) 90px 110px 110px; gap: 10px; align-items: center; padding: .5rem .8rem; }
.admin-head { font-size: .75rem; text-transform: uppercase; color: var(--muted); }
.admin-row { background: var(--card-in); border-radius: var(--r); color: var(--text); font-size: .9rem; }
a.admin-row:hover { background: rgba(255, 255, 255, .06); filter: none; }
.admin-row img { border-radius: 3px; vertical-align: middle; }
.admin-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-head.small-cols, .admin-row.small-cols { grid-template-columns: 1.2fr 1fr .8fr 1.6fr; }
.ok-icon { color: #3ba55d; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 30px; align-items: start; }
.info-list { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; margin: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; overflow-wrap: anywhere; }
.admin-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.admin-actions form { margin: 0; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 860px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-head { display: none; }
  .admin-row { grid-template-columns: 1fr; gap: 2px; }
  .info-list { grid-template-columns: 1fr; }
}

/* staff tools dropdown in the top menu */
.nav-dropdown { position: relative; }
.nav-dropdown > summary { list-style: none; cursor: pointer; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown .caret { font-size: .8rem; margin-left: 2px; }
.nav-dropdown .dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 210px; background: var(--card); border: 1px solid #262626; border-radius: var(--r); padding: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.nav-dropdown .dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: .55rem .8rem; border-radius: var(--r); color: var(--text); font-weight: 500; }
.nav-dropdown .dropdown-menu a:hover, .nav-dropdown .dropdown-menu a.active { background: rgba(255, 255, 255, .06); color: #fff; filter: none; }
.nav-dropdown .dropdown-menu i { width: 18px; text-align: center; color: #ffd166; }
.nav-dropdown .dropdown-menu .count { margin-left: auto; }
@media (max-width: 1050px) {
  .nav-dropdown .dropdown-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 1rem; background: transparent; }
}
.topnav { z-index: 5; } /* dropdown above the header stats */
.admin-head.pay-cols, .admin-row.pay-cols { grid-template-columns: 100px minmax(0, 2fr) 100px 110px; }
.admin-row.pay-cols span:nth-child(2) { white-space: normal; }
