/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #fff;
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Container */
.wrapper {
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Title */
.title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #000, #444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Form */
.form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.form input {
  flex: 1;
  padding: 0.9rem 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  transition: border 0.3s, box-shadow 0.3s;
}

.form input:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.form button {
  padding: 0.9rem 1.4rem;
  border: none;
  border-radius: 12px;
  background: #000;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.form button:hover {
  transform: translateY(-2px);
  background: #333;
}

.form button:active {
  transform: scale(0.98);
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #eee;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 1.5rem auto;
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Result Card */
.result {
  display: none;
  margin-top: 2rem;
}

.card {
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  padding: 1.5rem;
  background: #fafafa;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.05);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  padding: 0.4rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge.inactive {
  background: #f5f5f7;
  color: #666;
}

.badge.unbound {
  background: #e0f7f9;
  color: #0071e3;
}

.badge.active {
  background: #e6fbe6;
  color: #2e7d32;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.item {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #f0f0f0;
  transition: transform 0.2s;
}

.item:hover {
  transform: translateY(-2px);
}

.item label {
  display: block;
  font-size: 0.85rem;
  color: #888;
}

.item p {
  margin-top: 0.3rem;
  font-weight: 600;
  word-break: break-all;
}

/* Alert */
.alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
  z-index: 1000;
}

.alert.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.alert.success {
  background: #2e7d32;
}

.alert.error {
  background: #d32f2f;
}

.alert.warning {
  background: #ed6c02;
}

/* Responsive */
@media (max-width: 600px) {
  .form {
    flex-direction: column;
  }
  
  .form button {
    width: 100%;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
}