@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
  --primary-color: #39ff14;
  --secondary-color: #0f0;
  --accent-color: #90ff00;
  --text-color: #39ff14;
  --bg-primary: #000000;
  --bg-secondary: rgba(0, 15, 0, 0.6);
  --border-color: #0f0;
  --shadow-color: rgba(0, 255, 0, 0.5);
  --matrix-color: #90ff00;
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: default !important; }

body {
  background: var(--bg-primary); 
  color: var(--text-color); 
  font-family: 'VT323', monospace;
  font-size: 18px; 
  overflow-x: hidden; 
  font-weight: 700 !important;
  letter-spacing: 1.5px; 
  min-height: 100vh; 
  display: flex; 
  flex-direction: column;
  transition: all 0.5s ease;
}

.main-nav a, .dropdown-menu a, .modal-content, footer, .logo,
.live-time, .hero h1, #search-input, #search-results a, .close,
.cookie-content p, .cookie-buttons button span { font-weight: 700 !important; }

.main-nav a, .dropdown-menu a, .close, #search-input, #search-results a,
.cookie-buttons button, .full-hub .icons-orbit i, img, 
.control-btn, .theme-option { cursor: pointer !important; }

canvas#matrix { pointer-events: none; opacity: 0.18; }

.top-bar {
  display: flex; 
  align-items: center; 
  padding: 20px 6%;
  background: var(--bg-primary);
  border-bottom: 2px solid var(--border-color);
  gap: 20px; 
  font-size: 19px; 
  text-transform: uppercase;
  position: relative; 
  overflow: visible;
}

.top-bar .logo {
  display: block;
  padding: 0;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 0 15px var(--primary-color));
  position: relative;
  z-index: 10;
  animation: logoEntrance 1.2s ease-out;
}

.top-bar .logo:hover {
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 0 25px var(--accent-color)) 
          drop-shadow(0 0 35px var(--accent-color))
          drop-shadow(0 0 45px var(--accent-color));
}

.top-bar .logo:active {
  transform: scale(1.02) translateY(0);
  transition: all 0.1s ease;
}

.top-bar .logo svg {
  height: 70px;
  width: auto;
  display: block;
}

@keyframes logoEntrance {
  0% { opacity: 0; transform: translateY(-20px) scale(0.9); filter: drop-shadow(0 0 0px var(--primary-color)); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: drop-shadow(0 0 15px var(--primary-color)); }
}

.time-controls-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

.live-time {
  color: var(--primary-color); 
  font-size: 24px; 
  text-shadow: 0 0 15px var(--primary-color), 0 0 25px var(--primary-color), 0 0 40px var(--accent-color);
  letter-spacing: 2.5px; 
  white-space: nowrap;
  order: 1;
  transition: all 0.5s ease;
}

.control-panel {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: center;
  order: 2;
  width: 100%;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
  flex: 1;
  max-width: 70px;
}

.control-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-color);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px var(--shadow-color);
}

.control-btn:hover {
  background: var(--primary-color);
  color: var(--bg-primary);
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--primary-color);
}

.control-btn.active {
  background: var(--primary-color);
  color: var(--bg-primary);
}

.control-label {
  font-size: 11px;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
}

.theme-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  min-width: 180px;
  width: max-content;
  box-shadow: 0 8px 25px var(--shadow-color);
  z-index: 10000;
  padding: 8px;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
  margin-top: 0;
}

.dropdown-theme:hover .theme-dropdown-menu,
.dropdown-theme:focus-within .theme-dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-option:hover {
  background: var(--bg-secondary);
}

.theme-preview {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #333;
}

.green-theme { background: linear-gradient(90deg, #39ff14, #0f0); }
.blue-theme { background: linear-gradient(90deg, #00eeff, #0066ff); }
.purple-theme { background: linear-gradient(90deg, #ff00ff, #9933ff); }
.red-theme { background: linear-gradient(90deg, #ff0033, #cc0000); }
.orange-theme { background: linear-gradient(90deg, #ff8800, #ff9900); }

.full-hub {
  position: relative; 
  flex: 1; 
  min-width: 300px; 
  height: 70px;
  display: flex; 
  justify-content: center; 
  align-items: center; 
  overflow: hidden;
  background: transparent;
}

.full-hub .icons-orbit {
  position: relative; 
  width: 100%; 
  height: 70px;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 0 5%; 
  overflow: visible;
}

.full-hub .icons-orbit i {
  font-size: 22px; 
  color: var(--primary-color);
  text-shadow: 0 0 8px var(--primary-color), 0 0 16px var(--primary-color), 0 0 24px var(--primary-color), 0 0 32px var(--primary-color);
  animation: breathe-glow 2.4s ease-in-out infinite, color-switch 3s ease-in-out infinite, sway 3s ease-in-out infinite;
  transition: all 0.3s ease; 
  transform-origin: center;
}

@keyframes breathe-glow {
  0%,100% { text-shadow: 0 0 8px var(--primary-color),0 0 16px var(--primary-color),0 0 24px var(--primary-color),0 0 32px var(--primary-color); opacity:1; transform:scale(1); }
  50% { text-shadow: 0 0 2px var(--primary-color),0 0 4px var(--primary-color),0 0 6px var(--primary-color),0 0 8px var(--primary-color); opacity:0.4; transform:scale(0.95); }
}
@keyframes color-switch { 0%,100%{color:var(--primary-color)} 50%{color:var(--secondary-color)} }
@keyframes sway { 0%,100%{transform:translateX(0) rotate(0)} 25%{transform:translateX(-2px) rotate(-1deg)} 75%{transform:translateX(2px) rotate(1deg)} }

.full-hub .icons-orbit i:nth-child(1){animation-delay:0s,0s,0s}.full-hub .icons-orbit i:nth-child(2){animation-delay:0.1s,0.15s,0.2s}
.full-hub .icons-orbit i:nth-child(3){animation-delay:0.2s,0.3s,0.4s}.full-hub .icons-orbit i:nth-child(4){animation-delay:0.3s,0.45s,0.6s}
.full-hub .icons-orbit i:nth-child(5){animation-delay:0.4s,0.6s,0.8s}.full-hub .icons-orbit i:nth-child(6){animation-delay:0.5s,0.75s,1.0s}
.full-hub .icons-orbit i:nth-child(7){animation-delay:0.6s,0.9s,1.2s}.full-hub .icons-orbit i:nth-child(8){animation-delay:0.7s,1.05s,1.4s}
.full-hub .icons-orbit i:nth-child(9){animation-delay:0.8s,1.2s,1.6s}.full-hub .icons-orbit i:nth-child(10){animation-delay:0.9s,1.35s,1.8s}
.full-hub .icons-orbit i:nth-child(11){animation-delay:1.0s,1.5s,2.0s}.full-hub .icons-orbit i:nth-child(12){animation-delay:1.1s,1.65s,2.2s}
.full-hub .icons-orbit i:nth-child(13){animation-delay:1.2s,1.8s,2.4s}.full-hub .icons-orbit i:nth-child(14){animation-delay:1.3s,1.95s,2.6s}

.full-hub .icons-orbit i:hover {
  animation: pulse-glow-hover 1s ease-in-out infinite, color-switch 3s infinite, sway 3s infinite;
  transform: scale(1.3) !important;
  text-shadow: 0 0 20px var(--primary-color),0 0 40px var(--primary-color),0 0 60px var(--primary-color),0 0 80px var(--primary-color),0 0 100px var(--primary-color);
  filter: brightness(1.6); 
  z-index: 10;
}
@keyframes pulse-glow-hover { 0%,100%{transform:scale(1.3)} 50%{transform:scale(1.4)} }

/* ========== НАВИГАЦИЯ И ПАДАЩИ МЕНЮТА ========== */
.main-nav { 
  display: flex; 
  justify-content: center; 
  gap: 12px; 
  padding: 20px 5%; 
  background: var(--bg-secondary); 
  border-bottom: 1px solid var(--border-color); 
  flex-wrap: wrap; 
  text-transform: uppercase; 
  position: relative;
  z-index: 9000;
}

.main-nav a, .dropdown > a { 
  color: var(--text-color); 
  text-decoration: none; 
  padding: 14px 28px; 
  border: 2px solid var(--border-color); 
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255,255,255,0.1) 100%);
  border-radius: 10px; 
  font-size: 17px; 
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  min-width: 190px; 
  justify-content: center; 
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); 
  letter-spacing: 1.5px; 
  white-space: nowrap; 
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

body[data-theme="light"] .main-nav a,
body[data-theme="light"] .dropdown > a {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  font-weight: 800;
  text-shadow: none;
}

.main-nav a:hover, .dropdown:hover > a { 
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: #000000 !important; 
  box-shadow: 0 12px 30px var(--shadow-color), 0 6px 20px var(--shadow-color); 
  transform: translateY(-4px) scale(1.03); 
}

body[data-theme="light"] .main-nav a:hover,
body[data-theme="light"] .dropdown:hover > a {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: #000000 !important;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px) scale(1.03);
}

.main-nav a::after, .dropdown > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--accent-color);
  transition: width 0.4s ease;
  border-radius: 0 0 8px 8px;
}

.main-nav a:hover::after, .dropdown:hover > a::after {
  width: 100%;
}

.main-nav a::before, .dropdown > a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.main-nav a:hover::before, .dropdown:hover > a::before {
  left: 100%;
}

.dropdown { 
  position: relative; 
  display: inline-block; 
}

/* ========== ОПТИМИЗИРАНИ ПАДАЩИ МЕНЮТА ========== */
.dropdown-menu { 
  display: none; 
  position: absolute; 
  top: 100%; 
  left: 50%; 
  transform: translateX(-50%); 
  background: var(--bg-primary); 
  border: none;
  min-width: 260px; 
  width: max-content; 
  box-shadow: 0 12px 30px var(--shadow-color); 
  z-index: 9500; 
  padding: 0;
  text-transform: uppercase; 
  opacity: 0; 
  visibility: hidden; 
  transition: opacity .15s ease, visibility .15s ease;
  border-radius: 10px;
  margin-top: 0; /* ПРЕМАХНАТ GAP */
  overflow: hidden;
}

/* НЕВИДИМ "ПОНТОН" МЕЖДУ БУТОНА И МЕНЮТО */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
  pointer-events: auto;
}

.dropdown:hover .dropdown-menu, 
.dropdown:focus-within .dropdown-menu,
.dropdown-menu:hover { 
  display: block; 
  opacity: 1; 
  visibility: visible; 
}

.dropdown-menu a { 
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px; 
  color: var(--text-color); 
  text-align: left; 
  border-bottom: 1px solid var(--border-color);
  transition: all .3s; 
  letter-spacing: 1.5px; 
  font-size: 16px; 
  background: var(--bg-secondary);
  margin: 0;
  border-radius: 0;
  position: relative;
}

.dropdown-menu a i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.dropdown-menu a:hover { 
  background: var(--primary-color); 
  color: var(--bg-primary) !important; 
  transform: translateX(5px);
  padding-left: 25px;
  border-radius: 0;
}

/* ПОСЛЕДНИЯТ ЕЛЕМЕНТ ИМА ДОЛНА КОНТУРНА ЛИНИЯ */
.dropdown-menu a:last-child {
  border-bottom: 1px solid var(--border-color) !important;
}

.dropdown-menu a:first-child {
  border-radius: 10px 10px 0 0;
}

.dropdown-menu a:last-child {
  border-radius: 0 0 10px 10px;
}

.dropdown-menu a:last-child:hover {
  border-bottom: 1px solid var(--border-color);
}

body[data-theme="light"] .dropdown-menu {
  background: #ffffff;
  border: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

body[data-theme="light"] .dropdown-menu a {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: var(--primary-color) !important;
  border-bottom: 1px solid var(--primary-color);
}

body[data-theme="light"] .dropdown-menu a:last-child {
  border-bottom: 1px solid var(--primary-color) !important;
}

body[data-theme="light"] .dropdown-menu a:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: #000000 !important;
}

/* ========== ОСТАНАЛ CSS ========== */
.container { 
  max-width: 1000px; 
  margin: 80px auto; 
  padding: 0 5%; 
  text-align: center; 
  flex: 1; 
}
.hero h1 { 
  font-size: 3.2rem; 
  color: var(--primary-color); 
  text-shadow: 0 0 20px var(--primary-color); 
  text-transform: uppercase; 
  letter-spacing: 4px; 
}
.hero-content { margin: 60px 0; }
.hero-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 40px; 
  align-items: center; 
}
.hero-text h1 { 
  font-size: 2.8rem; 
  margin-bottom: 20px; 
  text-shadow: 0 0 15px var(--primary-color); 
}
.hero-text p { 
  margin-bottom: 18px; 
  line-height: 1.6; 
  opacity: 0.9; 
}
.hero-img img { 
  width: 100%; 
  height: auto; 
  border: 1px solid var(--border-color); 
  box-shadow: 0 0 25px var(--shadow-color); 
  border-radius: 6px; 
}

.modal { 
  display: none; 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,0.95); 
  z-index: 2000; 
  justify-content: center; 
  align-items: center; 
}
.modal-content { 
  background: var(--bg-primary); 
  padding: 30px; 
  border: 2px solid var(--border-color); 
  width: 90%; 
  max-width: 560px; 
  box-shadow: 0 0 30px var(--primary-color); 
  position: relative; 
  text-align: center; 
  text-transform: uppercase; 
}
.close { 
  position: absolute; 
  top: 12px; 
  right: 18px; 
  color: var(--text-color); 
  font-size: 26px; 
}
.close:hover { color: var(--accent-color); }
#search-input { 
  width: 100%; 
  padding: 14px; 
  background: var(--bg-primary); 
  color: var(--text-color); 
  border: 1px solid var(--border-color); 
  font-family: 'VT323', monospace; 
  font-size: 18px; 
  margin: 15px 0; 
  text-transform: uppercase; 
  letter-spacing: 1.5px; 
}
#search-input::placeholder { color: var(--text-color); opacity: 0.7; }
#search-results a { 
  display: block; 
  padding: 10px; 
  color: var(--text-color); 
  border-bottom: 1px dashed var(--border-color); 
  text-transform: uppercase; 
  letter-spacing: 1.5px; 
}
#search-results a:hover { 
  background: var(--primary-color); 
  color: var(--bg-primary); 
}

.lightbox { 
  display: none; 
  position: fixed; 
  z-index: 9999; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,0.96); 
  justify-content: center; 
  align-items: center; 
  padding: 40px; 
  animation: fadeIn 0.3s; 
}
.lightbox.active { display: flex; }
.lightbox-content { 
  max-width: 95%; 
  max-height: 95vh; 
  border: 3px solid var(--border-color); 
  box-shadow: 0 0 40px var(--primary-color), 0 0 80px var(--primary-color); 
  animation: zoomIn 0.4s; 
}
.lightbox-close { 
  position: absolute; 
  top: 30px; 
  right: 40px; 
  color: var(--text-color); 
  font-size: 50px; 
  cursor: pointer; 
  text-shadow: 0 0 20px var(--primary-color); 
}
.lightbox-close:hover { color: var(--accent-color); transform: scale(1.2); }
.lightbox-caption { 
  position: absolute; 
  bottom: 40px; 
  color: var(--text-color); 
  font-size: 20px; 
  text-align: center; 
  text-shadow: 0 0 15px var(--primary-color); 
  letter-spacing: 2px; 
  width: 100%; 
}
@keyframes fadeIn { from {opacity:0} to {opacity:1} }
@keyframes zoomIn { from {transform:scale(0.5)} to {transform:scale(1)} }

footer {
  background: var(--bg-primary); 
  border-top: 1px solid var(--border-color); 
  color: var(--text-color); 
  font-size: 17px; 
  text-transform: uppercase; 
  letter-spacing: 2.5px; 
  margin-top: auto;
  text-shadow: 0 0 12px var(--primary-color), 0 0 20px var(--primary-color); 
  width: 100%;
  padding: 15px 5%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-content {
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.cookie-banner {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: 95%;
  z-index: 9999;
  display: none;
  animation: slideUp 0.7s ease-out;
}

.cookie-content {
  background: var(--bg-primary);
  color: var(--text-color);
  padding: 20px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  box-shadow: 0 0 30px var(--shadow-color), 0 0 60px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 255, 0, 0.1);
  backdrop-filter: blur(10px);
}

.cookie-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
  text-align: center;
}

.cookie-header h3 {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cookie-subtitle {
  opacity: 0.8;
  font-size: 15px;
}

.cookie-options {
  margin: 20px 0;
}

.cookie-category {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.cookie-category:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
}

.cookie-category.necessary {
  background: rgba(0, 30, 0, 0.4);
  border-color: var(--accent-color);
}

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

.category-header h4 {
  font-size: 17px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.category-status {
  font-size: 13px;
  color: var(--accent-color);
  opacity: 0.9;
  white-space: nowrap;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.cookie-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 14px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.cookie-tag:hover {
  background: rgba(0, 255, 0, 0.1);
  border-color: var(--accent-color);
}

.cookie-tag i {
  color: var(--accent-color);
  font-size: 12px;
}

.category-note {
  font-size: 13px;
  opacity: 0.7;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  border-left: 3px solid var(--accent-color);
  margin-top: 8px;
}

.category-note i {
  color: var(--accent-color);
  margin-right: 6px;
  font-size: 12px;
}

.category-toggle {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 24px;
  margin-right: 12px;
}

.category-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-color);
  transition: .4s;
  border-radius: 50%;
}

.category-toggle input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

.category-toggle input:checked + .toggle-slider:before {
  transform: translateX(21px);
  background-color: #000;
}

.cookie-info {
  text-align: center;
  margin: 20px 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px dashed var(--border-color);
  font-size: 14px;
}

.policy-link {
  color: var(--accent-color) !important;
  text-decoration: underline !important;
}

.policy-link:hover {
  color: var(--primary-color) !important;
  text-shadow: 0 0 10px var(--primary-color);
}

.cookie-remember {
  text-align: center;
  margin: 15px 0 20px;
}

.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.9;
}

.remember-label input {
  display: none;
}

.checkmark {
  position: relative;
  height: 18px;
  width: 18px;
  background-color: transparent;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.remember-label input:checked ~ .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid black;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.remember-label input:checked ~ .checkmark:after {
  display: block;
}

.cookie-footer {
  margin-top: 20px;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  background: transparent;
  border: 2px solid;
  color: var(--text-color);
  padding: 10px 20px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 160px;
  letter-spacing: 1.5px;
}

.cookie-btn.accept-all {
  border-color: var(--primary-color);
  background: rgba(57, 255, 20, 0.1);
}

.cookie-btn.save {
  border-color: var(--accent-color);
  background: rgba(144, 255, 0, 0.1);
}

.cookie-btn.reject {
  border-color: #ff5555;
  background: rgba(255, 85, 85, 0.1);
}

.cookie-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow-color);
}

.cookie-btn.accept-all:hover {
  background: var(--primary-color);
  color: #000;
  font-weight: bold;
}

.cookie-btn.save:hover {
  background: var(--accent-color);
  color: #000;
  font-weight: bold;
}

.cookie-btn.reject:hover {
  background: #ff5555;
  color: #fff;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.modal-btn {
  padding: 12px 24px;
  border: 2px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  font-family: 'VT323', monospace;
  font-size: 16px;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.modal-btn.confirm:hover {
  background: var(--primary-color);
  color: var(--bg-primary);
}

.modal-btn.cancel:hover {
  background: #666;
  color: var(--bg-primary);
}

body[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: rgba(240, 240, 240, 0.9);
  --text-color: #000000;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

body[data-theme="light"] footer {
  color: #000000;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

body[data-theme="light"] .cookie-content {
  background: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

body[data-theme="light"] .cookie-category {
  background: rgba(240, 240, 240, 0.9);
  border-color: rgba(0, 128, 0, 0.3);
}

body[data-theme="light"] .cookie-category.necessary {
  background: rgba(200, 255, 200, 0.3);
  border-color: var(--primary-color);
}

body[data-theme="light"] .cookie-tag {
  background: rgba(240, 240, 240, 0.7);
  border-color: rgba(0, 128, 0, 0.2);
  color: #000000;
}

body[data-theme="light"] .cookie-tag:hover {
  background: rgba(0, 128, 0, 0.1);
}

body[data-theme="light"] .cookie-tag i {
  color: var(--primary-color);
}

body[data-theme="light"] .category-note {
  background: rgba(240, 240, 240, 0.7);
  color: #333333;
}

body.no-effects canvas {
  display: none !important;
}

body.no-effects .full-hub .icons-orbit i {
  animation: none !important;
  text-shadow: none !important;
}

body.no-effects .control-btn#effects-toggle {
  opacity: 0.5;
}

/* ========== ДОСТЪПНОСТ И ФОКУС ========== */
*:focus {
  outline: 3px solid var(--primary-color) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(57, 255, 20, 0.2) !important;
}

.control-btn:focus,
.main-nav a:focus,
.dropdown-menu a:focus,
.cookie-btn:focus,
.modal-btn:focus,
#search-input:focus {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--primary-color) !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body[data-theme="light"] .sr-only {
  background: transparent;
}

@keyframes pulse-focus {
  0%, 100% { outline-color: var(--primary-color); }
  50% { outline-color: var(--accent-color); }
}

*:focus {
  animation: pulse-focus 2s infinite;
}

[aria-disabled="true"],
[disabled] {
  opacity: 0.5;
  cursor: not-allowed !important;
}

@media (max-width: 768px) {
  .top-bar { 
    flex-direction: column; 
    gap: 15px; 
    padding: 15px 5%; 
    text-align: center; 
  }
  .top-bar .logo svg { 
    height: 50px; 
    width: 280px; 
  }
  .live-time { 
    font-size: 20px; 
  }
  .full-hub { 
    height: 50px; 
  }
  .full-hub .icons-orbit i { 
    font-size: 14px; 
  }
  
  .main-nav { 
    flex-direction: column !important; 
    align-items: center; 
    gap: 10px; 
    padding: 15px 5%;
  }
  .main-nav a, .dropdown > a { 
    width: 300px; 
    height: 54px;
    padding: 0 20px; 
    font-size: 16px; 
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    min-width: unset;
    max-width: unset;
    white-space: nowrap;
  }
  
  .dropdown-menu { 
    position: static !important; 
    transform: none !important; 
    width: 300px !important;
    min-width: unset !important;
    max-width: unset !important;
    margin: 5px auto 0 !important; 
    left: auto !important;
    border-radius: 10px !important;
  }
  
  .dropdown-menu a { 
    width: 100%;
    height: 50px;
    padding: 0 20px;
    text-align: center;
    justify-content: center;
    font-size: 15px;
    display: flex;
    align-items: center;
    border-radius: 0 !important;
  }
  
  .dropdown-menu a:first-child {
    border-radius: 10px 10px 0 0 !important;
  }
  
  .dropdown-menu a:last-child {
    border-radius: 0 0 10px 10px !important;
  }
  
  .hero-grid { 
    grid-template-columns: 1fr; 
    gap: 30px; 
  }
  .hero-text h1 { 
    font-size: 2.2rem; 
  }
  
  .control-panel {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .control-group {
    max-width: 60px;
    min-width: 60px;
  }
  
  .control-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .control-label {
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  
  footer {
    padding: 12px 5%;
    min-height: 50px;
  }
  
  .footer-content {
    font-size: 15px;
    letter-spacing: 2px;
  }
  
  .cookie-banner { 
    bottom: 15px;
    width: 96%;
  }
  
  .cookie-content {
    padding: 15px;
  }
  
  .cookie-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .cookie-btn {
    width: 100%;
    min-width: unset;
    padding: 12px 15px;
  }
  
  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .category-header h4 {
    font-size: 15px;
  }
  
  .cookie-header h3 {
    font-size: 18px;
  }
  
  .category-tags {
    justify-content: center;
  }
  
  .cookie-tag {
    font-size: 13px;
    padding: 4px 10px;
  }
  
  .theme-dropdown-menu {
    min-width: 150px;
  }
  
  .modal-buttons {
    flex-direction: column;
  }
  
  *:focus {
    outline-width: 2px;
    outline-offset: 2px;
  }
}

@media (max-width: 480px) {
  .cookie-content {
    padding: 12px;
  }
  
  .cookie-category {
    padding: 12px;
  }
  
  .cookie-tag {
    font-size: 12px;
    padding: 3px 8px;
  }
  
  .cookie-btn {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .cookie-header h3 {
    font-size: 16px;
  }
  
  .cookie-subtitle {
    font-size: 13px;
  }
  
  .control-panel {
    gap: 8px;
  }
  
  .control-group {
    max-width: 55px;
    min-width: 55px;
  }
  
  .control-label {
    font-size: 8px;
  }
}

@keyframes slideUp { 
  from { opacity:0; transform:translateX(-50%) translateY(25px); } 
  to { opacity:1; transform:translateX(-50%) translateY(0); } 
}