@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  --bg:        #0d0b08;
  --panel:     #1a1712;
  --panel2:    #22201a;
  --panel3:    #2a2820;
  --border:    #3d3828;
  --border2:   #524c38;
  --green:     #e0508a;
  --green-l:   #f072a8;
  --green-d:   #a01852;
  --gold:      #ffaa00;
  --gold-d:    #b87800;
  --red:       #cc2222;
  --blue:      #3399ee;
  --purple:    #9944ee;
  --text:      #f0ece4;
  --text-dim:  #a8a090;
  --text-dark: #4a4438;
  --pixel:     'Press Start 2P', monospace;
  --body:      'Segoe UI', system-ui, sans-serif;
  --glow-g:    none;
  --glow-gold: none;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--panel); }
::-webkit-scrollbar-thumb { background: var(--border2); }
::-webkit-scrollbar-thumb:hover { background: var(--green-d); }

/* ── DEV BANNER ── */
.dev-banner {
  background: var(--gold-d);
  color: #0d0b08;
  font-family: var(--pixel);
  font-size: 9px;
  text-align: center;
  padding: 10px 16px;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1001;
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.mc-nav {
  position: sticky; top: 0; z-index: 1000;
  background: #0d0d0d;
  border-bottom: 3px solid var(--green);
  height: 66px;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; flex-shrink: 0;
}

.nav-logo {
  width: 42px; height: 42px;
  object-fit: contain; image-rendering: pixelated;
  border: 2px solid var(--green);
  flex-shrink: 0;
}

.nav-title {
  font-family: var(--pixel); font-size: 12px;
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--gold-d);
  letter-spacing: 1px; white-space: nowrap;
}

.nav-links {
  display: flex; list-style: none; gap: 4px;
  position: absolute; left: 50%; transform: translateX(-50%);
}

.nav-links a {
  display: block; padding: 8px 14px;
  font-family: var(--pixel); font-size: 8px;
  color: var(--text-dim); text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.12s; letter-spacing: 0.5px;
}
.nav-links a:hover {
  color: var(--green-l); border-color: var(--green);
  background: rgba(212,79,134,0.08);
}
.nav-links a.active {
  color: var(--gold); border-color: var(--gold-d);
  background: rgba(255,170,0,0.07);
}

.nav-mobile-btn {
  display: none; background: none; border: 2px solid var(--border2);
  color: var(--text); padding: 6px 10px; cursor: pointer;
  font-family: var(--pixel); font-size: 10px;
}

/* Правая группа в навбаре */
.nav-right {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}

.nav-discord {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); padding: 6px;
  transition: color 0.15s; flex-shrink: 0;
}
.nav-discord:hover { color: #5865F2; }

/* Кнопка скачивания в навбаре */
.nav-dl-btn {
  flex-shrink: 0;
  font-size: 9px !important;
  padding: 8px 16px !important;
  animation: navBtnPulse 3s ease-in-out infinite;
}
@keyframes navBtnPulse {
  0%, 100% { box-shadow: inset 0 -4px 0 var(--green-d); }
  50%       { box-shadow: inset 0 -4px 0 var(--green-d), 0 0 14px rgba(224,80,138,0.35); }
}
@media (max-width: 700px) {
  .nav-dl-btn { display: none; }
}

/* ══════════════════════════════════════
   HERO + SLIDESHOW
══════════════════════════════════════ */
.hero {
  min-height: calc(100vh - 66px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  transition: opacity 0.5s;
}
.hero.has-slides::before { opacity: 0; }

/* Слои слайдшоу */
.hero-slides {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-slide.transitioning {
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.45) 60%,
    rgba(0,0,0,0.70) 100%
  );
  opacity: 0; transition: opacity 0.5s;
  pointer-events: none;
}
.hero.has-slides .hero-overlay { opacity: 1; }

/* Контент поверх слайдов */
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex: 1; width: 100%; padding: 60px 24px;
}

/* Точки-индикаторы */
.hero-indicators {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 8px; align-items: center;
}
.hero-dot {
  height: 8px; width: 8px;
  background: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.5);
  cursor: pointer; transition: all 0.25s;
}
.hero-dot.active {
  width: 22px; background: var(--green); border-color: var(--green-l);
}

.hero-banner-img {
  max-width: min(500px, 78vw);
  max-height: 160px;
  width: auto; height: auto;
  object-fit: contain;
  image-rendering: pixelated;
  margin-bottom: 32px;
  display: block;
}

/* HERO LOGO PLACEHOLDER — swap for <img> with your banner */
.hero-logo-placeholder {
  width: min(520px, 92vw); height: 130px;
  background: rgba(12,12,12,0.94);
  border: 3px solid var(--green);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin-bottom: 32px; position: relative;
  gap: 8px;
}
.hero-logo-placeholder::before {
  content: '[ LOGO PLACEHOLDER ]';
  position: absolute; top: 5px; left: 8px;
  font-family: var(--pixel); font-size: 6px;
  color: var(--green-d); opacity: 0.7;
}

/* Кнопки скачивания (Full + Lite) */
.dl-btns {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
}
.dl-lite-label {
  font-family: var(--pixel); font-size: 6px;
  color: var(--text-dark); text-align: right; margin-top: 2px;
}
.hero-logo-text {
  font-family: var(--pixel);
  font-size: clamp(16px, 3.5vw, 30px);
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--gold-d), 0 0 50px rgba(255,170,0,0.4);
  letter-spacing: 3px; line-height: 1.5; z-index: 1;
}
.hero-sub {
  font-family: var(--pixel); font-size: 9px;
  color: var(--text-dim); letter-spacing: 2px;
  margin-bottom: 36px;
}
.hero.has-slides .hero-sub { color: rgba(255,255,255,0.7); }

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
}

/* Сетка превью в админке */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.preview-item {
  position: relative; aspect-ratio: 16/9;
  background: var(--panel3); border: 2px solid var(--border);
  overflow: hidden;
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-item-del {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,0.7); border: 1px solid var(--red);
  color: #ff6666; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 10px;
  opacity: 0; transition: opacity 0.15s;
}
.preview-item:hover .preview-item-del { opacity: 1; }
.preview-empty {
  grid-column: 1/-1; text-align: center; padding: 24px;
  font-family: var(--pixel); font-size: 7px; color: var(--text-dark);
}

.hero-stats {
  display: flex; gap: 24px; flex-wrap: wrap;
  justify-content: center; margin-top: 64px;
}
.stat-box {
  text-align: center; padding: 20px 32px;
  background: var(--panel2); border: 2px solid var(--green-d);
  min-width: 130px;
}
.stat-val {
  display: block;
  font-family: var(--pixel); font-size: 20px;
  color: var(--green-l); text-shadow: 2px 2px 0 var(--green-d);
  margin-bottom: 10px; line-height: 1.3;
  white-space: nowrap;
}
.stat-lbl {
  font-family: var(--pixel); font-size: 9px;
  color: #ccc4b0; letter-spacing: 1px;
  white-space: nowrap;
}

/* ── SCROLL-TO-TOP ── */
#scrollTopBtn {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 44px; height: 44px;
  background: var(--green-d); border: 2px solid var(--green);
  color: var(--text); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
  font-family: var(--pixel);
  image-rendering: pixelated;
}
#scrollTopBtn.visible { opacity: 1; pointer-events: auto; }
#scrollTopBtn:hover { background: var(--green); }

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
.section {
  padding: 80px 32px;
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 1;
}
.section-header { text-align: center; margin-bottom: 52px; }

.section-title {
  font-family: var(--pixel);
  font-size: clamp(13px, 2vw, 20px);
  color: var(--gold); text-shadow: 2px 2px 0 var(--gold-d);
  letter-spacing: 2px; margin-bottom: 12px;
}
.section-sub { font-size: 14px; color: var(--text-dim); }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.mc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  font-family: var(--pixel); font-size: 10px; letter-spacing: 1px;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.1s; user-select: none; line-height: 1;
  white-space: nowrap;
}
.mc-btn-primary {
  background: var(--green); color: #fff;
  border-color: var(--green-l);
  box-shadow: inset 0 -4px 0 var(--green-d);
}
.mc-btn-primary:hover {
  background: var(--green-l);
  box-shadow: inset 0 -4px 0 var(--green);
}
.mc-btn-primary:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--green-d); }

.mc-btn-ghost {
  background: #2e2b22; color: var(--text);
  border-color: #625c48;
  box-shadow: inset 0 -3px 0 #0e0c09;
}
.mc-btn-ghost:hover { background: #3c3830; color: #fff; border-color: #857d62; box-shadow: inset 0 -3px 0 #161410; }

.mc-btn-gold {
  background: var(--gold-d); color: #fff;
  border-color: var(--gold);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.3);
}
.mc-btn-gold:hover { background: var(--gold); color: #000; box-shadow: inset 0 -4px 0 rgba(0,0,0,0.3); }

.mc-btn-danger {
  background: var(--red); color: #fff;
  border-color: #e03333;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.3);
}
.mc-btn-danger:hover { filter: brightness(1.2); }

.mc-btn-sm { padding: 8px 14px; font-size: 8px; }
.mc-btn-lg { padding: 17px 34px; font-size: 11px; }

/* ══════════════════════════════════════
   BADGES
══════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 8px;
  font-family: var(--pixel); font-size: 7px;
  border: 1px solid; letter-spacing: 0.5px;
}
.badge-green  { color: var(--green-l);  border-color: var(--green-d);  background: rgba(212,79,134,0.1); }
.badge-blue   { color: #88ccff;         border-color: #225588;         background: rgba(34,85,136,0.15); }
.badge-purple { color: #cc88ff;         border-color: #6633aa;         background: rgba(102,51,170,0.15); }
.badge-gold   { color: var(--gold);     border-color: var(--gold-d);   background: rgba(255,170,0,0.1); }
.badge-gray   { color: var(--text-dim); border-color: var(--border2);  background: rgba(255,255,255,0.04); }

/* ══════════════════════════════════════
   MODPACK GRID & CARDS
══════════════════════════════════════ */
.modpack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.modpack-card {
  background: var(--panel);
  border: 2px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.modpack-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.modpack-img {
  width: 100%; height: 185px; object-fit: cover;
  display: block; image-rendering: auto;
  border-bottom: 2px solid var(--border);
}

/* IMAGE PLACEHOLDER */
.modpack-img-ph {
  width: 100%; height: 185px;
  background: var(--panel2);
  border-bottom: 2px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
}
.modpack-img-ph-block {
  width: 64px; height: 64px;
  image-rendering: pixelated;
  background:
    linear-gradient(#5aad00 0 30%, #8B6914 30% 100%);
  border: 3px solid #222;
  box-shadow: inset 2px 2px rgba(255,255,255,0.15), inset -2px -2px rgba(0,0,0,0.3);
  position: relative;
}
.modpack-img-ph-block::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.07) 0 4px,
    transparent 4px 8px
  );
}
.modpack-img-ph-text {
  font-family: var(--pixel); font-size: 7px; color: var(--text-dark);
}

.modpack-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.modpack-name {
  font-family: var(--pixel); font-size: 11px;
  color: var(--gold); text-shadow: 1px 1px 0 var(--gold-d); line-height: 1.6;
}

.modpack-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.modpack-desc {
  font-size: 13px; color: var(--text-dim); line-height: 1.7; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

.modpack-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--panel2);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.modpack-meta { display: flex; flex-direction: column; gap: 5px; }
.modpack-meta-row {
  font-family: var(--pixel); font-size: 7px; color: var(--text-dim);
  display: flex; align-items: center; gap: 5px;
}
.modpack-meta-row .val { color: var(--text); }

/* ══════════════════════════════════════
   FEATURES
══════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--panel); border: 2px solid var(--border);
  padding: 30px 22px;
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--green-d); }

/* ICON PLACEHOLDER — replace with <img> or SVG */
.feature-icon {
  width: 60px; height: 60px;
  background: var(--panel2); border: 3px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; image-rendering: pixelated;
}
.feature-title {
  font-family: var(--pixel); font-size: 9px;
  color: var(--gold); line-height: 1.6;
}
.feature-text { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

/* ══════════════════════════════════════
   LOADING / EMPTY
══════════════════════════════════════ */
.mc-loading {
  grid-column: 1/-1; text-align: center; padding: 70px 0;
  font-family: var(--pixel); font-size: 10px; color: var(--text-dim);
}
.mc-empty {
  grid-column: 1/-1; text-align: center; padding: 70px 0;
}
.mc-empty-icon { font-size: 56px; margin-bottom: 16px; }
.mc-empty-title {
  font-family: var(--pixel); font-size: 13px; color: var(--text-dim); margin-bottom: 10px;
}
.mc-empty-text { font-size: 14px; color: var(--border2); }

/* ══════════════════════════════════════
   WIKI
══════════════════════════════════════ */
.wiki-wrap {
  display: grid; grid-template-columns: 230px 1fr;
  gap: 28px; max-width: 1200px; margin: 0 auto;
  padding: 40px 32px; position: relative; z-index: 1;
}
.wiki-sidebar {
  background: var(--panel); border: 2px solid var(--border);
  height: fit-content; position: sticky; top: 86px;
}
.wiki-sidebar-hd {
  padding: 14px 16px;
  background: var(--panel2); border-bottom: 2px solid var(--border);
  font-family: var(--pixel); font-size: 8px; color: var(--gold);
}
.wiki-search {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}
.wiki-search input {
  width: 100%; background: var(--panel2); border: 2px solid var(--border);
  color: var(--text); padding: 8px 10px;
  font-family: var(--pixel); font-size: 7px; outline: none;
}
.wiki-search input:focus { border-color: var(--green); }
.wiki-nav { list-style: none; padding: 8px; }
.wiki-nav li a {
  display: block; padding: 9px 12px;
  font-family: var(--pixel); font-size: 7px;
  color: var(--text-dim); text-decoration: none;
  border: 1px solid transparent; transition: all 0.12s; letter-spacing: 0.5px;
}
.wiki-nav li a:hover, .wiki-nav li a.active {
  color: var(--green-l); border-color: var(--green-d);
  background: rgba(212,79,134,0.08); padding-left: 18px;
}
.wiki-nav .wiki-cat {
  padding: 8px 12px 4px;
  font-family: var(--pixel); font-size: 6px; color: var(--text-dark);
  letter-spacing: 1px; text-transform: uppercase;
}

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

.wiki-article {
  background: var(--panel); border: 2px solid var(--border);
  padding: 32px; margin-bottom: 22px;
}
.wiki-article h1 {
  font-family: var(--pixel); font-size: 17px;
  color: var(--gold); text-shadow: 2px 2px 0 var(--gold-d);
  margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.wiki-article h2 {
  font-family: var(--pixel); font-size: 11px; color: var(--green-l);
  margin: 22px 0 10px;
}
.wiki-article h3 {
  font-family: var(--pixel); font-size: 8px; color: var(--text);
  margin: 16px 0 8px;
}
.wiki-article p { font-size: 14px; color: var(--text-dim); line-height: 1.8; margin-bottom: 14px; }
.wiki-article ul, .wiki-article ol { margin: 0 0 14px 22px; }
.wiki-article li { font-size: 14px; color: var(--text-dim); line-height: 1.8; margin-bottom: 3px; }
.wiki-article li::marker { color: var(--green); }
.wiki-article code {
  font-family: 'Consolas', monospace; font-size: 12px;
  background: var(--panel2); border: 1px solid var(--border2);
  padding: 2px 6px; color: var(--green-l);
}
.wiki-article pre {
  background: var(--panel2); border: 2px solid var(--border);
  padding: 16px; margin: 14px 0; overflow-x: auto;
}
.wiki-article pre code { background: none; border: none; padding: 0; font-size: 13px; }
.wiki-article table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.wiki-article th, .wiki-article td {
  padding: 10px 14px; border: 1px solid var(--border);
  text-align: left; color: var(--text-dim);
}
.wiki-article th { background: var(--panel2); color: var(--text); font-family: var(--pixel); font-size: 7px; }

.mc-info  { background: rgba(212,79,134,0.07); border: 2px solid var(--green-d); border-left: 4px solid var(--green); padding: 14px; margin: 14px 0; }
.mc-warn  { background: rgba(255,170,0,0.07); border: 2px solid var(--gold-d); border-left: 4px solid var(--gold); padding: 14px; margin: 14px 0; }
.mc-info p, .mc-warn p { margin: 0; font-size: 13px; color: var(--text); }
.mc-info-icon, .mc-warn-icon { font-size: 16px; margin-right: 6px; }

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.about-hero {
  text-align: center; padding: 80px 32px 48px;
  position: relative; z-index: 1;
}
.about-banner-ph {
  width: min(600px, 92vw); height: 160px;
  background: var(--panel2); border: 3px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 32px; position: relative;
  font-family: var(--pixel); font-size: 8px; color: var(--text-dark);
}
.about-banner-ph::before {
  content: '[ SERVER BANNER PLACEHOLDER ]';
  position: absolute; top: 5px; left: 8px;
  font-family: var(--pixel); font-size: 6px; color: var(--border2);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.team-card {
  background: var(--panel); border: 2px solid var(--border);
  padding: 28px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: border-color 0.2s;
}
.team-card:hover { border-color: var(--green-d); }

/* AVATAR PLACEHOLDER — swap for <img> */
.team-avatar {
  width: 72px; height: 72px;
  background: var(--panel2); border: 3px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; image-rendering: pixelated;
  position: relative;
}
.team-avatar::after {
  content: '[ AVA ]';
  position: absolute; bottom: -18px;
  font-family: var(--pixel); font-size: 5px; color: var(--text-dark);
  white-space: nowrap;
}

.team-name { font-family: var(--pixel); font-size: 9px; color: var(--gold); margin-top: 12px; }
.team-bio { font-size: 12px; color: var(--text-dim); line-height: 1.6; }

.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--panel); border: 2px solid var(--border); overflow: hidden;
}
.faq-q {
  width: 100%; padding: 16px 20px;
  background: none; border: none; cursor: pointer;
  text-align: left; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--pixel); font-size: 9px; color: var(--text);
  transition: color 0.15s; gap: 12px;
}
.faq-q:hover { color: var(--gold); }
.faq-arrow {
  font-size: 10px; transition: transform 0.2s; flex-shrink: 0; color: var(--text-dim);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--gold); }
.faq-a {
  padding: 0 20px; max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a { padding: 0 20px 16px; max-height: 600px; }
.faq-a p { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

/* ══════════════════════════════════════
   FORMS & INPUTS
══════════════════════════════════════ */
.mc-form-group { display: flex; flex-direction: column; gap: 7px; }

.mc-label {
  font-family: var(--pixel); font-size: 8px;
  color: var(--text-dim); letter-spacing: 1px;
}

.mc-input, .mc-select, .mc-textarea {
  background: var(--panel2); border: 2px solid var(--border);
  color: var(--text); padding: 11px 14px; outline: none;
  transition: border-color 0.15s; font-size: 13px;
}
.mc-input:focus, .mc-select:focus, .mc-textarea:focus { border-color: var(--green); }
.mc-input::placeholder { color: var(--text-dim); opacity: 0.5; }

.mc-input-pixel {
  font-family: var(--pixel); font-size: 9px;
}

.mc-select { appearance: none; cursor: pointer; }
.mc-textarea { resize: vertical; min-height: 90px; font-family: var(--body); }

.file-drop {
  border: 3px dashed var(--border2); padding: 36px;
  text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.file-drop:hover, .file-drop.over {
  border-color: var(--green); background: rgba(212,79,134,0.05);
}
.file-drop-icon { font-size: 44px; margin-bottom: 10px; }
.file-drop-text {
  font-family: var(--pixel); font-size: 7px;
  color: var(--text-dim); line-height: 2.2;
}
.file-drop-name {
  font-family: var(--pixel); font-size: 8px;
  color: var(--green-l); margin-top: 8px;
}

/* ══════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════ */
.admin-page {
  min-height: calc(100vh - 66px);
  position: relative; z-index: 1;
}

.admin-login-wrap {
  min-height: calc(100vh - 66px);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}
.admin-login-box {
  background: var(--panel); border: 2px solid var(--border);
  padding: 40px; width: 100%; max-width: 380px;
}
.admin-login-logo {
  text-align: center; margin-bottom: 28px;
}
.admin-login-title {
  font-family: var(--pixel); font-size: 13px;
  color: var(--gold); text-align: center; margin-bottom: 28px;
  text-shadow: 2px 2px 0 var(--gold-d); line-height: 1.6;
}
.admin-login-err {
  font-family: var(--pixel); font-size: 7px; color: #ff6666;
  text-align: center; margin-bottom: 14px; display: none;
}

.admin-dash { display: none; padding: 32px; max-width: 1200px; margin: 0 auto; }
.admin-dash-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; padding-bottom: 16px; border-bottom: 2px solid var(--border);
}
.admin-dash-title {
  font-family: var(--pixel); font-size: 15px; color: var(--gold);
}
.admin-layout {
  display: grid; grid-template-columns: 360px 1fr;
  gap: 24px; align-items: start;
}

.admin-card {
  background: var(--panel); border: 2px solid var(--border);
}
.admin-card-hd {
  padding: 14px 18px; background: var(--panel2); border-bottom: 2px solid var(--border);
  font-family: var(--pixel); font-size: 8px; color: var(--gold); letter-spacing: 1px;
}
.admin-card-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }

.admin-pack-list { display: flex; flex-direction: column; gap: 10px; }
.admin-pack-item {
  background: var(--panel2); border: 2px solid var(--border);
  padding: 14px; display: flex; gap: 14px; align-items: center;
  transition: border-color 0.15s;
}
.admin-pack-item:hover { border-color: var(--border2); }

/* MODPACK THUMBNAIL PLACEHOLDER */
.admin-pack-thumb {
  width: 80px; height: 60px; flex-shrink: 0;
  background: var(--panel3); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.admin-pack-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-pack-thumb-ph {
  width: 100%; height: 100%;
  background: linear-gradient(#5aad00 0 35%, #8B6914 35% 100%);
  opacity: 0.5;
}

.admin-pack-info { flex: 1; min-width: 0; }
.admin-pack-name { font-family: var(--pixel); font-size: 9px; color: var(--gold); margin-bottom: 5px; }
.admin-pack-meta { font-family: var(--pixel); font-size: 7px; color: var(--text-dim); line-height: 1.8; }
.admin-pack-actions { display: flex; gap: 6px; flex-shrink: 0; }

.admin-stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px;
}
.admin-stat {
  background: var(--panel); border: 2px solid var(--border);
  padding: 16px; text-align: center;
}
.admin-stat-val {
  font-family: var(--pixel); font-size: 18px; color: var(--green-l); margin-bottom: 6px;
}
.admin-stat-lbl { font-family: var(--pixel); font-size: 8px; color: var(--text-dim); }

.upload-progress { display: none; margin-top: 8px; }
.progress-bar { height: 8px; background: var(--panel2); border: 1px solid var(--border); overflow: hidden; }
.progress-fill {
  height: 100%; background: var(--green); width: 0%;
  transition: width 0.3s;
}
.progress-text { font-family: var(--pixel); font-size: 7px; color: var(--text-dim); margin-top: 6px; }

/* ══════════════════════════════════════
   ADMIN TABS
══════════════════════════════════════ */
.admin-tabs {
  display: flex; gap: 4px; margin-bottom: 24px; flex-wrap: wrap;
  border-bottom: 2px solid var(--border); padding-bottom: 0;
}
.admin-tab {
  background: var(--panel2); border: 2px solid var(--border);
  border-bottom: none; color: var(--text-dim); cursor: pointer;
  padding: 10px 16px; font-family: var(--pixel); font-size: 8px;
  letter-spacing: 0.5px; transition: all 0.12s;
  position: relative; bottom: -2px;
}
.admin-tab:hover { color: var(--text); border-color: var(--border2); }
.admin-tab.active {
  color: var(--gold); border-color: var(--gold-d);
  background: var(--panel); border-bottom-color: var(--panel);
}
.admin-tab-pane { display: none; }
.admin-tab-pane.active { display: block; }

/* ══════════════════════════════════════
   DOWNLOAD CARDS
══════════════════════════════════════ */
.dl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.dl-card {
  background: var(--panel); border: 2px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s;
}
.dl-card:hover {
  border-color: var(--green-d);
  box-shadow: 0 8px 28px rgba(212,79,134,0.12);
  transform: translateY(-3px);
}
.dl-card-lite { border-color: var(--border); }
.dl-card-lite:hover { border-color: var(--blue); box-shadow: 0 8px 28px rgba(51,153,238,0.10); }

.dl-card-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.dl-card-title {
  font-family: var(--pixel); font-size: 12px;
  color: var(--gold); text-shadow: 1px 1px 0 var(--gold-d);
  line-height: 1.6;
}
.dl-card-desc { font-size: 13px; color: var(--text-dim); line-height: 1.7; flex: 1; }
.dl-card-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--pixel); font-size: 7px; color: var(--text-dim);
}

/* ══════════════════════════════════════
   CHANGELOG GRID CARDS
══════════════════════════════════════ */
.cl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.cl-card {
  background: var(--panel); border: 2px solid var(--border);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.cl-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.25); }
.cl-card-hd {
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.cl-version {
  font-family: var(--pixel); font-size: 12px; color: var(--gold);
  text-shadow: 1px 1px 0 var(--gold-d);
}
.cl-date { font-family: var(--pixel); font-size: 7px; color: var(--text-dim); }

.cl-banner {
  width: 100%; aspect-ratio: 16 / 9;
  object-fit: cover; display: block;
  border-bottom: 2px solid var(--border);
  cursor: zoom-in;
}

.cl-notes {
  font-family: var(--body); font-size: 13px;
  color: var(--text-dim); line-height: 1.75;
  word-break: break-word;
  padding: 4px 16px 16px; margin: 0;
  border-top: 1px solid var(--border);
}

/* Pack description body */
.pack-desc-body { max-width: 820px; margin: 0 auto; }
.pack-desc-body p { font-size: 15px; color: var(--text-dim); line-height: 1.85; margin-bottom: 16px; }

/* ══════════════════════════════════════
   T1 — SECTION DESIGN (нижняя часть)
══════════════════════════════════════ */

/* Блок подключения с IP */
#connectSection {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
  border-top: 2px solid var(--green-d);
  border-bottom: 2px solid var(--green-d);
  position: relative; overflow: hidden; z-index: 1;
}
#connectSection::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(224,80,138,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,80,138,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.connect-inner {
  position: relative; z-index: 1;
  text-align: center; padding: 56px 24px;
}
.connect-eyebrow {
  font-family: var(--pixel); font-size: 7px;
  color: var(--text-dim); letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 20px;
}
.ip-box {
  display: inline-flex; align-items: center; gap: 18px;
  cursor: pointer;
  background: var(--panel2);
  border: 2px solid var(--green-d);
  padding: 18px 36px; margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ip-box:hover, .ip-box:focus {
  border-color: var(--green);
  box-shadow: 0 0 28px rgba(224,80,138,0.22);
  outline: none;
}
.ip-text {
  font-family: var(--pixel);
  font-size: clamp(10px, 2.6vw, 19px);
  color: var(--green-l);
  text-shadow: 0 0 24px rgba(224,80,138,0.45);
  letter-spacing: 1px; line-height: 1;
}
.ip-copy-icon {
  font-size: 18px; color: var(--text-dim); line-height: 1;
  transition: color 0.15s;
}
.ip-box:hover .ip-copy-icon { color: var(--green-l); }
.connect-hint {
  font-family: var(--pixel); font-size: 6px;
  color: var(--text-dim); margin-bottom: 32px;
}
.connect-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* Правила-аккордеон */
.rules-list { display: flex; flex-direction: column; gap: 6px; }
.rule-item {
  background: var(--panel2); border: 2px solid var(--border);
  overflow: hidden; transition: border-color 0.15s;
}
.rule-item.open { border-color: var(--green-d); }
.rule-q {
  width: 100%; padding: 14px 18px;
  background: none; border: none; cursor: pointer;
  text-align: left; display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--text);
  transition: background 0.12s;
}
.rule-q:hover { background: rgba(255,255,255,0.02); }
.rule-bullet {
  width: 8px; height: 8px; flex-shrink: 0;
  background: var(--green-d); border: 1px solid var(--green);
  display: inline-block;
  transition: background 0.15s;
}
.rule-item.open .rule-bullet { background: var(--green); }
.rule-arrow {
  margin-left: auto; font-size: 9px;
  color: var(--text-dim); flex-shrink: 0;
  transition: transform 0.2s;
}
.rule-item.open .rule-arrow { transform: rotate(180deg); color: var(--green-l); }
.rule-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.28s ease;
}
.rule-item.open .rule-body { max-height: 400px; }
.rule-body p {
  font-size: 13px; color: var(--text-dim); line-height: 1.7;
  padding: 0 18px 14px 38px; margin: 0;
  border-top: 1px solid var(--border);
}

/* Скачать — лёгкий пиксельный узор в bg */
#download {
  background:
    linear-gradient(rgba(212,79,134,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,79,134,0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  border-top: 2px solid var(--border);
}



/* История версий на главной */
#changelogSection {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}
.cl-section-title {
  font-family: var(--pixel); font-size: 10px;
  color: var(--gold); text-shadow: 1px 1px 0 var(--gold-d);
  letter-spacing: 1px; margin-bottom: 20px;
}

/* Баннер новостей — полноширинное изображение в карточке */
.news-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--border);
  cursor: pointer;
}

/* ══════════════════════════════════════
   NEWS CARDS
══════════════════════════════════════ */
#newsFeed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.news-card {
  background: var(--panel2);
  border: 2px solid var(--border);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.18s, box-shadow 0.18s;
}
.news-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.25); }

.news-card-hd {
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 5px;
}

.news-card-title {
  display: block;
  font-family: var(--pixel); font-size: 11px;
  color: var(--text); line-height: 1.6;
}
.news-card-date {
  display: block;
  font-family: var(--pixel); font-size: 6px;
  color: var(--text-dim); margin-top: 5px;
}


/* ══════════════════════════════════════
   T14 — ANIMATIONS & QoL
══════════════════════════════════════ */

/* Верхний progress bar при загрузке */
#pageLoader {
  position: fixed; top: 0; left: 0; width: 0; height: 3px;
  background: linear-gradient(90deg, var(--green-d), var(--green-l));
  z-index: 9999;
  transition: width 0.3s ease, opacity 0.4s;
  box-shadow: 0 0 8px var(--green);
}
#pageLoader.done { width: 100% !important; opacity: 0; }

/* Fade-in при появлении в viewport */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-el {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

/* Кнопки — press эффект */
.mc-btn:active { transform: scale(0.96); }

/* Skeleton-лоадер для карточек */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel2) 50%, var(--panel) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 0;
}
.skeleton-line {
  height: 12px; margin-bottom: 10px;
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel2) 50%, var(--panel) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite;
}

/* Section fade-in observer */
.section-animated {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.section-animated.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
  cursor: zoom-out; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 100%; max-height: 90vh; object-fit: contain;
  cursor: default; box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 28px; color: rgba(255,255,255,0.7); cursor: pointer;
  line-height: 1; user-select: none;
}
.lightbox-close:hover { color: #fff; }

/* news banner zoom hint */
.news-banner { cursor: zoom-in; }

/* ══════════════════════════════════════
   NEWS MODAL
══════════════════════════════════════ */
.news-modal {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.75);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.news-modal.open { display: flex; }
.news-modal-inner {
  background: var(--panel); border: 2px solid var(--border2);
  width: 100%; max-width: 620px; max-height: 85vh;
  overflow-y: auto; position: relative;
}
.news-modal-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px 0 0;
  background: rgba(0,0,0,0.5); border: none; color: rgba(255,255,255,0.8);
  font-size: 16px; width: 30px; height: 30px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.news-modal-close:hover { color: #fff; background: rgba(255,255,255,0.12); }
.news-modal-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  display: block; cursor: zoom-in;
  border-bottom: 2px solid var(--border);
}
.news-modal-body { padding: 20px 24px 28px; clear: both; }
.news-modal-title {
  font-family: var(--pixel); font-size: 13px;
  color: var(--text); line-height: 1.6; margin-bottom: 8px;
}
.news-modal-date {
  font-family: var(--pixel); font-size: 7px;
  color: var(--text-dim); margin-bottom: 18px;
}
.news-modal-text { font-size: 14px; color: var(--text-dim); line-height: 1.8; }

/* news card clickable */
.news-card { cursor: pointer; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.mc-footer {
  background: var(--panel); border-top: 3px solid var(--green);
  padding: 48px 32px; text-align: center;
  position: relative; z-index: 1; margin-top: 80px;
}

.footer-logo-ph {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.footer-logo-icon {
  width: 34px; height: 34px;
  object-fit: contain; image-rendering: pixelated;
  border: 2px solid var(--green);
  flex-shrink: 0;
}
.footer-logo-text {
  font-family: var(--pixel); font-size: 12px;
  color: var(--gold); text-shadow: 1px 1px 0 var(--gold-d);
}

.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; margin-bottom: 22px; }
.footer-links a {
  font-family: var(--pixel); font-size: 7px; color: var(--text-dim);
  text-decoration: none; transition: color 0.15s;
}
.footer-links a:hover { color: var(--green-l); }

.footer-copy { font-family: var(--pixel); font-size: 6px; color: var(--text-dark); letter-spacing: 1px; }

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.toast-wrap {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--panel); border: 2px solid var(--border);
  padding: 13px 18px; min-width: 240px;
  font-family: var(--pixel); font-size: 8px; letter-spacing: 0.5px;
  animation: toastIn 0.2s ease; pointer-events: auto;
}
.toast-ok  { border-left: 4px solid var(--green); color: var(--green-l); }
.toast-err { border-left: 4px solid var(--red);   color: #ff7777; }
.toast-inf { border-left: 4px solid var(--blue);  color: #88ccff; }

@keyframes toastIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ══════════════════════════════════════
   UTILITIES
══════════════════════════════════════ */
.mc-sep { border: none; border-top: 2px solid var(--border); margin: 24px 0; }
.full-width { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green-l); }
.text-dim    { color: var(--text-dim); }
.hidden      { display: none !important; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .wiki-wrap { grid-template-columns: 1fr; }
  .wiki-sidebar { position: static; }
}

/* Сетка "О сервере" */
.about-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 48px;
}
@media (max-width: 600px) {
  .about-info-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

@media (max-width: 700px) {
  .mc-nav { padding: 0 14px; }
  .nav-title { font-size: 9px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; transform: none; background: rgba(8,8,8,0.98); border-bottom: 2px solid var(--green); padding: 12px; gap: 2px; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-mobile-btn { display: block; }
  .section { padding: 48px 16px; }
  .hero-stats { gap: 12px; }
  .stat-box { padding: 14px 18px; }
  .admin-stats-row { grid-template-columns: 1fr 1fr; }
  .hero-logo-text { font-size: 15px; }
  .mc-footer { padding: 36px 16px; }
  .wiki-wrap, .admin-dash { padding: 24px 16px; }
  .dl-cards { grid-template-columns: 1fr; }
  .admin-tabs { gap: 2px; }
  .admin-tab { padding: 8px 10px; font-size: 6px; }
}

/* ══════════════════════════════════════
   NAV SERVER DOT
══════════════════════════════════════ */
.nav-server-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--text-dark);
  border: 2px solid var(--border2);
  flex-shrink: 0;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.nav-server-dot.online {
  background: #44dd66;
  border-color: #22aa44;
  box-shadow: 0 0 6px rgba(68,221,102,0.6);
}
.nav-server-dot.offline {
  background: var(--red);
  border-color: #991111;
}

/* ══════════════════════════════════════
   WIKI ANCHOR LINKS
══════════════════════════════════════ */
.wiki-anchor {
  font-size: 0.65em;
  color: var(--text-dark);
  text-decoration: none;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
  vertical-align: middle;
}
.wiki-article h1:hover .wiki-anchor,
.wiki-article h2:hover .wiki-anchor { opacity: 1; color: var(--green-l); }

/* ══════════════════════════════════════
   ADMIN CONFIRM MODAL
══════════════════════════════════════ */
.admin-confirm-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.75);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.admin-confirm-modal.open { display: flex; }
.admin-confirm-box {
  background: var(--panel); border: 2px solid var(--border2);
  padding: 28px 32px; width: 100%; max-width: 420px;
}
.admin-confirm-msg {
  font-family: var(--pixel); font-size: 9px;
  color: var(--text); line-height: 1.8;
  margin-bottom: 22px;
}
.admin-confirm-btns { display: flex; gap: 10px; justify-content: flex-end; }

/* ══════════════════════════════════════
   MARKDOWN TOOLBAR
══════════════════════════════════════ */
.md-toolbar {
  display: flex; gap: 2px; flex-wrap: wrap;
  background: var(--panel2); border: 2px solid var(--border2); border-bottom: none;
  padding: 4px 6px;
  border-top-left-radius: 4px; border-top-right-radius: 4px;
}
.md-btn {
  background: transparent; border: 1px solid transparent; color: var(--text-dim);
  font-size: 12px; font-family: var(--body); padding: 2px 7px; cursor: pointer;
  border-radius: 3px; line-height: 1.6; min-width: 26px; text-align: center;
  transition: background 0.15s, color 0.15s;
}
.md-btn:hover { background: var(--green-d); color: var(--green-l); border-color: var(--green-d); }
.md-btn b  { font-weight: 700; }
.md-btn i  { font-style: italic; }

/* ══════════════════════════════════════
   CHAR COUNTER
══════════════════════════════════════ */
.char-counter {
  font-family: var(--body); font-size: 11px;
  color: var(--text-dim); transition: color 0.2s;
  white-space: nowrap; flex-shrink: 0;
}

/* ══════════════════════════════════════
   RENDERED MARKDOWN (.md-content)
══════════════════════════════════════ */
.md-content { white-space: normal; }
.md-content .md-h1 {
  display: block; font-weight: 700;
  color: var(--text); font-size: 17px;
  margin-top: 14px; margin-bottom: 4px;
}
.md-content .md-h2 {
  display: block; font-weight: 700;
  color: var(--text); font-size: 14px;
  margin-top: 10px; margin-bottom: 2px;
}
.md-content .md-h3 {
  display: block; font-weight: 700;
  color: var(--text-dim); font-size: 13px;
  margin-top: 8px; margin-bottom: 2px;
}
.md-content .md-quote {
  border-left: 3px solid var(--border2);
  padding: 4px 12px; margin: 6px 0;
  color: var(--text-dim); font-style: italic;
}
.md-content .md-olist {
  margin: 4px 0 4px 20px; padding: 0; list-style: decimal;
}
.md-content .md-olist li { margin-bottom: 2px; }
.md-content .md-pre {
  background: var(--panel2); border: 1px solid var(--border2);
  border-radius: 4px; padding: 10px 14px; margin: 8px 0;
  overflow-x: auto; white-space: pre;
}
.md-content .md-pre code {
  font-family: monospace; font-size: 12px;
  color: var(--text-dim); background: none; padding: 0;
}
.md-content .md-list {
  margin: 4px 0 4px 18px; padding: 0; list-style: disc;
}
.md-content .md-list li { margin-bottom: 2px; }
.md-content .md-hr {
  border: none; border-top: 1px solid var(--border2); margin: 8px 0;
}
.md-content .md-code {
  background: var(--panel2); padding: 1px 5px;
  border-radius: 3px; font-family: monospace; font-size: 0.88em;
}
.md-content a { color: var(--green-l); }
.md-content a:hover { text-decoration: underline; }

/* changelog notes: override pre whitespace */
.cl-notes.md-content { white-space: normal; }

/* ══════════════════════════════════════
   NEWS PREVIEW MODAL markdown
══════════════════════════════════════ */
#newsPreviewText.md-content { font-size: 14px; line-height: 1.75; }

/* ══════════════════════════════════════
   ADMIN SKELETON LOADING
══════════════════════════════════════ */
@keyframes admin-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.admin-skel-wrap { padding: 8px 0; }
.admin-skel-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.admin-skel-row:last-child { border-bottom: none; }
.admin-skel-line, .admin-skel-badge {
  height: 10px; border-radius: 3px;
  background: linear-gradient(90deg, var(--panel2) 25%, var(--panel3) 50%, var(--panel2) 75%);
  background-size: 800px 100%;
  animation: admin-shimmer 1.4s infinite linear;
}
.admin-skel-line { flex: 1; }
.admin-skel-badge { width: 48px; height: 18px; flex-shrink: 0; border-radius: 2px; }

/* ══════════════════════════════════════
   ACTIVITY LOGS TABLE
══════════════════════════════════════ */
.log-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.log-table th {
  font-family: var(--pixel); font-size: 7px; color: var(--text-dim);
  padding: 8px 12px; border-bottom: 2px solid var(--border2);
  text-align: left; white-space: nowrap;
}
.log-table td {
  padding: 7px 12px; border-bottom: 1px solid var(--border);
  vertical-align: top; color: var(--text-dim);
  font-family: var(--body); word-break: break-word;
}
.log-table tr:last-child td { border-bottom: none; }
.log-table tr:hover td { background: var(--panel2); }
.log-lvl {
  display: inline-block; font-family: var(--pixel);
  font-size: 6px; padding: 2px 5px; border-radius: 2px;
  white-space: nowrap;
}
.log-lvl-info  { background: rgba(51,153,238,0.15); color: var(--blue); }
.log-lvl-warn  { background: rgba(255,170,0,0.15);  color: var(--gold); }
.log-lvl-error { background: rgba(204,34,34,0.15);  color: var(--red);  }
.log-ts { font-family: monospace; font-size: 11px; white-space: nowrap; }
.log-cat { font-family: var(--pixel); font-size: 6px; color: var(--text-dark); white-space: nowrap; }
