/* ============================================================
   Darktechi Network — Shared Design System
   Direction: Concept 10 "Kinetic" — bold grotesk type, one lime
   accent, dark base, scroll reveals. This file is shared by every
   mockup page so the eventual PHP build can reuse it as-is.
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --bg-1: #131316;
  --bg-2: #191a1e;
  --line: #232327;
  --text: #f5f5f2;
  --text-dim: #8d8d95;
  --text-dimmer: #55565f;
  --lime: #d7ff3d;
  --lime-dim: #7f9424;
  --pink: #ff4d8d;
  --red: #ff5f6b;
  --blue: #4d9fef;
  --display: 'Archivo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

.preview-banner { background: var(--lime); color: #16190a; text-align: center; padding: 9px 16px; font-family: var(--display); font-weight: 700; font-size: 0.78rem; position: relative; z-index: 300; }

/* ---------------- header / nav ---------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(10,10,12,0.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; max-width: 1140px; margin: 0 auto; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 1.1rem; text-transform: uppercase; }
.brand-mark { width: 30px; height: 30px; background: var(--lime); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; color: #16190a; font-size: 0.95rem; flex-shrink: 0; }
nav.main-nav { display: flex; align-items: center; gap: 4px; }
nav.main-nav > a, .nav-dropdown > button {
  font-family: var(--body); font-weight: 700; font-size: 0.85rem; color: var(--text-dim);
  padding: 9px 14px; border-radius: 999px; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px; transition: all 0.15s;
}
nav.main-nav > a:hover, .nav-dropdown > button:hover, .nav-dropdown.open > button { color: #16190a; background: var(--lime); }
nav.main-nav > a.active { color: var(--lime); background: none; }
nav.main-nav > a.active:hover { color: #16190a; background: var(--lime); }
.caret { width: 8px; height: 8px; opacity: 0.6; transition: transform 0.15s; }
.nav-dropdown.open .caret { transform: rotate(180deg); }
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px;
  padding: 6px; box-shadow: 0 16px 36px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.97);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s; z-index: 200;
}
.nav-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: 9px; font-size: 0.85rem; font-weight: 600; color: var(--text-dim); }
.dropdown-menu a:hover { background: var(--bg); color: var(--lime); }
.dropdown-menu a small { display: block; color: var(--text-dim); opacity: 0.6; font-size: 0.72rem; font-weight: 400; margin-top: 2px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions-mobile { display: none; }
.nav-icons { display: flex; align-items: center; gap: 6px; margin-right: 4px; }
.nav-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); background: transparent; transition: border-color 0.15s, color 0.15s; }
.nav-icon-btn:hover { border-color: var(--lime); color: var(--lime); }
.nav-icon-btn svg { width: 17px; height: 17px; }
.nav-icon-badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 999px; background: var(--pink); color: #1a0512; font-size: 0.62rem; font-weight: 800; font-family: var(--mono); display: flex; align-items: center; justify-content: center; line-height: 1; }
.nav-toggle { display: none; background: var(--bg-1); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 700; font-size: 0.85rem; }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 0.88rem; cursor: pointer; border: 1px solid transparent; transition: transform 0.15s, filter 0.15s, background 0.15s, border-color 0.15s; font-family: var(--body); }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--lime); color: #16190a; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text-dim); }
.btn-danger { background: var(--red); color: #1a0508; }
.btn-discord { background: #5865F2; color: #fff; }
.btn-discord:hover { filter: brightness(1.08); }
.btn-sm { padding: 9px 16px; font-size: 0.8rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.or-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--text-dimmer); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------------- hero (home only) ---------------- */
.hero { position: relative; padding: 110px 28px 70px; text-align: center; overflow: hidden; }
.parallax-shape { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.35; pointer-events: none; }
.p1 { width: 340px; height: 340px; background: var(--lime); top: -100px; left: -80px; }
.p2 { width: 300px; height: 300px; background: var(--pink); top: 40px; right: -100px; opacity: 0.25; }
.hero-inner { position: relative; z-index: 2; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 30px; }
.eyebrow-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.kinetic-h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; margin-bottom: 24px; }
.kinetic-h1 .word { display: inline-block; opacity: 0; transform: translateY(40px) rotate(3deg); transition: opacity 0.6s cubic-bezier(.2,.8,.2,1), transform 0.6s cubic-bezier(.2,.8,.2,1); }
.kinetic-h1 .word.in { opacity: 1; transform: translateY(0) rotate(0deg); }
.kinetic-h1 .accent { color: var(--lime); }
.hero p.tagline { color: var(--text-dim); font-size: 1.1rem; max-width: 480px; margin: 0 auto 32px; opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s; }
.hero p.tagline.in { opacity: 1; transform: translateY(0); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease 0.65s, transform 0.6s ease 0.65s; }
.hero-actions.in { opacity: 1; transform: translateY(0); }

/* status / equalizer widget */
.status-block { max-width: 560px; margin: 0 auto; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-1); padding: 26px 30px; text-align: left; position: relative; z-index: 2; opacity: 0; transform: translateY(20px) scale(0.98); transition: opacity 0.6s ease 0.8s, transform 0.6s ease 0.8s; }
.status-block.in { opacity: 1; transform: translateY(0) scale(1); }
.status-block.static { opacity: 1; transform: none; }
.status-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.status-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.85rem; color: var(--lime); }
.status-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity: 0.3; } }
.status-count { font-family: var(--display); font-weight: 900; font-size: 1.6rem; }
.status-count span { font-family: var(--body); font-weight: 500; font-size: 0.85rem; color: var(--text-dim); }
.bar-track { height: 8px; background: var(--line); border-radius: 999px; margin: 14px 0; overflow: hidden; }
.bar-fill { height: 100%; background: var(--lime); border-radius: 999px; width: 0%; transition: width 1.4s cubic-bezier(.2,.8,.2,1) 1s; }
.bar-fill.in, .bar-fill.static-fill { width: 47%; }
.status-motd { color: var(--text-dim); font-size: 0.86rem; margin-bottom: 16px; }
.server-ip { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px; font-family: var(--mono); font-size: 0.86rem; flex-wrap: wrap; }
.copy-btn { background: var(--bg-1); border: 1px solid var(--line); color: var(--text-dim); border-radius: 999px; padding: 6px 14px; font-size: 0.76rem; cursor: pointer; font-weight: 600; font-family: var(--body); }
.copy-btn:hover { border-color: var(--lime); color: var(--lime); }

/* stat row */
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); max-width: 960px; margin: 70px auto 0; gap: 2px; background: var(--line); }
.stat-item { background: var(--bg); text-align: center; padding: 34px 16px; }
.stat-item .num { font-family: var(--display); font-weight: 900; font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--lime); }
.stat-item .lbl { color: var(--text-dim); font-size: 0.8rem; margin-top: 6px; font-weight: 600; }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2,1fr); } }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.23s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.30s; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ---------------- generic sections ---------------- */
section { padding: 96px 0; }
section.tight { padding: 56px 0; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 46px; }
.section-head.left { text-align: left; margin: 0 0 40px; }
.eyebrow { font-family: var(--display); font-weight: 700; font-size: 0.78rem; color: var(--lime); text-transform: uppercase; letter-spacing: 1px; }
h1.page-title { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; margin: 10px 0; }
h2.section-title { font-family: var(--display); font-weight: 900; font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-transform: uppercase; margin: 10px 0 10px; }
p.section-sub { color: var(--text-dim); }
p.page-sub { color: var(--text-dim); font-size: 1.05rem; max-width: 560px; }

/* page header (non-home pages) */
.page-hero { padding: 64px 28px 20px; position: relative; overflow: hidden; }
.page-hero .parallax-shape { opacity: 0.22; }

/* ---------------- cards ---------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--bg-1); border: 1px solid var(--line); border-radius: 18px; padding: 26px; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: var(--lime); transform: translateY(-4px); }
.card-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(215,255,61,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; text-transform: uppercase; }
.card p { color: var(--text-dim); font-size: 0.9rem; }

.panel { background: var(--bg-1); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }

/* news */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-row { display: flex; gap: 18px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 16px; padding: 22px; align-items: center; transition: border-color 0.2s, transform 0.2s; }
.news-row:hover { border-color: var(--lime); transform: translateY(-2px); }
.news-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(215,255,61,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.news-row h3 { font-weight: 700; font-size: 1rem; }
.news-row p { color: var(--text-dim); font-size: 0.86rem; margin-top: 3px; }
.news-tag { margin-left: auto; font-size: 0.72rem; font-weight: 700; color: var(--lime); background: rgba(215,255,61,0.1); padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 640px) { .news-row { flex-wrap: wrap; } .news-tag { margin-left: 0; order: -1; } }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-family: var(--mono); font-size: 0.85rem; font-weight: 600; border: 1px solid var(--line); color: var(--text-dim); }
.pagination a:hover { border-color: var(--lime); color: var(--lime); }
.pagination .current { background: var(--lime); color: #16190a; border-color: var(--lime); }

/* ---------------- forms ---------------- */
form.stacked-form { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.88rem; }
.field .hint { color: var(--text-dim); font-size: 0.78rem; margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; background: var(--bg-1); border: 1px solid var(--line); color: var(--text);
  padding: 13px 16px; border-radius: 12px; font-family: var(--body); font-size: 0.94rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lime); }
textarea { resize: vertical; min-height: 120px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: auto; }

/* alerts */
.alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; font-size: 0.9rem; border: 1px solid transparent; }
.alert-error { background: rgba(255,95,107,0.1); border-color: var(--red); color: #ff9aa2; }
.alert-success { background: rgba(215,255,61,0.1); border-color: var(--lime); color: var(--lime); }
.alert-info { background: rgba(77,159,239,0.1); border-color: var(--blue); color: #9cc8fb; }

/* badges */
.badge { display: inline-block; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; padding: 3px 10px; border-radius: 999px; }
.badge-admin { background: rgba(255,95,107,0.14); color: #ff9aa2; }
.badge-moderator { background: rgba(77,159,239,0.14); color: #9cc8fb; }
.badge-member { background: rgba(255,255,255,0.08); color: var(--text-dim); }
.badge-donator { background: rgba(215,255,61,0.14); color: var(--lime); }
.badge-pink { background: rgba(255,77,141,0.14); color: var(--pink); }
.badge-gold { background: rgba(230,180,60,0.16); color: #e6c15a; }
.badge-purple { background: rgba(168,110,255,0.16); color: #c9a6ff; }

/* ---------------- forum ---------------- */
.forum-cat-list, .thread-list, .post-list { display: flex; flex-direction: column; gap: 10px; }
.forum-cat { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; transition: border-color 0.2s, transform 0.2s; }
.forum-cat:hover { border-color: var(--lime); transform: translateY(-2px); }
.forum-cat h3 { font-family: var(--display); font-weight: 700; font-size: 1rem; text-transform: uppercase; margin-bottom: 4px; }
.forum-cat p { color: var(--text-dim); font-size: 0.86rem; }
.cat-meta { text-align: right; font-size: 0.78rem; color: var(--text-dim); white-space: nowrap; font-family: var(--mono); }

.thread-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; transition: border-color 0.2s; }
.thread-row:hover { border-color: var(--lime); }
.thread-row .title { font-weight: 700; font-size: 0.94rem; }
.thread-row .meta { font-size: 0.78rem; color: var(--text-dim); margin-top: 3px; }
.thread-pin { color: var(--lime); margin-right: 6px; }
.thread-lock { color: var(--text-dim); margin-right: 6px; }

.post { display: flex; gap: 18px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.post-author { width: 130px; flex-shrink: 0; text-align: center; }
.post-avatar { width: 60px; height: 60px; border-radius: 14px; background: var(--bg-2); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.3rem; color: var(--lime); border: 1px solid var(--line); font-family: var(--display); }
.post-author .uname { font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
.post-body { flex: 1; min-width: 0; }
.post-meta { color: var(--text-dim); font-size: 0.76rem; margin-bottom: 10px; font-family: var(--mono); }
.post-content { white-space: pre-wrap; word-break: break-word; font-size: 0.94rem; }
@media (max-width: 640px) { .post { flex-direction: column; } .post-author { width: auto; display: flex; align-items: center; gap: 12px; text-align: left; } .post-avatar { margin: 0; width: 44px; height: 44px; } }

/* vote pill (suggestions / thread engagement) */
.vote-pill { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-family: var(--mono); flex-shrink: 0; }
.vote-pill button { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 0.9rem; line-height: 1; padding: 2px; }
.vote-pill button:hover { color: var(--lime); }
.vote-pill .count { font-weight: 700; font-size: 0.9rem; color: var(--text); }

/* status pills (tickets / suggestions) */
.chip.info { background: rgba(77,159,239,0.14); color: #9cc8fb; }
.chip.pending { background: rgba(255,255,255,0.08); color: var(--text-dim); }
.chip.pink { background: rgba(255,77,141,0.14); color: var(--pink); }

/* ---------------- admin table ---------------- */
table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.admin-table th, table.admin-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; }
table.admin-table th { color: var(--text-dim); font-weight: 700; font-family: var(--mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.4px; }
table.admin-table tr:hover td { background: rgba(255,255,255,0.015); }

.admin-shell { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: calc(100vh - 73px); }
.admin-sidebar { border-right: 1px solid var(--line); padding: 28px 16px; background: var(--bg-1); }
.admin-sidebar a { display: block; padding: 11px 14px; border-radius: 10px; font-weight: 700; font-size: 0.86rem; color: var(--text-dim); margin-bottom: 2px; }
.admin-sidebar a:hover { background: var(--bg-2); color: var(--text); }
.admin-sidebar a.active { background: var(--lime); color: #16190a; }
.admin-sidebar .side-label { font-family: var(--mono); font-size: 0.68rem; color: var(--text-dimmer); text-transform: uppercase; letter-spacing: 0.5px; padding: 0 14px; margin: 18px 0 8px; }
.admin-sidebar .side-label:first-child { margin-top: 0; }
.admin-main { padding: 32px 36px 60px; min-width: 0; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; margin-bottom: 36px; }
.admin-stat { background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.admin-stat .num { font-family: var(--display); font-weight: 900; font-size: 1.7rem; color: var(--lime); }
.admin-stat .lbl { color: var(--text-dim); font-size: 0.82rem; margin-top: 4px; }
@media (max-width: 860px) { .admin-shell { grid-template-columns: 1fr; } .admin-sidebar { display: flex; overflow-x: auto; padding: 12px; gap: 4px; } .admin-sidebar .side-label { display: none; } .admin-main { padding: 24px 20px 50px; } }

/* ---------------- live-ops dashboard tiles ---------------- */
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; padding: 20px; position: relative; }
.tile.span2 { grid-column: span 2; }
.tile-label { font-family: var(--mono); font-size: 0.7rem; color: var(--text-dimmer); text-transform: uppercase; letter-spacing: 0.5px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 8px; }
.chip { font-family: var(--mono); font-size: 0.66rem; padding: 2px 9px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.chip.ok { background: rgba(215,255,61,0.14); color: var(--lime); }
.chip.warn { background: rgba(255,95,107,0.14); color: #ff9aa2; }
.chip.danger { background: #ff5f6b; color: #2a0a0a; }
.tile-value { font-family: var(--mono); font-weight: 700; font-size: 1.7rem; }
.tile-value .unit { font-size: 0.95rem; color: var(--text-dim); font-weight: 500; }
.tile-trend { font-family: var(--mono); font-size: 0.76rem; margin-top: 6px; color: var(--text-dim); }
.tile-trend.up { color: var(--lime); }
.tile-trend.down { color: var(--red); }
.sparkline { width: 100%; height: 44px; margin-top: 10px; display: block; }
.sparkline polyline { fill: none; stroke-width: 2; }
.gauge-wrap { display: flex; align-items: center; gap: 16px; }
.gauge { width: 68px; height: 68px; flex-shrink: 0; }
.bar-mini { display: flex; align-items: flex-end; gap: 3px; height: 40px; margin-top: 10px; }
.bar-mini div { flex: 1; background: var(--line); border-radius: 1px; }
.bar-mini div.on { background: var(--lime); }
@media (max-width: 860px) { .dash-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .dash-grid { grid-template-columns: 1fr; } .tile.span2 { grid-column: span 1; } }

/* ---------------- toggle switch ---------------- */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: none; }
.toggle-row .t-label { font-weight: 700; font-size: 0.92rem; }
.toggle-row .t-desc { color: var(--text-dim); font-size: 0.82rem; margin-top: 3px; }
.toggle { position: relative; display: inline-block; width: 44px; height: 25px; flex-shrink: 0; }
.toggle input { display: none; }
.toggle .slider { position: absolute; inset: 0; background: var(--line); border-radius: 999px; cursor: pointer; transition: background 0.2s; }
.toggle .slider::before { content: ''; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; background: var(--text-dim); border-radius: 50%; transition: transform 0.2s, background 0.2s; }
.toggle input:checked + .slider { background: rgba(215,255,61,0.25); }
.toggle input:checked + .slider::before { transform: translateX(19px); background: var(--lime); }

/* ---------------- audit / mod log ---------------- */
.log-list { display: flex; flex-direction: column; gap: 10px; }
.log-row { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.log-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.92rem; border: 1px solid var(--line); }
.log-body { flex: 1; min-width: 0; }
.log-action { font-weight: 700; font-size: 0.88rem; }
.log-action b { color: var(--lime); font-weight: 700; }
.log-meta { color: var(--text-dim); font-size: 0.76rem; font-family: var(--mono); margin-top: 4px; }
.log-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.log-filters span { font-family: var(--mono); font-size: 0.76rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); cursor: pointer; }
.log-filters span.active { background: var(--lime); color: #16190a; border-color: var(--lime); font-weight: 700; }

/* ---------------- calendar ---------------- */
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 8px; }
.cal-weekdays span { text-align: center; color: var(--text-dim); font-family: var(--display); font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-day { position: relative; aspect-ratio: 1 / 0.85; background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 8px; transition: border-color 0.2s; }
.cal-day:hover { border-color: var(--lime); }
.cal-day.dim { opacity: 0.35; }
.cal-num { font-family: var(--mono); font-size: 0.78rem; color: var(--text-dim); }
.cal-dot { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; }
.cal-label { position: absolute; bottom: 8px; left: 8px; right: 8px; font-size: 0.62rem; font-weight: 700; color: var(--text); line-height: 1.3; }
@media (max-width: 700px) { .cal-label { display: none; } .cal-day { aspect-ratio: 1/1; } }

/* ---------------- image upload dropzone ---------------- */
.upload-dropzone { border: 2px dashed var(--line); border-radius: 16px; padding: 28px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; background: var(--bg-1); }
.upload-dropzone:hover { border-color: var(--lime); background: rgba(215,255,61,0.04); }
.upload-dropzone .up-icon { font-size: 1.6rem; margin-bottom: 10px; }
.upload-dropzone .up-title { font-weight: 700; font-size: 0.9rem; }
.upload-dropzone .up-sub { color: var(--text-dim); font-size: 0.78rem; margin-top: 4px; }
.upload-dropzone input[type=file] { display: none; }
.upload-preview { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.upload-preview .thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.upload-preview .fname { font-size: 0.84rem; font-weight: 600; }
.upload-preview .fsize { color: var(--text-dim); font-size: 0.76rem; }

/* ---------------- avatar upload (profile) ---------------- */
.avatar-upload { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.avatar-upload .post-avatar { width: 96px; height: 96px; font-size: 2.2rem; margin: 0; border-radius: 22px; }
.avatar-upload .avatar-edit-btn { position: absolute; bottom: -6px; right: -6px; width: 32px; height: 32px; border-radius: 50%; background: var(--lime); border: 3px solid var(--bg); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; cursor: pointer; }

/* achievement badges row */
.achv-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.achv { display: flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px 6px 8px; font-size: 0.78rem; font-weight: 600; color: var(--text-dim); }
.achv .ic { width: 22px; height: 22px; border-radius: 50%; background: rgba(215,255,61,0.12); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }

/* ---------------- profile v2 (card layout) ---------------- */
.profile-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 36px 28px; margin-top: 24px; border: 1px solid var(--line); background: radial-gradient(circle at 12% 15%, rgba(215,255,61,0.16), transparent 55%), radial-gradient(circle at 88% 85%, rgba(255,45,149,0.16), transparent 55%), var(--bg-1); }
.profile-hero-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; position: relative; z-index: 1; }
.profile-hero .post-avatar { width: 88px; height: 88px; font-size: 2rem; margin: 0; }
.profile-name-col h1 { font-family: var(--display); font-weight: 900; font-size: 1.6rem; text-transform: uppercase; }
.profile-rank-badges { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.profile-online { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 0.84rem; font-weight: 600; color: var(--lime); }
.profile-online .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(215,255,61,0.18); animation: pulse 1.6s ease-in-out infinite; }
.profile-online.offline { color: var(--text-dim); }
.profile-online.offline .dot { background: var(--text-dimmer); box-shadow: none; animation: none; }
.profile-hero .edit-link { margin-left: auto; position: relative; z-index: 1; }
.profile-hero.custom-banner { background-image: linear-gradient(0deg, rgba(11,11,13,0.82), rgba(11,11,13,0.5)), var(--banner-img); background-size: cover; background-position: center; }
.banner-upload .upload-dropzone { aspect-ratio: 4.5 / 1; padding: 16px; }
.banner-upload .up-title { font-size: 0.88rem; }
.upload-dropzone.has-image { background-size: cover; background-position: center; border-style: solid; position: relative; }
.upload-dropzone.has-image::before { content: ''; position: absolute; inset: 0; background: rgba(11,11,13,0.45); border-radius: inherit; }
.upload-dropzone.has-image .up-icon, .upload-dropzone.has-image .up-title, .upload-dropzone.has-image .up-sub { position: relative; z-index: 1; }
.upload-dropzone .remove-banner { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(11,11,13,0.75); border: 1px solid var(--line); color: var(--text); font-size: 0.72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; }

.profile-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } }

.profile-panel { background: var(--bg-1); border: 1px solid var(--line); border-radius: 18px; padding: 26px; margin-bottom: 24px; }
.profile-panel:last-child { margin-bottom: 0; }
.profile-panel h3 { font-family: var(--display); text-transform: uppercase; font-size: 0.9rem; color: var(--lime); margin-bottom: 18px; letter-spacing: 0.3px; }

.achv-list-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.achv-list-row:last-child { border-bottom: none; padding-bottom: 0; }
.achv-list-row:first-child { padding-top: 0; }
.achv-list-row .ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(215,255,61,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.achv-list-row .t-title { font-weight: 700; font-size: 0.92rem; }
.achv-list-row .t-desc { color: var(--text-dim); font-size: 0.82rem; margin-top: 2px; }
.achv-list-row .t-time { color: var(--text-dimmer); font-size: 0.74rem; font-family: var(--mono); margin-top: 4px; }
.achv-list-row.unread { background: rgba(215,255,61,0.04); margin: 0 -16px; padding: 14px 16px; border-radius: 10px; border-bottom-color: transparent; }
.achv-list-row.unread .ic { background: rgba(215,255,61,0.16); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex-shrink: 0; margin-top: 6px; box-shadow: 0 0 0 3px rgba(215,255,61,0.18); }

.profile-about .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.profile-about .row:first-child { padding-top: 0; }
.profile-about .row:last-child { border-bottom: none; padding-bottom: 0; }
.profile-about .row .k { color: var(--text-dim); }
.profile-about .row .v { font-weight: 600; text-align: right; }
.profile-about .bio-text { color: var(--text-dim); font-size: 0.87rem; margin-bottom: 14px; }

.friend-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.friend-row:first-child { padding-top: 0; }
.friend-row:last-child { border-bottom: none; padding-bottom: 0; }
.friend-row .f-avatar { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--lime); font-family: var(--display); border: 1px solid var(--line); flex-shrink: 0; font-size: 0.9rem; }
.friend-row .f-name { font-weight: 700; font-size: 0.87rem; }
.friend-row .f-status { font-size: 0.76rem; color: var(--text-dim); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.friend-row .f-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dimmer); }
.friend-row .f-status.online { color: var(--lime); }
.friend-row .f-status.online .dot { background: var(--lime); }
.friend-row .f-message { margin-left: auto; font-size: 0.78rem; font-weight: 700; color: var(--lime); flex-shrink: 0; }

/* ---------------- messages / inbox ---------------- */
.msg-list { display: flex; flex-direction: column; gap: 2px; background: var(--line); border-radius: 14px; overflow: hidden; }
.msg-row { display: flex; align-items: center; gap: 14px; background: var(--bg-1); padding: 16px 20px; text-decoration: none; color: inherit; }
.msg-row:hover { background: var(--bg-2); }
.msg-row .msg-name { font-weight: 700; font-size: 0.92rem; display: flex; align-items: center; gap: 8px; }
.msg-row .msg-snippet { color: var(--text-dim); font-size: 0.85rem; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 440px; }
.msg-row .msg-snippet.unread { color: var(--text); font-weight: 600; }
.msg-row .msg-meta { margin-left: auto; text-align: right; flex-shrink: 0; }
.msg-row .msg-time { color: var(--text-dimmer); font-size: 0.76rem; }
.msg-row .unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); display: inline-block; margin-top: 6px; }

.msg-thread-header { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.msg-thread { display: flex; flex-direction: column; gap: 14px; }
.msg-bubble { max-width: 68%; padding: 12px 16px; border-radius: 16px; font-size: 0.88rem; line-height: 1.5; }
.msg-bubble .msg-bubble-time { display: block; font-size: 0.7rem; color: var(--text-dimmer); margin-top: 5px; }
.msg-bubble.them { align-self: flex-start; background: var(--bg-1); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-bubble.me { align-self: flex-end; background: rgba(215,255,61,0.12); border: 1px solid rgba(215,255,61,0.25); border-bottom-right-radius: 4px; }
.msg-bubble.me .msg-bubble-time { text-align: right; }
.msg-bubble.flagged { border-color: rgba(255,95,107,0.4); }
.msg-poll-note { display: flex; align-items: center; gap: 7px; font-size: 0.76rem; color: var(--text-dimmer); font-family: var(--mono); margin: 10px 0 20px; }
.msg-poll-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: pulse 1.6s ease-in-out infinite; }

/* ---------------- editor toolbar (thread composer) ---------------- */
.editor-toolbar { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-bottom: none; border-radius: 12px 12px 0 0; }
.editor-toolbar button { width: 32px; height: 32px; border-radius: 8px; background: transparent; border: none; color: var(--text-dim); font-weight: 700; font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.editor-toolbar button:hover { background: var(--bg-2); color: var(--text); }
.editor-toolbar + textarea { border-radius: 0 0 12px 12px !important; }

/* ---------------- poll builder ---------------- */
.poll-builder { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-top: 4px; }
.poll-option-row { display: flex; gap: 8px; margin-bottom: 10px; align-items: center; }
.poll-option-row input { flex: 1; }
.poll-option-row .rm { color: var(--text-dimmer); cursor: pointer; font-size: 0.8rem; flex-shrink: 0; }
.add-option-link { color: var(--lime); font-weight: 700; font-size: 0.82rem; }

/* ---------------- danger zone ---------------- */
.danger-zone { border: 1px solid rgba(255,95,107,0.3); background: rgba(255,95,107,0.05); border-radius: 16px; padding: 22px; }
.danger-zone h3 { color: #ff9aa2 !important; }

/* ---------------- settings quick-jump nav ---------------- */
.settings-jump { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 30px; }
.settings-jump a { background: var(--bg-1); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 0.8rem; font-weight: 600; color: var(--text-dim); }
.settings-jump a:hover { color: var(--lime); border-color: var(--lime); }
.settings-section { scroll-margin-top: 24px; }

/* ---------------- settings sidebar layout ---------------- */
.settings-layout { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; margin-top: 22px; }

.settings-sidebar { background: var(--bg-1); border: 1px solid var(--line); border-radius: 18px; padding: 16px 10px; position: sticky; top: 88px; }
.settings-sidebar a { display: block; padding: 11px 14px; border-radius: 10px; font-weight: 700; font-size: 0.86rem; color: var(--text-dim); margin-bottom: 2px; scroll-margin-top: 24px; }
.settings-sidebar a:hover { background: var(--bg-2); color: var(--text); }
.settings-sidebar a.active { background: var(--lime); color: #16190a; }
.settings-sidebar .side-label { font-family: var(--mono); font-size: 0.68rem; color: var(--text-dimmer); text-transform: uppercase; letter-spacing: 0.5px; padding: 0 14px; margin: 18px 0 8px; }
.settings-sidebar .side-label:first-child { margin-top: 0; }

.settings-content { min-width: 0; }

.settings-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 22px; overflow: hidden; }
.settings-card:last-child { margin-bottom: 0; }
.settings-card-header { padding: 20px 26px; border-bottom: 1px solid var(--line); }
.settings-card-header h3 { font-family: var(--display); text-transform: uppercase; font-size: 0.9rem; color: var(--lime); letter-spacing: 0.3px; margin-bottom: 4px; }
.settings-card-header p { color: var(--text-dim); font-size: 0.82rem; margin: 0; }
.settings-card-body { padding: 26px; }
.settings-card.danger-card { border-color: rgba(255,95,107,0.3); background: rgba(255,95,107,0.05); }
.settings-card.danger-card .settings-card-header { border-color: rgba(255,95,107,0.3); }
.settings-card.danger-card .settings-card-header h3 { color: #ff9aa2; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .field.full { grid-column: 1 / -1; }

@media (max-width: 860px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-sidebar { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 10px; }
  .settings-sidebar .side-label { display: none; }
  .settings-sidebar a { white-space: nowrap; margin-bottom: 0; }
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------------- build gallery ---------------- */
.build-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.build-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.build-card:hover { border-color: var(--lime); transform: translateY(-3px); }
.build-thumb { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; position: relative; }
.build-thumb .build-cat { position: absolute; top: 12px; left: 12px; }
.build-body { padding: 16px 18px 18px; }
.build-body h3 { font-family: var(--display); font-weight: 700; font-size: 0.95rem; text-transform: uppercase; margin-bottom: 4px; }
.build-body p { color: var(--text-dim); font-size: 0.82rem; }
.build-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.build-builder { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--text-dim); }
.build-builder .b-avatar { width: 24px; height: 24px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; color: var(--lime); font-family: var(--display); flex-shrink: 0; }
.build-likes { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--text-dim); font-family: var(--mono); }

/* ---------------- live server map ---------------- */
.map-frame { position: relative; height: 320px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background-color: #0e1710;
  background-image:
    linear-gradient(rgba(215,255,61,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215,255,61,0.06) 1px, transparent 1px),
    radial-gradient(circle at 30% 65%, rgba(94,158,84,0.35), transparent 45%),
    radial-gradient(circle at 70% 30%, rgba(94,140,158,0.28), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(215,255,61,0.08), transparent 60%);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}
.map-marker { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(215,255,61,0.18), 0 0 10px rgba(215,255,61,0.6); transform: translate(-50%, -50%); animation: pulse 1.6s ease-in-out infinite; }
.map-marker .m-label { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 0.68rem; font-family: var(--mono); color: var(--text); background: rgba(10,14,10,0.85); padding: 2px 6px; border-radius: 5px; white-space: nowrap; border: 1px solid var(--line); }
.map-claim { position: absolute; border: 1.5px dashed rgba(255,150,220,0.6); background: rgba(255,150,220,0.08); border-radius: 6px; transform: translate(-50%, -50%); }
.map-spawn { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 1.5px solid var(--text-dim); transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.map-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.map-legend span { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--text-dim); }
.map-legend .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.map-legend .dot.player { background: var(--lime); box-shadow: 0 0 0 3px rgba(215,255,61,0.18); }
.map-legend .dot.claim { border-radius: 3px; border: 1.5px dashed rgba(255,150,220,0.7); background: rgba(255,150,220,0.1); }
.map-legend .dot.spawn { background: rgba(255,255,255,0.12); border: 1.5px solid var(--text-dim); }

/* ---------------- status / uptime ---------------- */
.uptime-grid { display: grid; grid-template-columns: repeat(45, 1fr); gap: 3px; margin: 14px 0 8px; }
.uptime-cell { aspect-ratio: 1; border-radius: 2px; background: rgba(215,255,61,0.7); }
.uptime-cell.down { background: var(--red); }
.uptime-cell.partial { background: #e6c15a; }
.uptime-labels { display: flex; justify-content: space-between; color: var(--text-dimmer); font-size: 0.72rem; font-family: var(--mono); }
.incident-row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.incident-row:last-child { border-bottom: none; padding-bottom: 0; }
.incident-row:first-child { padding-top: 0; }

/* ---------------- faq ---------------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 0.95rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--text-dim); flex-shrink: 0; font-weight: 400; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:hover { color: var(--lime); }
.faq-item p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.7; margin-top: 12px; }

/* ---------------- leaderboard ---------------- */
.leaderboard-row { display: flex; align-items: center; gap: 16px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; }
.leaderboard-row .rank-num { font-family: var(--display); font-weight: 900; font-size: 1.2rem; color: var(--text-dimmer); width: 34px; flex-shrink: 0; text-align: center; }
.leaderboard-row.top1 .rank-num { color: var(--lime); font-size: 1.5rem; }
.leaderboard-row.top2 .rank-num { color: #d6d6dc; font-size: 1.3rem; }
.leaderboard-row.top3 .rank-num { color: #d8a15c; font-size: 1.3rem; }
.leaderboard-row .lb-name { font-weight: 700; flex: 1; }
.leaderboard-row .lb-value { font-family: var(--mono); color: var(--lime); font-weight: 700; }
.lb-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.lb-tabs span { font-family: var(--display); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); cursor: pointer; }
.lb-tabs span.active { background: var(--lime); color: #16190a; border-color: var(--lime); }

/* ---------------- events / calendar ---------------- */
.event-card { display: flex; gap: 20px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: border-color 0.2s, transform 0.2s; }
.event-card:hover { border-color: var(--lime); transform: translateY(-2px); }
.event-date { flex-shrink: 0; width: 64px; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; }
.event-date .mon { font-family: var(--mono); font-size: 0.68rem; color: var(--lime); text-transform: uppercase; font-weight: 700; }
.event-date .day { font-family: var(--display); font-weight: 900; font-size: 1.4rem; }
.event-body h3 { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.event-body p { color: var(--text-dim); font-size: 0.86rem; }
.event-time { font-family: var(--mono); font-size: 0.76rem; color: var(--text-dim); margin-top: 6px; display: block; }

/* ---------------- OTP / 2FA code inputs ---------------- */
.otp-row { display: flex; gap: 10px; justify-content: center; margin: 10px 0 6px; }
.otp-row input { width: 46px; height: 54px; text-align: center; font-size: 1.3rem; font-family: var(--mono); font-weight: 700; padding: 0; }

/* ---------------- permission matrix ---------------- */
table.perm-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
table.perm-table th, table.perm-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
table.perm-table th { color: var(--text-dim); font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; text-align: center; }
table.perm-table th:first-child { text-align: left; }
table.perm-table td:not(:first-child) { text-align: center; }
table.perm-table td:first-child { font-weight: 600; }
.perm-check { width: 18px; height: 18px; accent-color: var(--lime); cursor: pointer; }

/* discord cta */
.discord-panel { max-width: 620px; margin: 0 auto; text-align: center; background: var(--bg-1); border: 1px solid var(--line); border-radius: 24px; padding: 48px 36px; }
.discord-panel .count { font-family: var(--display); font-weight: 900; font-size: 2.3rem; color: var(--lime); }
.discord-panel .lbl { color: var(--text-dim); margin: 8px 0 26px; }

/* footer */
footer.site-footer { border-top: 1px solid var(--line); padding: 56px 28px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; max-width: 1140px; margin: 0 auto; }
.footer-grid h4 { font-family: var(--display); font-weight: 700; font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--text-dim); font-size: 0.87rem; }
.footer-grid a:hover { color: var(--lime); }
.footer-bottom { max-width: 1140px; margin: 36px auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; color: var(--text-dim); font-size: 0.8rem; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: var(--text-dim); font-size: 0.8rem; }
.footer-legal a:hover { color: var(--lime); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 900px) {
  nav.main-nav { display: none; position: absolute; top: 68px; left: 12px; right: 12px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 18px; flex-direction: column; align-items: stretch; padding: 10px; gap: 4px; }
  nav.main-nav.open { display: flex; }
  .nav-dropdown, nav.main-nav > a { width: 100%; }
  .nav-dropdown > button { width: 100%; justify-content: space-between; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; border: none; box-shadow: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .nav-toggle { display: inline-block; }
  .nav-actions { display: none; }
  .nav-actions-mobile { display: flex !important; gap: 8px; padding: 10px 8px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
  .nav-actions-mobile .btn { flex: 1; justify-content: center; }
}

/* --- Forum: rich text + image attachments ---------------------------------
   Backend-only additions. The static mockup's forum pages show the same
   .editor-toolbar / .upload-dropzone markup, but with no real posting behind
   them there was never any actual formatted output or attachment to style.
   PostFormatter.php is what produces the tags these rules target. --------- */
.post-content code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-family: var(--mono); font-size: 0.85em; }
.post-content blockquote { border-left: 3px solid var(--lime); margin: 10px 0; padding: 2px 0 2px 14px; color: var(--text-dim); }
.post-content a { color: var(--lime); word-break: break-word; }
.post-content strong { color: var(--text); }

.post-attachments { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.attachment-thumb { display: block; width: 140px; height: 140px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); transition: border-color 0.2s; }
.attachment-thumb:hover { border-color: var(--lime); }
.attachment-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 480px) { .attachment-thumb { width: calc(50% - 5px); height: auto; aspect-ratio: 1; } }
