/* ============================================================
   GRAND — shared styles
   themes: dark / light
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  transition: background 0.4s;
}

:root,
[data-theme="dark"] {
  --bg: #000000;
  --bg-1: #08080a;
  --bg-2: #0f0f12;
  --bg-card: rgba(255, 255, 255, 0.015);
  --bg-card-hov: rgba(255, 255, 255, 0.03);
  --bg-elev: rgba(255, 255, 255, 0.02);
  --line: #1a1a1d;
  --line-hi: #26262b;
  --text: #fafafa;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --text-4: #3f3f46;
  --nav-bg: rgba(0, 0, 0, 0.92);
  --nav-bg-scroll: rgba(0, 0, 0, 0.97);
  --btn-primary-bg: #fafafa;
  --btn-primary-text: #000;
  --btn-primary-hov: #d4d4d4;
  --accent-glow-1: rgba(37, 99, 235, 0.35);
  --accent-glow-2: rgba(168, 85, 247, 0.22);
  --accent-glow-3: rgba(0, 212, 255, 0.15);
  --vk-head-bg: #08080a;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-1: #fafafa;
  --bg-2: #f5f5f5;
  --bg-card: rgba(0, 0, 0, 0.015);
  --bg-card-hov: rgba(0, 0, 0, 0.03);
  --bg-elev: rgba(0, 0, 0, 0.02);
  --line: #ebebeb;
  --line-hi: #d4d4d4;
  --text: #0a0a0a;
  --text-2: #52525b;
  --text-3: #71717a;
  --text-4: #a1a1aa;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --nav-bg-scroll: rgba(255, 255, 255, 1);
  --btn-primary-bg: #0a0a0a;
  --btn-primary-text: #ffffff;
  --btn-primary-hov: #262626;
  --accent-glow-1: rgba(37, 99, 235, 0.15);
  --accent-glow-2: rgba(168, 85, 247, 0.1);
  --accent-glow-3: rgba(0, 212, 255, 0.08);
  --vk-head-bg: #f7f8fa;
}

:root {
  --blue: #2563eb;
  --cyan: #00d4ff;
  --purple: #a855f7;
  --pink: #ff6b9d;
  --green: #10b981;
  --amber: #ffb000;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
  transition: background 0.4s, color 0.4s;

  /* ↓↓↓ ДОБАВИТЬ ЭТО ↓↓↓ */
  display: flex;
  flex-direction: column;
}

::selection { background: var(--cyan); color: #000; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--line-hi);
  border-radius: 5px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-4); }

/* BG GLOWS */
.bg-glows {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.glow-1 {
  width: 900px; height: 900px;
  top: -400px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow-1), transparent 60%);
}

.glow-2 {
  width: 700px; height: 700px;
  top: 40%; right: -300px;
  background: radial-gradient(circle, var(--accent-glow-2), transparent 60%);
}

.glow-3 {
  width: 600px; height: 600px;
  bottom: 10%; left: -200px;
  background: radial-gradient(circle, var(--accent-glow-3), transparent 60%);
}

/* NAV */

.nav,
.nav *,
.brand,
.nav-link,
.btn-nav,
.nav-dropdown-toggle,
.mobile-menu a {
  font-family: 'Onest', 'Inter', sans-serif !important;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  transition: all 0.3s;
}

.nav.scrolled {
  background: var(--nav-bg-scroll);
  border-bottom-color: var(--line-hi);
}

.nav-inner {
  max-width: 1400px;   /* было 1200px */
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
  transition: all 0.3s;
}

.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.15s;
  white-space: nowrap;  /* ← ДОБАВЬ */
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-card-hov);
}

.nav-link.active {
  color: var(--text);
  background: var(--bg-card-hov);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;   /* было 10px */
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line-hi);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-toggle:hover {
  background: var(--bg-card-hov);
  border-color: var(--text-4);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.theme-toggle:hover svg { transform: rotate(20deg); }

.nav-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line-hi);
  border-radius: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-2);
  font-weight: 500;
}

.nav-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.btn-nav {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--btn-primary-text);
  background: var(--btn-primary-bg);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--btn-primary-hov);
  transform: translateY(-1px);
}

.btn-nav-accent {
  background: linear-gradient(135deg, #00d4ff, #a855f7, #ff6b9d);
  color: #fff;
}

.btn-nav-accent:hover {
  background: linear-gradient(135deg, #00d4ff, #a855f7, #ff6b9d);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.35), 0 0 60px rgba(168, 85, 247, 0.2);
}

.burger {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-hi);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.burger span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-inner { padding: 0 20px; gap: 16px; }
  .nav-links, .nav-badge { display: none; }
  .burger { display: flex; }
  .btn-nav { padding: 7px 12px; font-size: 12px; }
}

.wrap {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px 80px;
  position: relative;
  z-index: 10;
}

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
}

/* PAGE HEADER */
.page-header {
  padding: 160px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-header h1 .grad {
  background: linear-gradient(120deg, #2563eb 0%, #00d4ff 25%, #a855f7 55%, #ff6b9d 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease-in-out infinite;
}

.page-header .sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
  animation: fadeUp 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* BTN */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.btn-primary {
  color: var(--btn-primary-text);
  background: var(--btn-primary-bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.35), 0 0 60px rgba(168, 85, 247, 0.2);
  background: linear-gradient(135deg, #00d4ff, #a855f7, #ff6b9d);
  color: #fff;
}

.btn-primary .arrow { transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--line-hi);
}

.btn-ghost:hover {
  background: var(--bg-card-hov);
  border-color: var(--text-4);
}

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

.feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature:hover {
  border-color: var(--line-hi);
  background: var(--bg-card-hov);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--line-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.feature:hover .feature-icon { transform: scale(1.06) rotate(-4deg); }
.feature:hover .feature-icon::before { opacity: 1; }
.feature:hover .feature-icon svg { transform: scale(1.08); }

.feature-icon-shield  { color: #4C8DFF; }
.feature-icon-shield::before  { background: radial-gradient(circle at 30% 30%, rgba(76, 141, 255, 0.25), transparent 70%); }

.feature-icon-crown   { color: #FFB84D; }
.feature-icon-crown::before   { background: radial-gradient(circle at 30% 30%, rgba(255, 184, 77, 0.25), transparent 70%); }

.feature-icon-tag     { color: #C88DFF; }
.feature-icon-tag::before     { background: radial-gradient(circle at 30% 30%, rgba(200, 141, 255, 0.25), transparent 70%); }

.feature-icon-link    { color: #6BE3C0; }
.feature-icon-link::before    { background: radial-gradient(circle at 30% 30%, rgba(107, 227, 192, 0.25), transparent 70%); }

.feature-icon-game    { color: #FF6B9D; }
.feature-icon-game::before    { background: radial-gradient(circle at 30% 30%, rgba(255, 107, 157, 0.25), transparent 70%); }

.feature-icon-box     { color: #FF9F43; }
.feature-icon-box::before     { background: radial-gradient(circle at 30% 30%, rgba(255, 159, 67, 0.25), transparent 70%); }

.feature-icon-bolt    { color: #FFD166; }
.feature-icon-bolt::before    { background: radial-gradient(circle at 30% 30%, rgba(255, 209, 102, 0.25), transparent 70%); }

.feature-icon-chat    { color: #00D4FF; }
.feature-icon-chat::before    { background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.25), transparent 70%); }

.feature-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ROLES */
.roles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

@media (max-width: 900px) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .roles { grid-template-columns: 1fr; } }

.role {
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.role:hover {
  border-color: var(--line-hi);
  background: var(--bg-card-hov);
  transform: translateY(-3px);
}

.role-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid var(--line-hi);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.role-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.role-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.role:hover .role-icon { transform: scale(1.06) rotate(-4deg); }
.role:hover .role-icon::before { opacity: 1; }
.role:hover .role-icon svg { transform: scale(1.08); }

.role-icon-owner  { color: #FFB84D; }
.role-icon-owner::before  { background: radial-gradient(circle at 30% 30%, rgba(255, 184, 77, 0.25), transparent 70%); }

.role-icon-glav   { color: #FF6B9D; }
.role-icon-glav::before   { background: radial-gradient(circle at 30% 30%, rgba(255, 107, 157, 0.25), transparent 70%); }

.role-icon-admin  { color: #4C8DFF; }
.role-icon-admin::before  { background: radial-gradient(circle at 30% 30%, rgba(76, 141, 255, 0.25), transparent 70%); }

.role-icon-moder  { color: #FF9F43; }
.role-icon-moder::before  { background: radial-gradient(circle at 30% 30%, rgba(255, 159, 67, 0.25), transparent 70%); }

.role-icon-helper { color: #6BE3C0; }
.role-icon-helper::before { background: radial-gradient(circle at 30% 30%, rgba(107, 227, 192, 0.25), transparent 70%); }

.role-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; }

.role-bar {
  height: 3px;
  background: var(--line-hi);
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
}

.role-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #a855f7, #ff6b9d);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.role-prio {
  font-size: 11px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}

.role-prio .val { color: var(--text); font-weight: 600; }

/* COMMANDS */
.cmd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
  padding: 5px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: fit-content;
  max-width: 100%;
}

.cmd-tab {
  padding: 9px 16px;
  background: transparent;
  border: none;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.cmd-tab:hover { color: var(--text); }

.cmd-tab.active {
  background: var(--bg-card-hov);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 10px;
}

.cmd {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  transition: all 0.2s;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cmd:hover { border-color: var(--line-hi); background: var(--bg-card-hov); }

.cmd-sym {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
}

.cmd-body { flex: 1; min-width: 0; }

.cmd-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  word-break: break-word;
  line-height: 1.5;
}

.cmd-name .arg { color: var(--amber); }
.cmd-desc { font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* VIP */
.vip {
  border: 1px solid rgba(255, 176, 0, 0.2);
  border-radius: 20px;
  padding: 56px 48px;
  background:
    radial-gradient(ellipse 60% 100% at 0% 0%, rgba(255, 176, 0, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 100% at 100% 100%, rgba(255, 107, 157, 0.06), transparent 60%),
    var(--bg-card);
}

@media (max-width: 720px) { .vip { padding: 36px 24px; } }

.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 176, 0, 0.08);
  border: 1px solid rgba(255, 176, 0, 0.3);
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 24px;
}

.vip h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffb000, #ff6b9d, #a855f7);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease-in-out infinite;
}

.vip p {
  font-size: 16px;
  color: var(--text-2);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.vip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 720px) { .vip-grid { grid-template-columns: 1fr; } }

.vip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.2s;
}

.vip-item:hover {
  border-color: rgba(255, 176, 0, 0.3);
  background: rgba(255, 176, 0, 0.04);
}

.vip-item .vip-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 176, 0, 0.25);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vip-item .vip-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vip-item .vip-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.vip-item:hover .vip-icon { transform: scale(1.06) rotate(-4deg); }
.vip-item:hover .vip-icon::before { opacity: 1; }
.vip-item:hover .vip-icon svg { transform: scale(1.08); }

.vip-icon-link    { color: #FFB84D; }
.vip-icon-link::before    { background: radial-gradient(circle at 30% 30%, rgba(255, 184, 77, 0.28), transparent 70%); }

.vip-icon-tag     { color: #FFC46B; }
.vip-icon-tag::before     { background: radial-gradient(circle at 30% 30%, rgba(255, 196, 107, 0.28), transparent 70%); }

.vip-icon-bolt    { color: #FFD166; }
.vip-icon-bolt::before    { background: radial-gradient(circle at 30% 30%, rgba(255, 209, 102, 0.28), transparent 70%); }

.vip-icon-sparkle { color: #FF9F43; }
.vip-icon-sparkle::before { background: radial-gradient(circle at 30% 30%, rgba(255, 159, 67, 0.28), transparent 70%); }

.vip-icon-stats   { color: #FFB84D; }
.vip-icon-stats::before   { background: radial-gradient(circle at 30% 30%, rgba(255, 184, 77, 0.28), transparent 70%); }

.vip-icon-mask    { color: #FF6B9D; }
.vip-icon-mask::before    { background: radial-gradient(circle at 30% 30%, rgba(255, 107, 157, 0.28), transparent 70%); }

.vip-item .text { font-size: 14px; color: var(--text); line-height: 1.55; opacity: 0.9; }

/* STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.step:hover {
  border-color: var(--line-hi);
  background: var(--bg-card-hov);
  transform: translateY(-3px);
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 20px;
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.05);
}

.step-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.step-text { font-size: 14px; color: var(--text-2); line-height: 1.65; }

.step-text a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  transition: all 0.2s;
}

.step-text a:hover { color: var(--text); border-bottom-color: var(--text); }

.step-text code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--amber);
  background: rgba(255, 176, 0, 0.08);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 176, 0, 0.15);
}

.cta {
  text-align: center;
  padding: 100px 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, var(--accent-glow-1), transparent 60%),
    var(--bg-card);
}

@media (max-width: 720px) { .cta { padding: 60px 24px; } }

.cta h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
}

.cta h2 .grad {
  background: linear-gradient(135deg, #00d4ff, #a855f7, #ff6b9d, #ffb000);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease-in-out infinite;
}

.cta p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-3);
  position: relative;
  z-index: 10;
}

.cta-section {
  padding-bottom: 40px;
}

.footer-left { display: flex; align-items: center; gap: 12px; }

.footer-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

.footer-brand { font-weight: 700; color: var(--text); }
.footer-sep { color: var(--text-4); }

.footer-right {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.footer-link {
  color: var(--text-3);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  transition: color 0.2s;
  position: relative;
}

.footer-link:hover { color: var(--cyan); }

.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
}

@media (max-width: 720px) { .footer { flex-direction: column; text-align: center; } }

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: var(--bg);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  z-index: 99;
  padding: 12px 20px;
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  padding: 14px 12px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s;
}

.mobile-menu a:hover { color: var(--text); background: var(--bg-card-hov); }

.mobile-menu-sep {
  height: 1px;
  background: var(--line);
  margin: 8px 12px;
}

/* ============================================================
   NAV DROPDOWN («Ещё»)
   ============================================================ */

.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.15s;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--text);
  background: var(--bg-card-hov);
}

.nav-dropdown-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.7;
}

.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  padding: 8px;
  background: var(--bg-1);
  border: 1px solid var(--line-hi);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 60px var(--accent-glow-1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 120;
}

[data-theme="light"] .nav-dropdown-menu {
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 60px var(--accent-glow-1);
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 24px;
  width: 10px;
  height: 10px;
  background: var(--bg-1);
  border-left: 1px solid var(--line-hi);
  border-top: 1px solid var(--line-hi);
  transform: rotate(45deg);
}

[data-theme="light"] .nav-dropdown-menu::before { background: #ffffff; }

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-2);
  transition: all 0.15s;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-card-hov);
  color: var(--text);
}

.nav-dropdown-menu a.active {
  background: var(--bg-card-hov);
  color: var(--text);
}

.nav-dropdown-menu a.active .dd-title { color: var(--cyan); }

.dd-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dd-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.dd-desc {
  font-size: 11.5px;
  color: var(--text-4);
  line-height: 1.3;
}

.nav-dropdown-menu .dd-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-hi);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-menu .dd-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-menu .dd-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.nav-dropdown-menu a:hover .dd-icon { transform: scale(1.06) rotate(-4deg); }
.nav-dropdown-menu a:hover .dd-icon::before { opacity: 1; }
.nav-dropdown-menu a:hover .dd-icon svg { transform: scale(1.08); }

.nav-dropdown-menu .dd-icon.offer { color: #4C8DFF; }
.nav-dropdown-menu .dd-icon.offer::before {
  background: radial-gradient(circle at 30% 30%, rgba(76, 141, 255, 0.25), transparent 70%);
}

.nav-dropdown-menu .dd-icon.privacy { color: #C88DFF; }
.nav-dropdown-menu .dd-icon.privacy::before {
  background: radial-gradient(circle at 30% 30%, rgba(200, 141, 255, 0.25), transparent 70%);
}

.nav-dropdown-menu .dd-icon.rkn { color: #4ade80; }
.nav-dropdown-menu .dd-icon.rkn::before {
  background: radial-gradient(circle at 30% 30%, rgba(74, 222, 128, 0.25), transparent 70%);
}

/* ============================================================
   LINKS PAGE
   ============================================================ */

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

@media (max-width: 720px) {
  .links-grid { grid-template-columns: 1fr; }
}

.link-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-card);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.link-card:hover::before { opacity: 1; }

.link-card:hover {
  border-color: var(--line-hi);
  background: var(--bg-card-hov);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 212, 255, 0.12);
}

.link-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--line-hi);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.link-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  position: relative;
  z-index: 1;
}

.link-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.link-card:hover .link-icon { transform: scale(1.1) rotate(-6deg); }
.link-card:hover .link-icon::before { opacity: 1; }

.link-icon.vk    { color: #4C8DFF; }
.link-icon.vk::before    { background: radial-gradient(circle at 30% 30%, rgba(76, 141, 255, 0.22), transparent 70%); }

.link-icon.forum { color: #C88DFF; }
.link-icon.forum::before { background: radial-gradient(circle at 30% 30%, rgba(200, 141, 255, 0.22), transparent 70%); }

.link-icon.chat  { color: #6BE3C0; }
.link-icon.chat::before  { background: radial-gradient(circle at 30% 30%, rgba(107, 227, 192, 0.22), transparent 70%); }

.link-icon.site  { color: #FFB84D; }
.link-icon.site::before  { background: radial-gradient(circle at 30% 30%, rgba(255, 184, 77, 0.22), transparent 70%); }

.link-body { flex: 1; min-width: 0; }

.link-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.link-title .ext {
  font-size: 11px;
  color: var(--text-4);
  font-weight: 500;
}

.link-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}

.link-arrow {
  font-size: 20px;
  color: var(--text-4);
  transition: all 0.3s;
  flex-shrink: 0;
}

.link-card:hover .link-arrow {
  color: var(--cyan);
  transform: translateX(4px);
}

.links-section { padding: 20px 0 100px; }

/* ============================================================
   LEGAL PAGES (оферта, политика конфиденциальности)
   ============================================================ */

.legal-section { padding: 20px 0 100px; }

.legal-wrap {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--line-hi);
  border-radius: 20px;
  background: var(--bg-card);
  padding: 48px 48px 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35), 0 0 100px var(--accent-glow-1);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

[data-theme="light"] .legal-wrap {
  box-shadow: 0 30px 80px rgba(0,0,0,0.06), 0 0 100px var(--accent-glow-1);
}

.legal-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #00d4ff, #a855f7, #ff6b9d);
  background-size: 200% 100%;
  animation: gradientShift 6s ease-in-out infinite;
}

@media (max-width: 720px) {
  .legal-wrap { padding: 28px 20px 32px; border-radius: 16px; }
}

.legal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

@media (max-width: 720px) {
  .legal-meta { grid-template-columns: 1fr; }
}

.legal-meta-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

[data-theme="light"] .legal-meta-item { background: #ffffff; }

.legal-meta-item .label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
  font-family: 'JetBrains Mono', monospace;
}

.legal-meta-item .value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.legal-toc {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elev);
  margin-bottom: 36px;
}

.legal-toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 12px;
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}

@media (max-width: 640px) {
  .legal-toc ol { grid-template-columns: 1fr; }
}

.legal-toc li { counter-increment: toc; }

.legal-toc a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-2);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
  line-height: 1.5;
}

.legal-toc a::before {
  content: counter(toc) ".";
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  min-width: 18px;
}

.legal-toc a:hover { color: var(--text); }

.legal-body {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.75;
}

.legal-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.legal-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-body p {
  margin-bottom: 12px;
  color: var(--text-2);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-body p.legal-sub {
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-3);
}

.legal-body a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.25);
  transition: all 0.2s;
}

.legal-body a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.legal-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--amber);
  background: rgba(255, 176, 0, 0.08);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgba(255, 176, 0, 0.15);
}

.legal-body b, .legal-body strong {
  color: var(--text);
  font-weight: 600;
}

.legal-foot {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

@media (max-width: 480px) {
  .legal-foot { flex-direction: column; }
  .legal-foot .btn { justify-content: center; }
}

/* ============================================================
   COMMANDS — поиск
   ============================================================ */

.cmd-search {
  position: relative;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.cmd-search-input {
  width: 100%;
  padding: 14px 96px 14px 44px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

[data-theme="light"] .cmd-search-input { background: #ffffff; }

.cmd-search-input::placeholder { color: var(--text-4); }

.cmd-search-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
  background: var(--bg-2);
}

[data-theme="light"] .cmd-search-input:focus { background: #ffffff; }

.cmd-search-icon {
  position: absolute;
  left: 15px;
  width: 16px;
  height: 16px;
  color: var(--text-3);
  pointer-events: none;
  transition: color 0.2s;
}

.cmd-search-input:focus ~ .cmd-search-icon,
.cmd-search:focus-within .cmd-search-icon { color: var(--cyan); }

.cmd-search-count {
  position: absolute;
  right: 46px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  white-space: nowrap;
  pointer-events: none;
}

.cmd-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 7px;
  transition: all 0.15s;
}

.cmd-search-clear.visible { display: flex; }

.cmd-search-clear:hover {
  color: var(--text);
  background: var(--bg-card-hov);
}

.cmd-search-clear svg { width: 14px; height: 14px; }

.cmd-cat {
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 5px;
}

.cmd-name mark,
.cmd-desc mark {
  background: rgba(0, 212, 255, 0.18);
  color: var(--cyan);
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 700;
}

.cmd-empty {
  padding: 60px 24px;
  text-align: center;
  border: 1px dashed var(--line-hi);
  border-radius: 16px;
  background: var(--bg-card);
  animation: fadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cmd-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--line-hi);
  background: var(--bg-2);
  color: var(--text-3);
}

.cmd-empty-icon svg { width: 26px; height: 26px; }

.cmd-empty-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.cmd-empty-desc {
  font-size: 13.5px;
  color: var(--text-3);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ============================================================
   HOME PAGE (index.html)
   ============================================================ */

/* HERO */
.hero { padding: 180px 0 100px; text-align: center; }

.vk-panel, .vk-body, .vk-stats,
.vk-chat-box, .vk-chat-msg, .vk-chat-bubble,
.vk-chat-text, .vk-reason, .vk-chat-time, .vk-chat-author {
  text-align: left;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 14px; border: 1px solid var(--line-hi);
  border-radius: 100px; font-size: 12px; font-weight: 500;
  color: var(--text-2); margin-bottom: 32px; background: var(--bg-elev);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-tag-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(0, 212, 255, 0.3); border-radius: 100px;
  font-size: 10px; font-weight: 700; color: var(--cyan);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}

.hero-tag-pill::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  animation: pulseDot 1.5s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(44px, 7.5vw, 96px); font-weight: 800; line-height: 1.02;
  letter-spacing: -0.045em; margin-bottom: 28px;
  animation: fadeUp 0.8s 0.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 .grad {
  background: linear-gradient(120deg, #2563eb 0%, #00d4ff 25%, #a855f7 55%, #ff6b9d 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease-in-out infinite;
}

.hero h1 .dim { color: var(--text-3); }

.hero-sub {
  font-size: 19px; color: var(--text-2); max-width: 640px;
  margin: 0 auto 44px; line-height: 1.6;
  animation: fadeUp 0.8s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex; justify-content: center; gap: 12px;
  margin-bottom: 80px; flex-wrap: wrap;
  animation: fadeUp 0.8s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* VK PANEL */
.vk-panel {
  max-width: 980px; margin: 0 auto; border: 1px solid var(--line-hi);
  border-radius: 16px; background: var(--bg-1); overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 120px var(--accent-glow-1);
  animation: fadeUp 0.9s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: background 0.4s, box-shadow 0.4s;
}

[data-theme="light"] .vk-panel {
  box-shadow: 0 40px 100px rgba(0,0,0,0.08), 0 0 120px var(--accent-glow-1);
}

.vk-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  border-bottom: 1px solid var(--line); background: var(--vk-head-bg);
}

.vk-head-ava {
  width: 40px; height: 40px; padding: 2px; border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #a855f7, #ff6b9d);
  flex-shrink: 0;
}

.vk-head-ava img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--vk-head-bg); display: block;
}

.vk-head-info { flex: 1; min-width: 0; }

.vk-head-name {
  font-size: 15px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}

.vk-head-status {
  font-size: 12px; color: var(--green);
  display: flex; align-items: center; gap: 5px; margin-top: 1px;
}

.vk-head-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  animation: pulseDot 2s ease-in-out infinite;
}

.vk-verify {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #a855f7);
  color: #fff; font-size: 8px; font-weight: 900;
}

.vk-verify.sm { width: 12px; height: 12px; font-size: 7px; }

.vk-head-menu {
  display: flex; gap: 3px; padding: 10px; color: var(--text-3);
  border-radius: 8px;
}

.vk-head-menu span {
  width: 3px; height: 3px; border-radius: 50%; background: currentColor;
}

.vk-body {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 0;
}

@media (max-width: 720px) { .vk-body { grid-template-columns: 1fr; } }

.vk-stats { padding: 24px 28px; display: flex; flex-direction: column; }

.vk-stat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px;
}

.vk-stat:last-child { border-bottom: none; }
.vk-stat-label { color: var(--text-3); font-weight: 500; }

.vk-stat-val {
  color: var(--text); font-weight: 600;
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
}

.vk-stat-val.green { color: var(--green); }
.vk-stat-val.blue { color: var(--cyan); }
.vk-stat-val.purple { color: var(--purple); }
.vk-stat-val.pink { color: var(--pink); }

/* CHAT */
.vk-chat-box {
  padding: 20px 0; display: flex; flex-direction: column; gap: 12px;
  border-left: 1px solid var(--line);
  max-height: 400px; overflow-y: auto;
}

@media (max-width: 720px) {
  .vk-chat-box { border-left: none; border-top: 1px solid var(--line); }
}

.vk-chat-box::-webkit-scrollbar { width: 4px; }
.vk-chat-box::-webkit-scrollbar-thumb { background: var(--line-hi); border-radius: 2px; }

.vk-chat-msg {
  display: flex; gap: 10px; align-items: flex-start; padding: 0 20px;
  animation: vkFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.vk-chat-msg:nth-child(1) { animation-delay: 0.5s; }
.vk-chat-msg:nth-child(2) { animation-delay: 0.65s; }
.vk-chat-msg:nth-child(3) { animation-delay: 0.8s; }
.vk-chat-msg:nth-child(4) { animation-delay: 0.95s; }

@keyframes vkFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.vk-chat-ava {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; display: block;
}

.vk-chat-ava.bot {
  padding: 2px; background: linear-gradient(135deg, #00d4ff, #a855f7, #ff6b9d);
  box-shadow: 0 0 10px rgba(0,212,255,0.35);
}

.vk-chat-ava.bot img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--bg-1); display: block;
}

[data-theme="light"] .vk-chat-ava.bot img { border-color: #fafbfc; }

.vk-chat-bubble {
  flex: 1; min-width: 0; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 14px;
  border-top-left-radius: 4px; padding: 8px 12px 6px;
}

[data-theme="light"] .vk-chat-bubble { background: #ffffff; }

.vk-chat-msg.me { flex-direction: row-reverse; }

.vk-chat-msg.me .vk-chat-bubble {
  background: linear-gradient(135deg, rgba(81, 129, 184, 0.15), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(81, 129, 184, 0.3);
  border-top-left-radius: 14px;
  border-top-right-radius: 4px;
}

.vk-chat-bubble.bot {
  background: rgba(0, 212, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.2);
  border-top-left-radius: 14px; border-top-right-radius: 4px;
}

.vk-chat-author {
  font-size: 11px; font-weight: 700; color: var(--text-2);
  margin-bottom: 3px; display: flex; align-items: center; gap: 5px;
}

.vk-chat-bubble.bot .vk-chat-author { color: var(--cyan); }

.vk-chat-text {
  font-size: 12.5px; color: var(--text); line-height: 1.45;
  word-break: break-word;
}

.vk-chat-text code {
  color: var(--amber); font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; background: rgba(255, 176, 0, 0.12);
  padding: 1px 5px; border-radius: 4px; font-weight: 600;
}

.vk-reason {
  margin-top: 6px;
  padding-left: 10px;
  border-left: 2px solid rgba(0, 212, 255, 0.4);
  font-size: 12px;
  color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.5;
}

.vk-reason:first-of-type { margin-top: 10px; }

.vk-chat-reactions { display: flex; gap: 4px; margin-top: 7px; }

.vk-react {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2); border-radius: 100px;
  font-size: 10.5px; font-weight: 600; color: var(--text-2);
}

.vk-chat-time {
  font-size: 10px; color: var(--text-4); margin-top: 4px;
  display: flex; align-items: center; gap: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.vk-tick { color: var(--cyan); font-weight: 700; letter-spacing: -1.5px; }

/* TRUST */
.trust {
  padding: 60px 0 80px; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  animation: fadeUp 0.9s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.trust-label {
  text-align: center; font-size: 12px; color: var(--text-3);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 32px; font-weight: 500;
}

.trust-items {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 48px;
}

.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--text-3);
}

.trust-item .check { color: var(--green); font-size: 15px; }

@media (max-width: 720px) {
  .trust-items { gap: 20px; }
  .trust-item { font-size: 13px; }
}

/* HOME SECTIONS (Быстрые переходы) */
.home-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 80px 0;
}

@media (max-width: 900px) { .home-sections { grid-template-columns: 1fr; } }

.home-card {
  padding: 32px 28px; border: 1px solid var(--line);
  border-radius: 18px; background: var(--bg-card);
  text-decoration: none; color: var(--text);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column;
}

.home-card:hover {
  border-color: var(--line-hi); background: var(--bg-card-hov);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,212,255,0.12);
}

.home-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid var(--line-hi);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-card-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-card-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.home-card:hover .home-card-icon { transform: scale(1.06) rotate(-4deg); }
.home-card:hover .home-card-icon::before { opacity: 1; }
.home-card:hover .home-card-icon svg { transform: scale(1.08); }

.home-card-icon-bolt { color: #FFB84D; }
.home-card-icon-bolt::before {
  background: radial-gradient(circle at 30% 30%, rgba(255, 184, 77, 0.25), transparent 70%);
}

.home-card-icon-chat { color: #00D4FF; }
.home-card-icon-chat::before {
  background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.25), transparent 70%);
}

.home-card-icon-link { color: #6BE3C0; }
.home-card-icon-link::before {
  background: radial-gradient(circle at 30% 30%, rgba(107, 227, 192, 0.25), transparent 70%);
}

.home-card-title {
  font-size: 18px; font-weight: 700; margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.home-card-desc {
  font-size: 14px; color: var(--text-2); line-height: 1.6;
  margin-bottom: 18px; flex: 1;
}

.home-card-link {
  font-size: 13px; font-weight: 600; color: var(--cyan);
  display: flex; align-items: center; gap: 6px;
}


/* ============================================================
   АНИМИРОВАННЫЕ СЧЁТЧИКИ В VK-ПАНЕЛИ
   ============================================================ */

.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums; /* цифры не «прыгают» */
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.counter.counting {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

.counter.done {
  color: inherit;
  text-shadow: none;
}

.posts-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 0 100px;
}

.posts-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 24px;
  transition: all 0.3s;
  word-break: break-word;
  text-align: center;
}
.posts-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-4);
  transition: all 0.3s;
  flex-shrink: 0;
}
.posts-status.loading .dot { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulseDot 1s ease-in-out infinite; }
.posts-status.ok .dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.posts-status.fail .dot { background: var(--pink); box-shadow: 0 0 10px var(--pink); }

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* КАРТОЧКА ПОСТА */
.post-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  animation: postIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes postIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.post-card:hover {
  border-color: var(--line-hi);
  background: var(--bg-card-hov);
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(0, 212, 255, 0.08);
}
.post-card:hover::before { opacity: 1; }

/* АВТОР */
.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.post-author:hover .post-author-name { color: var(--cyan); }
.post-author-ava {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--line-hi);
  background: var(--bg-2);
  display: block;
}
.post-author-info { flex: 1; min-width: 0; }
.post-author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
  transition: color 0.2s;
}
.post-author-name svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.5;
}

/* ХЕДЕР ПОСТА */
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.post-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  padding: 4px 12px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}
[data-theme="light"] .post-date {
  background: rgba(8, 145, 178, 0.08);
  border-color: rgba(8, 145, 178, 0.2);
}
.post-id {
  font-size: 10.5px;
  color: var(--text-4);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

/* ТЕКСТ */
.post-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 14px;
}
.post-text a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  transition: all 0.2s;
  word-break: break-all;
}
.post-text a:hover { color: var(--text); border-bottom-color: var(--text); }

/* ============================================================
   СЕТКА ФОТО В ПОСТЕ
   ============================================================ */
.post-images {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

/* 1 фото — во всю ширину */
.post-images:has(.post-image:only-child) {
  grid-template-columns: 1fr;
}

/* 2 фото — 2 колонки */
.post-images:has(.post-image:nth-child(2)):not(:has(.post-image:nth-child(3))) {
  grid-template-columns: 1fr 1fr;
}

/* 3+ фото — 2 колонки */
.post-images:has(.post-image:nth-child(3)) {
  grid-template-columns: 1fr 1fr;
}

.post-images .post-image {
  margin-bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  max-height: 260px;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: opacity 0.2s, transform 0.3s;
  display: block;
}

.post-images .post-image:hover {
  opacity: 0.95;
  transform: scale(1.01);
}

/* Если 1 фото — показываем как раньше */
.post-images:has(.post-image:only-child) .post-image {
  aspect-ratio: auto;
  max-height: 400px;
  object-fit: cover;
}

/* Одиночное фото (без обёртки .post-images) */
.post-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  display: block;
  cursor: zoom-in;
  transition: opacity 0.2s, transform 0.3s;
}
.post-image:hover {
  opacity: 0.95;
  transform: scale(1.005);
}

/* РЕПОСТ */
.post-repost {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.03);
}
.post-repost-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
}
.post-repost-head:hover .post-repost-name { color: var(--cyan); }
.post-repost-ava {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--line-hi);
  flex-shrink: 0;
}
.post-repost-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  transition: color 0.2s;
}
.post-repost-date {
  font-size: 10.5px;
  color: var(--text-4);
  font-family: 'JetBrains Mono', monospace;
  margin-left: auto;
}
.post-repost-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.post-repost-text a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}
.post-repost-text a:hover { color: var(--text); border-bottom-color: var(--text); }
.post-repost-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 8px;
}

/* ФУТЕР ПОСТА */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
}
.post-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.post-stat {
  display: flex; align-items: center; gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; font-weight: 500;
}
.post-stat.likes { color: var(--pink); }
.post-stat.comments { color: var(--cyan); }
.post-stat.views { color: var(--text-3); }

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 12.5px;
  transition: all 0.2s;
}
.post-link:hover { color: var(--text); gap: 10px; }
.post-link svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s;
}
.post-link:hover svg { transform: translateX(3px); }

/* СОСТОЯНИЯ */
.posts-loading,
.posts-error,
.posts-empty {
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--line-hi);
  border-radius: 16px;
  background: var(--bg-card);
  animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.posts-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--line-hi);
  border-top-color: var(--cyan);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.posts-loading-title,
.posts-error-title,
.posts-empty-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.posts-loading-desc,
.posts-error-desc,
.posts-empty-desc {
  font-size: 13.5px;
  color: var(--text-3);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}
.posts-error {
  border-style: solid;
  border-color: rgba(255, 107, 157, 0.3);
  background: rgba(255, 107, 157, 0.04);
}
.posts-error-title { color: var(--pink); }
.posts-error-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--pink);
  opacity: 0.75;
  word-break: break-all;
}
.posts-error-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* ЛОАДЕР ВНИЗУ */
.load-more {
  text-align: center;
  padding: 40px 20px;
  margin-top: 8px;
}
.load-more-spinner {
  width: 28px; height: 28px;
  border: 2.5px solid var(--line-hi);
  border-top-color: var(--cyan);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.8s linear infinite;
}
.load-more-text {
  font-size: 12px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}
.load-end {
  text-align: center;
  padding: 40px 20px;
  font-size: 12px;
  color: var(--text-4);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}
.load-end::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--line-hi);
  margin: 0 auto 16px;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  animation: lbFadeIn 0.2s ease-out;
  user-select: none;
}
.lightbox.open { display: flex; }

@keyframes lbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lb-img-wrap {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lbScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes lbScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.lb-img-wrap img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.lb-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 20px;
  font-family: inherit;
  z-index: 10001;
}
.lb-close:hover {
  background: rgba(255, 77, 109, 0.15);
  border-color: rgba(255, 77, 109, 0.5);
  color: #ff6b9d;
  transform: rotate(90deg);
}

.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10000;
  font-family: inherit;
  backdrop-filter: blur(10px);
}
.lb-arrow:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.5);
  color: #00d4ff;
  transform: translateY(-50%) scale(1.08);
}
.lb-arrow svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lb-arrow.prev { left: 24px; }
.lb-arrow.next { right: 24px; }
.lb-arrow[hidden] { display: none; }

.lb-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  z-index: 10000;
  pointer-events: none;
}
.lb-counter b { color: #00d4ff; }

@media (max-width: 720px) {
  .lightbox { padding: 60px 12px; }
  .lb-arrow {
    width: 44px; height: 44px;
    top: auto;
    bottom: 80px;
    transform: none;
  }
  .lb-arrow:hover { transform: scale(1.05); }
  .lb-arrow.prev { left: 50%; margin-left: -52px; }
  .lb-arrow.next { left: 50%; margin-left: 8px; right: auto; }
  .lb-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lb-counter { bottom: 24px; font-size: 10.5px; padding: 6px 14px; }
  .lb-img-wrap img { max-height: calc(100vh - 200px); }
}

@media (max-width: 640px) {
  .post-card { padding: 18px; border-radius: 14px; }
  .post-text { font-size: 14.5px; }
  .post-images .post-image { max-height: 200px; }
  .post-author-ava { width: 36px; height: 36px; }
  .post-author-name { font-size: 13.5px; }
  .post-stats { gap: 12px; }
  .post-footer { gap: 10px; }
}