:root {
  /* 90s Browser Palette */
  --bg-desktop: linear-gradient(45deg, #008080 25%, #006666 25%, #006666 50%, #008080 50%, #008080 75%, #006666 75%);
  --window-bg: #C0C0C0;
  --text: #000000;
  --highlight: #FFFFFF;
  --shadow: #808080;
  --deep-shadow: #404040;
  
  /* Browser Chrome Colors */
  --browser-chrome: linear-gradient(to bottom, #E0E0E0, #C0C0C0);
  --browser-border: #808080;
  --address-bar: #FFFFFF;
  --button-face: #C0C0C0;
  
  /* Retro Typography */
  --font-system: "MS Sans Serif", "Chicago", "Geneva", sans-serif;
  --font-pixel: "Courier New", "Monaco", monospace;
  --font-lj: "Verdana", "Arial", sans-serif;
  --font-vk: "Tahoma", "Arial", sans-serif;

  /* 90s Spacing & Sizes */
  --gutter: 8px;
  --window-padding: 4px;
  --titlebar-height: 32px;
  --tab-height: 28px;
  --button-size: 24px;
}

/* Веб-панк тема (неоновая) */
[data-theme="dark"] {
  /* Веб-панк цвета */
  --bg-desktop: #0a0a0a;
  --window-bg: #1a1a1a;
  --text: #00ffff;
  --highlight: #ff00ff;
  --shadow: #000000;
  --deep-shadow: #000000;
  
  /* Веб-панк браузер */
  --browser-chrome: #2a2a2a;
  --browser-border: #00ffff;
  --address-bar: #1a1a1a;
  --button-face: #333333;
}

/* Специальные стили для веб-панк темы */
[data-theme="dark"] body {
  background: linear-gradient(45deg, #0a0a0a 25%, #1a1a1a 25%, #1a1a1a 50%, #0a0a0a 50%, #0a0a0a 75%, #1a1a1a 75%);
  background-size: 20px 20px;
  color: #00ffff;
  animation: cyberGlow 3s ease-in-out infinite alternate;
}

@keyframes cyberGlow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(10deg); }
}

[data-theme="dark"] .browser-window {
  background: #1a1a1a;
  border: 2px solid #00ffff;
  box-shadow: 
    0 0 20px rgba(0,255,255,0.5),
    0 0 40px rgba(255,0,255,0.3),
    inset 0 0 20px rgba(0,255,255,0.1);
  position: relative;
}

[data-theme="dark"] .browser-window::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00ffff, #ff00ff, #00ff00, #ffff00);
  border-radius: 8px;
  z-index: -1;
  animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
  0% { background: linear-gradient(45deg, #00ffff, #ff00ff, #00ff00, #ffff00); }
  25% { background: linear-gradient(45deg, #ff00ff, #00ff00, #ffff00, #00ffff); }
  50% { background: linear-gradient(45deg, #00ff00, #ffff00, #00ffff, #ff00ff); }
  75% { background: linear-gradient(45deg, #ffff00, #00ffff, #ff00ff, #00ff00); }
  100% { background: linear-gradient(45deg, #00ffff, #ff00ff, #00ff00, #ffff00); }
}

[data-theme="dark"] .title-bar {
  background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
  background-size: 200% 200%;
  animation: titleGlow 3s ease-in-out infinite;
  color: #000000;
  text-shadow: 0 0 10px #ffffff;
  font-weight: bold;
}

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

[data-theme="dark"] .tab {
  background: #333333;
  color: #00ffff;
  border: 1px solid #00ffff;
  text-shadow: 0 0 5px #00ffff;
  transition: all 0.3s ease;
}

[data-theme="dark"] .tab.active {
  background: linear-gradient(45deg, #ff00ff, #00ffff);
  color: #000000;
  text-shadow: 0 0 10px #ffffff;
  box-shadow: 0 0 15px rgba(255,0,255,0.5);
  animation: tabPulse 2s ease-in-out infinite;
}

@keyframes tabPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(255,0,255,0.5); }
  50% { box-shadow: 0 0 25px rgba(0,255,255,0.8); }
}

[data-theme="dark"] .tab:hover {
  background: #444444;
  color: #00ffff;
  text-shadow: 0 0 8px #00ffff;
  box-shadow: 0 0 10px rgba(0,255,255,0.3);
}

[data-theme="dark"] .btn-ctrl {
  background: #333333;
  color: #00ffff;
  border: 1px solid #00ffff;
  text-shadow: 0 0 5px #00ffff;
  transition: all 0.3s ease;
}

[data-theme="dark"] .btn-ctrl:hover {
  background: #444444;
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff;
  box-shadow: 0 0 10px rgba(255,0,255,0.5);
}

[data-theme="dark"] .retro-btn {
  background: #333333;
  color: #00ffff;
  border: 1px solid #00ffff;
  text-shadow: 0 0 5px #00ffff;
  transition: all 0.3s ease;
}

[data-theme="dark"] .retro-btn:hover {
  background: #444444;
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff;
  box-shadow: 0 0 15px rgba(255,0,255,0.5);
  transform: translateY(-2px);
}

[data-theme="dark"] .retro-btn:active {
  background: #222222;
  border: 1px inset #00ffff;
  transform: translateY(0);
}

[data-theme="dark"] .content-block {
  background: #1a1a1a;
  color: #00ffff;
  border: 1px solid #00ffff;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
  position: relative;
}

[data-theme="dark"] .content-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00ffff, #ff00ff, #00ff00);
  animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

[data-theme="dark"] .content-block h1,
[data-theme="dark"] .content-block h2,
[data-theme="dark"] .content-block h3,
[data-theme="dark"] .content-block h4 {
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
  animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
  0% { text-shadow: 0 0 10px #ff00ff; }
  100% { text-shadow: 0 0 20px #00ffff, 0 0 30px #ff00ff; }
}

[data-theme="dark"] .content-block p,
[data-theme="dark"] .content-block li {
  color: #00ffff;
  text-shadow: 0 0 3px #00ffff;
}

[data-theme="dark"] .reviews-widget {
  background: #1a1a1a;
  border: 2px solid #00ffff;
  color: #00ffff;
  box-shadow: 0 0 20px rgba(0,255,255,0.3);
}

[data-theme="dark"] .reviews-titlebar {
  background: linear-gradient(135deg, #ff00ff, #00ffff);
  color: #000000;
  text-shadow: 0 0 5px #ffffff;
  animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,0,255,0.5); }
  50% { box-shadow: 0 0 20px rgba(0,255,255,0.8); }
}

[data-theme="dark"] .reviews-form input,
[data-theme="dark"] .reviews-form textarea {
  background: #2a2a2a;
  color: #00ffff;
  border: 1px solid #00ffff;
  text-shadow: 0 0 3px #00ffff;
}

[data-theme="dark"] .reviews-form input:focus,
[data-theme="dark"] .reviews-form textarea:focus {
  border: 1px solid #ff00ff;
  box-shadow: 0 0 15px rgba(255,0,255,0.5);
  background: #333333;
}

[data-theme="dark"] .emoji-btn {
  background: #333333;
  border: 1px solid #00ffff;
  color: #00ffff;
  text-shadow: 0 0 3px #00ffff;
  transition: all 0.3s ease;
}

[data-theme="dark"] .emoji-btn:hover {
  background: #444444;
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff;
  box-shadow: 0 0 10px rgba(255,0,255,0.5);
  transform: scale(1.1);
}

[data-theme="dark"] .minesweeper-icon {
  background: #1a1a1a;
  border: 2px solid #00ffff;
  box-shadow: 0 0 15px rgba(0,255,255,0.3);
}

[data-theme="dark"] .minesweeper-icon:hover {
  background: #2a2a2a;
  border: 2px solid #ff00ff;
  box-shadow: 0 0 25px rgba(255,0,255,0.6);
  transform: scale(1.05);
}

[data-theme="dark"] .minesweeper-game {
  background: #1a1a1a;
  border: 2px solid #00ffff;
  color: #00ffff;
  box-shadow: 0 0 30px rgba(0,255,255,0.4);
}

[data-theme="dark"] .game-header {
  background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
  background-size: 200% 200%;
  animation: gameHeaderGlow 3s ease-in-out infinite;
  color: #000000;
  text-shadow: 0 0 5px #ffffff;
}

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

[data-theme="dark"] .minesweeper-cell {
  background: #333333;
  border: 1px solid #00ffff;
  color: #00ffff;
  text-shadow: 0 0 3px #00ffff;
  transition: all 0.3s ease;
}

[data-theme="dark"] .minesweeper-cell:hover {
  background: #444444;
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff;
  box-shadow: 0 0 10px rgba(255,0,255,0.5);
}

[data-theme="dark"] .minesweeper-cell.revealed {
  background: #2a2a2a;
  border: 1px solid #00ffff;
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff;
}

[data-theme="dark"] .minesweeper-cell.flagged {
  background: #444444;
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff;
  box-shadow: 0 0 10px rgba(255,0,255,0.3);
}

[data-theme="dark"] .minesweeper-cell.mine {
  background: linear-gradient(45deg, #ff0000, #ff6600);
  color: #ffffff;
  text-shadow: 0 0 10px #ffffff;
  animation: mineExplode 0.5s ease-out;
}

@keyframes mineExplode {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

[data-theme="dark"] .diff-btn {
  background: #333333;
  color: #00ffff;
  border: 1px solid #00ffff;
  text-shadow: 0 0 3px #00ffff;
  transition: all 0.3s ease;
}

[data-theme="dark"] .diff-btn:hover {
  background: #444444;
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff;
  box-shadow: 0 0 10px rgba(255,0,255,0.5);
}

[data-theme="dark"] .diff-btn.active {
  background: linear-gradient(45deg, #ff00ff, #00ffff);
  color: #000000;
  text-shadow: 0 0 5px #ffffff;
  box-shadow: 0 0 15px rgba(255,0,255,0.6);
}

[data-theme="dark"] .game-btn {
  background: #333333;
  color: #00ffff;
  border: 1px solid #00ffff;
  text-shadow: 0 0 3px #00ffff;
  transition: all 0.3s ease;
}

[data-theme="dark"] .game-btn:hover {
  background: #444444;
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff;
  box-shadow: 0 0 10px rgba(255,0,255,0.5);
  transform: scale(1.05);
}

/* Мобильные элементы в веб-панк теме */
[data-theme="dark"] .mobile-reviews-container {
  background: linear-gradient(135deg, #ff00ff, #00ffff);
  border-top: 2px solid #00ffff;
  box-shadow: 0 0 20px rgba(0,255,255,0.5);
}

[data-theme="dark"] .mobile-reviews-modal {
  background: rgba(0,0,0,0.95);
}

[data-theme="dark"] .mobile-reviews-content {
  background: #1a1a1a;
  border: 2px solid #00ffff;
  color: #00ffff;
  box-shadow: 0 0 30px rgba(0,255,255,0.4);
}

[data-theme="dark"] .mobile-reviews-header {
  background: linear-gradient(135deg, #ff00ff, #00ffff);
  color: #000000;
  text-shadow: 0 0 5px #ffffff;
  animation: mobileHeaderGlow 2s ease-in-out infinite;
}

@keyframes mobileHeaderGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(255,0,255,0.5); }
  50% { box-shadow: 0 0 25px rgba(0,255,255,0.8); }
}

[data-theme="dark"] .mobile-reviews-form input,
[data-theme="dark"] .mobile-reviews-form textarea {
  background: #2a2a2a;
  color: #00ffff;
  border: 1px solid #00ffff;
  text-shadow: 0 0 3px #00ffff;
}

[data-theme="dark"] .mobile-reviews-form input:focus,
[data-theme="dark"] .mobile-reviews-form textarea:focus {
  border: 1px solid #ff00ff;
  box-shadow: 0 0 15px rgba(255,0,255,0.5);
  background: #333333;
}

[data-theme="dark"] .mobile-emoji-btn {
  background: #333333;
  border: 1px solid #00ffff;
  color: #00ffff;
  text-shadow: 0 0 3px #00ffff;
  transition: all 0.3s ease;
}

[data-theme="dark"] .mobile-emoji-btn:hover {
  background: #444444;
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff;
  box-shadow: 0 0 10px rgba(255,0,255,0.5);
  transform: scale(1.1);
}

[data-theme="dark"] .mobile-submit-btn {
  background: #333333;
  color: #00ffff;
  border: 1px solid #00ffff;
  text-shadow: 0 0 3px #00ffff;
  transition: all 0.3s ease;
}

[data-theme="dark"] .mobile-submit-btn:hover {
  background: #444444;
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff;
  box-shadow: 0 0 15px rgba(255,0,255,0.5);
  transform: translateY(-2px);
}

/* Специальные стили для LiveJournal в веб-панк теме */
[data-theme="dark"] .tab-content#curator.active {
  background: #1a1a1a;
  color: #00ffff;
}

[data-theme="dark"] .lj-header {
  background: #2a2a2a;
  color: #00ffff;
  border: 1px solid #00ffff;
  box-shadow: 0 0 15px rgba(0,255,255,0.3);
}

[data-theme="dark"] .lj-title {
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
  animation: textGlow 2s ease-in-out infinite alternate;
}

[data-theme="dark"] .lj-subtitle {
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff;
}

[data-theme="dark"] .lj-post {
  background: #1a1a1a;
  color: #00ffff;
  border: 1px solid #00ffff;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
  position: relative;
}

[data-theme="dark"] .lj-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00ffff, #ff00ff, #00ff00);
  animation: scanLine 3s linear infinite;
}

[data-theme="dark"] .lj-post p {
  color: #00ffff;
  text-shadow: 0 0 3px #00ffff;
}

[data-theme="dark"] .lj-tags {
  color: #ff00ff;
  text-shadow: 0 0 5px #ff00ff;
}

[data-theme="dark"] .lj-comments {
  color: #00ffff;
  text-shadow: 0 0 3px #00ffff;
}

/* Специальные стили для VK в веб-панк теме */
[data-theme="dark"] .tab-content#artist.active {
  background: #1a1a1a;
  color: #00ffff;
}

[data-theme="dark"] .vk-header {
  background: #2a2a2a;
  color: #00ffff;
  border: 1px solid #00ffff;
  box-shadow: 0 0 15px rgba(0,255,255,0.3);
}

[data-theme="dark"] .vk-profile {
  background: #1a1a1a;
  color: #00ffff;
  border: 1px solid #00ffff;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
}

[data-theme="dark"] .vk-name {
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
  animation: textGlow 2s ease-in-out infinite alternate;
}

[data-theme="dark"] .vk-info-block {
  background: #2a2a2a;
  color: #00ffff;
  border: 1px solid #00ffff;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
}

[data-theme="dark"] .vk-wall {
  background: #1a1a1a;
  color: #00ffff;
  border: 1px solid #00ffff;
  box-shadow: 0 0 15px rgba(0,255,255,0.3);
}

[data-theme="dark"] .vk-post {
  background: #2a2a2a;
  color: #00ffff;
  border: 1px solid #00ffff;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
  position: relative;
}

[data-theme="dark"] .vk-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00ffff, #ff00ff, #00ff00);
  animation: scanLine 3s linear infinite;
}

[data-theme="dark"] .vk-post-content {
  color: #00ffff;
  text-shadow: 0 0 3px #00ffff;
}

[data-theme="dark"] .vk-action {
  color: #00ffff;
  text-shadow: 0 0 3px #00ffff;
  transition: all 0.3s ease;
}

[data-theme="dark"] .vk-action:hover {
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff;
  box-shadow: 0 0 10px rgba(255,0,255,0.3);
}

[data-theme="dark"] .like-btn-vk {
  color: #00ffff;
  text-shadow: 0 0 3px #00ffff;
  transition: all 0.3s ease;
}

[data-theme="dark"] .like-btn-vk:hover {
  background: #444444;
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff;
  box-shadow: 0 0 10px rgba(255,0,255,0.5);
}

[data-theme="dark"] .like-btn-vk.liked {
  color: #ff00ff;
  background: #444444;
  text-shadow: 0 0 10px #ff00ff;
  box-shadow: 0 0 15px rgba(255,0,255,0.6);
}

/* Специальные стили для Service в веб-панк теме */
[data-theme="dark"] .tab-content#service.active {
  background: #1a1a1a;
  color: #00ffff;
}

[data-theme="dark"] .service-info {
  background: #1a1a1a;
  color: #00ffff;
}

[data-theme="dark"] .service-table {
  background: #2a2a2a;
  color: #00ffff;
  border: 1px solid #00ffff;
  box-shadow: 0 0 15px rgba(0,255,255,0.3);
}

[data-theme="dark"] .service-table th,
[data-theme="dark"] .service-table td {
  color: #00ffff;
  border: 1px solid #00ffff;
  text-shadow: 0 0 3px #00ffff;
}

[data-theme="dark"] .service-table th {
  background: #333333;
  color: #ff00ff;
  text-shadow: 0 0 5px #ff00ff;
}

[data-theme="dark"] .organization-block {
  background: #2a2a2a;
  color: #00ffff;
  border: 1px solid #00ffff;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
}

[data-theme="dark"] .organization-block h3 {
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
  animation: textGlow 2s ease-in-out infinite alternate;
}

[data-theme="dark"] .thanks-block {
  background: #2a2a2a;
  color: #00ffff;
  border: 1px solid #00ffff;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
}

/* Специальные стили для Works в веб-панк теме */
[data-theme="dark"] .tab-content#works.active {
  background: #1a1a1a;
  color: #00ffff;
}

[data-theme="dark"] .wallpaper-categories {
  background: #2a2a2a;
  border: 2px solid #00ffff;
  box-shadow: 0 0 15px rgba(0,255,255,0.3);
}

[data-theme="dark"] .category-btn {
  background: #333333;
  color: #00ffff;
  border: 1px solid #00ffff;
  text-shadow: 0 0 3px #00ffff;
  transition: all 0.3s ease;
}

[data-theme="dark"] .category-btn:hover {
  background: #444444;
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff;
  box-shadow: 0 0 10px rgba(255,0,255,0.5);
  transform: translateY(-2px);
}

[data-theme="dark"] .category-btn.active {
  background: linear-gradient(45deg, #ff00ff, #00ffff);
  color: #000000;
  text-shadow: 0 0 5px #ffffff;
  box-shadow: 0 0 15px rgba(255,0,255,0.6);
}

[data-theme="dark"] .wallpaper-item {
  background: #2a2a2a;
  border: 2px solid #00ffff;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
  transition: all 0.3s ease;
}

[data-theme="dark"] .wallpaper-item:hover {
  box-shadow: 0 0 20px rgba(255,0,255,0.4);
  transform: translateY(-5px);
}

[data-theme="dark"] .wallpaper-preview {
  border: 1px solid #00ffff;
  background: #1a1a1a;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
}

[data-theme="dark"] .preview-image {
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff;
}

[data-theme="dark"] .wallpaper-title {
  color: #ff00ff;
  text-shadow: 0 0 5px #ff00ff;
}

[data-theme="dark"] .wallpaper-details {
  color: #00ffff;
  text-shadow: 0 0 3px #00ffff;
}

[data-theme="dark"] .download-btn {
  background: #333333;
  color: #00ffff;
  border: 1px solid #00ffff;
  text-shadow: 0 0 3px #00ffff;
  transition: all 0.3s ease;
}

[data-theme="dark"] .download-btn:hover {
  background: #444444;
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff;
  box-shadow: 0 0 15px rgba(255,0,255,0.5);
  transform: scale(1.05);
}

[data-theme="dark"] .like-btn {
  background: #333333;
  color: #00ffff;
  border: 1px solid #00ffff;
  text-shadow: 0 0 3px #00ffff;
  transition: all 0.3s ease;
}

[data-theme="dark"] .like-btn:hover {
  background: #444444;
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff;
  box-shadow: 0 0 10px rgba(255,0,255,0.5);
}

[data-theme="dark"] .like-btn.liked {
  background: #444444;
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
  box-shadow: 0 0 15px rgba(255,0,255,0.6);
}

/* =========================
   МОДАЛЬНОЕ ОКНО КОММЕНТАРИЕВ
   ========================= */

.comments-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  z-index: 10002;
  justify-content: center;
  align-items: center;
}

.comments-modal.open {
  display: flex;
}

.comments-content {
  background: var(--window-bg);
  border: 2px outset #c0c0c0;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 4px 8px rgba(0,0,0,0.3);
}

.comments-header {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 6px 6px 0 0;
  font-weight: bold;
}

.comments-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comments-close:hover {
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
}

.comments-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  max-height: 400px;
  background: var(--window-bg);
}

.comment-item {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  position: relative;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: bold;
  color: #4a90e2;
}

.comment-date {
  font-size: 12px;
  color: #6c757d;
}

.comment-text {
  color: #333;
  line-height: 1.4;
}

.no-comments-message {
  text-align: center;
  color: #6c757d;
  font-style: italic;
  padding: 20px;
}

.comments-form {
  padding: 16px;
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
  border-radius: 0 0 6px 6px;
}

.comments-form input,
.comments-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-family: var(--font-system);
  font-size: 14px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.comments-form input:focus,
.comments-form textarea:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
}

.comments-form textarea {
  resize: vertical;
  min-height: 80px;
}

.comment-submit-btn {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-system);
  font-weight: bold;
  transition: all 0.3s ease;
}

.comment-submit-btn:hover {
  background: linear-gradient(135deg, #357abd, #2c5aa0);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.comment-submit-btn:active {
  transform: translateY(0);
}

/* Стили для веб-панк темы */
[data-theme="dark"] .comments-modal {
  background: rgba(0,0,0,0.95);
}

[data-theme="dark"] .comments-content {
  background: #1a1a1a;
  border: 2px solid #00ffff;
  box-shadow: 0 0 30px rgba(0,255,255,0.4);
}

[data-theme="dark"] .comments-header {
  background: linear-gradient(135deg, #ff00ff, #00ffff);
  color: #000000;
  text-shadow: 0 0 5px #ffffff;
  animation: titlePulse 2s ease-in-out infinite;
}

[data-theme="dark"] .comments-close:hover {
  background: rgba(0,0,0,0.3);
}

[data-theme="dark"] .comments-body {
  background: #1a1a1a;
  color: #00ffff;
}

[data-theme="dark"] .comment-item {
  background: #2a2a2a;
  border: 1px solid #00ffff;
  color: #00ffff;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
}

[data-theme="dark"] .comment-author {
  color: #ff00ff;
  text-shadow: 0 0 5px #ff00ff;
}

[data-theme="dark"] .comment-date {
  color: #00ffff;
}

[data-theme="dark"] .comment-text {
  color: #00ffff;
  text-shadow: 0 0 3px #00ffff;
}

[data-theme="dark"] .no-comments-message {
  color: #00ffff;
}

[data-theme="dark"] .comments-form {
  background: #2a2a2a;
  border-top: 1px solid #00ffff;
}

[data-theme="dark"] .comments-form input,
[data-theme="dark"] .comments-form textarea {
  background: #1a1a1a;
  color: #00ffff;
  border: 1px solid #00ffff;
  text-shadow: 0 0 3px #00ffff;
}

[data-theme="dark"] .comments-form input:focus,
[data-theme="dark"] .comments-form textarea:focus {
  border: 1px solid #ff00ff;
  box-shadow: 0 0 15px rgba(255,0,255,0.5);
  background: #333333;
}

[data-theme="dark"] .comment-submit-btn {
  background: linear-gradient(45deg, #ff00ff, #00ffff);
  color: #000000;
  text-shadow: 0 0 5px #ffffff;
}

[data-theme="dark"] .comment-submit-btn:hover {
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  box-shadow: 0 0 15px rgba(255,0,255,0.5);
}

/* =========================
   ИЗОБРАЖЕНИЯ И ФОТОГРАФИИ
   ========================= */

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Делаем изображение круглым */
}

.vk-photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vk-photo-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Модальное окно просмотра фотографий */
.photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  z-index: 10003;
  justify-content: center;
  align-items: center;
}

.photo-modal.open {
  display: flex;
}

.photo-modal-content {
  background: var(--window-bg);
  border: 2px outset #c0c0c0;
  border-radius: 8px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 4px 8px rgba(0,0,0,0.3);
}

.photo-modal-header {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 6px 6px 0 0;
  font-weight: bold;
}

.photo-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-modal-close:hover {
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
}

.photo-modal-body {
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--window-bg);
}

.photo-modal-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Стили для веб-панк темы */
[data-theme="dark"] .photo-modal {
  background: rgba(0,0,0,0.95);
}

[data-theme="dark"] .photo-modal-content {
  background: #1a1a1a;
  border: 2px solid #00ffff;
  box-shadow: 0 0 30px rgba(0,255,255,0.4);
}

[data-theme="dark"] .photo-modal-header {
  background: linear-gradient(135deg, #ff00ff, #00ffff);
  color: #000000;
  text-shadow: 0 0 5px #ffffff;
  animation: titlePulse 2s ease-in-out infinite;
}

[data-theme="dark"] .photo-modal-close:hover {
  background: rgba(0,0,0,0.3);
}

[data-theme="dark"] .photo-modal-body {
  background: #1a1a1a;
}

[data-theme="dark"] .photo-modal-image {
  box-shadow: 0 0 20px rgba(0,255,255,0.3);
}

[data-theme="dark"] .vk-photo-thumb:hover {
  box-shadow: 0 0 15px rgba(0,255,255,0.5);
}

/* Base page - 90s Desktop */
html, body {
  height: 100%;
  margin: 0;
  font-family: var(--font-system);
  background: var(--bg-desktop);
  background-size: 20px 20px;
  color: var(--text);
  overflow-x: hidden; /* Предотвращаем горизонтальную прокрутку */
  image-rendering: pixelated;
}

.container {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  min-height: 100vh;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 90s Browser Window */
.browser-window {
  width: 980px;
  background: var(--browser-chrome);
  border: 3px outset var(--button-face);
  padding: var(--window-padding);
  box-sizing: border-box;
  position: relative;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: 
    4px 4px 8px rgba(0,0,0,0.4),
    inset 1px 1px 0 rgba(255,255,255,0.8),
    inset -1px -1px 0 rgba(0,0,0,0.3);
  border-radius: 0;
  min-height: 600px;
  max-width: 100%;
}

/* Browser Title Bar */
.title-bar {
  height: var(--titlebar-height);
  background: linear-gradient(to right, #0000FF, #000080);
  color: var(--highlight);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  font-weight: bold;
  box-sizing: border-box;
  margin: -4px -4px 8px -4px;
  font-family: var(--font-system);
  font-size: 11px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

.title-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon {
  font-size: 16px;
}

/* Control Buttons */
.btn-ctrl {
  background: linear-gradient(#DFDFDF, #BFBFBF);
  border-top: 2px solid var(--highlight);
  border-left: 2px solid var(--highlight);
  border-bottom: 2px solid var(--shadow);
  border-right: 2px solid var(--shadow);
  padding: 0 6px;
  margin-left: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
  min-width: 20px;
  height: 18px;
}

.btn-ctrl:active {
  border-top: 2px solid var(--shadow);
  border-left: 2px solid var(--shadow);
  border-bottom: 2px solid var(--highlight);
  border-right: 2px solid var(--highlight);
}

/* Browser Toolbar */
.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(to bottom, #F0F0F0, #E0E0E0);
  border: 1px inset var(--button-face);
  padding: 4px 8px;
  margin: 0 -4px 8px -4px;
}

.toolbar-buttons {
  display: flex;
  gap: 4px;
}

.toolbar-btn {
  background: linear-gradient(#DFDFDF, #BFBFBF);
  border: 1px outset var(--button-face);
  padding: 4px 6px;
  cursor: pointer;
  font-size: 12px;
  min-width: 24px;
  height: 24px;
}

.toolbar-btn:active {
  border: 1px inset var(--button-face);
}

.address-bar {
  flex: 1;
  background: var(--address-bar);
  border: 1px inset var(--button-face);
  padding: 4px 8px;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #000080;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Navigation Tabs */
.tabs {
  display: flex;
  gap: 2px;
  padding: 6px 0;
  border-bottom: 2px solid var(--shadow);
  margin: 0 -4px 0 -4px;
}

.tab {
  height: var(--tab-height);
  background: #DFDFDF;
  border-top: 2px solid var(--highlight);
  border-left: 2px solid var(--highlight);
  border-bottom: 2px solid var(--shadow);
  border-right: 2px solid var(--shadow);
  padding: 4px 12px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-system);
  color: var(--text);
}

.tab.active {
  background: linear-gradient(180deg, #FFFFFF, #C0C0C0);
  border: 2px solid #000;
  border-bottom: 2px solid var(--window-bg);
  position: relative;
  z-index: 1;
}

.tab:not(.active):hover {
  background: #E0E0E0;
}

/* Content Area */
.content-area {
  padding: 20px;
  min-height: 500px;
  background: var(--window-bg);
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* =========================
   КУРАТОРСКИЙ - LIVEJOURNAL
   ========================= */

.tab-content#curator.active {
  background: #ffffff;
  font-family: var(--font-lj);
  color: #000000;
  line-height: 1.4;
  font-size: 16px;
}

/* LiveJournal Header */
.lj-header {
  background: #ffffff;
  border-bottom: 3px solid #c0deed;
  padding: 15px 0;
  margin-bottom: 20px;
}

.lj-title {
  font-size: 28px;
  font-weight: bold;
  color: #333333;
  margin: 0;
  text-align: left;
  font-family: var(--font-lj);
  letter-spacing: 0.2px;
}

.lj-subtitle {
  font-size: 14px;
  color: #666666;
  margin: 5px 0 0 0;
  font-family: var(--font-lj);
}

/* LiveJournal Posts */
.lj-post {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  margin: 15px 0;
  padding: 0;
  border-left: 4px solid #c0deed;
}

.lj-post-header {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 12px;
  font-size: 13px;
  color: #666666;
  font-family: var(--font-lj);
}

.lj-post-content {
  padding: 15px;
  font-size: 15px;
  line-height: 1.6;
  color: #333333;
}

.lj-post-content p {
  margin: 12px 0;
  font-size: 15px;
}

.lj-userpic {
  float: left;
  margin: 0 10px 10px 0;
  border: 1px solid #cccccc;
  width: 100px;
  height: 100px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  overflow: hidden;
}

.curator-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  color: #666666;
}

.lj-mood {
  font-size: 13px;
  color: #666666;
  margin: 15px 0;
  padding: 10px;
  background: #f9f9f9;
  border-left: 3px solid #c0deed;
}

.lj-tags {
  font-size: 13px;
  color: #0066cc;
  margin: 15px 0;
  background: #f7fbff;
  border-top: 1px solid #e6f2fb;
  padding: 8px 12px;
}

.lj-tags a {
  color: #0066cc;
  text-decoration: none;
}

.lj-tags a:hover {
  text-decoration: underline;
}

.lj-comments {
  border-top: 1px solid #e0e0e0;
  padding: 8px 12px;
  background: #f9f9f9;
  font-size: 13px;
}

.lj-comments a {
  color: #0066cc;
  text-decoration: none;
}

.lj-comments a:hover {
  text-decoration: underline;
}

/* =========================
   ХУДОЖНИЦА - ВКОНТАКТЕ
   ========================= */

.tab-content#artist.active {
  background: #edeef0;
  font-family: var(--font-vk);
  color: #000000;
  line-height: 1.4;
  font-size: 13px;
  padding: 0;
}

/* VK Header */
.vk-header {
  background: linear-gradient(180deg, #5181b8 0%, #4c7db0 100%);
  color: white;
  padding: 12px 20px;
  margin: -20px -20px 0 -20px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,.1), 0 1px 4px 0 rgba(0,0,0,.15);
  position: relative;
  z-index: 10;
}

.vk-header h1 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
}

/* VK Main Layout */
.vk-main-layout {
  display: flex;
  gap: 15px;
  padding: 15px 20px;
  max-width: 960px;
  margin: 0 auto;
}

.vk-left-column {
  width: 200px;
  flex-shrink: 0;
}

.vk-right-column {
  flex: 1;
  min-width: 0;
}

/* VK Profile Card */
.vk-profile {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,.1), 0 1px 4px 0 rgba(0,0,0,.15);
  overflow: hidden;
  margin-bottom: 15px;
}

.vk-profile-header {
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, #f7f8fa 0%, #ffffff 100%);
}

.vk-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e1e5eb 0%, #f0f2f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #656565;
  margin: 0 auto 15px auto;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  border: 3px solid #ffffff;
  overflow: hidden; /* Обрезаем изображение по границам круга */
}

.vk-user-info {
  text-align: center;
}

.vk-name {
  font-size: 18px;
  font-weight: 600;
  color: #2a5885;
  margin: 0 0 8px 0;
  text-decoration: none;
}

.vk-name:hover {
  text-decoration: underline;
}

.vk-status {
  font-size: 13px;
  color: #656565;
  margin: 8px 0 15px 0;
  font-style: italic;
}

.vk-profile-stats {
  display: flex;
  justify-content: space-around;
  padding: 15px 0;
  border-top: 1px solid #e7e8ec;
  background: #f7f8fa;
}

.vk-stat {
  text-align: center;
  text-decoration: none;
  color: #2a5885;
}

.vk-stat-number {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.vk-stat-label {
  font-size: 11px;
  color: #656565;
  text-transform: uppercase;
}

/* VK Info Block */
.vk-info-block {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,.1), 0 1px 4px 0 rgba(0,0,0,.15);
  padding: 20px;
  margin-bottom: 15px;
}

.vk-info-title {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 15px 0;
}

.vk-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vk-info-list li {
  font-size: 13px;
  color: #000000;
  margin: 12px 0;
  line-height: 1.4;
}

.vk-info-list .label {
  color: #656565;
  font-weight: 500;
  display: block;
  margin-bottom: 0;
}

/* VK Wall */
.vk-wall {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,.1), 0 1px 4px 0 rgba(0,0,0,.15);
  margin-bottom: 15px;
  overflow: hidden;
}

.vk-wall-header {
  background: linear-gradient(135deg, #f7f8fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e7e8ec;
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #000000;
}

.vk-post {
  padding: 20px;
  border-bottom: 1px solid #f0f2f5;
  position: relative;
}

.vk-post:last-child {
  border-bottom: none;
}

.vk-post:hover {
  background: #fafbfc;
}

.vk-post-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.vk-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e1e5eb 0%, #f0f2f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #656565;
  margin-right: 12px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

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

.vk-post-author {
  font-size: 14px;
  font-weight: 600;
  color: #2a5885;
  text-decoration: none;
  display: block;
  margin-bottom: 2px;
}

.vk-post-author:hover {
  text-decoration: underline;
}

.vk-post-date {
  font-size: 12px;
  color: #939393;
}

.vk-post-content {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 15px 0;
  color: #000000;
}

.vk-post-content p {
  margin: 0 0 12px 0;
}

.vk-post-content p:last-child {
  margin-bottom: 0;
}

.vk-post-actions {
  display: flex;
  gap: 25px;
  padding-top: 12px;
  border-top: 1px solid #f0f2f5;
}

.vk-action {
  font-size: 13px;
  color: #656565;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.vk-action:hover {
  color: #2a5885;
  background: #f0f2f5;
}

/* VK Photos */
.vk-photos {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 0 0 rgba(0,0,0,.1), 0 1px 4px 0 rgba(0,0,0,.15);
  padding: 20px;
  margin-bottom: 15px;
}

.vk-photos-header {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vk-photos-count {
  font-size: 13px;
  color: #656565;
  font-weight: normal;
}

.vk-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: 8px;
  overflow: hidden;
}

.vk-photo {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f0f2f5 0%, #e7e8ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.vk-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.vk-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(42,88,133,0.1) 0%, rgba(81,129,184,0.1) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.vk-photo:hover::before {
  opacity: 1;
}

/* =========================
   СЕРВИС
   ========================= */

.service-header h1,
.works-header h1 {
  font-size: 28px;
  color: #333333;
  margin: 0 0 20px 0;
  text-align: center;
}

/* Service Info */
.service-info {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
}

.organization-block {
  text-align: center;
  margin: 30px 0;
  padding: 25px;
  background: linear-gradient(135deg, #E0E0E0, #F0F0F0);
  border: 3px solid #000;
  border-style: double;
}

.organization-block h3 {
  margin: 0 0 15px 0;
  font-size: 22px;
  color: #000080;
}

.organization-block p {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #8B4513;
  line-height: 1.5;
}

.thanks-block {
  text-align: center;
  margin: 30px 0;
  padding: 20px;
  background: #FFFF99;
  border: 2px dashed #FF6600;
}

.thanks-block h4 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #000080;
}

.thanks-block p {
  margin: 0;
  font-size: 18px;
  color: #8B0000;
}

/* Service Table */
.service-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  margin: 20px 0;
  font-size: 16px;
}

.service-table th,
.service-table td {
  padding: 12px 16px;
  border: 2px solid #000;
  background: var(--window-bg);
  line-height: 1.5;
}

.table-header {
  background: linear-gradient(#DFDFDF, #BFBFBF);
  border-top: 2px solid var(--highlight);
  border-left: 2px solid var(--highlight);
  border-bottom: 2px solid var(--shadow);
  border-right: 2px solid var(--shadow);
  font-weight: bold;
  text-align: center;
}

.service-table td:first-child {
  font-weight: bold;
  background: #F0F0F0;
  width: 40%;
}

.service-table td:last-child {
  background: #FAFAFA;
}

/* Filter Section */
.filter-section {
  margin: 20px 0;
  padding: 15px;
  background: #F0F0F0;
  border: 2px inset var(--window-bg);
}

.filter-section label {
  font-weight: bold;
  margin-right: 10px;
  font-size: 16px;
}

.retro-select {
  padding: 6px;
  border: 2px inset var(--window-bg);
  background: #FFF;
  font-family: var(--font-system);
  font-size: 14px;
}

/* Works Grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.work-card {
  border: 2px solid #000;
  background: var(--window-bg);
  padding: 12px;
  cursor: pointer;
  transition: none;
}

.work-card:hover {
  background: #E0E0E0;
}

.work-image {
  width: 100%;
  height: 140px;
  border: 1px solid #666;
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 12px;
}

.work-info h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #000080;
}

.work-info p {
  margin: 5px 0;
  font-size: 15px;
  line-height: 1.4;
}

.price {
  font-weight: bold;
  color: #008000;
  font-size: 16px;
}

/* =========================
   REVIEWS WIDGET
   ========================= */

.reviews-widget {
  width: 350px;
  height: 520px;
  background: var(--window-bg);
  border: 2px solid #000;
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 4px 4px 8px rgba(0,0,0,0.3);
  z-index: 1000;
  flex-shrink: 0;
}

.reviews-titlebar {
  height: 28px;
  background: #2db400;
  color: #fff;
  padding: 4px 8px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  cursor: move;
  user-select: none;
}

.reviews-widget.dragging {
  opacity: 0.8;
  z-index: 1001;
}

.reviews-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews-close:hover {
  background: rgba(255,255,255,0.2);
}

.reviews-body {
  height: 280px;
  overflow: auto;
  padding: 8px;
  background: linear-gradient(180deg, #f6f6f6, #eaeaea);
}

.reviews-messages {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-system);
  font-size: 13px;
}

.reviews-messages li {
  margin-bottom: 10px;
  border: 1px solid var(--shadow);
  padding: 8px;
  background: #fff;
  border-radius: 0;
  word-wrap: break-word;
  line-height: 1.4;
}

.reviews-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-top: 2px solid var(--shadow);
  background: var(--window-bg);
  height: 204px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 12px;
  font-weight: bold;
  color: #000080;
  font-family: var(--font-system);
}

.reviews-form input[type="text"] {
  padding: 6px;
  border: 1px inset var(--shadow);
  background: #fff;
  font-family: var(--font-system);
  font-size: 13px;
}

.reviews-form textarea {
  padding: 6px;
  border: 1px inset var(--shadow);
  background: #fff;
  font-family: var(--font-system);
  font-size: 13px;
  resize: vertical;
  min-height: 60px;
}

.submit-btn {
  padding: 6px 12px;
  border-top: 2px solid var(--highlight);
  border-left: 2px solid var(--highlight);
  border-bottom: 2px solid var(--shadow);
  border-right: 2px solid var(--shadow);
  background: #DFDFDF;
  cursor: pointer;
  font-family: var(--font-system);
  font-size: 12px;
  font-weight: bold;
}

.submit-btn:hover {
  background: #E8E8E8;
}

.submit-btn:active {
  border-top: 2px solid var(--shadow);
  border-left: 2px solid var(--shadow);
  border-bottom: 2px solid var(--highlight);
  border-right: 2px solid var(--highlight);
}

/* Панель эмодзи */
.emoji-panel {
  margin-top: 4px;
}

.emoji-grid {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--window-bg);
  justify-content: center;
}

.emoji-btn {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px outset #c0c0c0;
  background: #c0c0c0;
  font-size: 14px;
  transition: none;
}

.emoji-btn:hover {
  background: #d0d0d0;
}

.emoji-btn:active {
  border: 1px inset #c0c0c0;
}

.reviews-form button:active {
  border-top: 2px solid var(--shadow);
  border-left: 2px solid var(--shadow);
  border-bottom: 2px solid var(--highlight);
  border-right: 2px solid var(--highlight);
}

/* =========================
   MOBILE RESPONSIVENESS
   ========================= */

@media (max-width: 1400px) {
  .container {
    padding: 15px;
    max-width: 100%;
  }
  
  .browser-window {
    width: 100%;
    max-width: 800px;
  }
  
  .reviews-widget {
    width: 260px;
    height: 380px;
  }
}

@media (max-width: 1200px) {
  .container {
    padding: 10px;
    flex-direction: column;
    align-items: center;
  }
  
  .browser-window {
    width: 100%;
    max-width: 980px;
  }
  
  .reviews-widget {
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 5px;
    flex-direction: column;
    align-items: stretch;
    min-height: 100vh;
    gap: 0;
  }
  
  .browser-window {
    width: 100%;
    margin: 0;
    font-size: 14px;
    max-width: none;
    height: calc(100vh - 10px);
  }
  
  /* Hide browser chrome on mobile */
  .browser-toolbar {
    display: none;
  }
  
  .title-bar {
    margin-bottom: 10px;
    font-size: 12px;
  }
  
  /* Mobile tabs */
  .tabs {
    flex-wrap: wrap;
    gap: 2px;
    padding: 4px 0;
  }
  
  .tab {
    flex: 1;
    min-width: 70px;
    text-align: center;
    font-size: 11px;
    padding: 4px 6px;
  }
  
  /* Mobile content */
  .content-area {
    padding: 15px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    box-sizing: border-box;
  }
  
  /* VK Layout mobile */
  .vk-main-layout {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }
  
  .vk-left-column {
    width: 100%;
  }
  
  .vk-right-column {
    width: 100%;
  }
  
  .vk-profile-stats {
    justify-content: space-between;
    padding: 10px 15px;
  }
  
  .vk-avatar {
    width: 80px;
    height: 80px;
    font-size: 14px;
    overflow: hidden; /* Обрезаем изображение по границам круга */
  }
  
  .vk-name {
    font-size: 16px;
  }
  
  .vk-info-block,
  .vk-wall,
  .vk-photos {
    margin-bottom: 10px;
    padding: 15px;
  }
  
  .vk-post {
    padding: 15px;
  }
  
  .vk-post-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  
  .vk-post-content {
    font-size: 13px;
  }
  
  .vk-post-actions {
    gap: 15px;
  }
  
  .vk-action {
    font-size: 12px;
    padding: 4px 6px;
  }
  
  /* Works grid mobile */
  .works-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* VK Photos mobile */
  .vk-photos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Мобильный контейнер отзывов */
  .mobile-reviews-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #2db400, #25a000);
    border-top: 2px solid #1a7a00;
    z-index: 1000;
    display: flex; /* Показываем на мобильных */
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    box-sizing: border-box;
  }
  
  .mobile-reviews-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 14px;
    font-weight: bold;
  }
  
  .mobile-reviews-count {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
  }
  
  .mobile-reviews-toggle {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
  }
  
  .mobile-reviews-toggle:hover {
    background: rgba(255,255,255,0.3);
  }
  
  .mobile-reviews-toggle:active {
    background: rgba(255,255,255,0.4);
  }
  
  /* Скрываем десктопный виджет отзывов на мобильных */
  .reviews-widget {
    display: none;
  }
  
  /* Мобильное модальное окно отзывов */
  .mobile-reviews-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: none; /* По умолчанию скрыто */
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
  }
  
  .mobile-reviews-modal.open {
    display: flex;
  }
  
  .mobile-reviews-content {
    background: var(--window-bg);
    border: 2px outset #c0c0c0;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .mobile-reviews-header {
    background: linear-gradient(135deg, #2db400, #25a000);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
  }
  
  .mobile-reviews-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    box-sizing: border-box;
  }
  
  .mobile-reviews-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    max-height: 300px;
    box-sizing: border-box;
  }
  
  .mobile-reviews-form {
    padding: 10px;
    border-top: 1px solid #c0c0c0;
    background: #f8f8f8;
    box-sizing: border-box;
  }
  
  .mobile-reviews-form input,
  .mobile-reviews-form textarea {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px;
    border: 1px inset #c0c0c0;
    font-size: 14px;
    font-family: var(--font-system);
    box-sizing: border-box;
  }
  
  .mobile-reviews-form textarea {
    min-height: 60px;
    resize: vertical;
  }
  
  .mobile-emoji-grid {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 8px 0;
  }
  
  .mobile-emoji-btn {
    width: 28px;
    height: 28px;
    border: 1px outset #c0c0c0;
    background: #c0c0c0;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  
  .mobile-emoji-btn:hover {
    background: #d0d0d0;
  }
  
  .mobile-emoji-btn:active {
    border: 1px inset #c0c0c0;
  }
  
  .mobile-submit-btn {
    width: 100%;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    padding: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--font-system);
    box-sizing: border-box;
  }
  
  .mobile-submit-btn:hover {
    background: #d0d0d0;
  }
  
  .mobile-submit-btn:active {
    border: 1px inset #c0c0c0;
  }
  
  /* Мобильная версия игры Сапер */
  .minesweeper-game {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .game-board {
    max-height: 50vh;
    padding: 5px;
  }
  
  .minesweeper-cell {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
  
  .game-stats {
    gap: 10px;
    font-size: 10px;
  }
  
  .game-btn {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  
  /* Мобильная версия иконки Сапера */
  .minesweeper-icon {
    width: 48px;
    height: 48px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .icon-cell {
    width: 10px;
    height: 10px;
    font-size: 6px;
  }
  
  .icon-label {
    font-size: 6px;
  }
  
  /* Service table mobile */
  .service-table {
    font-size: 13px;
  }
  
  .service-table th,
  .service-table td {
    padding: 8px 10px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .reviews-widget {
    transition: none;
  }
}

/* Анимации для уведомлений */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

/* =========================
   РАБОТЫ - СТРОГИЙ СТИЛЬ 90-Х
   ========================= */

.tab-content#works.active {
  background: var(--works-bg);
  font-family: var(--font-system);
  color: #000000;
  padding: 20px;
}

/* Заголовок работ */
.works-header {
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #808080;
  padding-bottom: 10px;
}

.works-header h1 {
  font-size: 24px;
  color: #000080;
  margin: 0;
  font-weight: bold;
  text-decoration: underline;
}

/* Фильтр категорий */
.wallpaper-categories {
  margin-bottom: 20px;
  padding: 10px;
  background: #e0e0e0;
  border: 2px inset #c0c0c0;
}

.category-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #000080;
}

.category-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-btn {
  background: #c0c0c0;
  border: 1px outset #c0c0c0;
  color: #000000;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: normal;
  cursor: pointer;
  font-family: var(--font-system);
}

.category-btn:hover {
  background: #d0d0d0;
}

.category-btn:active {
  border: 1px inset #c0c0c0;
}

.category-btn.active {
  background: #000080;
  color: #ffffff;
  border: 1px inset #000080;
}

/* Сетка работ */
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.wallpaper-item {
  background: #ffffff;
  border: 2px outset #c0c0c0;
  padding: 8px;
}

.wallpaper-item:hover {
  background: #f0f0f0;
}

/* Превью работы */
.wallpaper-preview {
  height: 150px;
  border: 1px inset #c0c0c0;
  margin-bottom: 8px;
  background: #ffffff;
  position: relative;
}

.preview-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: #f8f8f8;
  color: #808080;
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,128,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.wallpaper-item:hover .preview-overlay {
  opacity: 1;
}

.overlay-text {
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  font-family: var(--font-system);
}

/* Информация о работе */
.wallpaper-info {
  color: #000000;
}

.wallpaper-title {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 8px 0;
  color: #000080;
}

.wallpaper-details {
  margin-bottom: 8px;
}

.detail-item {
  background: #e0e0e0;
  color: #000000;
  padding: 2px 6px;
  margin: 2px;
  font-size: 10px;
  border: 1px solid #808080;
  display: inline-block;
}

/* Кнопка скачивания */
.download-btn {
  width: 100%;
  background: #c0c0c0;
  border: 1px outset #c0c0c0;
  color: #000000;
  padding: 6px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  font-family: var(--font-system);
}

.download-btn:hover {
  background: #d0d0d0;
}

.download-btn:active {
  border: 1px inset #c0c0c0;
}

/* Модальное окно в стиле 90-х */
.download-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
}

.download-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--window-bg);
  border: 2px outset #c0c0c0;
  max-width: 400px;
  width: 90%;
  font-family: var(--font-system);
}

.modal-header {
  background: linear-gradient(90deg, var(--title-bg-start), var(--title-bg-end));
  color: white;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 12px;
  margin: 0;
  font-weight: bold;
}

.modal-close {
  background: #c0c0c0;
  border: 1px outset #c0c0c0;
  width: 16px;
  height: 14px;
  font-size: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-weight: bold;
}

.modal-body {
  padding: 15px;
  text-align: center;
}

.modal-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.modal-text {
  font-size: 12px;
  color: #000000;
  margin-bottom: 8px;
}

.highlight {
  color: #000080;
  font-weight: bold;
}

.modal-instruction {
  font-size: 14px;
  font-weight: bold;
  margin: 10px 0 8px 0;
  color: #000080;
}

.phone-number {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0;
  color: #800000;
  font-family: 'Courier New', monospace;
}

.modal-note {
  font-size: 10px;
  color: #808080;
  margin-bottom: 15px;
}

.modal-benefits {
  text-align: left;
  margin: 15px 0;
  font-size: 11px;
}

.benefit-item {
  margin: 4px 0;
  color: #000000;
}

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0 15px 15px 15px;
}

.modal-btn-send {
  background: #c0c0c0;
  border: 1px outset #c0c0c0;
  color: #000000;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  font-family: var(--font-system);
}

.modal-btn-send:hover {
  background: #d0d0d0;
}

.modal-btn-send:active {
  border: 1px inset #c0c0c0;
}

.modal-btn-cancel {
  background: #c0c0c0;
  border: 1px outset #c0c0c0;
  color: #000000;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  font-family: var(--font-system);
}

.modal-btn-cancel:hover {
  background: #d0d0d0;
}

.modal-btn-cancel:active {
  border: 1px inset #c0c0c0;
}

/* =========================
   ИНТЕРАКТИВНЫЕ ЭЛЕМЕНТЫ
   ========================= */

.interactive-panel {
    background: var(--window-bg);
    border-top: 1px solid var(--shadow);
    border-bottom: 2px solid var(--shadow);
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.status-bar {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.status-item {
    font-size: 12px;
    color: #000080;
    font-family: var(--font-system);
    font-weight: bold;
}

.control-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.server-status {
    font-size: 12px;
    color: #008000;
    margin-top: 5px;
    font-family: var(--font-system);
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-indicator.online {
    background: #00ff00;
    box-shadow: 0 0 4px #00ff00;
    animation: pulse 2s infinite;
}


/* Системная информация */
.system-info {
    background: var(--window-bg);
    border: 2px inset #c0c0c0;
    padding: 15px;
    margin-bottom: 15px;
}

.system-grid {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.system-item {
    font-size: 12px;
    padding: 5px;
    background: #f8f8f8;
    border: 1px solid #d0d0d0;
}

.connection-speed {
    color: #008000;
    font-weight: bold;
}

/* =========================
   СИСТЕМА ЛАЙКОВ
   ========================= */

/* Контейнер для действий с работами */
.work-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

/* Кнопка лайка для работ */
.like-btn {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-system);
    transition: all 0.2s;
    min-width: 50px;
}

.like-btn:hover {
    background: #d0d0d0;
    border: 1px inset #c0c0c0;
}

.like-btn:active {
    background: #b0b0b0;
}

.like-btn.liked {
    background: #ffff80;
    border: 1px inset #c0c0c0;
    color: #800000;
}

.like-btn.liked .like-icon {
    animation: likeAnimation 0.5s ease-out;
}

/* Кнопка лайка для VK постов */
.like-btn-vk {
    background: none;
    border: none;
    color: #2a5885;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.2s;
    font-family: var(--font-system);
}

.like-btn-vk:hover {
    background: #e1e7ed;
}

.like-btn-vk.liked {
    color: #ff6b6b;
    background: #ffe6e6;
}

.like-btn-vk.liked .like-icon {
    animation: likeAnimation 0.5s ease-out;
}

/* Счетчик лайков */
.like-count {
    font-weight: bold;
    color: inherit;
}

.like-count.animate {
    animation: counterBounce 0.3s ease-out;
}

/* Иконка лайка */
.like-icon {
    display: inline-block;
    transition: transform 0.2s;
}

/* Анимации */
@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes counterBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #ff0000; }
    100% { transform: scale(1); }
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.like-btn.liked .like-icon {
    animation: heartPulse 0.6s ease-in-out infinite;
}


/* Мобильная адаптация интерактивных элементов */
@media (max-width: 768px) {
  .interactive-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 6px;
  }
  
  .status-bar {
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .status-item {
    font-size: 10px;
  }
  
  .control-buttons {
    justify-content: center;
    gap: 6px;
  }
  
  .control-buttons .retro-btn {
    font-size: 10px;
    padding: 4px 8px;
  }
  
  /* Виджеты в сервисе */
  .system-info {
    padding: 10px;
    margin-bottom: 10px;
  }
  
  /* Лайки на мобильных */
  .work-actions {
    flex-direction: column;
    gap: 6px;
  }
  
  .like-btn {
    font-size: 10px;
    padding: 3px 6px;
    min-width: 40px;
  }
  
  .like-btn-vk {
    font-size: 11px;
    padding: 3px 6px;
  }
  
  .system-grid {
    gap: 6px;
  }
  
  .system-item {
    font-size: 11px;
    padding: 4px;
  }
}

@media (max-width: 480px) {
  .interactive-panel {
    display: none; /* Скрываем на очень маленьких экранах */
  }
  
  /* Убеждаемся, что мобильные элементы отображаются на маленьких экранах */
  .mobile-reviews-container {
    display: flex;
  }
}

/* Убеждаемся, что мобильные элементы скрыты на больших экранах */
@media (min-width: 769px) {
  .mobile-reviews-container,
  .mobile-reviews-modal {
    display: none !important;
  }
}

/* Для средних экранов (планшеты) */
@media (min-width: 481px) and (max-width: 768px) {
  .mobile-reviews-container {
    display: flex;
  }
}

/* =========================
   МОБИЛЬНЫЕ ЭЛЕМЕНТЫ (СКРЫТЫ НА ДЕСКТОПЕ)
   ========================= */

/* Скрываем мобильные элементы на десктопе */
.mobile-reviews-container,
.mobile-reviews-modal {
  display: none;
}

/* =========================
   СВОРАЧИВАНИЕ ОКНА И САПЕР
   ========================= */

/* Состояния окна */
.browser-window.minimized {
  transform: translateY(100vh);
  transition: transform 0.5s ease-in-out;
}

.browser-window.maximized {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 0;
}

/* Иконка Сапера */
.minesweeper-icon {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: var(--window-bg);
  border: 2px outset #c0c0c0;
  cursor: pointer;
  display: none;
  z-index: 10000;
  transition: all 0.3s ease;
}

.minesweeper-icon:hover {
  background: #f0f0f0;
  border: 2px inset #c0c0c0;
}

.minesweeper-icon:active {
  background: #e0e0e0;
}

.icon-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 4px;
}

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

.icon-cell {
  width: 12px;
  height: 12px;
  background: #c0c0c0;
  border: 1px inset #c0c0c0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-family: var(--font-system);
}

.icon-label {
  font-size: 8px;
  font-family: var(--font-system);
  color: #000080;
  font-weight: bold;
}

/* Игра Сапер */
.minesweeper-game {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--window-bg);
  border: 2px outset #c0c0c0;
  display: none;
  z-index: 10001;
  min-width: 300px;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 4px 4px 8px rgba(0,0,0,0.3);
  box-sizing: border-box;
  overflow: hidden;
}

.minesweeper-game.open {
  display: block;
}

.game-header {
  background: linear-gradient(90deg, var(--title-bg-start), var(--title-bg-end));
  color: white;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
}

.game-title {
  font-family: var(--font-system);
}

.game-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-stats {
  display: flex;
  gap: 15px;
  font-size: 11px;
}

.game-btn {
  background: #c0c0c0;
  border: 1px outset #c0c0c0;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.game-btn:hover {
  background: #d0d0d0;
}

.game-btn:active {
  border: 1px inset #c0c0c0;
}

.game-board {
  padding: 10px;
  display: flex;
  justify-content: center;
  overflow: auto;
  max-height: 60vh;
}

.minesweeper-grid {
  display: grid;
  gap: 1px;
  background: #808080;
  border: 2px inset #c0c0c0;
  padding: 2px;
}

.minesweeper-cell {
  width: 20px;
  height: 20px;
  background: #c0c0c0;
  border: 1px outset #c0c0c0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: var(--font-system);
  font-weight: bold;
  user-select: none;
}

.minesweeper-cell:hover {
  background: #d0d0d0;
}

.minesweeper-cell:active {
  border: 1px inset #c0c0c0;
}

.minesweeper-cell.revealed {
  background: #e0e0e0;
  border: 1px inset #c0c0c0;
  cursor: default;
}

.minesweeper-cell.flagged {
  background: #ffcccc;
}

.minesweeper-cell.mine {
  background: #ff0000;
  color: white;
}

.minesweeper-cell.mine-exploded {
  background: #ff0000;
  animation: explode 0.3s ease-out;
}

/* Цвета для чисел */
.minesweeper-cell[data-count="1"] { color: #0000ff; }
.minesweeper-cell[data-count="2"] { color: #008000; }
.minesweeper-cell[data-count="3"] { color: #ff0000; }
.minesweeper-cell[data-count="4"] { color: #000080; }
.minesweeper-cell[data-count="5"] { color: #800000; }
.minesweeper-cell[data-count="6"] { color: #008080; }
.minesweeper-cell[data-count="7"] { color: #000000; }
.minesweeper-cell[data-count="8"] { color: #808080; }

.game-info {
  padding: 10px;
  border-top: 1px solid #c0c0c0;
  background: #f0f0f0;
}

.difficulty-selector {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.diff-btn {
  background: #c0c0c0;
  border: 1px outset #c0c0c0;
  padding: 4px 8px;
  font-size: 10px;
  cursor: pointer;
  font-family: var(--font-system);
}

.diff-btn:hover {
  background: #d0d0d0;
}

.diff-btn.active {
  background: #000080;
  color: white;
  border: 1px inset #c0c0c0;
}

.diff-btn:active {
  border: 1px inset #c0c0c0;
}

/* Анимации */
@keyframes explode {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes iconAppear {
  0% { 
    opacity: 0; 
    transform: scale(0.5) rotate(-180deg);
  }
  100% { 
    opacity: 1; 
    transform: scale(1) rotate(0deg);
  }
}

.minesweeper-icon.appear {
  animation: iconAppear 0.5s ease-out;
}

/* =========================
   МОДАЛЬНОЕ ОКНО ПРЕДПРОСМОТРА РАБОТ
   ========================= */

.work-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.work-preview-modal.open {
  display: flex;
}

.work-preview-content {
  background: #ffffff;
  border: 2px solid #000080;
  border-radius: 8px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.work-preview-header {
  background: linear-gradient(to right, #0000FF, #000080);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 6px 6px 0 0;
}

.work-preview-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

.work-preview-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.work-preview-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.work-preview-body {
  display: flex;
  padding: 20px;
  gap: 20px;
}

.work-preview-image {
  flex: 1;
  min-width: 300px;
}

.work-preview-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.work-preview-info {
  flex: 1;
  min-width: 250px;
}

.work-preview-details {
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-label {
  font-weight: bold;
  color: #333333;
  font-size: 14px;
}

.detail-value {
  color: #666666;
  font-size: 14px;
}

.work-preview-description {
  margin-bottom: 20px;
}

.work-preview-description h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #333333;
}

.work-preview-description p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #666666;
}

.work-preview-actions {
  display: flex;
  justify-content: center;
}

/* Стандартизация размеров карточек работ */
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 0;
}

.wallpaper-item {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.wallpaper-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.wallpaper-preview {
  position: relative;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f0f2f5 0%, #e7e8ec 100%);
  cursor: pointer;
  overflow: hidden;
}

.preview-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.wallpaper-preview:hover .preview-overlay {
  opacity: 1;
}

.overlay-text {
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.wallpaper-info {
  padding: 15px;
}

.wallpaper-title {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: bold;
  color: #333333;
}

.wallpaper-details {
  margin-bottom: 15px;
}

.detail-item {
  display: inline-block;
  font-size: 12px;
  color: #666666;
  margin-right: 10px;
  margin-bottom: 5px;
}

.work-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.download-btn {
  background: #000080;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.download-btn:hover {
  background: #0000aa;
}

/* Темная тема для модального окна предпросмотра */
[data-theme="dark"] .work-preview-content {
  background: #1a1a1a;
  border-color: #00ff00;
}

[data-theme="dark"] .detail-label {
  color: #00ff00;
}

[data-theme="dark"] .detail-value {
  color: #888888;
}

[data-theme="dark"] .work-preview-description h4 {
  color: #00ff00;
}

[data-theme="dark"] .work-preview-description p {
  color: #888888;
}

[data-theme="dark"] .detail-row {
  border-bottom-color: #333333;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .work-preview-body {
    flex-direction: column;
  }
  
  .work-preview-image {
    min-width: auto;
  }
  
  .work-preview-info {
    min-width: auto;
  }
  
  .wallpaper-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .wallpaper-preview {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .wallpaper-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .wallpaper-preview {
    height: 200px;
  }
}

/* =========================
   ПАНЕЛЬ АДМИНИСТРИРОВАНИЯ
   ========================= */

.admin-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.admin-panel.open {
  display: flex;
}

.admin-panel-content {
  background: #ffffff;
  border: 2px solid #000080;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.admin-header {
  background: linear-gradient(to right, #0000FF, #000080);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 6px 6px 0 0;
}

.admin-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.admin-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.admin-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.admin-section {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.admin-section:last-child {
  border-bottom: none;
}

.admin-section h3 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #333333;
  font-weight: bold;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 14px;
  font-weight: bold;
  color: #333333;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 8px 12px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000080;
  box-shadow: 0 0 0 2px rgba(0, 0, 128, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.admin-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.admin-btn.primary {
  background: #000080;
  color: white;
}

.admin-btn.primary:hover {
  background: #0000aa;
}

.admin-btn.secondary {
  background: #cccccc;
  color: #333333;
}

.admin-btn.secondary:hover {
  background: #bbbbbb;
}

.works-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 10px;
  background: #f9f9f9;
}

.work-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #e0e0e0;
  background: white;
  margin-bottom: 5px;
  border-radius: 4px;
}

.work-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.work-info {
  flex: 1;
}

.work-title {
  font-weight: bold;
  color: #333333;
  margin-bottom: 5px;
}

.work-details {
  font-size: 12px;
  color: #666666;
}

.work-actions {
  display: flex;
  gap: 5px;
}

.work-delete-btn {
  background: #cc0000;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
}

.work-delete-btn:hover {
  background: #aa0000;
}

/* Темная тема для панели администрирования */
[data-theme="dark"] .admin-panel-content {
  background: #1a1a1a;
  border-color: #00ff00;
}

[data-theme="dark"] .admin-section {
  border-bottom-color: #333333;
}

[data-theme="dark"] .admin-section h3 {
  color: #00ff00;
}

[data-theme="dark"] .form-group label {
  color: #00ff00;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: #2a2a2a;
  border-color: #333333;
  color: #00ff00;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
  border-color: #00ff00;
  box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.1);
}

[data-theme="dark"] .works-list {
  background: #2a2a2a;
  border-color: #333333;
}

[data-theme="dark"] .work-item {
  background: #1a1a1a;
  border-bottom-color: #333333;
}

[data-theme="dark"] .work-title {
  color: #00ff00;
}

[data-theme="dark"] .work-details {
  color: #888888;
}

/* Print Styles */
@media print {
  .reviews-widget,
  .browser-toolbar,
  .title-controls,
  .interactive-panel,
  .minesweeper-icon,
  .minesweeper-game {
    display: none;
  }
  
  .browser-window {
    border: 1px solid #000;
    box-shadow: none;
  }
}
