/* ═══════════════════════════════════════
   TOKENS — Material Design 3 (M3) Dark Theme
 ═══════════════════════════════════════ */
:root {
  /* Surface elevation levels — глубокий благородный обсидианово-тёмный без болотного перегруза */
  --surface-0: #08090a;
  --surface-1: #0e1012;
  --surface-2: #14171a;
  --surface-3: #1b2024;
  --surface-4: #23292e;

  /* Outlines & Borders — тонкие нейтральные тёмные рамки */
  --outline: #1c2227;
  --outline-variant: #283038;

  /* Text — чистый контрастный белый и благородный нейтральный серебристый сланец */
  --on-surface: #f1f5f9;
  --on-surface-variant: #94a3b8;
  --on-surface-dim: #64748b;

  /* Accent — сочный чистый изумрудный неон / фирменный ламповый зеленый */
  --primary: #4ade80;
  --primary-container: rgba(74, 222, 128, 0.08);
  --on-primary: #051409;
  --on-primary-container: #86efac;

  /* Status */
  --success: #4ade80;
  --warning: #fbbf24;
  --error: #f87171;

  /* Typography */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;

  /* M3 Elevations */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.45);
  --shadow-float: 0 8px 28px rgba(0, 0, 0, 0.6);

  /* Harmonious Shape System */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 12px;
  --radius-pill: 8px;
  --radius-full: 8px;
}

/* ═══════════════════════════════════════
   RESET
═══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════
   КАСТОМНЫЙ СКРОЛЛБАР
═══════════════════════════════════════ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface-0);
}

::-webkit-scrollbar-thumb {
  background-color: var(--surface-4);
  border-radius: var(--radius-full);
  border: 2px solid var(--surface-0);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-4) var(--surface-0);
}

body {
  background-color: var(--surface-0);
  color: var(--on-surface);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.scroll-locked {
  overflow: hidden !important;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ═══════════════════════════════════════
   CONTAINER — Центральная сетка
═══════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ═══════════════════════════════════════
   HEADER — Material Top App Bar
═══════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  padding: 0;
  display: flex;
  align-items: center;
  background: rgba(16, 18, 17, 0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--outline);
  transition: background-color 0.2s;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 800;
  color: var(--on-surface);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.9;
}

.logo span {
  color: var(--primary);
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--on-surface-variant);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.nav a:hover {
  color: var(--on-surface);
  background-color: rgba(255, 255, 255, 0.06);
}

.nav a.active {
  color: var(--on-primary-container);
  background-color: var(--primary-container);
  font-weight: 600;
}

/* Кнопка входа — Material Filled Pill Button */
.btn-login {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--on-primary);
  background-color: var(--primary);
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.btn-login:hover {
  filter: brightness(1.1);
  box-shadow: none !important;
}

/* ═══════════════════════════════════════
   BURGER BUTTON & MOBILE DRAWER NAVIGATION
═══════════════════════════════════════ */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: none !important;
}

.burger-btn:hover {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.35);
}

.burger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--on-surface);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 86vw;
  background: rgba(10, 13, 11, 0.98);
  border-left: 1px solid var(--outline);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.7);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 20px 24px;
  overflow-y: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}

.mobile-logo {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 800;
  color: var(--on-surface);
  letter-spacing: 0.5px;
}

.mobile-logo span {
  color: var(--primary);
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  color: var(--on-surface-variant);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s ease;
}

.mobile-drawer-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}

.mobile-nav-link:hover {
  color: var(--on-surface);
  background: rgba(74, 222, 128, 0.05);
}

.mobile-nav-link.active {
  color: var(--primary);
  background: rgba(74, 222, 128, 0.12);
  border-left-color: var(--primary);
  font-weight: 700;
}

.mobile-drawer-footer {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════
   HERO — Главный экран (Material Design 3)
═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  padding: 48px 0 56px;
  display: flex;
  align-items: center;
  background-color: var(--surface-0);
  overflow: hidden;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Левая колонка контента */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
}

/* M3 Category Badge */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(14, 16, 18, 0.85);
  border: 1px solid var(--outline);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.12;
  color: var(--on-surface);
  margin-bottom: 16px;
  letter-spacing: -0.8px;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  margin-bottom: 28px;
  max-width: 540px;
}

/* M3 Action Buttons Row */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  user-select: none;
}

.btn-icon {
  flex-shrink: 0;
}

/* M3 Filled Button */
.btn-filled {
  background-color: var(--primary);
  color: var(--on-primary);
  border: 1px solid var(--primary);
}

.btn-filled:hover {
  filter: brightness(1.1);
  border-color: #86efac;
  box-shadow: none;
}

/* M3 Tonal / Outlined Button */
.btn-tonal {
  background-color: var(--surface-2);
  color: var(--on-surface);
  border: 1px solid var(--outline);
}

.btn-tonal:hover {
  background-color: var(--surface-3);
  border-color: rgba(74, 222, 128, 0.5);
  color: #ffffff;
  box-shadow: none;
}/* M3 Status Chip */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--on-surface);
  background: rgba(22, 24, 23, 0.85);
  border: 1px solid var(--outline);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.status-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
  flex-shrink: 0;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1;  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }
  50% { opacity: 0.5;  box-shadow: 0 0 3px rgba(74, 222, 128, 0.25); }
}

/* ═══════════════════════════════════════
   АРТ ПЕПЕ — Правая часть экрана
═══════════════════════════════════════ */
.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 64%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  background-color: var(--surface-0);
}

.hero-art video,
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.68) contrast(1.08);
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 10%,
    rgba(0, 0, 0, 0.35) 24%,
    rgba(0, 0, 0, 0.72) 42%,
    #000 64%
  );
  mask-image: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 10%,
    rgba(0, 0, 0, 0.35) 24%,
    rgba(0, 0, 0, 0.72) 42%,
    #000 64%
  );
}

/* Мягкий многоточечный градиент слева (плавная кривая Безье без резких полос) */
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg,
    var(--surface-0) 0%,
    rgba(8, 9, 10, 0.98) 8%,
    rgba(8, 9, 10, 0.92) 16%,
    rgba(8, 9, 10, 0.82) 25%,
    rgba(8, 9, 10, 0.68) 35%,
    rgba(8, 9, 10, 0.52) 46%,
    rgba(8, 9, 10, 0.36) 58%,
    rgba(8, 9, 10, 0.22) 70%,
    rgba(8, 9, 10, 0.10) 82%,
    rgba(8, 9, 10, 0.03) 92%,
    transparent 100%
  );
  pointer-events: none;
}

/* Плавное растворение снизу */
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg,
    var(--surface-0) 0%,
    rgba(8, 9, 10, 0.96) 6%,
    rgba(8, 9, 10, 0.82) 14%,
    rgba(8, 9, 10, 0.58) 22%,
    rgba(8, 9, 10, 0.32) 32%,
    rgba(8, 9, 10, 0.12) 44%,
    transparent 60%
  );
  pointer-events: none;
}

/* ═══════════════════════════════════════
   ЧАТИКС ОНЛАЙН (Интерактивный live-чат)
═══════════════════════════════════════ */
.chatix-panel {
  background: rgba(22, 24, 23, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.chatix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--outline-variant);
}

.chatix-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chatix-header-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.chatix-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--on-surface);
}

.chatix-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--on-surface-variant);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--outline-variant);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.chatix-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Область сообщений */
.chatix-messages {
  max-height: 175px;
  min-height: 150px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.chatix-drawer-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  background: rgba(28, 30, 29, 0.55);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  transition: background 0.15s;
}

.chatix-drawer-msg:hover {
  background: rgba(35, 37, 36, 0.85);
}

.chatix-msg-author {
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.chatix-msg-author.author-admin {
  color: var(--primary);
}

.chatix-msg-author.author-user {
  color: #79a6d2;
}

.chatix-msg-author.author-guest {
  color: var(--warning);
}

.chatix-msg-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: rgba(74, 222, 128, 0.18);
  color: var(--primary);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 1px 5px;
  border-radius: var(--radius-xs);
  margin-left: 4px;
  vertical-align: middle;
}

.chatix-msg-text {
  color: var(--on-surface);
  word-break: break-word;
  flex: 1;
}

.chatix-msg-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--on-surface-dim);
  margin-left: auto;
  padding-left: 6px;
  flex-shrink: 0;
  align-self: center;
}

/* Форма отправки сообщения в мобильной шторке */
.drawer-chat .chatix-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.drawer-chat .chatix-input {
  flex: 1;
  background: rgba(16, 18, 17, 0.9);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-full);
  padding: 9px 16px;
  color: var(--on-surface);
  font-family: var(--font-ui);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.drawer-chat .chatix-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

.drawer-chat .chatix-input::placeholder {
  color: var(--on-surface-dim);
}

.drawer-chat .chatix-send-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.15s, opacity 0.15s;
}

.drawer-chat .chatix-send-btn:hover {
  filter: brightness(1.1);
}
.copy-icon {
  width: 17px;
  height: 17px;
}

/* ═══════════════════════════════════════
   DIVIDER — Секционный разделитель
═══════════════════════════════════════ */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--outline), transparent);
}

/* ═══════════════════════════════════════
   BIO & ДОСЬЕ РАЗРАБОТЧИКА (ENGINEERING PROFILE)
═══════════════════════════════════════ */
.bio-section {
  background-color: var(--surface-0);
  padding: 36px 0;
}

.bio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .bio-grid {
    grid-template-columns: 1fr;
  }
}

.bio-card {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bio-card:hover {
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: none;
}

.bio-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--outline);
}

.bio-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: -0.01em;
}

.bio-header-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-container);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Карточка 1: Профиль */
.bio-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bio-avatar-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.bio-avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 2px solid var(--primary);
  object-fit: cover;
}

.bio-avatar-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: var(--success);
  border: 2px solid var(--surface-1);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}

.bio-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bio-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bio-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--on-surface);
  letter-spacing: -0.3px;
}

.bio-role-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--primary-container);
  color: var(--primary);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.bio-tagline {
  font-size: 12px;
  color: var(--on-surface-variant);
  font-weight: 500;
}

.bio-desc {
  font-size: 13.5px;
  color: var(--on-surface-variant);
  line-height: 1.55;
}

.bio-spec-list {
  background: var(--surface-2);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.bio-spec-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bio-spec-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--on-surface-dim);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.bio-spec-val {
  font-size: 13px;
  color: var(--on-surface);
  font-weight: 500;
}

.bio-spec-val.highlight {
  color: var(--primary);
  font-weight: 600;
}

/* Карточка 2: Стек Matrix */
.bio-tech-matrix {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bio-matrix-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.matrix-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--on-surface);
}

.matrix-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Карточка 3: Инфраструктура */
.infra-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 600px) {
  .infra-stats-grid {
    grid-template-columns: 1fr;
  }
}

.infra-stat-item {
  background: var(--surface-2);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.infra-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-surface-dim);
  text-transform: uppercase;
}

.infra-stat-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
}

/* Карточка 4: Контакты */
.bio-contacts-desc {
  font-size: 13.5px;
  color: var(--on-surface-variant);
  line-height: 1.5;
}

.bio-contacts-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.contact-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  color: var(--on-surface);
  text-decoration: none;
  transition: all 0.18s ease;
}

.contact-action-btn:hover {
  background: var(--surface-3);
  border-color: var(--primary);
  
}

.contact-action-btn.contact-tg svg {
  color: #38a5e0;
}

.contact-action-btn.contact-discord svg {
  color: #5865f2;
}

.contact-btn-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.contact-btn-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface);
}

.contact-btn-sub {
  font-size: 12px;
  color: var(--on-surface-variant);
}

.contact-btn-arrow {
  font-size: 14px;
  color: var(--on-surface-dim);
  transition: color 0.18s ease;
}

.contact-action-btn:hover .contact-btn-arrow {
  color: var(--primary);
  
}

/* ═══════════════════════════════════════
   НОВОСТИ & ОБНОВЛЕНИЯ (Material Design 3 Cards)
═══════════════════════════════════════ */
.news-section {
  background-color: var(--surface-1);
  padding: 64px 0 72px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-create-devlog {
  padding: 8px 18px;
  font-size: 13px;
}

/* Форма добавления девлога в админке */
.admin-devlog-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-form-row {
  display: flex;
  gap: 16px;
}

.admin-form-row .flex-2 { flex: 2; }
.admin-form-row .flex-1 { flex: 1; }

.admin-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface-3);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  color: var(--on-surface);
  font-family: var(--font-ui);
  font-size: 13px;
  outline: none;
}

.admin-select:focus {
  border-color: var(--primary);
}

.admin-devlog-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface-3);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  color: var(--on-surface);
  font-family: var(--font-ui);
  font-size: 13px;
  outline: none;
  resize: vertical;
}

.admin-devlog-form textarea:focus {
  border-color: var(--primary);
}

.code-textarea {
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  line-height: 1.5;
  background: #090a09 !important;
  color: #a7f391 !important;
}

.screenshot-picker-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.screenshot-picker-row input {
  width: 100%;
  padding: 9px 14px;
  background: var(--surface-3);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  color: var(--on-surface);
  font-size: 13px;
}

.admin-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--primary);
  background: rgba(74, 222, 128, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--on-surface);
  text-transform: uppercase;
}

.section-link-btn {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.section-link-btn:hover {
  background: rgba(74, 222, 128, 0.14);
  
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* M3 Elevated News Card */
.news-card {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  display: flex;
  flex-direction: column;
  box-shadow: none;
  cursor: pointer;
}

.news-card:hover {
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: none;
  background: var(--surface-2);
}

.news-thumb {
  width: 100%;
  height: 180px;
  background: var(--surface-3);
  position: relative;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}



.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  line-height: 1.2;
}

.news-thumb .news-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.tag-patch {
  background: rgba(74, 222, 128, 0.15) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(74, 222, 128, 0.4) !important;
}

.tag-event {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
}

.tag-alert {
  background: rgba(248, 113, 113, 0.15) !important;
  color: #f87171 !important;
  border: 1px solid rgba(248, 113, 113, 0.4) !important;
}

.tag-wip {
  background: rgba(251, 191, 36, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
}

.news-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--on-surface-dim);
  margin-bottom: 8px;
}

.news-body h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--on-surface);
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}

.news-body .news-desc {
  font-size: 13px;
  color: var(--on-surface-variant);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}

.news-footer-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}



/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--outline);
  padding: 22px 0;
  background: var(--surface-0);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social-link {
  color: var(--on-surface-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.footer-social-link:hover {
  color: var(--on-surface);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-copy {
  font-size: 13px;
  color: var(--on-surface-dim);
}

.footer-frogs {
  height: 20px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-frogs:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════
   TOAST (Copy IP Notification)
═══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-4);
  color: var(--on-surface);
  border: 1px solid var(--outline-variant);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: var(--shadow-float);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════
   RESPONSIVE DESIGN
═══════════════════════════════════════ */
@media (max-width: 960px) {
  .container {
    padding: 0 20px;
  }

  .nav {
    gap: 2px;
  }

  .nav a {
    padding: 6px 10px;
    font-size: 12px;
  }

  .hero {
    padding: 88px 0 48px;
    min-height: auto;
  }

  .hero-art {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0.16;
    z-index: 0;
  }

  .hero-art::before {
    background: linear-gradient(180deg,
      rgba(8, 9, 10, 0.88) 0%,
      rgba(8, 9, 10, 0.65) 100%
    );
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 30px;
  }

  .servers-panel {
    max-width: 100%;
  }

  .news-section {
    padding: 36px 0 40px;
  }

  .news-grid,
  .bio-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-row {
    flex-direction: column;
    gap: 12px;
  }

  .footer-container {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

/* ═══════════════════════════════════════
   HEADER — доп. элементы (профиль, бургер)
═══════════════════════════════════════ */

.btn-header-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--surface-2);
  color: var(--on-surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-header-action:hover {
  background: var(--primary-container);
  color: var(--on-primary-container);
  border-color: var(--primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Кнопка Войти в шапке */
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  background: var(--surface-2);
  color: var(--primary);
  border: 1px solid rgba(74, 222, 128, 0.45);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-login:hover {
  background: var(--primary);
  color: #141c10;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.35);
}

/* Бейдж авторизованного профиля в шапке */
.user-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-container);
  border: 1px solid rgba(74, 222, 128, 0.45);
  padding: 4px 10px 4px 10px;
  border-radius: var(--radius-sm);
}

.user-status-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.85);
}

.user-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #a4c98e;
}

.user-role-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  background: var(--primary);
  color: #141c10;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.btn-header-admin {
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  color: var(--on-surface-variant);
  background: var(--surface-3);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--outline);
  transition: all 0.15s;
}

.btn-header-admin:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--surface-4);
}

.btn-quick-devlog {
  font-size: 11px;
  font-weight: 700;
  background: var(--primary);
  color: #141c10;
  padding: 3px 8px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-quick-devlog:hover {
  opacity: 0.85;
}

.btn-logout {
  background: transparent;
  border: none;
  color: var(--on-surface-dim);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
  transition: color 0.18s;
  display: flex;
  align-items: center;
}

.btn-logout:hover {
  color: var(--error);
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

.burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--on-surface-variant);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.burger-btn[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
.burger-btn[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════
   МОБИЛЬНОЕ МЕНЮ (drawer)
═══════════════════════════════════════ */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: min(300px, 85vw);
  height: 100vh;
  z-index: 1000;
  visibility: hidden;
  transition: right 0.28s ease, visibility 0s linear 0.28s;
}

.mobile-drawer.open {
  right: 0;
  visibility: visible;
  transition: right 0.28s ease, visibility 0s;
}

.mobile-drawer-content {
  background: var(--surface-2);
  border-left: 1px solid var(--outline-variant);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px;
  box-shadow: var(--shadow-float);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--outline);
}

.mobile-logo {
  font-size: 20px;
  font-weight: 800;
}

.mobile-logo span { color: var(--primary); }

.mobile-drawer-close {
  background: transparent;
  border: none;
  color: var(--on-surface-variant);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.mobile-user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-container);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 16px;
}

.mobile-user-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #a4c98e;
  flex: 1;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: auto;
}

.mobile-nav-link {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--on-surface-variant);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s, color 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary);
  background: var(--primary-container);
  border-left: 3px solid var(--primary);
}

.mobile-drawer-footer {
  padding-top: 16px;
  border-top: 1px solid var(--outline);
}

.mobile-login-btn { width: 100%; justify-content: center; }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}

.mobile-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════
   НОВОСТИ — теги, мета, ссылки
═══════════════════════════════════════ */
.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-container);
  border: 1px solid rgba(74, 222, 128, 0.4);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.section-link-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  transition: opacity 0.2s;
}

.section-link-btn:hover { opacity: 0.75; }

.news-thumb .news-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: #141c10;
}

.news-thumb { position: relative; }

.news-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.news-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-surface-dim);
}

.news-reading-time {
  font-size: 10px;
  color: var(--on-surface-dim);
  background: var(--surface-3);
  padding: 2px 8px;
  border-radius: 10px;
}

.news-footer-link {
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

/* ═══════════════════════════════════════
   МОДАЛЬНЫЕ ОКНА
═══════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 10, 9, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 460px;
  max-height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-float);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.2, 0, 0, 1);
  overflow: hidden;
  margin: auto;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-card-lg { max-width: 760px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--outline-variant);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.modal-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--primary);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-header .news-tag { position: static; flex-shrink: 0; }

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--on-surface-variant);
  font-size: 18px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  color: var(--on-surface);
  background: rgba(255, 255, 255, 0.08);
}

.modal-body {
  padding: 22px 24px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-desc {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.55;
  margin-bottom: 20px;
}

.login-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--on-surface-variant);
}

.form-group input {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--on-surface);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

.btn-submit-login { justify-content: center; margin-top: 6px; border-radius: var(--radius-md); }

.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--on-surface-dim);
  font-size: 11px;
}

.modal-divider::before,
.modal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--outline-variant);
}

.social-auth-row { display: flex; gap: 12px; }

.btn-oauth {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--outline-variant);
  cursor: pointer;
  transition: filter 0.15s;
}

.btn-oauth:hover { filter: brightness(1.12); }.oauth-discord { background: #4e5c6e; color: #fff; }
.oauth-telegram { background: #3d6b8a; color: #fff; }

.modal-notice {
  margin-top: 16px;
  font-size: 12px;
  color: var(--on-surface-dim);
  line-height: 1.5;
}

.modal-notice code,
.project-item p code {
  font-family: var(--font-mono);
  background: var(--surface-3);
  padding: 1px 6px;
  border-radius: 4px;
  color: #a4c98e;
}

/* ═══════════════════════════════════════
   ПРОЕКТЫ (модалка «Об играх»)
═══════════════════════════════════════ */
.projects-list { display: flex; flex-direction: column; gap: 14px; }

.project-item {
  background: var(--surface-3);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.project-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.project-item h4 {
  font-size: 14px;
  font-weight: 700;
}

.project-item p {
  font-size: 13px;
  color: var(--on-surface-variant);
  line-height: 1.55;
}

/* ═══════════════════════════════════════
   GIT-СТИЛЬНЫЕ ЧЕЙНДЖЛОГИ (модалка новости)
═══════════════════════════════════════ */
.changelog-summary {
  font-size: 13px;
  color: var(--on-surface-variant);
  line-height: 1.55;
  margin-bottom: 18px;
}

.changelog-log {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.commit-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: var(--surface-3);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  transition: border-color 0.15s, background-color 0.15s;
}

.commit-row:hover {
  border-color: var(--outline-variant);
  
}

.commit-hash { color: #d9a441; flex-shrink: 0; }

.commit-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.commit-type-fix { background: rgba(74, 222, 128, 0.2); color: #8fc46e; }
.commit-type-feat { background: rgba(93, 140, 190, 0.2); color: #7fb0dd; }
.commit-type-perf { background: rgba(155, 110, 180, 0.2); color: #c39be0; }
.commit-type-chore { background: rgba(154, 156, 153, 0.18); color: var(--on-surface-variant); }
.commit-type-balance { background: rgba(192, 133, 74, 0.2); color: #d9a46b; }
.commit-type-docs { background: rgba(90, 165, 180, 0.2); color: #7fc4d4; }

.commit-msg {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--on-surface);
}

.commit-meta { color: var(--on-surface-dim); font-size: 11px; flex-shrink: 0; }

.diff-block {
  background: #0d0f0e;
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
}

.diff-title {
  padding: 0 14px 8px;
  color: var(--on-surface-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--outline);
  margin-bottom: 8px;
}

.diff-line { padding: 0 14px; white-space: pre; }
.diff-line-add { background: rgba(74, 222, 128, 0.16); color: #a4d48e; }
.diff-line-del { background: rgba(184, 92, 92, 0.16); color: #e09a9a; }
.diff-line-ctx { color: var(--on-surface-dim); }

/* ═══════════════════════════════════════
   RESPONSIVE — доп.
═══════════════════════════════════════ */
@media (max-width: 920px) {
  .nav {
    display: none !important;
  }

  .burger-btn {
    display: flex !important;
  }

  .modal-card { max-height: 85vh; }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: clamp(26px, 7.5vw, 34px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .status-chip {
    justify-content: center;
  }

  .servers-row {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════
   ПОРТАЛЬНЫЕ СТРАНИЦЫ (MULTI-PAGE PORTAL)
═══════════════════════════════════════ */
.portal-page {
  padding-top: 36px;
  padding-bottom: 40px;
  min-height: calc(100vh - 160px);
}

.page-hero {
  margin-bottom: 22px;
}

.page-hero .section-badge {
  margin-bottom: 10px;
}

.page-hero-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-hero-desc {
  font-size: 16px;
  color: var(--on-surface-variant);
  max-width: 680px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   ПРОЕКТЫ — ХАБ (PROJECTS HUB)
═══════════════════════════════════════ */
.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-btn {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  color: var(--on-surface-variant);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.filter-btn:hover {
  background: var(--surface-2);
  color: var(--on-surface);
  border-color: var(--primary-dim);
}

.filter-btn.active {
  background: var(--primary-container);
  color: var(--on-primary-container);
  border-color: var(--primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.portal-project-card {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.portal-project-card:hover {
  border-color: var(--primary);
  box-shadow: none;
  background: var(--surface-2);
}

.project-card-thumb {
  position: relative;
  width: 100%;
  height: 180px;
  background: var(--surface-2);
  overflow: hidden;
}

.project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}



.project-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 3;
}

.project-card-badges .news-tag,
.project-card-badges .stack-tag {
  position: static !important;
  margin: 0;
}

.project-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 13.5px;
  color: var(--on-surface-variant);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.stack-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--on-surface-dim);
  border: 1px solid var(--outline-variant);
}

.project-footer-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--outline-variant);
}

/* ═══════════════════════════════════════
   СЕРВЕРЫ — СТРАНИЦА (SERVERS HUB)
═══════════════════════════════════════ */
.servers-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.server-portal-card {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.server-portal-card:hover {
  border-color: var(--primary);
  box-shadow: none;
  background: var(--surface-2);
}

.server-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.server-game-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--on-surface);
}

.server-game-badge img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.server-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(74, 222, 128, 0.14);
  color: var(--primary);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.server-status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.server-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 8px;
}

.server-card-desc {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.5;
  margin-bottom: 18px;
}

.server-ip-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--primary);
}

.btn-copy-ip {
  background: transparent;
  border: none;
  color: var(--on-surface-variant);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: inherit;
  transition: all 0.15s;
}

.btn-copy-ip:hover {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.server-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--outline-variant);
}

.fastdl-banner {
  background: var(--surface-2);
  border: 1px dashed var(--outline);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.fastdl-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 4px;
}

.fastdl-info p {
  font-size: 13px;
  color: var(--on-surface-variant);
  margin: 0;
}

/* ═══════════════════════════════════════
   ЧАТИКС — ПОЛНОЭКРАННЫЙ ХАБ (CHAT HUB)
═══════════════════════════════════════ */
.container-chat-fullwidth {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: clamp(16px, 2.8vw, 44px) !important;
  padding-right: clamp(16px, 2.8vw, 44px) !important;
  box-sizing: border-box;
}

.chat-hub-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1060px) {
  .chat-hub-container {
    grid-template-columns: 1fr;
  }
}

.chat-hub-main {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 240px);
  min-height: 650px;
  max-height: 920px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.chatix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--outline);
  flex-wrap: wrap;
  gap: 12px;
}

.chatix-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatix-channel-icon {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.chatix-header-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chatix-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 0;
}

.chatix-subtitle {
  font-size: 12px;
  color: var(--on-surface-variant);
  margin: 0;
}

.chatix-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatix-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-1);
  border: 1px solid var(--outline);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface);
}

.chatix-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.9);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% {  opacity: 0.8; }
  50% {  opacity: 1; }
  100% {  opacity: 0.8; }
}

.chat-hub-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  scroll-behavior: smooth;
}

/* Кастомный тонкий скроллбар */
.chat-hub-messages::-webkit-scrollbar {
  width: 6px;
}
.chat-hub-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chat-hub-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.chat-hub-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 222, 128, 0.3);
}

.chat-loading-placeholder {
  text-align: center;
  color: var(--on-surface-variant);
  font-size: 14px;
  margin: auto;
  padding: 40px 20px;
}

/* Сообщение в ленте */
.chatix-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
  animation: fadeInMsg 0.18s ease-out;
}

.chatix-msg:hover {
  background: rgba(255, 255, 255, 0.025);
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.chatix-msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  margin-top: 2px;
}

.chatix-msg-content {
  flex: 1;
  min-width: 0;
}

.chatix-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.chatix-msg-author {
  font-weight: 700;
  font-size: 14px;
  color: #f1f5f9;
}

.chatix-msg-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
  margin-left: 2px;
}

.chat-badge-dev {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  background: #4ade80;
  color: #0d140e;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.35);
}

.chat-badge-user {
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.chatix-msg-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: #cbd5e1;
  word-break: break-word;
}

/* Сообщения администратора / разработчика */
.chatix-msg-admin {
  background: rgba(74, 222, 128, 0.035);
  border-left: 3px solid #4ade80;
  border-radius: 4px var(--radius-md) var(--radius-md) 4px;
}

.chatix-msg-admin:hover {
  background: rgba(74, 222, 128, 0.055);
}

.chatix-msg-admin .chatix-msg-author {
  color: #4ade80;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.25);
}

/* Нижняя панель ввода */
.chatix-form {
  padding: 14px 20px;
  background: var(--surface-2);
  border-top: 1px solid var(--outline);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.chatix-input-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.chatix-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-1);
  border: 1px solid var(--outline);
  padding: 8px 14px 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--on-surface);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s ease;
  font-family: inherit;
}

.chatix-user-pill:hover {
  border-color: rgba(74, 222, 128, 0.5);
  background: var(--surface-3);
  color: var(--primary);
}

.chatix-user-pill img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
}

.chatix-field-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  padding: 2px 8px 2px 14px;
  transition: border-color 0.18s, box-shadow 0.18s;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.chatix-field-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.18);
}

.chatix-input {
  flex: 1 1 auto;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--on-surface);
  font-family: inherit;
  font-size: 14.5px;
  padding: 10px 0;
  min-width: 0;
}

.chatix-input::placeholder {
  color: #64748b;
}

.chatix-emoji-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #94a3b8;
  transition: transform 0.15s, color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.chatix-emoji-toggle:hover {
  color: var(--primary);
  background: rgba(74, 222, 128, 0.12);
  transform: scale(1.1);
}

.chatix-send-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: #0f1710;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
}

.chatix-send-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(74, 222, 128, 0.35);
}

.chatix-send-btn:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .chatix-send-btn span {
    display: none;
  }
  .chatix-send-btn {
    padding: 10px 12px;
  }
}

/* Сайдбар */
.chat-hub-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-sidebar-card {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.chat-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-sidebar-server-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s, background 0.18s;
}

.chat-sidebar-server-item:hover {
  border-color: rgba(74, 222, 128, 0.4);
  background: var(--surface-3);
}

.chat-sidebar-server-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-sidebar-server-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--on-surface);
}

.chat-sidebar-server-ip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
}

.chat-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--on-surface-variant);
  margin-bottom: 10px;
}

.chat-rule-item:last-child {
  margin-bottom: 0;
}

.chat-rule-icon {
  font-size: 15px;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ═══════════════════════════════════════
   МОДАЛЬНЫЕ ОКНА (АВТОРИЗАЦИЯ & ДЕВЛОГИ)
═══════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 9, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s;
  visibility: hidden;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-card {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(74, 222, 128, 0.15);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card-lg {
  max-width: 620px;
}

.modal-backdrop.show .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--outline);
  background: var(--surface-2);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-brand-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  background: var(--primary-container);
  color: var(--primary);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 4px;
  letter-spacing: 0.8px;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--on-surface-variant);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}

.modal-close-btn:hover {
  color: var(--on-surface);
  background: var(--surface-3);
}

.modal-body {
  padding: 22px 20px;
}

.modal-desc {
  font-size: 13px;
  color: var(--on-surface-variant);
  margin: 0 0 18px 0;
  line-height: 1.5;
}

.login-form, .devlog-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-select {
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--on-surface);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.form-group textarea {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.25);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
}

@media (max-width: 540px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237aad5a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-select option {
  background: #1a1c1b;
  color: #e2e3e1;
}

.login-error-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.btn-submit-login {
  width: 100%;
  justify-content: center;
  padding: 11px;
  font-weight: 700;
  margin-top: 4px;
}

.modal-divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  text-align: center;
}

.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--outline);
}

.modal-divider span {
  padding: 0 10px;
  font-size: 11px;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ═══════════════════════════════════════
   ДЕВЛОГИ — ПАНЕЛЬ ДЕЙСТВИЙ И ПОДСКАЗКА
═══════════════════════════════════════ */
.devlog-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.devlog-filter-chips {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.devlog-filter-chip {
  background: var(--surface-2);
  color: var(--on-surface-variant);
  border: 1px solid var(--outline);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.devlog-filter-chip:hover {
  background: var(--surface-3);
  color: var(--on-surface);
  border-color: rgba(74, 222, 128, 0.4);
}

.devlog-filter-chip.active {
  background: var(--primary-container);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.15);
}

.devlog-counter {
  font-size: 13px;
  color: var(--on-surface-variant);
}

.devlog-counter strong {
  color: var(--primary);
  font-family: var(--font-mono);
}

.btn-add-devlog {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.devlog-admin-guide {
  background: rgba(74, 222, 128, 0.06);
  border: 1px dashed rgba(74, 222, 128, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.devlog-admin-guide-text {
  font-size: 13px;
  color: var(--on-surface);
  line-height: 1.5;
}

.devlog-admin-guide-text strong {
  color: #a4c98e;
}

/* ═══════════════════════════════════════
   СТАТЬЯ / ДЕВЛОГ ДЕТАЛЬНО (DEVLOG SINGLE)
═══════════════════════════════════════ */
.devlog-single-article {
  max-width: 820px;
  margin: 0 auto;
}

.devlog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 24px;
  transition: opacity 0.15s;
}

.devlog-back-link:hover {
  opacity: 0.8;
}

.devlog-single-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--outline);
}

.devlog-single-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--on-surface);
  margin: 12px 0;
  line-height: 1.2;
}

.devlog-single-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--on-surface);
}

.devlog-single-content p {
  margin-bottom: 18px;
}

.devlog-single-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 20px 0;
  border: 1px solid var(--outline);
}



/* ═══════════════════════════════════════════════════════════
   ИНЖЕНЕРНЫЙ ПРОФИЛЬ & BIO (HIGH-GRADE DEVELOPER DOSSIER)
═══════════════════════════════════════════════════════════ */
.bio-hero-header {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.bio-hero-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

@media (max-width: 768px) {
  .bio-hero-header {
    flex-direction: column;
    padding: 20px;
    gap: 18px;
  }
}

.bio-hero-avatar-box {
  flex-shrink: 0;
}

.bio-hero-avatar {
  position: relative;
  width: 84px;
  height: 84px;
  background: var(--surface-2);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.25);
  overflow: visible;
}

.bio-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.bio-hero-status-dot {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  background: #4ade80;
  border: 2.5px solid var(--surface-1);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.9);
}

.bio-hero-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bio-hero-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bio-hero-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--on-surface);
  letter-spacing: -0.5px;
  margin: 0;
}

.bio-role-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  background: var(--primary);
  color: #141c10;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.6px;
}

.bio-node-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #a4c98e;
  background: var(--primary-container);
  border: 1px solid rgba(74, 222, 128, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.bio-hero-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--primary);
  margin: 0;
}

.bio-hero-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  margin: 4px 0 10px 0;
  max-width: 820px;
}

.bio-terminal-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0d0f0e;
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  max-width: 100%;
  overflow-x: auto;
}

.terminal-prompt {
  color: var(--primary);
  font-weight: 700;
}

.terminal-cmd {
  color: var(--on-surface-variant);
}

.terminal-output {
  color: #a4c98e;
  border-left: 1px solid var(--outline);
  padding-left: 8px;
}

/* Сетка карточек Bio */
.bio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .bio-grid {
    grid-template-columns: 1fr;
  }
}

.bio-card {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.bio-card:hover {
  border-color: rgba(74, 222, 128, 0.55);
  box-shadow: none;
  background: var(--surface-2);
}

.bio-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--outline);
  margin-bottom: 16px;
}

.bio-card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bio-card-icon {
  color: var(--primary);
}

.bio-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 0;
}

.bio-header-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  background: var(--primary-container);
  color: var(--primary);
  border: 1px solid rgba(74, 222, 128, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.bio-card-text {
  font-size: 13.5px;
  color: var(--on-surface-variant);
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.bio-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bio-features-list li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--on-surface-variant);
  padding-left: 18px;
  position: relative;
}

.bio-features-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.bio-features-list strong {
  color: var(--on-surface);
}

/* Прогресс-бары навыков */
.bio-skills-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.bio-skill-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bio-skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.bio-skill-name {
  color: var(--on-surface);
  font-weight: 600;
}

.bio-skill-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
}

.bio-skill-bar {
  width: 100%;
  height: 6px;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--outline-variant);
}

.bio-skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #5b8742, #4ade80);
  border-radius: var(--radius-sm);
}

.bio-tags-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--outline);
  margin-top: auto;
}

.stack-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--outline);
  color: var(--on-surface);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.stack-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Инфраструктурные карточки */
.infra-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 550px) {
  .infra-stats-grid {
    grid-template-columns: 1fr;
  }
}

.infra-stat-item {
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.infra-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--on-surface-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.infra-stat-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
}

.bio-infra-note {
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--on-surface-variant);
  margin-top: auto;
}

.bio-infra-note strong {
  color: var(--on-surface);
}

/* Кнопки контактов */
.bio-contacts-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.contact-action-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  color: var(--on-surface);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-action-btn:hover {
  background: var(--surface-3);
  border-color: var(--primary);
  
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.contact-action-btn.contact-tg svg { color: #38a5e0; }
.contact-action-btn.contact-discord svg { color: #7289da; }
.contact-action-btn.contact-chat svg { color: var(--primary); }

.contact-btn-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.contact-btn-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface);
}

.contact-btn-sub {
  font-size: 12px;
  color: var(--on-surface-variant);
}

.contact-btn-arrow {
  color: var(--primary);
  font-size: 15px;
  transition: color 0.18s;
}.bio-custom-content {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   КАСТОМНЫЕ СМАЙЛИКИ & ЭМОДЗИ ПАК
═══════════════════════════════════════ */
.chat-emote {
  width: 24px;
  height: 24px;
  vertical-align: -5px;
  margin: 0 3px;
  display: inline-block;
  image-rendering: auto;
}

.emoji-picker-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-width: 90vw;
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  padding: 14px;
  z-index: 100;
  display: none;
  backdrop-filter: blur(12px);
}

.emoji-picker-popover.show {
  display: block;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.emoji-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--outline);
}

.emoji-picker-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.emoji-picker-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.emoji-tab-btn {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--outline);
  color: var(--on-surface-variant);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.emoji-tab-btn:hover {
  border-color: rgba(74, 222, 128, 0.5);
  color: var(--on-surface);
}

.emoji-tab-btn.active {
  background: var(--primary-container);
  border-color: var(--primary);
  color: var(--primary);
}

.emoji-picker-pack {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.emoji-picker-pack.active {
  display: grid;
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.emoji-btn-item {
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.emoji-btn-item:hover {
  background: var(--surface-3);
  border-color: var(--primary);
  
}

.emoji-btn-item img {
  width: 26px;
  height: 26px;
  display: block;
}

/* ═══════════════════════════════════════
   ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ С КАСТОМОМ
═══════════════════════════════════════ */
.profile-avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0 20px;
}

.profile-avatar-option {
  position: relative;
  background: var(--surface-2);
  border: 2px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.18s;
}

.profile-avatar-option:hover {
  border-color: rgba(74, 222, 128, 0.6);
  background: var(--surface-3);
}

.profile-avatar-option.selected {
  border-color: var(--primary);
  background: var(--primary-container);
}

.profile-avatar-option img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.profile-avatar-option span {
  font-size: 11px;
  font-weight: 600;
  color: var(--on-surface);
}

.profile-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.profile-badge-btn {
  background: var(--surface-2);
  border: 1px solid var(--outline);
  color: var(--on-surface-variant);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s;
}

.profile-badge-btn:hover {
  border-color: var(--primary);
  color: #ffffff;
}

.profile-badge-btn.selected {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

/* ═══════════════════════════════════════
   ЧЕЙНДЖЛОГИ — ЛАМПОВЫЙ СТИЛЬ & ДИФФ-БЛОКИ
═══════════════════════════════════════ */
.changelog-release-body h3,
.devlog-single-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 18px 0 10px;
}

.changelog-release-body h4,
.devlog-single-content h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.changelog-release-body p,
.devlog-single-content p {
  margin-bottom: 12px;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.changelog-release-body ul,
.devlog-single-content ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.changelog-release-body li,
.devlog-single-content li {
  position: relative;
  padding-left: 18px;
  line-height: 1.55;
  color: var(--on-surface);
  font-size: 14px;
}

.changelog-release-body li::before,
.devlog-single-content li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.changelog-release-body code,
.devlog-single-content code {
  background: var(--surface-2);
  border: 1px solid var(--outline);
  color: #a4c98e;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.footer-nav-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav-link {
  color: var(--on-surface-variant);
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s;
}

.footer-nav-link:hover {
  color: var(--primary);
}

/* ═══════════════════════════════════════
   СИСТЕМА БАНОВ (СБ) & СТАТИСТИКА (CSSTATS)
═══════════════════════════════════════ */
.sb-tab-section {
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sb-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sb-search-box {
  flex: 1;
  max-width: 440px;
}

.sb-input {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--outline);
  color: var(--on-surface);
  font-family: var(--font-ui);
  font-size: 14px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.18s;
}

.sb-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

.sb-counter-pill {
  font-size: 13px;
  color: var(--on-surface-variant);
  background: var(--surface-2);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--outline);
}

.sb-table-wrapper {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.sb-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.sb-table th {
  background: var(--surface-2);
  color: var(--on-surface-variant);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--outline);
  white-space: nowrap;
}

.sb-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--outline-variant);
  color: var(--on-surface);
  white-space: nowrap;
}

.sb-table tbody tr:last-child td {
  border-bottom: none;
}

.sb-table tbody tr:hover {
  background: rgba(74, 222, 128, 0.05);
}

.sb-status-active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(229, 57, 53, 0.2);
  color: #ef5350;
  border: 1px solid rgba(229, 57, 53, 0.4);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.sb-status-expired {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(74, 222, 128, 0.2);
  color: #8bc34a;
  border: 1px solid rgba(74, 222, 128, 0.4);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

/* ═══════════════════════════════════════
   ПОЛНЫЙ ЖУРНАЛ ИЗМЕНЕНИЙ (CHANGELOG STREAM)
═══════════════════════════════════════ */
.changelog-stream {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
}

.changelog-release-entry {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, background-color 0.2s;
  box-shadow: none;
}

.changelog-release-entry:hover {
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: none;
}

.changelog-release-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.changelog-release-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.changelog-version-badge {
  background: var(--primary-container);
  color: var(--primary);
  border: 1px solid rgba(74, 222, 128, 0.35);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.5px;
}

.changelog-author-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--on-surface-variant);
  background: var(--surface-2);
  border: 1px solid var(--outline);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.changelog-release-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.35;
  margin-bottom: 10px;
}

.changelog-release-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}

.changelog-release-title a:hover {
  color: var(--primary);
}

.changelog-release-summary {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.6;
  margin-bottom: 18px;
}

.changelog-release-thumb {
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--outline);
  max-height: 380px;
}

.changelog-release-thumb img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.changelog-release-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--on-surface);
}

/* ═══════════════════════════════════════
   МОБИЛЬНАЯ АДАПТАЦИЯ (RESPONSIVE)
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .changelog-release-entry {
    padding: 18px 16px;
  }

  .changelog-release-title {
    font-size: 18px;
  }

  .changelog-code-block {
    font-size: 12px;
    padding: 10px 12px;
  }

  .emoji-picker-popover {
    width: 300px;
    right: -20px;
  }

  .profile-avatar-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .profile-avatar-option img {
    width: 36px;
    height: 36px;
  }

  .footer-nav-row {
    justify-content: center;
    gap: 12px 16px;
  }

  .footer-copy {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .emoji-picker-popover {
    position: fixed;
    bottom: 70px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
  }

  .profile-avatar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chatix-input-bar {
    flex-wrap: wrap;
  }

  .chatix-field-wrap {
    order: 2;
    min-width: 100%;
  }

  .chatix-user-pill {
    order: 1;
  }

  .chatix-send-btn {
    order: 1;
    margin-left: auto;
  }

  .wip-hero-banner {
    padding: 20px 16px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   GIT-WIKI · ROADMAP & REPOSITORY STYLES
═══════════════════════════════════════════════════════════ */
.git-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.git-repo-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--on-surface);
}

.git-repo-pill svg {
  color: var(--primary);
  flex-shrink: 0;
}

.git-branch-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.git-branch-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--outline);
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: all 0.15s ease;
}

.git-branch-btn:hover {
  color: var(--primary);
  border-color: rgba(74, 222, 128, 0.4);
  background: var(--surface-3);
}

.git-branch-btn.active {
  background: rgba(74, 222, 128, 0.12);
  color: var(--primary);
  border-color: var(--primary);
}

.git-repo-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.git-meta-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-surface-variant);
  background: var(--surface-2);
  border: 1px solid var(--outline);
  padding: 3px 8px;
  border-radius: 4px;
}

.git-meta-tag.git-tag-ok {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
}

.git-meta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  transition: opacity 0.15s;
}

.git-meta-link:hover {
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════
   СЕТКА GIT-WIKI: САЙДБАР С ДЕРЕВОМ ВЕТОК И ROADMAP
═══════════════════════════════════════════════════════════ */
.git-wiki-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .git-wiki-layout {
    grid-template-columns: 1fr;
  }
}

.git-wiki-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wiki-card {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.wiki-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--on-surface);
  margin-bottom: 14px;
}

.wiki-card-head svg {
  color: var(--primary);
  flex-shrink: 0;
}

.wiki-tree {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wiki-tree-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.wiki-tree-item:hover {
  background: var(--surface-2);
  color: var(--on-surface);
  border-color: var(--outline);
}

.wiki-tree-item.active {
  background: rgba(74, 222, 128, 0.08);
  color: var(--primary);
  font-weight: 700;
  border-color: rgba(74, 222, 128, 0.3);
}

.wiki-tree-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-tree-icon {
  color: var(--primary);
  font-weight: 800;
}

.wiki-tree-branch-line {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.wiki-tree-badge {
  font-size: 10px;
  background: var(--surface-3);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--on-surface-variant);
}

.wiki-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wiki-status-dot.dot-done {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.8);
}

.wiki-status-dot.dot-wip {
  background: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.8);
}

.wiki-spec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wiki-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--outline);
}

.wiki-spec-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  background: var(--surface-3);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.wiki-spec-info strong {
  display: block;
  font-size: 13px;
  color: var(--on-surface);
  margin-bottom: 2px;
}

.wiki-spec-info p {
  font-size: 11.5px;
  color: var(--on-surface-variant);
  margin: 0;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════
   МАЙЛСТОУНЫ ROADMAP (ROADMAP MILESTONES & STAGES)
═══════════════════════════════════════════════════════════ */
.git-wiki-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.roadmap-milestone-card {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, background-color 0.2s;
}

.roadmap-milestone-card:hover {
  border-color: rgba(74, 222, 128, 0.35);
}

.milestone-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--outline);
}

.milestone-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.milestone-tag-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.milestone-branch-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.milestone-version-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--on-surface-variant);
  background: var(--surface-2);
  border: 1px solid var(--outline);
  padding: 3px 8px;
  border-radius: 4px;
}

.milestone-status-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
}

.milestone-status-badge.status-done {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.milestone-status-badge.status-wip {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.milestone-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--on-surface);
  letter-spacing: -0.4px;
  margin: 4px 0 8px;
}

.milestone-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  margin-bottom: 16px;
}

.milestone-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.milestone-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.milestone-progress-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--on-surface-dim);
}

.milestone-banner {
  width: 100%;
  height: 240px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--outline);
  overflow: hidden;
}

.milestone-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.milestone-sub-branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 28px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--outline);
}

@media (max-width: 860px) {
  .milestone-sub-branches {
    grid-template-columns: 1fr;
    padding: 16px 20px;
  }
}

.milestone-branch-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.milestone-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--on-surface);
}

.milestone-branch-col p {
  font-size: 12px;
  color: var(--on-surface-variant);
  line-height: 1.5;
  margin: 0;
}

.milestone-stages-box {
  padding: 24px 28px;
}

.milestone-stages-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--on-surface);
  margin-bottom: 14px;
}

.milestone-stages-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--outline);
  transition: border-color 0.15s ease;
}

.stage-item:hover {
  border-color: rgba(74, 222, 128, 0.3);
}

.stage-indicator {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.stage-item.stage-done .stage-indicator {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.stage-item.stage-wip .stage-indicator {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.stage-item.stage-planned .stage-indicator {
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-surface-dim);
  border: 1px solid var(--outline);
}

.stage-content {
  flex: 1;
  min-width: 0;
}

.stage-top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.stage-code {
  font-weight: 700;
  color: var(--primary);
}

.stage-commit {
  color: #94a3b8;
  background: var(--surface-3);
  padding: 1px 6px;
  border-radius: 4px;
}

.stage-diff {
  color: #4ade80;
  font-weight: 600;
}

.stage-status-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
}

.stage-status-pill.pill-wip {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.stage-status-pill.pill-plan {
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-surface-variant);
  border: 1px solid var(--outline);
}

.stage-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 4px;
}

.stage-desc {
  font-size: 12.5px;
  color: var(--on-surface-variant);
  line-height: 1.5;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   GIT TIMELINE STREAM (ТАЙМЛАЙН КОММИТОВ И ЧЕЙНДЖЛОГОВ)
═══════════════════════════════════════════════════════════ */
.git-timeline-stream {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  margin-bottom: 40px;
}

.git-commit-entry {
  display: flex;
  gap: 20px;
  position: relative;
}

@media (max-width: 600px) {
  .git-commit-entry {
    flex-direction: column;
    gap: 10px;
  }
}

.git-node-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .git-node-column {
    display: none;
  }
}

.git-node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--surface-0);
  flex-shrink: 0;
  margin-top: 26px;
  z-index: 2;
}

.git-node-dot.dot-green {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}

.git-node-dot.dot-purple {
  background: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.7);
}

.git-node-dot.dot-cyan {
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

.git-node-line {
  width: 2px;
  flex: 1;
  background: var(--outline);
  margin-top: 6px;
}

.git-commit-card {
  flex: 1;
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  min-width: 0;
  transition: border-color 0.2s ease;
}

.git-commit-card:hover {
  border-color: rgba(74, 222, 128, 0.35);
}

.git-commit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.git-commit-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  flex-wrap: wrap;
}

.git-commit-hash {
  background: var(--surface-2);
  border: 1px solid var(--outline);
  color: var(--primary);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.git-commit-branch {
  background: var(--surface-2);
  border: 1px solid var(--outline);
  color: #94a3b8;
  padding: 2px 8px;
  border-radius: 4px;
}

.git-commit-date {
  color: var(--on-surface-dim);
  font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════
   HERO TELEMETRY & NODE HUD
═══════════════════════════════════════════════════════════ */
.hero-node-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--primary);
  width: fit-content;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.live-pulse-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.5);
  animation: beaconPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero-telemetry-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}

.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-1);
  border: 1px solid var(--outline);
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.telemetry-label {
  color: var(--on-surface-variant);
}

.telemetry-val {
  color: var(--on-surface);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   CLUSTER SERVERS HUD GRID
═══════════════════════════════════════════════════════════ */
.cluster-section {
  padding: 60px 0;
}

.cluster-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.cluster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .cluster-grid {
    grid-template-columns: 1fr;
  }
}

.server-hud-card {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-shadow: none !important;
}

.server-hud-card:hover {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(22, 27, 20, 0.85);
  box-shadow: none !important;
}

.server-hud-card.hud-card-highlight {
  border-color: rgba(56, 189, 248, 0.25);
}

.server-hud-card.hud-card-highlight:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(18, 25, 32, 0.85);
}

.server-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.server-hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.server-node-index {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
}

.server-branch-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  background: var(--surface-2);
  border: 1px solid var(--outline);
  padding: 2px 8px;
  border-radius: 4px;
}

.server-fps-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
}

.server-fps-tag.offline {
  color: #ef5350;
  background: rgba(239, 83, 80, 0.08);
  border-color: rgba(239, 83, 80, 0.25);
}

.server-hud-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--on-surface);
  margin-bottom: 8px;
  line-height: 1.35;
}

.server-hud-desc {
  font-size: 13px;
  color: var(--on-surface-variant);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.server-hud-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 18px;
}

.spec-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--on-surface-dim);
  letter-spacing: 0.5px;
}

.spec-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-hud-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-hud-actions .btn {
  flex: 1;
  justify-content: center;
}

.btn-copy-connect {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3px;
}

.commit-pill-thumb {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(14, 18, 12, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   ИНЖЕНЕРНЫЙ СТЕК НОДЫ (CLUSTER SPECS OVERVIEW)
═══════════════════════════════════════════════════════════ */
.cluster-specs-section {
  padding: 60px 0;
}

.specs-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 1080px) {
  .specs-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .specs-overview-grid {
    grid-template-columns: 1fr;
  }
}

.spec-overview-card {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-shadow: none !important;
}

.spec-overview-card:hover {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(22, 27, 20, 0.85);
  box-shadow: none !important;
}

.spec-card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 12px;
}

.spec-card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--on-surface);
  margin: 4px 0 10px;
  line-height: 1.35;
}

.spec-card-desc {
  font-size: 12.5px;
  color: var(--on-surface-variant);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.spec-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   SECURITY LOG (СБ) & TOP LEADERBOARD
═══════════════════════════════════════════════════════════ */
.sb-tab-section {
  animation: fadeIn 0.25s ease-in-out;
}

.sb-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sb-search-box {
  flex: 1;
  min-width: 260px;
  max-width: 440px;
}

.sb-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(14, 20, 14, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--on-surface);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s ease;
  box-shadow: none !important;
}

.sb-input:focus {
  border-color: rgba(74, 222, 128, 0.6);
  background: rgba(16, 24, 16, 0.85);
  box-shadow: none !important;
}

.sb-counter-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  background: rgba(18, 26, 18, 0.8);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 8px;
  color: var(--on-surface-variant);
  letter-spacing: 0.02em;
}

.sb-counter-pill strong {
  color: var(--primary);
  font-weight: 700;
}

.sb-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(15, 22, 15, 0.75);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  margin-bottom: 32px;
  box-shadow: none !important;
}

.sb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.sb-table th {
  padding: 14px 18px;
  background: rgba(10, 15, 10, 0.9);
  color: var(--on-surface-variant);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  white-space: nowrap;
}

.sb-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.sb-table tr:last-child td {
  border-bottom: none;
}

.sb-table tr:hover td {
  background: rgba(74, 222, 128, 0.03);
}

.sb-status-active {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #ef5350;
  background: rgba(239, 83, 80, 0.12);
  border: 1px solid rgba(239, 83, 80, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sb-status-expired {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--on-surface-variant);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sb-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.sb-rank-gold {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
}

.sb-rank-silver {
  color: #e0e0e0;
  background: rgba(224, 224, 224, 0.12);
  border: 1px solid rgba(224, 224, 224, 0.35);
}

.sb-rank-bronze {
  color: #cd7f32;
  background: rgba(205, 127, 50, 0.12);
  border: 1px solid rgba(205, 127, 50, 0.35);
}

.sb-rank-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-surface-variant);
  font-weight: 600;
}

@media (max-width: 600px) {
  .sb-controls-row {
    flex-direction: column;
    align-items: stretch;
  }
  .sb-search-box {
    max-width: 100%;
  }
  .sb-table th,
  .sb-table td {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════
   GIT REPOSITORY // ROADMAP & WIKI (PROJECTS)
═══════════════════════════════════════════════════════════ */
.git-wiki-page {
  margin-bottom: 60px;
}

.git-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(14, 20, 14, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.git-repo-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 6px 12px;
  border-radius: 6px;
}

.git-branch-selector,
.devlog-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.git-branch-btn,
.devlog-filter-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.git-branch-btn:hover,
.devlog-filter-chip:hover {
  border-color: rgba(74, 222, 128, 0.4);
  color: var(--on-surface);
  background: rgba(74, 222, 128, 0.05);
}

.git-branch-btn.active,
.devlog-filter-chip.active {
  background: rgba(74, 222, 128, 0.14);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.git-repo-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-surface-variant);
}

.git-meta-tag {
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.git-tag-ok {
  color: var(--primary);
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
  font-weight: 600;
}

.git-meta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.git-meta-link:hover {
  text-decoration: underline;
}

/* Сетка Git-Wiki: Сайдбар + Roadmap */
.git-wiki-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  align-items: start;
}

.git-wiki-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 80px;
}

.wiki-card {
  background: rgba(15, 22, 15, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  backdrop-filter: blur(12px);
  box-shadow: none !important;
}

.wiki-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--on-surface);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wiki-tree {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wiki-tree-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--on-surface-variant);
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}

.wiki-tree-item:hover {
  background: rgba(74, 222, 128, 0.05);
  color: var(--on-surface);
}

.wiki-tree-item.active {
  background: rgba(74, 222, 128, 0.12);
  color: var(--primary);
  font-weight: 700;
  border-left-color: var(--primary);
}

.wiki-tree-branch-line {
  width: 6px;
  height: 6px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  opacity: 0.6;
}

.wiki-tree-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-surface-variant);
}

.wiki-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-left: auto;
}

.dot-done {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

.dot-wip {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.wiki-spec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wiki-spec-item {
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.wiki-spec-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.wiki-spec-title {
  font-size: 12px;
  color: var(--on-surface);
  margin: 2px 0;
  font-weight: 600;
}

.wiki-spec-desc {
  font-size: 11px;
  color: var(--on-surface-variant);
  line-height: 1.4;
}

/* Лента майлстоунов Roadmap */
.roadmap-feed {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.roadmap-milestone-card {
  background: rgba(14, 20, 14, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: none !important;
  transition: border-color 0.2s ease;
}

.roadmap-milestone-card:hover {
  border-color: rgba(74, 222, 128, 0.45);
}

.milestone-header {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.milestone-title-col {
  flex: 1;
  min-width: 260px;
}

.milestone-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.milestone-branch-name {
  color: var(--primary);
  font-weight: 700;
}

.milestone-version-tag {
  color: var(--on-surface-variant);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.milestone-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--on-surface);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.milestone-desc {
  font-size: 13.5px;
  color: var(--on-surface-variant);
  line-height: 1.5;
}

.milestone-progress-wrap {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.milestone-progress-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-surface-variant);
}

.milestone-progress-label strong {
  color: var(--primary);
  font-weight: 700;
}

.milestone-progress-bar {
  width: 150px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.milestone-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
}

.milestone-banner-wrap {
  max-height: 280px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.milestone-banner-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.milestone-stages-list {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stage-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.stage-indicator {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
}

.stage-done .stage-indicator {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.stage-wip .stage-indicator {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.stage-planned .stage-indicator {
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-surface-variant);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stage-content {
  flex: 1;
  min-width: 0;
}

.stage-top-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  flex-wrap: wrap;
}

.stage-code {
  font-weight: 700;
  color: var(--primary);
}

.stage-commit {
  color: var(--on-surface-variant);
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

a.stage-commit {
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

a.stage-commit:hover {
  color: var(--primary);
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.35);
}

.stage-diff {
  color: #86efac;
}

.stage-status-pill {
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
}

.pill-wip {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.pill-plan {
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-surface-variant);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stage-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 4px;
}

.stage-desc {
  font-size: 12.5px;
  color: var(--on-surface-variant);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   GIT COMMIT TIMELINE & CHANGELOGS (DEVLOGS)
═══════════════════════════════════════════════════════════ */
.git-changelog-page {
  margin-bottom: 60px;
}

.devlog-admin-guide {
  padding: 12px 16px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 24px;
  color: var(--on-surface);
}

.git-timeline-stream {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  margin-top: 10px;
}

.git-commit-entry {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.git-node-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  flex-shrink: 0;
  position: relative;
}

.git-node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #0e140e;
  z-index: 2;
  margin-top: 24px;
  flex-shrink: 0;
}

.dot-green {
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}

.dot-purple {
  background: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.dot-cyan {
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.git-node-line {
  width: 2px;
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 4px;
}

.git-commit-card {
  flex: 1;
  min-width: 0;
  background: rgba(14, 20, 14, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: none !important;
  transition: border-color 0.2s ease;
}

.git-commit-card:hover {
  border-color: rgba(74, 222, 128, 0.45);
}

.git-commit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.git-commit-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  flex-wrap: wrap;
}

.git-commit-hash {
  color: var(--primary);
  font-weight: 700;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
}

.git-commit-branch {
  color: #38bdf8;
  font-weight: 500;
}

.git-commit-date {
  color: var(--on-surface-variant);
}

.changelog-version-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--on-surface);
  font-weight: 600;
}

.changelog-author-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-surface-variant);
}

.changelog-release-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--on-surface);
  margin-bottom: 8px;
  line-height: 1.35;
}

.changelog-release-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.changelog-release-title a:hover {
  color: var(--primary);
}

.changelog-release-summary {
  font-size: 13.5px;
  color: var(--on-surface-variant);
  margin-bottom: 16px;
  line-height: 1.55;
}

.changelog-release-thumb {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 320px;
}

.changelog-release-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.changelog-release-body {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(220, 230, 220, 0.9);
}

.changelog-view-full-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  margin-top: 14px;
  font-weight: 600;
}

.changelog-view-full-btn:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   ОДИНОЧНЫЙ ЧЕЙНДЖЛОГ / КОММИТ (ITEM VIEW)
═══════════════════════════════════════════════════════════ */
.devlog-single-article {
  max-width: 860px;
  margin: 0 auto 60px;
  background: rgba(14, 20, 14, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px 40px;
  backdrop-filter: blur(12px);
  box-shadow: none !important;
}

.devlog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  transition: all 0.15s ease;
}

.devlog-back-link:hover {
  background: rgba(74, 222, 128, 0.16);
  border-color: var(--primary);
}

.devlog-single-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.devlog-single-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.3;
  margin: 14px 0 10px;
  letter-spacing: -0.01em;
}

.devlog-single-content {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(220, 230, 220, 0.95);
}

.devlog-single-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 28px 0 14px;
  letter-spacing: -0.01em;
}

.devlog-single-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--on-surface-variant);
  margin: 22px 0 10px;
  font-family: var(--font-mono);
}

.devlog-single-content p {
  margin-bottom: 16px;
}

.devlog-single-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.devlog-single-content li {
  margin-bottom: 8px;
}

.devlog-single-content strong {
  color: var(--primary);
  font-weight: 600;
}

.devlog-single-content code,
.changelog-release-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(20, 28, 20, 0.9);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: #86efac;
  padding: 2px 6px;
  border-radius: 4px;
}

.devlog-single-content pre,
.changelog-release-body pre {
  background: #0b110b !important;
  border: 1px solid rgba(74, 222, 128, 0.3) !important;
  border-radius: 10px !important;
  padding: 18px !important;
  overflow-x: auto !important;
  margin: 18px 0 24px !important;
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  box-shadow: none !important;
}

.devlog-single-content pre code,
.changelog-release-body pre code {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: #d1d5db;
  font-size: 13px;
}

/* Diff подсветка */
.diff-line-add {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  display: block;
  padding: 1px 12px;
  margin: 0 -18px;
  border-left: 3px solid #22c55e;
}

.diff-line-del {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  display: block;
  padding: 1px 12px;
  margin: 0 -18px;
  border-left: 3px solid #ef4444;
}

/* ═══════════════════════════════════════════════════════════
   ДОСЬЕ РАЗРАБОТЧИКА // MANIFESTO (BIO)
═══════════════════════════════════════════════════════════ */
.bio-hero-header {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  background: rgba(14, 20, 14, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(12px);
  margin-bottom: 32px;
  box-shadow: none !important;
}

.bio-hero-avatar-box {
  flex-shrink: 0;
}

.bio-hero-avatar {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(74, 222, 128, 0.4);
}

.bio-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-hero-status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid #0e140e;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}

.bio-hero-info {
  flex: 1;
  min-width: 0;
}

.bio-hero-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.bio-hero-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--on-surface);
  margin: 0;
  letter-spacing: -0.01em;
}

.bio-role-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.bio-node-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.bio-hero-subtitle {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #38bdf8;
  margin-bottom: 12px;
  font-weight: 500;
}

.bio-hero-summary {
  font-size: 14.5px;
  color: var(--on-surface-variant);
  line-height: 1.65;
  max-width: 860px;
}

.bio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.bio-card {
  background: rgba(14, 20, 14, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 26px;
  backdrop-filter: blur(12px);
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.bio-card:hover {
  border-color: rgba(74, 222, 128, 0.45);
}

.bio-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bio-card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bio-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--on-surface);
  margin: 0;
}

.bio-header-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bio-card-text {
  font-size: 13.5px;
  color: var(--on-surface-variant);
  margin-bottom: 14px;
}

.bio-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.bio-features-list li {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(220, 230, 220, 0.9);
  position: relative;
  padding-left: 16px;
}

.bio-features-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.bio-features-list strong {
  color: var(--on-surface);
  font-weight: 600;
}

.bio-tags-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.bio-tags-footer a.stack-tag {
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bio-tags-footer a.stack-tag:hover {
  background: rgba(74, 222, 128, 0.12);
}

/* ═══════════════════════════════════════════════════════════
   ПОЛНАЯ МОБИЛЬНАЯ АДАПТАЦИЯ (MOBILE & TABLET POLISH)
═══════════════════════════════════════════════════════════ */
@media (max-width: 920px) {
  .nav {
    display: none !important;
  }
  .burger-btn {
    display: flex !important;
  }
  .header-container {
    padding: 0 16px;
  }
  .header-actions .btn-login {
    display: none !important;
  }
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bio-hero-header {
    flex-direction: column;
    padding: 24px 20px;
    gap: 18px;
  }
  .devlog-single-article {
    padding: 26px 22px;
  }
  .git-wiki-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .git-wiki-sidebar {
    position: static !important;
    top: auto;
  }
  .chat-hub-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cluster-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container,
  .container-wide {
    padding: 0 14px;
  }
  .portal-page {
    padding-top: 18px;
    padding-bottom: 28px;
  }
  .page-hero {
    margin-bottom: 16px;
  }
  .page-hero-title {
    font-size: 24px;
    line-height: 1.25;
  }
  .page-hero-desc {
    font-size: 13.5px;
    line-height: 1.5;
  }

  /* Hero Section */
  .hero-title {
    font-size: 30px;
  }
  .hero-telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    gap: 6px;
  }
  .telemetry-pill {
    justify-content: space-between;
    font-size: 10px;
    padding: 5px 8px;
  }

  /* Git-Wiki & Roadmap */
  .git-control-bar {
    padding: 10px 12px;
    gap: 10px;
  }
  .git-repo-pill {
    width: 100%;
    justify-content: center;
  }
  .git-branch-selector {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .git-branch-btn {
    font-size: 11px;
    padding: 5px 10px;
    flex-shrink: 0;
  }
  .milestone-header {
    padding: 16px 14px;
    gap: 12px;
  }
  .milestone-title {
    font-size: 17px;
  }
  .milestone-desc {
    font-size: 12.5px;
  }
  .milestone-progress-wrap {
    width: 100%;
    align-items: flex-start;
  }
  .milestone-progress-bar {
    width: 100%;
  }
  .milestone-stages-list {
    padding: 12px 14px;
    gap: 10px;
  }
  .stage-item {
    padding: 10px 12px;
    gap: 10px;
  }
  .stage-indicator {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .stage-name {
    font-size: 13px;
  }
  .stage-desc {
    font-size: 11.5px;
  }

  /* Git Timeline (Devlogs) */
  .devlog-filter-chips {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .devlog-filter-chip {
    flex-shrink: 0;
    font-size: 11px;
    padding: 5px 10px;
  }
  .git-commit-entry {
    gap: 0;
    flex-direction: column;
  }
  .git-node-column {
    display: none;
  }
  .git-commit-card {
    padding: 14px 12px;
  }
  .git-commit-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .git-commit-meta {
    font-size: 11px;
    gap: 6px;
  }
  .changelog-release-title {
    font-size: 16px;
  }
  .changelog-release-summary {
    font-size: 12.5px;
  }
  .changelog-release-body {
    font-size: 13px;
  }
  .changelog-release-body pre,
  .devlog-single-content pre {
    padding: 12px 14px !important;
    font-size: 11px !important;
  }

  /* Single Devlog View */
  .devlog-single-article {
    padding: 20px 16px;
    border-radius: 12px;
  }
  .devlog-single-title {
    font-size: 19px;
  }
  .devlog-single-content {
    font-size: 13.5px;
  }
  .diff-line-add,
  .diff-line-del {
    margin: 0 -14px;
    padding: 1px 8px;
  }

  /* Bio Dossier */
  .bio-hero-header {
    padding: 20px 16px;
    gap: 16px;
    align-items: center;
    text-align: center;
  }
  .bio-hero-avatar {
    width: 72px;
    height: 72px;
  }
  .bio-hero-top-row {
    justify-content: center;
    gap: 8px;
  }
  .bio-hero-name {
    font-size: 22px;
  }
  .bio-hero-subtitle {
    font-size: 12.5px;
  }
  .bio-hero-summary {
    font-size: 13px;
    text-align: left;
  }
  .bio-card {
    padding: 18px 16px;
  }
  .bio-card-title {
    font-size: 15px;
  }
  .bio-features-list li {
    font-size: 12.5px;
  }

  /* Chatix Mobile */
  .container-chat-fullwidth {
    padding: 0 10px !important;
  }
  .chat-hub-main {
    min-height: 420px;
    height: 68vh;
  }
  .chatix-input-bar {
    padding: 8px 10px;
    gap: 6px;
  }
  .chatix-user-pill {
    font-size: 11px;
    padding: 4px 8px;
  }
  .chatix-input {
    font-size: 13px;
    padding: 8px 12px;
  }
  .emoji-picker-popover {
    left: 6px;
    right: 6px;
    max-width: calc(100vw - 12px);
  }

  /* Servers Mobile */
  .cluster-grid {
    gap: 12px;
  }
  .server-hud-card {
    padding: 16px 14px;
  }
  .server-hud-title {
    font-size: 15px;
  }
  .server-hud-specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px 8px;
    gap: 4px;
  }
  .spec-label {
    font-size: 8.5px;
  }
  .spec-val {
    font-size: 11px;
  }
  .btn-copy-connect {
    font-size: 11px;
    padding: 9px 8px;
  }

  /* Bans & Top Leaderboard */
  .sb-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .sb-search-box {
    max-width: 100%;
  }
  .sb-counter-pill {
    text-align: center;
    font-size: 11.5px;
  }
  .sb-table-wrapper {
    margin-bottom: 20px;
    border-radius: 8px;
  }
  .sb-table th,
  .sb-table td {
    padding: 8px 10px;
    font-size: 11.5px;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 26px;
  }
  .page-hero-title {
    font-size: 21px;
  }
  .server-hud-specs {
    padding: 6px 6px;
  }
  .spec-val {
    font-size: 10.5px;
  }
  .chatix-input-bar {
    gap: 6px;
  }
}

/* ═══════════════════════════════════════════════════════════
   PROJECTS SHOWCASE PAGE — DFAN.SU ECOSYSTEM
   ═══════════════════════════════════════════════════════════ */
.projects-showcase-page {
  padding-bottom: 60px;
}

.project-showcase-card {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 36px;
  box-shadow: none !important;
  transition: border-color 0.2s ease;
}

.project-showcase-card:hover {
  border-color: var(--outline-variant);
}

.project-card-header {
  margin-bottom: 24px;
}

.project-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.project-brand-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid currentColor;
}

.pill-cyan {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
}

.pill-green {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.3);
}

.pill-purple {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.08);
  border-color: rgba(192, 132, 252, 0.3);
}

.project-status-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--on-surface-variant);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--outline);
}

.project-status-tag.status-active {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.project-status-tag.status-done {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

.project-main-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.project-main-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--on-surface-variant);
  margin: 0;
  max-width: 900px;
}

.project-media-banner {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--outline);
  margin-bottom: 24px;
  background: var(--surface-0);
}

.project-media-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.1) 0%, rgba(8, 9, 10, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
}

.project-media-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-surface);
  background: rgba(14, 16, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--outline-variant);
}

.project-connect-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 24px;
}

.connect-realmlist-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.connect-label {
  font-size: 12.5px;
  color: var(--on-surface-variant);
  font-weight: 500;
}

.connect-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--surface-0);
  border: 1px solid var(--outline-variant);
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  user-select: all;
}

.connect-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.project-feature-col {
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.feature-col-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.8;
  margin-bottom: 10px;
}

.feature-col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface);
  margin: 0 0 8px 0;
}

.feature-col-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--on-surface-variant);
  margin: 0;
}

.feature-col-desc code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--on-surface);
  background: var(--surface-0);
  padding: 1px 4px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--outline);
}

.project-specs-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--outline);
}

.specs-pill {
  font-size: 12px;
  color: var(--on-surface-variant);
  background: var(--surface-0);
  border: 1px solid var(--outline);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
}

.specs-pill strong {
  color: var(--on-surface);
}

.project-servers-subgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.project-server-box {
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.project-server-box:hover {
  border-color: var(--outline-variant);
}

.server-box-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.server-box-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-container);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.server-box-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-surface-dim);
}

.server-box-fps {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
}

.server-box-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--on-surface);
  margin: 0 0 8px 0;
}

.server-box-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--on-surface-variant);
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.server-box-desc code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--on-surface);
  background: var(--surface-0);
  padding: 1px 4px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--outline);
}

.server-box-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-box-actions .btn-copy-connect {
  flex-grow: 1;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.project-bottom-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--outline);
}

@media (max-width: 960px) {
  .project-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-servers-subgrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .project-showcase-card {
    padding: 20px 16px;
  }
  .project-main-title {
    font-size: 19px;
  }
  .project-media-banner {
    height: 190px;
  }
  .project-features-grid {
    grid-template-columns: 1fr;
  }
  .project-connect-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .connect-actions {
    justify-content: stretch;
  }
  .connect-actions .btn {
    flex: 1;
  }
}

/* ═══════════════════════════════════════════════════════════
   DEVLOG SINGLE ARTICLE PAGE — PREMIUM LAYOUT
   ═══════════════════════════════════════════════════════════ */
.devlog-article-page {
  padding-bottom: 60px;
}

.devlog-single-article {
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: none !important;
}

.devlog-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--outline);
  flex-wrap: wrap;
}

.devlog-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
  background: var(--surface-2);
  border: 1px solid var(--outline);
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: all 0.15s ease;
}

.devlog-back-btn:hover {
  color: var(--primary);
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}

.devlog-top-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.devlog-category-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid currentColor;
}

.devlog-category-badge.tag-alert {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.3);
}

.devlog-category-badge.tag-patch {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.3);
}

.devlog-category-badge.tag-engine {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
}

.devlog-date-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--on-surface-dim);
}

.devlog-single-header {
  margin-bottom: 24px;
}

.devlog-git-meta-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.git-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--outline);
  background: var(--surface-2);
}

.git-pill-commit {
  color: var(--primary);
  border-color: rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.08);
  font-weight: 700;
}

.git-pill-branch {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.08);
  font-weight: 500;
}

.git-pill-version {
  color: var(--on-surface);
  font-weight: 600;
}

.devlog-author-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--on-surface-variant);
  background: var(--surface-2);
  border: 1px solid var(--outline);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.devlog-author-pill img {
  border-radius: 3px;
}

.devlog-single-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.35;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.devlog-single-lead {
  font-size: 14.5px;
  color: var(--on-surface-variant);
  line-height: 1.6;
  margin: 0;
}

.devlog-featured-media {
  margin: 24px 0 28px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--outline);
  background: var(--surface-0);
}

.devlog-featured-media img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.devlog-single-content {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--on-surface);
}

.devlog-single-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 28px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--outline);
}

.devlog-single-content h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary);
  margin: 20px 0 10px 0;
  font-family: var(--font-mono);
}

.devlog-single-content p {
  margin-bottom: 16px;
}

.devlog-single-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.devlog-single-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.devlog-single-content pre {
  margin: 16px 0 20px 0;
  background: var(--surface-0);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  overflow-x: auto;
}

.devlog-single-content pre code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
}

.diff-line-add {
  color: #4ade80;
  display: block;
}

.diff-line-del {
  color: #f87171;
  display: block;
}

.devlog-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--outline);
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .devlog-single-article {
    padding: 20px 16px;
  }
  .devlog-single-title {
    font-size: 20px;
  }
  .devlog-author-pill {
    margin-left: 0;
  }
  .devlog-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}



