/* ---------- Base ---------- */
body {
  background-color: #000;
  background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url("https://topshoplb.com/bg.webp");
  background-repeat: repeat;
  background-position: center;
  background-size: auto;
  color: #fff;
  font-family: Arial, sans-serif;
  margin: 0;
}

hr.gold-hr {
  border: none;
  height: 2px;
  background: gold;
  margin: 0;
}

/* ---------- Top Navbar ---------- */
.top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  background-color: #0b0b0b;
  color: #fff;
  padding: 0 15px;
}

.top-navbar .title {
  font-size: 1rem;
  background-image: linear-gradient(45deg, gold, orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.top-navbar .social-icons a {
  color: #fff;
  margin-right: 15px;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.top-navbar .social-icons a:hover {
  color: gold;
}

/* ---------- Main Navbar ---------- */
.main-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #0b0b0b;
  color: #fff;
  box-shadow: 0 2px 5px rgba(255, 215, 0, 0.4);
}

.balance-center {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  color: #fff;
}

.menu-btn {
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
  margin-right: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  background-color: gold;
  color: #000;
  border: 1px solid gold;
  cursor: pointer;
  transition: all 0.3s;
  margin-left: 10px;
}

.btn:hover {
  background-color: #ffc107;
  border-color: #ffc107;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: 250px;
  background-color: #0b0b0b;
  color: #fff;
  position: fixed;
  top: 0;
  left: -250px;
  height: 100vh;
  transition: all 0.3s ease;
  padding-top: 20px;
  z-index: 1050;
  overflow-y: auto;
}

.sidebar.open {
  left: 0;
}

.sidebar h4 {
  padding: 10px 20px;
  color: gold;
  margin: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  padding: 10px 20px;
}

.sidebar ul li a {
  color: #fff;
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}

.sidebar ul li a:hover {
  color: gold;
}

.sidebar ul li ul {
  list-style: none;
  padding-left: 20px;
  display: none;
}

.sidebar ul li.open > ul {
  display: block;
}

.sidebar .close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.5rem;
  color: gold;
  cursor: pointer;
}

/* ---------- Dropdown (User) ---------- */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-icon {
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}

.pro-dropdown {
  display: none;
  position: absolute;
  top: 35px;
  right: 0;
  background-color: #0b0b0b;
  padding: 10px;
  min-width: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.user-dropdown:hover .pro-dropdown,
.pro-dropdown.open {
  display: block;
}

.pro-dropdown a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #333;
  transition: background-color 0.3s, transform 0.2s;
}

.pro-dropdown a:last-child {
  border-bottom: none;
}

.pro-dropdown a i {
  margin-right: 10px;
  font-size: 1.1rem;
  color: gold;
}

.pro-dropdown a:hover {
  background-color: gold;
  color: #000;
  transform: translateX(3px);
}

/* ---------- User Section ---------- */
.user-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.add-balance-icon {
  font-size: 1.5rem;
  color: gold;
  cursor: pointer;
  margin-left: 5px;
}

.basket-icon {
  color: gold;
  cursor: pointer;
  margin-right: 5px;
}

/* ---------- Icons ---------- */
.fa-solid,
.fab {
  vertical-align: middle;
}

/* ---------- Utility Margins ---------- */
.mb-0 { margin-bottom: 0 !important; }
.mr-2 { margin-right: .5rem !important; }
.ml-2 { margin-left: .5rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mb-2 { margin-bottom: .5rem !important; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .top-navbar .title {
    font-size: 0.9rem;
  }

  .main-navbar {
    flex-direction: row;
    padding: 8px 10px;
  }

  .menu-btn {
    font-size: 1.4rem;
  }

  .balance-center {
    font-size: 1rem;
  }

  .add-balance-icon {
    font-size: 1.3rem;
  }

  .user-section {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .top-navbar .title {
    font-size: 0.8rem;
  }

  .balance-center {
    font-size: 0.9rem;
  }

  .sidebar {
    width: 220px;
  }

  .sidebar.open {
    left: 0;
  }

  .btn {
    padding: 5px 10px;
    font-size: 0.9rem;
  }
}
