* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  min-height: 100vh;
  color: #e2e8f0;
  padding: 24px;
}
.container { max-width: 860px; margin: 0 auto; }
h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 8px; }
.subtitle { color: #94a3b8; margin-bottom: 28px; font-size: 0.95rem; }
.subtitle code { background: #0f172a; padding: 2px 6px; border-radius: 4px; color: #93c5fd; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stats.stats-4 {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) {
  .stats.stats-4 { grid-template-columns: repeat(4, 1fr); }
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.stat-card .label { color: #94a3b8; font-size: 0.85rem; margin-bottom: 8px; }
.stat-card .value { font-size: 2rem; font-weight: 700; }
.stat-card.unused .value { color: #34d399; }
.stat-card.used .value { color: #fbbf24; }
.stat-card.total .value { color: #60a5fa; }
.stat-card.collected .value { color: #c084fc; }
.collect-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  align-items: center;
}
.filter-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.9rem;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}
.data-table th {
  background: rgba(15,23,42,0.8);
  color: #94a3b8;
  font-weight: 600;
}
.data-table td { color: #e2e8f0; }
.data-table tr:hover td { background: rgba(255,255,255,0.03); }
.data-table .empty-row {
  text-align: center;
  color: #64748b;
  padding: 24px;
}
.data-table .uid-cell {
  font-family: "Cascadia Code", monospace;
  color: #93c5fd;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}
.pager-btn {
  background: #334155;
  color: #e2e8f0;
  padding: 8px 16px;
}
.pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pager-info { color: #94a3b8; font-size: 0.85rem; }
.panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.panel h2 { font-size: 1.1rem; margin-bottom: 16px; }
textarea {
  width: 100%;
  min-height: 220px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  padding: 14px;
  font-family: "Cascadia Code", "Fira Code", monospace;
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
textarea:focus { border-color: #3b82f6; }
textarea::placeholder { color: #64748b; }
.actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
  align-items: center;
}
button, .file-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: #3b82f6;
  color: #fff;
}
.btn-primary:hover { background: #2563eb; }
.btn-primary:disabled { background: #475569; cursor: not-allowed; }
.file-btn {
  background: #334155;
  color: #e2e8f0;
  display: inline-block;
}
.file-btn:hover { background: #475569; }
input[type="file"] { display: none; }
.hint { color: #64748b; font-size: 0.85rem; }
.toast {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}
.toast.success { display: block; background: rgba(52,211,153,0.15); border: 1px solid #34d399; color: #6ee7b7; }
.toast.error { display: block; background: rgba(248,113,113,0.15); border: 1px solid #f87171; color: #fca5a5; }
.api-info { color: #94a3b8; font-size: 0.85rem; line-height: 1.8; }
.api-info code {
  background: #0f172a;
  padding: 2px 8px;
  border-radius: 4px;
  color: #93c5fd;
}
