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

body {
  background: linear-gradient(180deg, #050c1a, #020814);
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  overflow-x: hidden;
}

.wrapper {
  max-width: 1300px;
  margin: auto;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 6px #00f6ff;
  flex-shrink: 0;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-text {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.neon-title {
  font-size: 16px;
  font-weight: 700;
  color: #00f6ff;
  text-shadow: 0 0 5px #00f6ff;
  white-space: nowrap;
}

.neon-sub {
  font-size: 12px;
  opacity: 0.9;
}

.menu-btn {
  background: #00f6ff;
  border: none;
  padding: 6px 12px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  color: #000;
  font-size: 18px;
}

.search-box {
  padding: 16px;
}

.search-box input {
  width: 100%;
  padding: 12px 18px;
  border-radius: 30px;
  border: none;
  font-size: 14px;
  box-shadow: 0 0 12px rgba(0, 242, 255, 0.5);
  font-family: 'Orbitron', sans-serif;
}

.categories-scroll {
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 16px;
  display: flex;
  gap: 10px;
  scrollbar-width: thin;
}

.category-chip {
  display: inline-block;
  background: #0a1b33;
  padding: 7px 16px;
  border-radius: 40px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
  border: 1px solid rgba(0, 242, 255, 0.5);
}

.category-chip.active {
  background: #00f6ff;
  color: #000;
  box-shadow: 0 0 10px #00f6ff;
}

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

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.box {
  background: linear-gradient(180deg, #0a1b33, #071427);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 0 1px rgba(0, 242, 255, 0.4), 0 0 16px rgba(0, 242, 255, 0.25);
}

.box:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(0, 242, 255, 0.9), 0 0 30px rgba(0, 242, 255, 0.6);
}

.icon {
  width: 70px;
  height: 70px;
  margin: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 242, 255, 0.6);
  transition: 0.4s;
}

.box:hover .icon {
  transform: scale(1.1);
}

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

.title {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 1px;
}

.comment-section {
  background: #081a33;
  margin: 30px 16px;
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(0, 242, 255, 0.25);
}

.comment-input input,
.comment-input textarea {
  width: 100%;
  margin: 8px 0;
  padding: 12px;
  border-radius: 16px;
  border: none;
  background: #071427;
  color: #fff;
  font-family: inherit;
}

.comment-input button {
  background: #00f6ff;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
}

.channel-btn {
  display: inline-block;
  background: transparent;
  border: 2px solid #00f6ff;
  color: #00f6ff;
  padding: 12px 30px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: 0.2s;
}

.channel-btn:hover {
  background: #00f6ff;
  color: #000;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
}

.popup-overlay.active {
  visibility: visible;
  opacity: 1;
}

.glass-popup {
  background: rgba(10, 27, 51, 0.95);
  padding: 28px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  border: 1px solid #00f6ff;
}

.glass-popup-buttons {
  margin-top: 15px;
}

.glass-btn {
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  margin: 8px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
}

.glass-btn-primary {
  background: #00f6ff;
  color: #000;
}

.glass-btn-secondary {
  background: transparent;
  border: 1px solid #00f6ff;
  color: #00f6ff;
}

.stars {
  font-size: 32px;
  cursor: pointer;
  color: #555;
  margin: 10px 0;
}

.star.active {
  color: #ffcc00;
}

.animated-footer {
  background: linear-gradient(45deg, #00f6ff, #ff0055, #ffcc00, #00f6ff);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
  font-weight: bold;
}

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

.side-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: #0a1b33;
  z-index: 1500;
  transition: left 0.3s;
  box-shadow: 2px 0 20px rgba(0, 242, 255, 0.3);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid #00f6ff;
}

.side-drawer.open {
  left: 0;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1499;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
}

.drawer-overlay.active {
  visibility: visible;
  opacity: 1;
}

.drawer-link {
  background: transparent;
  border: 1px solid #00f6ff;
  padding: 10px;
  border-radius: 40px;
  text-align: center;
  color: #00f6ff;
  text-decoration: none;
  font-weight: bold;
}

.drawer-link:hover {
  background: #00f6ff;
  color: #000;
}

.close-drawer {
  background: #ff0055;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 40px;
  cursor: pointer;
  margin-top: 20px;
}

.notification-bar {
  background: #ff0055;
  color: #fff;
  text-align: center;
  padding: 12px;
  font-weight: bold;
  position: relative;
  z-index: 1000;
}

.notification-bar span {
  display: inline-block;
  max-width: 80%;
}

.notification-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.maintenance-box {
  text-align: center;
  background: rgba(10, 27, 51, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 40px;
  margin: 40px auto;
  max-width: 500px;
  border: 2px solid #00f6ff;
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
}

.maintenance-box h2 {
  color: #00f6ff;
  text-shadow: 0 0 10px #00f6ff;
}

@property --rotate {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.glow-border-subtle {
  background: conic-gradient(from var(--rotate), #ff0044, #ff8800, #ffcc00, #ccff00, #00ff44, #00ffcc, #00aaff, #6600ff, #ee00ff, #ff0044);
  animation: spin 3s linear infinite;
}

@keyframes spin {
  0% {
    --rotate: 0deg;
  }
  100% {
    --rotate: 360deg;
  }
}