/* DreadM RP main site - matches Apply portal theme (Dread Crimson) */
:root {
  --bg-main: #070708;
  --bg-card: rgba(20, 16, 18, 0.75);
  --bg-card-hover: rgba(32, 22, 26, 0.9);
  --bg-input: rgba(8, 8, 10, 0.85);
  --primary: #c8102e;
  --primary-light: #ff2d3c;
  --primary-dark: #8a0b1f;
  --primary-glow: rgba(220, 20, 40, 0.35);
  --text-main: #f6f2f2;
  --text-muted: #a69b9e;
  --text-dim: #70646a;
  --border: rgba(220, 20, 40, 0.22);
  --border-hover: rgba(255, 45, 60, 0.5);
  --open: #22c55e;
  --closed: #ef4444;
  --hiring: #f59e0b;
  --police-col: #1d70b8;
  --ems-col: #e63946;
  --mechanic-col: #f59e0b;
  --business-col: #d97706;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 18px; --radius-xl: 24px;
  --font-main: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--bg-main); color: var(--text-main); font-family: var(--font-body); min-height: 100vh; overflow-x: hidden; line-height: 1.5; }
.ambient-bg { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,7,8,.55) 0%, rgba(7,7,8,.82) 55%, #070708 100%),
    radial-gradient(circle at 50% -10%, rgba(220,20,40,.28), transparent 65%),
    url('/static/img/hero-bg.jpg') center top / cover no-repeat; }
.grid-overlay { position: fixed; inset: 0; z-index: -1; pointer-events: none; background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(220,20,40,.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(220,20,40,.04) 1px, transparent 1px); }
h1,h2,h3,h4 { font-family: var(--font-main); font-weight: 700; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-main); cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: var(--font-body); outline: none; color: var(--text-main); }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(8,8,10,.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: .75rem 2rem; }
.nav-container { max-width: 1350px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-brand { display: flex; align-items: center; gap: .75rem; }
.brand-logo-img { border-radius: var(--radius-md); object-fit: cover; box-shadow: 0 0 20px var(--primary-glow); }
.brand-title { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-main); font-size: 1.25rem; font-weight: 800; background: linear-gradient(90deg,#fff,#ffc9ce); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-subtitle { font-size: .68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--primary-light); }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; }
.nav-link { display: block; padding: .5rem .9rem; border-radius: var(--radius-sm); font-family: var(--font-main); font-weight: 600; font-size: .92rem; color: var(--text-muted); transition: .2s; }
.nav-link:hover { color: var(--text-main); background: rgba(220,20,40,.1); }
.nav-link.active { color: #fff; background: rgba(220,20,40,.2); box-shadow: inset 0 -2px 0 var(--primary-light); }
.admin-link { color: var(--primary-light); font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: .9rem; }
.nav-toggle { display: none; background: none; color: var(--text-main); font-size: 1.6rem; }
.server-status-pill { display: flex; align-items: center; gap: .5rem; padding: .4rem .8rem; border: 1px solid var(--border); border-radius: 99px; font-size: .75rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); }
.server-status-pill.online .status-dot { background: var(--open); box-shadow: 0 0 8px var(--open); animation: pulse 2s infinite; }
.server-status-pill.offline .status-dot { background: var(--closed); }
@keyframes pulse { 50% { opacity: .4; } }
.discord-btn { display: flex; align-items: center; gap: .5rem; background: #5865f2; color: #fff; padding: .55rem 1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .88rem; transition: .2s; }
.discord-btn:hover { background: #4752c4; }
.user-chip { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem .25rem .3rem; border: 1px solid var(--border); border-radius: 99px; font-size: .85rem; font-weight: 600; }
.user-chip img { width: 30px; height: 30px; border-radius: 50%; }
.user-chip button { background: none; color: var(--text-dim); font-size: .75rem; }
.user-chip button:hover { color: var(--primary-light); }

/* Layout */
.main-wrapper { max-width: 1350px; margin: 0 auto; padding: 2.5rem 2rem 4rem; min-height: 70vh; }
.page-head { margin-bottom: 2rem; }
.page-head h1 { font-size: 2.4rem; }
.page-head h1 span, .highlight { color: var(--primary-light); }
.page-head p { color: var(--text-muted); max-width: 680px; margin-top: .4rem; }

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem 3rem;
  position: relative;
}
.hero-logo {
  display: block;
  width: clamp(200px, 28vw, 320px);
  height: auto;
  margin: 0 auto 0.75rem auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 40px rgba(220, 20, 40, 0.45));
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%);
  mask-image: radial-gradient(circle, #000 55%, transparent 72%);
  animation: logo-float 6s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  background: rgba(220, 20, 40, 0.15);
  box-shadow: 0 0 15px var(--primary-glow);
  margin: 0 auto 1.25rem auto;
}
.hero-title { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; line-height: 1.05; max-width: 900px; margin: 0 auto; }
.hero-desc { color: var(--text-muted); max-width: 660px; margin: 1.1rem auto 2rem; font-size: 1.1rem; }
.cta-group { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-secondary, .btn-danger, .btn-small { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: var(--radius-md); font-weight: 700; font-size: .95rem; transition: .2s; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; box-shadow: 0 0 24px var(--primary-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px var(--primary-glow); }
.btn-secondary { background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-main); }
.btn-secondary:hover { border-color: var(--border-hover); background: rgba(220,20,40,.1); }
.btn-danger { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.35); }
.btn-small { padding: .4rem .8rem; font-size: .8rem; border-radius: var(--radius-sm); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.3rem; backdrop-filter: blur(10px); transition: .25s; }
a.card:hover, .card.hoverable:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-3px); }
.stat-card { text-align: center; }
.stat-card .num { font-family: var(--font-main); font-size: 2.2rem; font-weight: 800; color: var(--primary-light); }
.stat-card .lbl { color: var(--text-muted); font-size: .85rem; }
.section-gap { margin-top: 2.5rem; }
.cat-card { display: flex; flex-direction: column; gap: .5rem; }
.cat-card .icon { font-size: 2rem; }
.cat-card h3 { font-size: 1.2rem; }
.cat-card p { color: var(--text-muted); font-size: .9rem; }
.listing { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.listing-img { height: 150px; background: linear-gradient(135deg, #1a1114, #2a1219) center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.listing-body { padding: 1.1rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.listing-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.listing h3 { font-size: 1.15rem; }
.listing p.desc { color: var(--text-muted); font-size: .9rem; }
.meta { display: flex; flex-direction: column; gap: .2rem; font-size: .82rem; color: var(--text-muted); margin-top: auto; padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.06); }
.meta b { color: var(--text-main); font-weight: 600; }
.badge { padding: .2rem .65rem; border-radius: 99px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; border: 1px solid; }
.badge.open { color: var(--open); border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.1); }
.badge.closed { color: var(--closed); border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.1); }
.badge.hiring { color: var(--hiring); border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.1); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.theme-police .listing-img { background-color: rgba(29,112,184,.2); }
.page-head.theme-police h1 span { color: var(--police-col); }
.page-head.theme-ems h1 span { color: var(--ems-col); }
.page-head.theme-mechanic h1 span { color: var(--mechanic-col); }
.filter-bar { display: flex; gap: .6rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.filter-bar input { flex: 1; min-width: 200px; }

/* Staff roster */
.rank-title { display: flex; align-items: center; gap: .7rem; margin: 2rem 0 1rem; font-size: 1.3rem; }
.rank-title .count { font-size: .75rem; padding: .15rem .6rem; border-radius: 99px; background: rgba(220,20,40,.15); color: var(--primary-light); }
.member { display: flex; align-items: center; gap: 1rem; }
.member img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--primary); box-shadow: 0 0 14px var(--primary-glow); }
.member .name { font-family: var(--font-main); font-weight: 700; }
.member .handle { font-size: .8rem; color: var(--text-dim); }
.member.streamer-card { border-left: 3px solid #9146ff; justify-content: space-between; flex-wrap: wrap; }
.member.streamer-card.is-live { border-left-color: #ef4444; border-color: rgba(239, 68, 68, 0.45); box-shadow: 0 0 24px rgba(239, 68, 68, 0.18); }
.member.streamer-card img { border-color: #9146ff; box-shadow: 0 0 14px rgba(145, 70, 255, 0.4); }
.member.streamer-card.is-live img { border-color: #ef4444; box-shadow: 0 0 16px rgba(239, 68, 68, 0.65); }
.streamer-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .15rem .5rem; border-radius: 99px; background: rgba(145, 70, 255, .15); border: 1px solid rgba(145, 70, 255, .4); color: #c084fc; margin-top: .2rem; }
.live-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: .18rem .55rem; border-radius: 99px; background: #ef4444; color: #fff; box-shadow: 0 0 12px rgba(239, 68, 68, .6); animation: pulse 1.6s infinite; margin-top: .2rem; }
.live-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.live-section-box { background: linear-gradient(145deg, rgba(220, 20, 40, .12), rgba(145, 70, 255, .08)); border: 1px solid rgba(255, 45, 60, .4); border-radius: var(--radius-xl); padding: 1.5rem; margin-bottom: 2.2rem; }
.live-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.live-header h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.4rem; }
.live-streams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1.4rem; }
.live-stream-card { background: rgba(12, 10, 13, 0.9); border: 1px solid rgba(239, 68, 68, .4); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 8px 30px rgba(0,0,0,.45); }
.twitch-embed-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #09070a; display: flex; align-items: center; justify-content: center; }
.twitch-embed-wrap iframe { width: 100%; height: 100%; border: 0; }
.live-stream-info { padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.twitch-btn { display: inline-flex; align-items: center; gap: .4rem; background: #9146ff; color: #fff; padding: .45rem .85rem; border-radius: var(--radius-sm); font-size: .8rem; font-weight: 700; transition: .2s; }
.twitch-btn:hover { background: #7c2cf5; transform: translateY(-1px); }
.self-twitch-bar { background: var(--bg-card); border: 1px solid rgba(145, 70, 255, .35); border-radius: var(--radius-lg); padding: 1rem 1.3rem; margin-bottom: 1.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.self-twitch-form { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; flex: 1; max-width: 480px; }
.self-twitch-form input { flex: 1; min-width: 180px; }
.guide-card.collapsed .guide-body { display: none; }
.notice { padding: .9rem 1.1rem; border-radius: var(--radius-md); background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.35); color: #fbbf24; font-size: .9rem; margin-bottom: 1rem; }
.notice.danger { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.35); color: #fca5a5; }

/* Specs / Requirements Styles */
.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.spec-card { border-top: 3px solid var(--primary); }
.spec-card.min { border-top-color: #22c55e; }
.spec-card.rec { border-top-color: #3b82f6; }
.spec-card h2 { font-size: 1.35rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.spec-table { width: 100%; margin-bottom: 1.2rem; }
.spec-table tr td { padding: .45rem 0; font-size: .88rem; border-bottom: 1px solid rgba(255,255,255,.05); }
.spec-table tr td:first-child { color: var(--text-dim); font-weight: 600; width: 32%; text-transform: uppercase; font-size: .76rem; letter-spacing: .05em; }
.spec-subhead { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin: 1rem 0 .5rem; }
.bullet-list { list-style: none; display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; color: var(--text-muted); }
.bullet-list li { position: relative; padding-left: 1.2rem; }
.bullet-list li::before { content: "•"; position: absolute; left: 0; color: var(--primary-light); font-weight: bold; }
.unsupported-box { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 2rem; }
.unsupported-box h3 { color: #f87171; display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; margin-bottom: .6rem; }
.unsupported-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0; }
.chip-danger { background: rgba(239,68,68,.18); border: 1px solid rgba(239,68,68,.4); color: #fecaca; padding: .35rem .75rem; border-radius: 99px; font-weight: 700; font-size: .82rem; }

/* Rules Styles */
.rules-preamble { background: var(--bg-card); border-left: 3px solid var(--primary-light); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 1.2rem 1.4rem; margin-bottom: 2rem; font-style: italic; color: #e2d9dc; line-height: 1.7; }
.rules-search-bar { margin-bottom: 1.8rem; }
.rules-section-card { margin-bottom: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.rules-section-header { padding: 1.1rem 1.4rem; background: rgba(255,255,255,.02); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.rules-section-header h2 { font-size: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.rules-toggle-icon { font-size: 1.1rem; color: var(--primary-light); transition: transform .2s ease; }
.rules-section-content { padding: 1.4rem; display: flex; flex-direction: column; gap: 1.2rem; }
.rule-item { display: flex; flex-direction: column; gap: .35rem; }
.rule-item-title { font-weight: 700; font-size: .98rem; color: #fff; display: flex; align-items: center; gap: .4rem; }
.rule-item-p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }
.rule-item-p strong, .rule-item-p b { color: #fff; }

/* Guides & Troubleshooting Accordion / Cards */
.guides-grid { display: flex; flex-direction: column; gap: 1.2rem; }
.guide-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s; }
.guide-card:hover { border-color: var(--border-hover); }
.guide-header { padding: 1.2rem 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.guide-title-wrap { display: flex; flex-direction: column; gap: .25rem; }
.guide-title { font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: .6rem; }
.guide-summary { font-size: .88rem; color: var(--text-muted); }
.guide-body { padding: 0 1.4rem 1.4rem; border-top: 1px solid rgba(255,255,255,.05); margin-top: .4rem; padding-top: 1.2rem; }
.step-list { list-style: none; counter-reset: guide-counter; display: flex; flex-direction: column; gap: .75rem; }
.step-list li { counter-increment: guide-counter; position: relative; padding-left: 2.2rem; font-size: .92rem; color: #ddd; line-height: 1.6; }
.step-list li::before { content: counter(guide-counter); position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: rgba(200,16,46,.25); border: 1px solid var(--primary-light); color: #fff; font-size: .75rem; font-weight: bold; display: flex; align-items: center; justify-content: center; }
.guide-tips { margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm); background: rgba(255,255,255,.03); border-left: 3px solid var(--primary); font-size: .85rem; color: var(--text-muted); }

/* Changelog Timeline & History */
.changelog-timeline { position: relative; display: flex; flex-direction: column; gap: 1.5rem; padding-left: 1.6rem; border-left: 2px solid rgba(220, 20, 40, 0.3); margin-left: .6rem; }
.changelog-entry { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; backdrop-filter: blur(10px); transition: .2s; }
.changelog-entry:hover { border-color: var(--border-hover); }
.changelog-entry.pinned { border-color: rgba(255, 45, 60, 0.55); box-shadow: 0 0 28px rgba(220, 20, 40, 0.16); }
.changelog-dot { position: absolute; left: -2.15rem; top: 1.75rem; width: 14px; height: 14px; border-radius: 50%; background: var(--primary-light); border: 3px solid #070708; box-shadow: 0 0 10px var(--primary-light); }
.changelog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.changelog-meta-row { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-bottom: .4rem; }
.version-pill { font-family: monospace; font-weight: 800; font-size: .82rem; padding: .2rem .65rem; border-radius: 6px; background: rgba(220, 20, 40, 0.22); border: 1px solid var(--primary-light); color: #fff; }
.tag-pill { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .6rem; border-radius: 99px; border: 1px solid; }
.tag-pill.major { color: #f43f5e; border-color: rgba(244, 63, 94, .45); background: rgba(244, 63, 94, .12); }
.tag-pill.update { color: #38bdf8; border-color: rgba(56, 189, 248, .45); background: rgba(56, 189, 248, .12); }
.tag-pill.hotfix { color: #f59e0b; border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .12); }
.pin-pill { font-size: .7rem; font-weight: 800; padding: .18rem .55rem; border-radius: 99px; background: rgba(250, 204, 21, .14); border: 1px solid rgba(250, 204, 21, .4); color: #fde047; }
.changelog-date { font-size: .82rem; color: var(--text-dim); font-weight: 600; }
.changelog-summary { color: var(--text-muted); font-size: .94rem; margin-bottom: 1.1rem; line-height: 1.6; }
.change-groups { display: flex; flex-direction: column; gap: .9rem; }
.change-group-title { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .6rem; border-radius: 6px; margin-bottom: .45rem; }
.change-group-title.added { background: rgba(34, 197, 94, .14); color: #4ade80; border: 1px solid rgba(34, 197, 94, .35); }
.change-group-title.changed { background: rgba(59, 130, 246, .14); color: #60a5fa; border: 1px solid rgba(59, 130, 246, .35); }
.change-group-title.fixed { background: rgba(245, 158, 11, .14); color: #fbbf24; border: 1px solid rgba(245, 158, 11, .35); }
.change-group-title.removed { background: rgba(239, 68, 68, .14); color: #f87171; border: 1px solid rgba(239, 68, 68, .35); }
.change-items { list-style: none; display: flex; flex-direction: column; gap: .38rem; padding-left: .3rem; }
.change-items li { position: relative; padding-left: 1.15rem; font-size: .9rem; color: #e7e2e4; line-height: 1.55; }
.change-items li::before { content: "▹"; position: absolute; left: 0; color: var(--primary-light); font-weight: bold; }
.filter-pills { display: flex; gap: .45rem; flex-wrap: wrap; }
.filter-pill { background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--text-muted); padding: .45rem .9rem; border-radius: 99px; font-size: .82rem; font-weight: 700; }
.filter-pill.active, .filter-pill:hover { background: rgba(220, 20, 40, .2); border-color: var(--primary-light); color: #fff; }

/* Admin */
.admin-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.admin-tab { background: none; color: var(--text-muted); padding: .7rem 1.1rem; font-weight: 700; font-size: .92rem; border-bottom: 2px solid transparent; }
.admin-tab:hover { color: var(--text-main); }
.admin-tab.active { color: #fff; border-bottom-color: var(--primary-light); }
.admin-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: 1rem; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .75rem .9rem; font-size: .88rem; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: middle; }
th { color: var(--text-dim); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; padding: .4rem; }
.row-actions { display: flex; gap: .4rem; }
.access-denied { text-align: center; padding: 4rem 1rem; }
.access-denied .big { font-size: 3rem; }

/* Form / modal */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(4px); }
.modal { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: #120e10; border: 1px solid var(--border-hover); border-radius: var(--radius-xl); padding: 1.8rem; }
.modal h2 { margin-bottom: 1.2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
input, textarea, select { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .65rem .8rem; font-size: .92rem; }
input:focus, textarea:focus, select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px var(--primary-glow); }
textarea { resize: vertical; min-height: 80px; }
.modal-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 1.4rem; }

.footer { display: flex; align-items: center; justify-content: center; gap: .8rem; padding: 2rem; border-top: 1px solid var(--border); color: var(--text-dim); font-size: .8rem; }
.footer img { border-radius: 8px; }
.toast { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 300; padding: .85rem 1.2rem; border-radius: var(--radius-md); background: #1b1114; border: 1px solid var(--border-hover); font-weight: 600; opacity: 0; transform: translateY(20px); transition: .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.toast.error { border-color: var(--closed); color: #f87171; }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: rgba(8,8,10,.97); padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .server-status-pill { display: none; }
  .navbar { padding: .75rem 1rem; }
  .main-wrapper { padding: 1.5rem 1rem 3rem; }
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .page-head h1 { font-size: 1.9rem; } }
