.collection-container {
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  min-height: 70vh;
}

.collection-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(16px, 3vw, 24px);
  color: #000080;
  text-align: center;
  margin-bottom: 20px;
}

.auth-section {
  text-align: center;
  padding: 40px 20px;
}

.login-form {
  max-width: 400px;
  margin: 0 auto;
  background: #f8f8f8;
  border: 2px inset #808080;
  padding: 25px;
}

.login-form p {
  margin-bottom: 12px;
  font-size: 14px;
}

.login-btn {
  background: linear-gradient(180deg, #4169E1, #000080);
  color: white;
  border: 3px outset #6495ED;
  padding: 10px 25px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  cursor: pointer;
  margin-top: 10px;
}

.login-btn:hover {
  background: linear-gradient(180deg, #6495ED, #4169E1);
}

.login-note {
  font-size: 11px !important;
  color: #888;
  font-style: italic;
  margin-top: 10px !important;
}

.login-message {
  margin-top: 12px;
  padding: 8px;
  font-size: 13px;
  border-radius: 4px;
}

.login-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.login-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.collection-header {
  margin-bottom: 20px;
}

.collection-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #666;
  margin-top: 10px;
}

.logout-btn {
  background: #c0c0c0;
  border: 2px outset #dfdfdf;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}

.sort-controls {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 20px;
}

.sort-btn {
  background: #e0e0e0;
  border: 2px outset #dfdfdf;
  padding: 6px 16px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  cursor: pointer;
}

.sort-btn.active {
  background: #000080;
  color: white;
  border-style: inset;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.collection-card {
  background: #1a1a2e;
  border: 2px solid;
  border-radius: 8px;
  padding: 0 12px 12px 12px;
  text-align: center;
  transition: transform 0.2s;
  cursor: pointer;
  overflow: hidden;
}

.collection-card:hover {
  transform: scale(1.05);
}

.cc-number {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: white;
  margin-bottom: 5px;
}

.cc-rarity {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 8px;
}

.cc-category {
  font-family: 'Courier New', monospace;
  font-size: 9px;
  color: #FFD700;
  letter-spacing: 1px;
  margin-bottom: 6px;
  opacity: 0.8;
}

.cc-art {
  margin: 0 -12px 10px -12px;
  overflow: hidden;
  background: #0a0a1a;
}

.cc-art-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px 6px 0 0;
}

.cc-date {
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: #666;
}

.empty-collection {
  text-align: center;
  padding: 40px;
  color: #888;
}

.empty-collection p {
  font-size: 18px;
  margin-bottom: 15px;
}

.buy-link {
  color: #0000FF;
  font-size: 16px;
}

.back-link {
  text-align: center;
  margin: 30px 0 10px;
}

.back-link a {
  color: #0000FF;
  font-size: 13px;
}

@media (max-width: 500px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}
