body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at top, #1e1e2f, #121212);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

header {
  margin-top: 40px;
  text-align: center;
}

header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #7b61ff, #a77eff, #ff7be5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  font-weight: 400;
  color: #ccc;
}

main {
  margin-top: 30px;
  text-align: center;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  margin: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #6a5acd, #836fff);
  color: white;
}

button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #7f6eff, #9d7fff);
}

#cardDisplay {
  margin-top: 30px;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

#cardDisplay img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 15px;
}

/* Inventory section */
#inventory {
  margin: 40px auto;
  display: none;
  text-align: center;
  max-width: 500px;
}

#inventory h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

#inventoryList {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  font-size: 1rem;
  max-height: 300px;
  overflow-y: auto;
  line-height: 1.6;
}

#pageControls {
  margin-top: 15px;
}

.page-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  padding: 6px 12px;
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
}

.page-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

footer {
  margin-top: auto;
  color: #888;
  font-size: 0.9rem;
  padding: 10px 0;
}