
    :root {
      --accent: #e74c3c;
      --neon: #00ff66;
      --bg: #0f1113;
      --card: #111217;
      --muted: #9be09b;
    }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      background: var(--bg);
      color: var(--neon);
    }

    a { text-decoration: none; color: var(--neon); }
    button { font: inherit; cursor: pointer; }

    /* ---------------- HEADER ---------------- */
    header {
      background: #000;
      padding: 20px;
      text-align: center;
      border-bottom: 2px solid var(--neon);
    }
    header .brand {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      margin-bottom: 12px;
    }
    header .brand img { width: 64px; height: 64px; }
    header .brand h1 {
      font-size: 2rem;
      color: var(--neon);
      text-shadow: 0 0 8px var(--neon), 0 0 16px var(--neon);
      margin: 0;
    }
    header .brand p { font-size: 1rem; color: var(--muted); margin: 0; }

    /* Nav menu */
    .menu {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 10px;
      transition: max-height .3s ease;
    }
    .menu a {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      border-radius: 8px;
      background: #111;
      border: 1px solid rgba(0,255,102,0.2);
      color: var(--neon);
      transition: .2s;
    }
    .menu a:hover { background: #0a0a0a; box-shadow: 0 0 8px var(--neon); }
    .menu a.active {
      background: var(--neon);
      color: #000;
      font-weight: bold;
      text-shadow: 0 0 4px #000;
    }
    .menu-toggle {
      display: none;
      background: none;
      color: var(--neon);
      font-size: 2rem;
      border: none;
      cursor: pointer;
      margin-bottom: 10px;
    }
    @media (max-width: 700px) {
      .menu { flex-direction: column; align-items: center; max-height: 0; overflow: hidden; }
      .menu.open { max-height: 500px; }
      .menu-toggle { display: block; }
    }

    /* ---------------- LAYOUT ---------------- */
    .container {
      max-width: 1200px;
      margin: 20px auto;
      display: grid;
      grid-template-columns: 250px 1fr 250px;
      gap: 18px;
    }
    .sidebar, .panel {
      position: sticky;
      top: 20px;
      align-self: start;
      background: #000;
      border: 1px solid var(--neon);
      border-radius: 12px;
      padding: 12px;
      color: var(--neon);
    }
    @media (max-width: 1100px) {
      .container { grid-template-columns: 160px 1fr; }
      .panel { display: none; }
    }
    @media (max-width: 700px) {
      .container { grid-template-columns: 1fr; }
      .sidebar, .panel { display: none; }
    }

    /* ---------------- CARDS ---------------- */
    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 12px;
    }
    .card {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 10px;
      border-radius: 12px;
      background: #000;
      border: 1px solid rgba(0,255,102,0.12);
      position: relative;
    }
    .card img.avatar {
      width: 20px;
      border-radius: 8px;
      object-fit: cover;
      float: left;
      margin-right: 10px; /* Optional: adds space between the image and surrounding content */
    }
    .card-title {
      font-weight: 700;
      font-size: 1.2rem;
      color: var(--neon);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .card-desc {
      font-size: 1rem;
      color: var(--neon);
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
    }
    .actions button {
      background: transparent;
      border: 1px solid rgba(255,255,255,0.03);
      color: var(--neon);
      padding: 4px 6px;
      border-radius: 6px;
      font-size: .8rem;
      margin-right: 4px;
    }
    .actions button:hover { border-color: var(--accent); color: var(--accent); }
    .card.pinned {
      border: 2px solid #00ff66;
      animation: pinnedGlow 2s infinite;
    }
    @keyframes pinnedGlow {
      0%, 100% { box-shadow: 0 0 10px #00ff66; transform: scale(1); }
      50% { box-shadow: 0 0 20px #00ff66; transform: scale(1.02); }
    }
    .featured-badge {
      position: absolute;
      top: 8px;
      left: 8px;
      background: var(--accent);
      color: #000;
      font-size: 0.8rem;
      padding: 2px 6px;
      border-radius: 4px;
      font-weight: bold;
    }
    .blog-card {
      background: #1a2a1a;
      border: 2px solid var(--neon);
      box-shadow: 0 0 10px var(--neon);
    }
    .thumbnail-error {
      color: var(--accent);
      font-size: 0.9rem;
      margin-bottom: 8px;
    }

    /* ---------------- FOOTER ---------------- */
    footer {
      text-align: center;
      padding: 20px;
      color: var(--muted);
      border-top: 2px solid var(--neon);
      margin-top: 20px;
    }

    /* Controls wrapper */
    .controls {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 12px;
      padding: 12px;
    }

    /* Search input */
    #searchInput {
      flex: 1;
      min-width: 220px;
      max-width: 400px;
      padding: 10px 14px;
      border-radius: 8px;
      border: 2px solid var(--neon);
      background: #000;
      color: var(--neon);
      font-size: 1rem;
      outline: none;
      box-shadow: 0 0 6px var(--neon);
      transition: box-shadow 0.2s, border-color 0.2s;
    }
    #searchInput:focus {
      border-color: #0f0;
      box-shadow: 0 0 12px #0f0, 0 0 20px var(--neon);
    }

    /* Category select */
    #categorySelect {
      padding: 10px 14px;
      border-radius: 8px;
      border: 2px solid var(--neon);
      background: #000;
      color: var(--neon);
      font-size: 1rem;
      cursor: pointer;
      box-shadow: 0 0 6px var(--neon);
    }
    #categorySelect:focus {
      border-color: #0f0;
      box-shadow: 0 0 12px #0f0;
    }

    /* Pagination */
    .pagination {
      display: flex;
      gap: 8px;
      align-items: center;
      justify-content: center;
      margin-top: 12px;
    }
    .pagination button {
      margin: 0 6px;
      padding: 8px 12px;
      border-radius: 6px;
      border: 1px solid var(--neon);
      background: #111;
      color: var(--neon);
      cursor: pointer;
      transition: background .25s;
    }
    .pagination button:hover { background: var(--neon); color: #111; }
    .pagination button[disabled] { background: #333; color: #777; cursor: default; }

    /* Floating buttons */
    #installBtn {
      position: fixed;
      padding: 10px 14px;
      border-radius: 8px;
      border: none;
      color: #fff;
      right: 18px;
      bottom: 18px;
      background: var(--accent);
      display: none;
    }

    /* Sidebar container */
    .sidebar {
      position: sticky;
      top: 0;
      left: 0;
      width: 220px;
      height: 100vh;
      background: #000;
      border-right: 2px solid var(--neon);
      padding-top: 80px;
      display: flex;
      flex-direction: column;
      z-index: 100;
    }

    /* Tabs list */
    .list-tabs {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    /* Tab items */
    .list-tab {
      padding: 12px 16px;
      cursor: pointer;
      color: var(--neon);
      background: #111;
      border-left: 4px solid transparent;
      transition: all 0.2s;
    }
    .list-tab:hover {
      background: #1a1a1a;
      border-left: 4px solid var(--neon);
    }
    .list-tab.active {
      background: var(--neon);
      color: #000;
      font-weight: bold;
      border-left: 4px solid #0f0;
      box-shadow: 0 0 8px var(--neon);
    }

    /* Push main content aside */
    .main-content {
      margin-left: 5px;
      padding: 5px;
    }

    /* Virtual Link Modal */
    #virtualLinkModal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.9);
      color: var(--neon);
      z-index: 9999;
      overflow: auto;
    }
    #virtualLinkModal .modal-content {
      max-width: 900px;
      width: 90%;
      margin: 40px auto;
      padding: 20px;
      background: #111;
      border-radius: 12px;
      position: relative;
    }
    #virtualLinkModal img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      margin-bottom: 12px;
    }
    #virtualLinkModal iframe {
      width: 100%;
      height: 300px;
      border: 0;
      border-radius: 8px;
      margin-bottom: 12px;
    }
    #virtualLinkModal .actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 12px;
    }
    #virtualLinkModal .thumbnail-error {
      color: var(--accent);
      font-size: 0.9rem;
      margin-bottom: 12px;
    }
    @media (max-width: 600px) {
      #virtualLinkModal .modal-content {
        width: 95%;
        padding: 15px;
      }
      #virtualLinkModal iframe {
        height: 200px;
      }
    }
    
    
    #submissionModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #222;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
}

#submissionForm select, #submissionForm input, #submissionForm textarea {
  width: 100%;
  margin: 8px 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  color: #fff;
}

#submitBtn {
  background: #00ff66;
  color: #000;
  padding: 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#submitBtn:disabled {
  background: #666;
  cursor: not-allowed;
}

.mega-card {
  background: #111;
  padding: 20px;
  border-radius: 8px;
  margin: 10px;
}

.mega-card iframe, .mega-card img {
  max-width: 100%;
  height: auto;
}

.mega-card .actions button {
  margin: 5px;
  padding: 8px;
  background: #00ff66;
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#comments textarea {
  width: 100%;
  height: 80px;
  margin: 10px 0;
}

#commentList p {
  margin: 5px 0;
}
.profile-view {
  background: #111;
  padding: 20px;
  border-radius: 8px;
  margin: 10px auto;
  max-width: 800px;
}
  