/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Background */
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1d1f27, #2c2f3a);
  color: #fff;
}

/* Card */
.card {
  background: #2f3542;
  padding: 2rem;
  border-radius: 1.2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
}

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

/* Title */
.card h1 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: #00ffcc;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Subtitle */
.card p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: #bbb;
}

/* Inputs */
.card input {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 0.6rem;
  outline: none;
  background: #3a3f47;
  color: #fff;
  font-size: 0.95rem;
  transition: 0.2s;
}

.card input:focus {
  background: #444a54;
  border: 1px solid #00ffcc;
}

/* Dropdown */
.card select {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 0.6rem;
  background: #3a3f47;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23fff' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
  transition: 0.2s;
}

.card select:hover {
  background-color: #444a54;
}

.card select:focus {
  border: 1px solid #00ffcc;
}

.card select option {
  background: #2f3542;
  color: #fff;
  padding: 0.6rem;
}

/* Button utama */
.card button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #00ffcc, #00b894);
  color: #111;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  margin-bottom: 0.7rem;
}

.card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,255,200,0.5);
}

/* Tombol credit */
.card .credit {
  background: linear-gradient(135deg, #ff6b6b, #ee5253);
  color: #fff;
}

.card .credit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,100,100,0.5);
}
/* Tombol credit */
#creditBtn {
  margin-top: 0.8rem;
  background: linear-gradient(135deg, #ff9ff3, #f368e0);
  color: #fff;
  font-weight: bold;
}

#creditBtn:hover {
  box-shadow: 0 4px 12px rgba(255,159,243,0.6);
}

/* Modal popup */
.modal {
  display: none; 
  position: fixed;
  z-index: 99;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #2f3542;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  width: 80%;
  max-width: 350px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  animation: fadeIn 0.4s ease-in-out;
}

.modal-content h2 {
  margin-bottom: 0.5rem;
  color: #00ffcc;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}

.close:hover {
  color: #00ffcc;
}