* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f5f5f7;
  overflow: hidden;
  position: relative;
  color: #1d1d1f;
  padding: 1rem;
}

.background-mesh {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 50% 50%, rgba(0, 113, 227, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(67, 198, 172, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(142, 45, 226, 0.08) 0%, transparent 50%);
  z-index: -1;
  animation: bg-shift 20s ease-in-out infinite alternate;
}

@keyframes bg-shift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-5%, -5%) scale(1.05); }
}

.glass-panel {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.wrapper {
  width: 100%;
  max-width: 520px;
  border-radius: 32px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: 0.95rem;
  color: #86868b;
  font-weight: 500;
  margin-top: 0.2rem;
  letter-spacing: 2px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.input-group {
  position: relative;
  width: 100%;
}

.form input {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  font-size: 1.05rem;
  color: #1d1d1f;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form input:focus {
  outline: none;
  background: #fff;
  border-color: #0071e3;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.form input::placeholder {
  color: #86868b;
}

.action-group {
  display: flex;
  gap: 1rem;
}

.btn {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn.primary {
  background: #0071e3;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn.primary:hover {
  background: #0077ed;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.4);
}

.btn.secondary {
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn.secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.97);
}

.spinner {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 113, 227, 0.2);
  border-top-color: #0071e3;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.result {
  display: none;
  margin-top: 2rem;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: 0 0.5rem;
}

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1d1d1f;
}

.badge {
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge.inactive { background: #e5e5ea; color: #86868b; }
.badge.unbound { background: #e0f2fe; color: #0284c7; }
.badge.active { background: #dcfce7; color: #16a34a; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.glass-item {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 1.2rem;
  transition: all 0.3s ease;
}

.glass-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.glass-item label {
  display: block;
  font-size: 0.8rem;
  color: #86868b;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.glass-item p {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1d1d1f;
  word-break: break-all;
}

.alert {
  position: fixed;
  top: 20px;
  right: 20px;
  transform: translateX(150%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  z-index: 99999;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 350px;
  word-break: break-word;
  opacity: 0;
}

.alert.show {
  transform: translateX(0);
  opacity: 1;
}

.alert.success { background: rgba(52, 199, 89, 0.95); color: white; }
.alert.error { background: rgba(255, 59, 48, 0.95); color: white; }
.alert.warning { background: rgba(255, 149, 0, 0.95); color: white; }

@media (max-width: 480px) {
  .alert {
    top: 20px;
    right: 15px;
    max-width: calc(100vw - 30px);
  }
}
.footer-info {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: #86868b;
  font-family: monospace;
}

@media (max-width: 600px) {
  .action-group { flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .wrapper { padding: 1.5rem; border-radius: 24px; }
}