:root {
  color-scheme: dark;
  --bg: #061013;
  --panel: rgba(10, 19, 22, 0.94);
  --panel-strong: rgba(13, 24, 28, 0.98);
  --text: #eaf6f4;
  --muted: #96aca6;
  --accent: #7cf2cf;
  --accent-2: #7bc7ff;
  --warn: #ffcb7a;
  --danger: #ff8b8b;
  --border: rgba(152, 188, 181, 0.16);
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(124, 242, 207, 0.12), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(123, 199, 255, 0.10), transparent 24%),
    linear-gradient(155deg, #04070a 0%, #071316 42%, #050b0f 100%);
  color: var(--text);
}

body {
  padding: 18px;
}

.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

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

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(124, 242, 207, 0.18), rgba(123, 199, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-block h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.ghost-button,
.accent-button,
.surface-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease, opacity 120ms ease;
}

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

.accent-button {
  background: linear-gradient(160deg, var(--accent), #4bf0c6);
  color: #04110c;
  font-weight: 700;
}

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

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.status-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.9rem;
}

.status-chip[data-state="ok"] {
  border-color: rgba(124, 242, 207, 0.24);
  color: #c8fff0;
}

.status-chip[data-state="warn"] {
  border-color: rgba(255, 203, 122, 0.22);
  color: #ffe0b2;
}

.status-chip[data-state="error"] {
  border-color: rgba(255, 139, 139, 0.22);
  color: #ffd0d0;
}

.welcome-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 0 0 14px;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(11, 24, 28, 0.98), rgba(8, 16, 19, 0.95));
  border: 1px solid rgba(124, 242, 207, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 18px 44px rgba(0, 0, 0, 0.28);
}

.welcome-banner__copy {
  min-width: 0;
}

.welcome-banner h3 {
  margin: 2px 0 8px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -0.03em;
}

.welcome-banner__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.welcome-banner__actions {
  flex: 0 0 auto;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
}

.panel h2,
.panel h3,
.panel h4 {
  margin: 0;
}

.panel-note,
.muted,
.log {
  color: var(--muted);
}

.screen-shell {
  display: grid;
  gap: 14px;
}

.screen-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.07), transparent 40%),
    linear-gradient(180deg, #0c1518 0%, #070d0f 100%);
  min-height: 280px;
}

.screen-frame canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.screen-arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.screen-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
  opacity: 0;
  transition: opacity 150ms ease;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
}

.screen-arrow.left {
  left: 12px;
}

.screen-arrow.right {
  right: 12px;
}

.screen-status {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(4, 10, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dcece6;
  font-size: 0.9rem;
  display: inline-flex;
  justify-content: space-between;
  gap: 12px;
}

.screen-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.screen-controls .surface-button,
.screen-controls .accent-button {
  min-height: 44px;
}

.provision-card,
.info-card {
  display: grid;
  gap: 12px;
}

.key-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.key-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.key-list span {
  color: var(--muted);
}

.log {
  min-height: 170px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: pre-wrap;
}

.claim-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 8, 0.86);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 50;
}

.claim-overlay[hidden] {
  display: none;
}

.claim-modal {
  width: min(780px, 100%);
  background: rgba(9, 18, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.claim-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.claim-flow {
  display: grid;
  gap: 10px;
}

.claim-step {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(124, 242, 207, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.claim-step.is-active {
  border-color: rgba(124, 242, 207, 0.28);
  box-shadow: inset 0 0 0 1px rgba(124, 242, 207, 0.04);
}

.claim-step__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.claim-step__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.claim-step__button--action {
  width: 100%;
  min-height: 84px;
  justify-content: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.claim-step.is-active .claim-step__button--action {
  background: linear-gradient(160deg, #7cf2cf, #68d5ff);
  color: #05120e;
}

.claim-step__check {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(124, 242, 207, 0.24);
  color: rgba(124, 242, 207, 0.95);
}

.claim-step__check.is-hidden {
  opacity: 0;
}

.claim-log {
  margin-top: 14px;
  min-height: 96px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  white-space: pre-wrap;
}

.hidden-inputs {
  display: none;
}

@media (max-width: 940px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding: 12px;
  }

  .topbar,
  .panel-header,
  .claim-modal__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel {
    padding: 14px;
    border-radius: 22px;
  }
}
