:root {
  --bg: #05080d;
  --panel: rgba(8, 10, 14, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #eef4ff;
  --muted: #9ba7bb;
  --accent: #eb832f;
  --accent-soft: rgba(235, 131, 47, 0.18);
  --blue: #7dc4ff;
  --green: #55e39e;
  --danger: #ff7b72;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(235, 131, 47, 0.22), transparent 18%),
    radial-gradient(circle at 92% 88%, rgba(125, 196, 255, 0.2), transparent 22%),
    linear-gradient(180deg, #07090d 0%, #030507 100%);
}

.page-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 36px 34px 44px;
}

.topbar,
.status-line,
.hero-card,
.layout-grid,
.section-header,
.registry-header,
.form-actions,
.decode-head,
.pagination-bar,
.action-buttons {
  display: flex;
}

.topbar {
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #f4c08a;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: 2.2rem;
}

.subtitle {
  margin: 10px 0 0;
  max-width: 62ch;
  color: var(--muted);
}

.status-rail {
  min-width: 300px;
  text-align: right;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-line {
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(85, 227, 158, 0.8);
}

.rail-sep {
  color: rgba(255, 255, 255, 0.24);
}

.hero-card,
.claim-card,
.activity-card,
.registry-card {
  border-radius: 18px;
  border: 1px solid rgba(125, 196, 255, 0.28);
  background: var(--panel);
  box-shadow: 0 0 30px rgba(125, 196, 255, 0.18);
}

.hero-card {
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.hero-copy p {
  margin: 6px 0 0;
  color: var(--muted);
}

.hero-kicker {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-link,
.primary-button,
.ghost-button,
.copy-btn,
.page-btn {
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}

.hero-link,
.primary-button {
  background: var(--accent-soft);
  border: 1px solid rgba(235, 131, 47, 0.32);
  color: #fff0e3;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
}

.hero-link-secondary,
.ghost-button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
}

.layout-grid {
  flex-direction: column;
  gap: 22px;
}

.claim-card,
.activity-card,
.registry-card {
  padding: 20px 22px 24px;
}

.section-header {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.claim-form {
  display: grid;
  gap: 12px;
}

.claim-form label {
  color: var(--muted);
  font-size: 0.92rem;
}

textarea,
.search-wrap input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 108px;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.form-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.copy-btn {
  border: 1px solid transparent;
  padding: 11px 14px;
  font-size: 0.92rem;
}

.primary-button:disabled,
.ghost-button:disabled,
.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.message {
  margin-top: 14px;
  border-radius: 14px;
  padding: 12px 14px;
  line-height: 1.45;
}

.message.hidden {
  display: none;
}

.message.success {
  background: rgba(85, 227, 158, 0.14);
  border: 1px solid rgba(85, 227, 158, 0.26);
  color: #dff7ea;
}

.message.error {
  background: rgba(255, 123, 114, 0.14);
  border: 1px solid rgba(255, 123, 114, 0.24);
  color: #ffe1df;
}

.message.info {
  background: rgba(125, 196, 255, 0.12);
  border: 1px solid rgba(125, 196, 255, 0.22);
  color: #e5f3ff;
}

.decode-panel {
  margin-top: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
}

.decode-head {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.decode-state {
  color: var(--muted);
  font-size: 0.88rem;
}

.decode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0;
}

.decode-grid dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.decode-grid dd {
  margin: 0;
  word-break: break-word;
}

.activity-wrap,
.table-wrap {
  overflow-x: auto;
}

.activity-table,
.registry-table {
  width: 100%;
  border-collapse: collapse;
}

.activity-table th,
.activity-table td,
.registry-table th,
.registry-table td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.93rem;
}

.activity-table th,
.registry-table th {
  color: var(--muted);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
}

.registry-status {
  min-height: 22px;
  margin-bottom: 12px;
  color: var(--muted);
}

.search-wrap {
  min-width: 320px;
}

.registry-table code {
  color: var(--blue);
}

.action-buttons {
  gap: 8px;
  flex-wrap: wrap;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.copy-btn.copied {
  color: var(--green);
}

.page-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  width: 38px;
  height: 38px;
}

.pagination-bar {
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.pagination-info {
  color: var(--muted);
  min-width: 120px;
  text-align: center;
}

.loading-row td,
.empty-row td {
  color: var(--muted);
}

@media (max-width: 920px) {
  .topbar,
  .hero-card,
  .section-header.registry-header,
  .decode-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-rail {
    min-width: 0;
    text-align: left;
  }

  .status-line {
    justify-content: flex-start;
  }

  .search-wrap {
    min-width: 0;
    width: 100%;
  }

  .decode-grid {
    grid-template-columns: 1fr;
  }
}
