:root {
  --bg: #0f1220;
  --card: #181c2f;
  --line: #262c45;
  --text: #e8ebf5;
  --muted: #9aa3bf;
  --accent: #5b8cff;
  --accent-2: #37d6a8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 20% -10%, #1d2444 0%, var(--bg) 60%);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: .5px;
}

.subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.subtitle code {
  background: #232842;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--accent-2);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 20px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-title {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ip {
  font-size: 40px;
  font-weight: 700;
  font-family: ui-monospace, Consolas, monospace;
  margin: 10px 0 18px;
  color: var(--accent);
  word-break: break-all;
}

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 0;
}

.meta dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.meta dd {
  margin: 0;
  font-size: 14px;
}

.ua {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: opacity .15s, transform .05s;
}

button:hover { opacity: .9; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: not-allowed; }

button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.hint { font-size: 13px; color: var(--muted); }

.table-wrap {
  overflow-x: auto;
  max-height: 380px;
  overflow-y: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  background: var(--card);
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}

td:nth-child(2) {
  font-family: ui-monospace, Consolas, monospace;
  color: var(--accent-2);
}

td:nth-child(4) {
  color: var(--muted);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty {
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 560px) {
  .ip { font-size: 28px; }
  .container { padding: 28px 14px 48px; }
}
