* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, sans-serif;
  background: #0a0c10;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 60px 20px;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

h1 {
  font-size: 52px;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.card-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  z-index: 2;
  margin-bottom: 20px;
}

.card-border {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1.5px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
  opacity: 0.6;
  will-change: background;
}

.box {
  background: #0f1117;
  padding: 40px;
  border-radius: 12px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  text-align: center;
  position: relative;
  z-index: 2;
}

h2 { margin-bottom: 20px; font-size: 28px; }

.link-btn {
  width: auto;
  padding: 8px 4px 0 4px;
  margin-top: 15px;
  background: none;
  color: #64748b;
  font-size: 13px;
  text-decoration: underline;
}

.link-btn:hover { background: none; color: #93c5fd; }

input {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  border-radius: 8px;
  border: 1px solid #1f2a3a;
  margin-bottom: 15px;
  text-align: center;
  outline: none;
  background: #151921;
  color: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

button {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button:hover { background: #1d4ed8; }
button:active { transform: scale(0.99); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.error { color: #f87171; margin-top: 10px; font-size: 14px; }
.result { margin-top: 25px; font-size: 15px; text-align: left; }
.clean { color: #22c55e; font-weight: bold; text-align: center; font-size: 18px; }
.dupe { color: #ef4444; font-weight: bold; font-size: 18px; margin-bottom: 10px; }

.offline {
  color: #fbbf24;
  text-align: center;
  font-size: 14px;
  padding: 8px;
  background: #1e293b;
  border-radius: 6px;
  margin-bottom: 15px;
  display: none;
}

table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
th, td { border: 1px solid #1e293b; padding: 8px; text-align: left; }
th { background: #0f1117; color: #93c5fd; }
tr:hover td { background: #0f172a; }

footer {
  position: fixed;
  bottom: 16px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: #475569;
  pointer-events: none;
  z-index: 10;
}

.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid #ffffff44;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }
