body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #18181b;
  color: #f1f5f9;
}

.navbar {
  background: #0f172a;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.navbar h1 {
  margin: 0;
  font-size: 1.5rem;
}

.action-wrap {
  display: flex;
  gap: 10px;
}

.invite-btn {
  background: #2563eb;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.invite-btn:hover {
  background: #1d4ed8;
}

.hero {
  text-align: center;
  padding: 2rem 1rem;
  background: #1e293b;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #facc15;
}

.hero p {
  margin: 0.2rem 0;
  color: #cbd5e1;
}

.hero input {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: none;
  outline: none;
  font-size: 1rem;
  width: 80%;
  max-width: 400px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem 1rem;
  gap: 20px;
}

/* --- CARD AI --- */
.card {
  width: 280px;
  height: 360px;
  background: #1c1c1c;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  margin: 10px;
}

.card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: white;
  border-radius: 12px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 20px;
  font-weight: bold;
  color: #facc15;
  text-align: center;
  margin: 10px 0 5px;
}

.card p {
  text-align: center;
  font-size: 14px;
  color: #d1d5db;
  margin: 0 0 10px 0;
}

.card .tags {
  text-align: center;
  font-size: 12px;
  margin-bottom: 45px;
}

.card .tags span {
  background: #facc15;
  color: #000;
  padding: 3px 8px;
  border-radius: 6px;
  margin: 2px;
  display: inline-block;
}

.card a {
  display: block;
  width: 80%;
  padding: 10px;
  text-align: center;
  background: #3b82f6;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  transition: background 0.3s ease;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.card a:hover {
  background: #2563eb;
}

/* --- POPUP LOGIN --- */
.popup-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box {
  background: #fff;
  color: #000;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.popup-box input {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.popup-box button {
  padding: 0.6rem 1.2rem;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.popup-box button:hover {
  background: #4f46e5;
}

.popup-box .close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #9ca3af;
  background: #0f172a;
  font-size: 0.9rem;
}
