:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b0f14;
  color: #eef5f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(0, 245, 255, 0.08), transparent 34rem),
    #0b0f14;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar,
.status,
.panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: 8px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1;
}

h2 {
  font-size: 22px;
}

.eyebrow {
  margin-bottom: 8px;
  color: #00f5ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.danger {
  color: #fb7185;
}

.primary,
.danger-btn {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
}

.primary {
  background: #00f5ff;
  color: #031014;
}

.danger-btn {
  background: #fb7185;
  color: #17060a;
}

.full {
  width: 100%;
}

.status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 8px;
}

.status div {
  padding: 16px;
}

.status span,
.field span {
  display: block;
  margin-bottom: 6px;
  color: rgba(238, 245, 248, 0.62);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.status strong {
  display: block;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.panel {
  display: flex;
  min-height: 480px;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border-radius: 8px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.badge {
  border-radius: 999px;
  background: rgba(0, 245, 255, 0.14);
  color: #67f8ff;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.badge.danger {
  background: rgba(251, 113, 133, 0.16);
  color: #fda4af;
}

.nft-preview {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.nft-art {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 22%, #00f5ff, transparent 30%),
    linear-gradient(135deg, #101820, #263c3f);
  color: white;
  font-size: 84px;
  font-weight: 950;
}

.nft-preview p,
.body-copy {
  margin-top: 8px;
  color: rgba(238, 245, 248, 0.72);
  line-height: 1.55;
}

.field {
  display: block;
}

.field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: #eef5f8;
  padding: 12px;
  outline: none;
}

.log {
  min-height: 150px;
  margin: auto 0 0;
  overflow: auto;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  color: rgba(238, 245, 248, 0.84);
  padding: 12px;
  white-space: pre-wrap;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.62);
  padding: 20px;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(440px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #101820;
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #eef5f8;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.wallet-options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.wallet-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #eef5f8;
  padding: 13px;
  text-align: left;
  cursor: pointer;
}

.wallet-option:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.wallet-option strong,
.wallet-option span {
  display: block;
}

.wallet-option span {
  margin-top: 4px;
  color: rgba(238, 245, 248, 0.62);
  font-size: 12px;
}

.wallet-note {
  margin-top: 14px;
  color: rgba(238, 245, 248, 0.66);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 780px) {
  .topbar,
  .status,
  .grid,
  .nft-preview {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }
}
