body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)),
              url('https://images.unsplash.com/photo-1503264116251-35a269479413?auto=format&fit=crop&w=1950&q=80')
              no-repeat center center/cover;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeIn 1.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

h1 {
  font-size: 3em;
  margin: 0.5em 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
/*  flex-direction: column; */
  justify-content: center;
  gap: 15px;
  margin-bottom: 2em;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-size: 1em;
  transition: background 0.3s, transform 0.3s;
}

.links a:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.login-container {
  position: absolute;
  top: 20px;
  right: 20px;
}

#loginBtn {
  font-size: 0.8em;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s, transform 0.3s;
}

#loginBtn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

#loginModal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #222;
  padding: 30px;
  border-radius: 15px;
  width: 300px;
  text-align: left;
}

.modal-content input,
.modal-content button {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  border: none;
}

.modal-content button {
  background-color: #4caf50;
  color: white;
  cursor: pointer;
}

#cabinet {
  display: none;
  background: rgba(0,0,0,0.6);
  padding: 20px;
  border-radius: 15px;
  margin: 2em;
}

.category {
  margin-bottom: 2em;
  text-align: center;
}

.toggle-header {
  cursor: pointer;
  user-select: none;
  transition: color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.toggle-header:hover {
  color: #ccc;
}

.arrow {
  transition: transform 0.3s ease;
}

.toggle-header.open .arrow {
  transform: rotate(180deg);
}

.toggle-content {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

.toggle-content.collapsed {
  max-height: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 600px) {
  h1 { font-size: 2em; }
  .links a { width: 80%; justify-content: center; }
}

