:root {
  --bg: #08131d;
  --bg-soft: rgba(9, 22, 34, 0.86);
  --panel: rgba(8, 20, 31, 0.82);
  --panel-border: rgba(150, 214, 255, 0.16);
  --text: #eef7fb;
  --muted: #92a8b9;
  --accent: #49dcb1;
  --accent-strong: #12b48d;
  --accent-warm: #ffb55f;
  --danger: #ff7676;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(73, 220, 177, 0.2), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 181, 95, 0.14), transparent 28%),
    linear-gradient(135deg, #08131d 0%, #0c1824 45%, #111f2d 100%);
}

a {
  color: #8be4c7;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.page-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.35;
}

.page-glow-a {
  top: 20px;
  right: 4%;
  background: rgba(73, 220, 177, 0.28);
}

.page-glow-b {
  bottom: 10%;
  left: 2%;
  background: rgba(255, 181, 95, 0.18);
}

.hero,
.panel {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  margin-bottom: 22px;
  animation: rise 0.6s ease;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 8px;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.95;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.hero-copy,
.note {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.panel {
  padding: 26px;
  margin-bottom: 22px;
  animation: rise 0.8s ease;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 110px;
}

.stat-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.toolbar-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px);
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

input {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 10, 18, 0.72);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

input:focus {
  border-color: rgba(73, 220, 177, 0.6);
  transform: translateY(-1px);
}

.primary-button,
.secondary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  color: #05110d;
  background: linear-gradient(135deg, var(--accent) 0%, #86f7d8 100%);
}

.secondary-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.ghost-button {
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 600;
}

.status-pill.muted {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.status-pill.good {
  color: #03120d;
  background: linear-gradient(135deg, #9af5d5 0%, #49dcb1 100%);
}

.status-pill.warn {
  color: #291400;
  background: linear-gradient(135deg, #ffd6a1 0%, #ffb55f 100%);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.table-shell {
  margin-top: 18px;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.data-table th,
.data-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.cell-title {
  font-weight: 700;
}

.cell-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.token-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.token-link:hover .cell-title {
  text-decoration: underline;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.status-tag.good {
  color: #03120d;
  background: linear-gradient(135deg, #9af5d5 0%, #49dcb1 100%);
}

.status-tag.warn {
  color: #291400;
  background: linear-gradient(135deg, #ffd6a1 0%, #ffb55f 100%);
}

.status-tag.muted {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
}

.table-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.table-button.danger {
  color: #fff4f4;
  background: rgba(255, 118, 118, 0.18);
}

.empty-state {
  padding: 22px 18px;
  color: var(--muted);
}

.action-block + .action-block {
  margin-top: 24px;
}

.action-row,
.inline-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.action-row + .action-row {
  margin-top: 12px;
}

.action-row input,
.inline-actions {
  flex: 1;
}

.message-box {
  min-height: 110px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.6;
}

code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero,
  .panel-header,
  .action-row,
  .inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .two-column,
  .account-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
