body {
  background: #0e0e0e;
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
}

.topbar {
  height: 60px;
  background: #000;
  border-bottom: 1px solid #1f1f1f;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo {
  width: 240px;
  height: 100%;
  display: flex;
  align-items: center;
}

.logo img {
  width: 180px;
  height: 40px;
  object-fit: contain;
}

.top-links {
  display: flex;
  gap: 20px;
  flex: 1;
}

.top-links a {
  margin: 0 14px;
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  padding: 11px 4px;
  border-bottom: 2px solid transparent;
  transition: 0.15s;
  font-size: 24px;
  display: inline-block;
}

.top-links a:hover {
  color: #fff;
  border-bottom: 2px solid #fff;
}

.search-wrap {
  flex: 1;
  position: relative;
  max-width: 700px;
}

.search-wrap input {
  width: 100%;
  height: 34px;
  border-radius: 17px;
  border: none;
  padding: 0 42px 0 15px;
  background: #fff;
  color: #000;
}

.tag-btn {
  position: absolute;
  right: 10px;
  top: 7px;
  background: #eee;
  border-radius: 10px;
  padding: 2px 9px;
  font-size: 11px;
  cursor: pointer;
  color: #333;
}

.top-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.icon-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ccc;
  font-size: 38px;
  cursor: pointer;
}

.icon-btn img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  opacity: 0.85;
  transition: 0.15s;
}

.icon-btn:hover img {
  opacity: 1;
}

.currency {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #fff;
  font-size: 31px;
}

.currency img {
  height: 29px;
  width: 29px;
  object-fit: contain;
}

.currency span {
  font-size: 20px;
}

.login-btn,
.register-btn {
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.15s;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  border: none;
}

.login-btn {
  background: #4a148c;
  color: #fff;
}

.login-btn:hover {
  background: #6a1b9a;
}

.register-btn {
  background: #4a148c;
  color: #fff;
}

.register-btn:hover {
  background: #6a1b9a;
}

.layout {
  display: flex;
  min-height: 100vh;
  padding-top: 60px;
}

.sidebar-container {
  width: 240px;
  flex-shrink: 0;
}

.sidebar {
  width: 240px;
  height: calc(100vh - 60px);
  background: #000;
  border-right: 1px solid #1f1f1f;
  padding: 20px 15px;
  position: fixed;
  top: 60px;
  left: 0;
  overflow-y: auto;
  z-index: 999;
}

.profile {
  margin-bottom: 20px;
  font-size: 16px;
  color: #bbb;
}

.side-item {
  display: block;
  padding: 8px 10px;
  margin-bottom: 6px;
  color: #ccc;
  border-radius: 4px;
  transition: 0.15s;
  cursor: pointer;
  position: relative;
  left: 0;
  font-size: 20px;
  text-decoration: none;
}

.side-item:hover {
  background: #151515;
  color: #fff;
  left: 6px;
}

.badge-mini {
  background: #fff;
  color: #000;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 600;
}

.upgrade-btn {
  background: #555;
  border: none;
  color: #fff;
  padding: 6px 18px;
  border-radius: 16px;
  font-size: 17px;
  margin: 15px 0;
  width: 100%;
  transition: 0.15s;
  display: block;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.upgrade-btn:hover {
  background: #777;
  color: #fff;
}

.events-label {
  font-size: 22px;
  color: #888;
  border-top: 1px solid #222;
  margin-top: 20px;
  padding-top: 10px;
}

.main-content {
  flex: 1;
  background: linear-gradient(#222, #1a1a1a);
  overflow-y: auto;
  padding: 20px;
  margin-left: 240px;
  min-height: calc(100vh - 60px);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #000;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #222;
}

* {
  scrollbar-color: #000 #1a1a1a;
  scrollbar-width: thin;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ccc;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  margin-right: 10px;
}

.mobile-menu-btn:hover {
  color: #fff;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
}

.sidebar-overlay.active {
  display: block;
}

@media (max-width: 768px) {
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }

  .logo {
    width: auto;
    min-width: 120px;
  }

  .logo img {
    width: 120px;
    height: 40px;
  }

  .top-links {
    display: none;
  }

  .search-wrap {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .top-icons {
    gap: 8px;
  }

  .currency span {
    display: inline;
    font-size: 14px;
  }

  .currency img {
    height: 24px;
    width: 24px;
  }

  .icon-btn img {
    height: 32px;
    width: 32px;
  }

  .layout {
    flex-direction: column;
    padding-top: 60px;
  }

  .sidebar-container {
    width: 100%;
  }

  .sidebar {
    width: 280px;
    height: calc(100vh - 60px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 16px;
  }

  .side-item {
    font-size: 16px;
    padding: 12px 10px;
    margin-bottom: 8px;
  }

  .upgrade-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .events-label {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 0 8px;
    gap: 4px;
  }

  .logo {
    min-width: 100px;
  }

  .logo img {
    width: 100px;
    height: 35px;
  }

  .top-icons {
    gap: 4px;
  }

  .currency {
    font-size: 16px;
    gap: 4px;
  }

  .currency img {
    height: 20px;
    width: 20px;
  }

  .icon-btn img {
    height: 28px;
    width: 28px;
  }

  .sidebar {
    width: 100%;
    max-width: 280px;
  }

  .main-content {
    padding: 12px;
  }

  .side-item {
    font-size: 14px;
  }
}