.tpa-passcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 30px;
}

/* Core wrapper stays consistent */
.tpa-passcode__panel {
  width: 280px;                /* lock consistent width */
  max-width: 90vw;
  margin: 0 auto;
  background: #0d1020;
  border: 2px solid #1f2744;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(70,181,255,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 16px 22px;
  transition: transform 0.3s ease;
}

/* Screen fixed height — prevents jumping text */
.tpa-passcode__screen {
  width: 100%;
  height: 48px;                 /* keep consistent height */
  border: 2px solid #2e3654;
  border-radius: 8px;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tpa-passcode__msg {
  display: inline-block;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #46b5ff;
  white-space: nowrap;          /* ✅ prevents width jump on text changes */
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

/* Keypad grid fixed shape */
.tpa-passcode__keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 220px;
  margin-top: 8px;
}

/* Each key consistent size */
.tpa-passcode__key {
  height: 60px;
  border-radius: 10px;
  border: 2px solid #2e3654;
  background: linear-gradient(180deg, #1a1f35 0%, #121627 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(70,181,255,0.2);
}

.tpa-passcode__key:hover:not(:disabled) {
  background: #1c2f4a;
  border-color: #46b5ff;
  box-shadow: 0 0 15px rgba(70,181,255,0.35);
  transform: translateY(-1px);
}

.tpa-passcode__key:active {
  transform: translateY(1px);
}

.tpa-passcode__key:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: saturate(0.6);
}

.tpa-passcode__key.active {
  background: #00ffff;
  color: #000;
  box-shadow: 0 0 20px #00ffffaa, 0 0 40px #00ffff55;
  transform: scale(1.1);
}

.tpa-passcode__key.error {
  background: #ff0040;
  color: #fff;
  box-shadow: 0 0 20px #ff0040aa, 0 0 40px #ff004055;
}

.tpa-passcode__screen.success {
  color: #00ff99;
  text-shadow: 0 0 8px #00ff99, 0 0 12px #00ff99;
}
