* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0e0e12;
  color: #f2f2f5;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #22222a;
  position: sticky;
  top: 0;
  background: rgba(14, 14, 18, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.brand {
  font-weight: 700;
  font-size: 20px;
}
.brand .dot { color: #7c6bff; }

.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #7c6bff, #a06bff);
  color: white;
}
.btn-primary:hover { opacity: 0.9; }

.btn-ghost {
  background: transparent;
  color: #b5b5c0;
  border: 1px solid #2c2c36;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #cfcfe0;
}

.hero {
  padding: 60px 24px 32px;
  text-align: center;
}
.hero h1 {
  font-size: 34px;
  margin: 0 0 8px;
}
.hero p {
  color: #a6a6b8;
  max-width: 520px;
  margin: 0 auto;
}

.listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.loading, .empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #7c7c8c;
  padding: 40px 0;
}

.card {
  background: #17171f;
  border: 1px solid #24242e;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card .username {
  font-size: 18px;
  font-weight: 700;
}
.card .username::before { content: "@"; color: #7c6bff; }

.card .price {
  color: #ffd166;
  font-weight: 600;
  font-size: 15px;
}
.card .price::after { content: " ★"; }

.card .buy-btn { margin-top: 4px; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.modal.hidden { display: none; }

.modal-card {
  background: #17171f;
  border: 1px solid #2c2c36;
  border-radius: 16px;
  padding: 28px;
  max-width: 340px;
  text-align: center;
}
.modal-card h3 { margin-top: 0; }
.modal-card .hint {
  font-size: 13px;
  color: #7c7c8c;
  margin: 16px 0 8px;
}
.modal-card .btn { width: 100%; margin-top: 6px; }
