* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #0f172a;
  background: #eef5ff;
}

.viewport {
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.shell {
  width: min(560px, 100%);
  transform-origin: top center;
}

.panel {
  background: #ffffff;
  border: 1px solid #dbe6f5;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.07);
}

.panel + .panel,
.panel + .error,
.error + .panel {
  margin-top: 10px;
}

.hero {
  padding: 6px;
  background: linear-gradient(180deg, #dcecff 0%, #ffffff 100%);
}

.brand-image {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.title {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0b1c4a;
}

.muted {
  color: #40536f;
  margin: 10px 0 0;
  line-height: 1.28;
  font-size: 18px;
}

.small {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.25;
}

.label {
  display: block;
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 800;
  color: #0b1c4a;
}

.input {
  width: 100%;
  height: 52px;
  border: 1px solid #c8d8ee;
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 17px;
  outline: none;
}

.input:focus {
  border-color: #1895da;
  box-shadow: 0 0 0 2px rgba(24, 149, 218, 0.2);
}

.input:disabled {
  background: #f2f6fb;
  color: #7a8ca5;
  border-color: #d7e2f2;
  cursor: not-allowed;
}

.input.input-error {
  border-color: #dc2626;
  background: #fef2f2;
}

.btn {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.01em;
  margin-top: 9px;
}

.primary {
  background: #1895da;
  color: #ffffff;
}

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

.secondary {
  background: #eef4fb;
  border-color: #d6e2f2;
  color: #0f172a;
}

.ghost {
  background: transparent;
  border-color: #d6e2f2;
  color: #46607e;
}

.btn:disabled {
  cursor: not-allowed;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.connect-wallet-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.connect-wallet-badge {
  width: 21px;
  height: 21px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.connect-wallet-badge svg {
  width: 14px;
  height: 14px;
  display: block;
}

.status-note {
  color: #0f517d;
}

.status-note.danger {
  color: #b91c1c;
}

.error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 13px;
  white-space: pre-wrap;
}

.hidden {
  display: none !important;
}

